diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/custom_default_format.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/custom_default_format.rs new file mode 100644 index 0000000000000000000000000000000000000000..81a1ef41ff8089f57ad4c1c107acd2394776ab26 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/custom_default_format.rs @@ -0,0 +1,39 @@ +/*! +Disabling parts of the default format. + +Before running this example, try setting the `MY_LOG_LEVEL` environment variable to `info`: + +```no_run,shell +$ export MY_LOG_LEVEL='info' +``` + +Also try setting the `MY_LOG_STYLE` environment variable to `never` to disable colors +or `auto` to enable them: + +```no_run,shell +$ export MY_LOG_STYLE=never +``` + +If you want to control the logging output completely, see the `custom_logger` example. +*/ + +use log::info; + +use env_logger::{Builder, Env}; + +fn init_logger() { + let env = Env::default() + .filter("MY_LOG_LEVEL") + .write_style("MY_LOG_STYLE"); + + Builder::from_env(env) + .format_level(false) + .format_timestamp_nanos() + .init(); +} + +fn main() { + init_logger(); + + info!("a log from `MyLogger`"); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/custom_format.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/custom_format.rs new file mode 100644 index 0000000000000000000000000000000000000000..80b9aaa3ed259b5da5a809ffb1fb3381daf9ad8a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/custom_format.rs @@ -0,0 +1,53 @@ +/*! +Changing the default logging format. + +Before running this example, try setting the `MY_LOG_LEVEL` environment variable to `info`: + +```no_run,shell +$ export MY_LOG_LEVEL='info' +``` + +Also try setting the `MY_LOG_STYLE` environment variable to `never` to disable colors +or `auto` to enable them: + +```no_run,shell +$ export MY_LOG_STYLE=never +``` + +If you want to control the logging output completely, see the `custom_logger` example. +*/ + +#[cfg(all(feature = "color", feature = "humantime"))] +fn main() { + use env_logger::{Builder, Env}; + + use std::io::Write; + + fn init_logger() { + let env = Env::default() + .filter("MY_LOG_LEVEL") + .write_style("MY_LOG_STYLE"); + + Builder::from_env(env) + .format(|buf, record| { + // We are reusing `anstyle` but there are `anstyle-*` crates to adapt it to your + // preferred styling crate. + let warn_style = buf.default_level_style(log::Level::Warn); + let timestamp = buf.timestamp(); + + writeln!( + buf, + "My formatted log ({timestamp}): {warn_style}{}{warn_style:#}", + record.args() + ) + }) + .init(); + } + + init_logger(); + + log::info!("a log from `MyLogger`"); +} + +#[cfg(not(all(feature = "color", feature = "humantime")))] +fn main() {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/default.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/default.rs new file mode 100644 index 0000000000000000000000000000000000000000..9af2a6e2f852e4581d97ac5c6c0398d6f42e4a51 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/default.rs @@ -0,0 +1,37 @@ +/*! +Using `env_logger`. + +Before running this example, try setting the `MY_LOG_LEVEL` environment variable to `info`: + +```no_run,shell +$ export MY_LOG_LEVEL='info' +``` + +Also try setting the `MY_LOG_STYLE` environment variable to `never` to disable colors +or `auto` to enable them: + +```no_run,shell +$ export MY_LOG_STYLE=never +``` +*/ + +use log::{debug, error, info, trace, warn}; + +use env_logger::Env; + +fn main() { + // The `Env` lets us tweak what the environment + // variables to read are and what the default + // value is if they're missing + let env = Env::default() + .filter_or("MY_LOG_LEVEL", "trace") + .write_style_or("MY_LOG_STYLE", "always"); + + env_logger::init_from_env(env); + + trace!("some trace log"); + debug!("some debug log"); + info!("some information log"); + warn!("some warning log"); + error!("some error log"); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/direct_logger.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/direct_logger.rs new file mode 100644 index 0000000000000000000000000000000000000000..9eae1fa988ccdf4b809cc560282f77f970bd85f8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/direct_logger.rs @@ -0,0 +1,47 @@ +/*! +Using `env_logger::Logger` and the `log::Log` trait directly. + +This example doesn't rely on environment variables, or having a static logger installed. +*/ + +use env_logger::{Builder, WriteStyle}; + +use log::{Level, LevelFilter, Log, MetadataBuilder, Record}; + +#[cfg(feature = "kv")] +static KVS: (&str, &str) = ("test", "something"); + +fn record() -> Record<'static> { + let error_metadata = MetadataBuilder::new() + .target("myApp") + .level(Level::Error) + .build(); + + let mut builder = Record::builder(); + builder + .metadata(error_metadata) + .args(format_args!("Error!")) + .line(Some(433)) + .file(Some("app.rs")) + .module_path(Some("server")); + #[cfg(feature = "kv")] + { + builder.key_values(&KVS); + } + builder.build() +} + +fn main() { + let stylish_logger = Builder::new() + .filter(None, LevelFilter::Error) + .write_style(WriteStyle::Always) + .build(); + + let unstylish_logger = Builder::new() + .filter(None, LevelFilter::Error) + .write_style(WriteStyle::Never) + .build(); + + stylish_logger.log(&record()); + unstylish_logger.log(&record()); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/filters_from_code.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/filters_from_code.rs new file mode 100644 index 0000000000000000000000000000000000000000..b9e6258d6adbdcb3824d035c38d6ab6dec0aa5f1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/filters_from_code.rs @@ -0,0 +1,17 @@ +/*! +Specify logging filters in code instead of using an environment variable. +*/ + +use env_logger::Builder; + +use log::{debug, error, info, trace, warn, LevelFilter}; + +fn main() { + Builder::new().filter_level(LevelFilter::max()).init(); + + trace!("some trace log"); + debug!("some debug log"); + info!("some information log"); + warn!("some warning log"); + error!("some error log"); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/in_tests.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/in_tests.rs new file mode 100644 index 0000000000000000000000000000000000000000..1fff5c96b49da8d885a42169ce4bafb0ac4b87e5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/in_tests.rs @@ -0,0 +1,53 @@ +/*! +Using `env_logger` in tests. + +Log events will be captured by `cargo` and only printed if the test fails. +You can run this example by calling: + +```text +cargo test --example in_tests +``` + +You should see the `it_does_not_work` test fail and include its log output. +*/ + +fn main() {} + +#[cfg(test)] +mod tests { + use log::debug; + + fn init_logger() { + let _ = env_logger::builder() + // Include all events in tests + .filter_level(log::LevelFilter::max()) + // Ensure events are captured by `cargo test` + .is_test(true) + // Ignore errors initializing the logger if tests race to configure it + .try_init(); + } + + #[test] + fn it_works() { + init_logger(); + + let a = 1; + let b = 2; + + debug!("checking whether {} + {} = 3", a, b); + + assert_eq!(3, a + b); + } + + #[test] + fn it_does_not_work() { + init_logger(); + + let a = 1; + let b = 2; + + debug!("checking whether {} + {} = 6", a, b); + + assert_eq!(6, a + b); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/syslog_friendly_format.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/syslog_friendly_format.rs new file mode 100644 index 0000000000000000000000000000000000000000..9809ab3f879edf210d3db78d4b122c09798617b7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/examples/syslog_friendly_format.rs @@ -0,0 +1,24 @@ +use std::io::Write; + +fn main() { + match std::env::var("RUST_LOG_STYLE") { + Ok(s) if s == "SYSTEMD" => env_logger::builder() + .format(|buf, record| { + writeln!( + buf, + "<{}>{}: {}", + match record.level() { + log::Level::Error => 3, + log::Level::Warn => 4, + log::Level::Info => 6, + log::Level::Debug => 7, + log::Level::Trace => 7, + }, + record.target(), + record.args() + ) + }) + .init(), + _ => env_logger::init(), + }; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/fmt/humantime.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/fmt/humantime.rs new file mode 100644 index 0000000000000000000000000000000000000000..a6bab88e8b46518fecc9938ac8735c5831aa867b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/fmt/humantime.rs @@ -0,0 +1,134 @@ +use std::fmt; +use std::time::SystemTime; + +use crate::fmt::{Formatter, TimestampPrecision}; + +impl Formatter { + /// Get a [`Timestamp`] for the current date and time in UTC. + /// + /// # Examples + /// + /// Include the current timestamp with the log record: + /// + /// ``` + /// use std::io::Write; + /// + /// let mut builder = env_logger::Builder::new(); + /// + /// builder.format(|buf, record| { + /// let ts = buf.timestamp(); + /// + /// writeln!(buf, "{}: {}: {}", ts, record.level(), record.args()) + /// }); + /// ``` + pub fn timestamp(&self) -> Timestamp { + Timestamp { + time: SystemTime::now(), + precision: TimestampPrecision::Seconds, + } + } + + /// Get a [`Timestamp`] for the current date and time in UTC with full + /// second precision. + pub fn timestamp_seconds(&self) -> Timestamp { + Timestamp { + time: SystemTime::now(), + precision: TimestampPrecision::Seconds, + } + } + + /// Get a [`Timestamp`] for the current date and time in UTC with + /// millisecond precision. + pub fn timestamp_millis(&self) -> Timestamp { + Timestamp { + time: SystemTime::now(), + precision: TimestampPrecision::Millis, + } + } + + /// Get a [`Timestamp`] for the current date and time in UTC with + /// microsecond precision. + pub fn timestamp_micros(&self) -> Timestamp { + Timestamp { + time: SystemTime::now(), + precision: TimestampPrecision::Micros, + } + } + + /// Get a [`Timestamp`] for the current date and time in UTC with + /// nanosecond precision. + pub fn timestamp_nanos(&self) -> Timestamp { + Timestamp { + time: SystemTime::now(), + precision: TimestampPrecision::Nanos, + } + } +} + +/// An [RFC3339] formatted timestamp. +/// +/// The timestamp implements [`Display`] and can be written to a [`Formatter`]. +/// +/// [RFC3339]: https://www.ietf.org/rfc/rfc3339.txt +/// [`Display`]: std::fmt::Display +pub struct Timestamp { + time: SystemTime, + precision: TimestampPrecision, +} + +impl fmt::Debug for Timestamp { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + /// A `Debug` wrapper for `Timestamp` that uses the `Display` implementation. + struct TimestampValue<'a>(&'a Timestamp); + + impl fmt::Debug for TimestampValue<'_> { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + fmt::Display::fmt(&self.0, f) + } + } + + f.debug_tuple("Timestamp") + .field(&TimestampValue(self)) + .finish() + } +} + +impl fmt::Display for Timestamp { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let Ok(ts) = jiff::Timestamp::try_from(self.time) else { + return Err(fmt::Error); + }; + + match self.precision { + TimestampPrecision::Seconds => write!(f, "{ts:.0}"), + TimestampPrecision::Millis => write!(f, "{ts:.3}"), + TimestampPrecision::Micros => write!(f, "{ts:.6}"), + TimestampPrecision::Nanos => write!(f, "{ts:.9}"), + } + } +} + +#[cfg(test)] +mod tests { + use super::Timestamp; + use crate::TimestampPrecision; + + #[test] + fn test_display_timestamp() { + let mut ts = Timestamp { + time: std::time::SystemTime::UNIX_EPOCH, + precision: TimestampPrecision::Nanos, + }; + + assert_eq!("1970-01-01T00:00:00.000000000Z", format!("{ts}")); + + ts.precision = TimestampPrecision::Micros; + assert_eq!("1970-01-01T00:00:00.000000Z", format!("{ts}")); + + ts.precision = TimestampPrecision::Millis; + assert_eq!("1970-01-01T00:00:00.000Z", format!("{ts}")); + + ts.precision = TimestampPrecision::Seconds; + assert_eq!("1970-01-01T00:00:00Z", format!("{ts}")); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/fmt/kv.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/fmt/kv.rs new file mode 100644 index 0000000000000000000000000000000000000000..cbb7daeca90ddae04f0af80df8df77c2df6ec4d0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/fmt/kv.rs @@ -0,0 +1,69 @@ +use std::io::{self, Write}; + +#[cfg(feature = "color")] +use super::WriteStyle; +use super::{Formatter, StyledValue}; +#[cfg(feature = "color")] +use anstyle::Style; +use log::kv::{Error, Key, Source, Value, VisitSource}; + +/// Format function for serializing key/value pairs +/// +/// This function determines how key/value pairs for structured logs are serialized within the default +/// format. +pub(crate) type KvFormatFn = dyn Fn(&mut Formatter, &dyn Source) -> io::Result<()> + Sync + Send; + +/// Null Key Value Format +/// +/// This function is intended to be passed to +/// [`Builder::format_key_values`](crate::Builder::format_key_values). +/// +/// This key value format simply ignores any key/value fields and doesn't include them in the +/// output. +pub fn hidden_kv_format(_formatter: &mut Formatter, _fields: &dyn Source) -> io::Result<()> { + Ok(()) +} + +/// Default Key Value Format +/// +/// This function is intended to be passed to +/// [`Builder::format_key_values`](crate::Builder::format_key_values). +/// +/// This is the default key/value format. Which uses an "=" as the separator between the key and +/// value and a " " between each pair. +/// +/// For example: `ip=127.0.0.1 port=123456 path=/example` +pub fn default_kv_format(formatter: &mut Formatter, fields: &dyn Source) -> io::Result<()> { + fields + .visit(&mut DefaultVisitSource(formatter)) + .map_err(|e| io::Error::new(io::ErrorKind::Other, e)) +} + +struct DefaultVisitSource<'a>(&'a mut Formatter); + +impl<'kvs> VisitSource<'kvs> for DefaultVisitSource<'_> { + fn visit_pair(&mut self, key: Key<'_>, value: Value<'kvs>) -> Result<(), Error> { + write!(self.0, " {}={}", self.style_key(key), value)?; + Ok(()) + } +} + +impl DefaultVisitSource<'_> { + fn style_key<'k>(&self, text: Key<'k>) -> StyledValue> { + #[cfg(feature = "color")] + { + StyledValue { + style: if self.0.write_style == WriteStyle::Never { + Style::new() + } else { + Style::new().italic() + }, + value: text, + } + } + #[cfg(not(feature = "color"))] + { + text + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/fmt/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/fmt/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..398dab7024838241343ae022b03dc0ff020f3ac8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/fmt/mod.rs @@ -0,0 +1,1002 @@ +//! Formatting for log records. +//! +//! This module contains a [`Formatter`] that can be used to format log records +//! into without needing temporary allocations. Usually you won't need to worry +//! about the contents of this module and can use the `Formatter` like an ordinary +//! [`Write`]. +//! +//! # Formatting log records +//! +//! The format used to print log records can be customised using the [`Builder::format`] +//! method. +//! +//! Terminal styling is done through ANSI escape codes and will be adapted to the capabilities of +//! the target stream.s +//! +//! For example, you could use one of: +//! - [anstyle](https://docs.rs/anstyle) is a minimal, runtime string styling API and is re-exported as [`style`] +//! - [owo-colors](https://docs.rs/owo-colors) is a feature rich runtime string styling API +//! - [color-print](https://docs.rs/color-print) for feature-rich compile-time styling API +//! +//! See also [`Formatter::default_level_style`] +//! +//! ``` +//! use std::io::Write; +//! +//! let mut builder = env_logger::Builder::new(); +//! +//! builder.format(|buf, record| { +//! writeln!(buf, "{}: {}", +//! record.level(), +//! record.args()) +//! }); +//! ``` +//! +//! # Key Value arguments +//! +//! If the `kv` feature is enabled, then the default format will include key values from +//! the log by default, but this can be disabled by calling [`Builder::format_key_values`] +//! with [`hidden_kv_format`] as the format function. +//! +//! The way these keys and values are formatted can also be customized with a separate format +//! function that is called by the default format with [`Builder::format_key_values`]. +//! +//! ``` +//! # #[cfg(feature= "kv")] +//! # { +//! use log::info; +//! env_logger::init(); +//! info!(x="45"; "Some message"); +//! info!(x="12"; "Another message {x}", x="12"); +//! # } +//! ``` +//! +//! See . +//! +//! [`Builder::format`]: crate::Builder::format +//! [`Write`]: std::io::Write +//! [`Builder::format_key_values`]: crate::Builder::format_key_values + +use std::cell::RefCell; +use std::fmt::Display; +use std::io::prelude::Write; +use std::rc::Rc; +use std::{fmt, io, mem}; + +#[cfg(feature = "color")] +use log::Level; +use log::Record; + +#[cfg(feature = "humantime")] +mod humantime; +#[cfg(feature = "kv")] +mod kv; + +#[cfg(feature = "color")] +pub use anstyle as style; + +#[cfg(feature = "humantime")] +pub use self::humantime::Timestamp; +#[cfg(feature = "kv")] +pub use self::kv::*; +pub use crate::writer::Target; +pub use crate::writer::WriteStyle; + +use crate::writer::{Buffer, Writer}; + +/// Formatting precision of timestamps. +/// +/// Seconds give precision of full seconds, milliseconds give thousands of a +/// second (3 decimal digits), microseconds are millionth of a second (6 decimal +/// digits) and nanoseconds are billionth of a second (9 decimal digits). +#[allow(clippy::exhaustive_enums)] // compatibility +#[derive(Copy, Clone, Debug)] +pub enum TimestampPrecision { + /// Full second precision (0 decimal digits) + Seconds, + /// Millisecond precision (3 decimal digits) + Millis, + /// Microsecond precision (6 decimal digits) + Micros, + /// Nanosecond precision (9 decimal digits) + Nanos, +} + +/// The default timestamp precision is seconds. +impl Default for TimestampPrecision { + fn default() -> Self { + TimestampPrecision::Seconds + } +} + +/// A formatter to write logs into. +/// +/// `Formatter` implements the standard [`Write`] trait for writing log records. +/// It also supports terminal styling using ANSI escape codes. +/// +/// # Examples +/// +/// Use the [`writeln`] macro to format a log record. +/// An instance of a `Formatter` is passed to an `env_logger` format as `buf`: +/// +/// ``` +/// use std::io::Write; +/// +/// let mut builder = env_logger::Builder::new(); +/// +/// builder.format(|buf, record| writeln!(buf, "{}: {}", record.level(), record.args())); +/// ``` +/// +/// [`Write`]: std::io::Write +/// [`writeln`]: std::writeln +pub struct Formatter { + buf: Rc>, + write_style: WriteStyle, +} + +impl Formatter { + pub(crate) fn new(writer: &Writer) -> Self { + Formatter { + buf: Rc::new(RefCell::new(writer.buffer())), + write_style: writer.write_style(), + } + } + + pub(crate) fn write_style(&self) -> WriteStyle { + self.write_style + } + + pub(crate) fn print(&self, writer: &Writer) -> io::Result<()> { + writer.print(&self.buf.borrow()) + } + + pub(crate) fn clear(&mut self) { + self.buf.borrow_mut().clear(); + } +} + +#[cfg(feature = "color")] +impl Formatter { + /// Get the default [`style::Style`] for the given level. + /// + /// The style can be used to print other values besides the level. + /// + /// See [`style`] for how to adapt it to the styling crate of your choice + pub fn default_level_style(&self, level: Level) -> style::Style { + if self.write_style == WriteStyle::Never { + style::Style::new() + } else { + match level { + Level::Trace => style::AnsiColor::Cyan.on_default(), + Level::Debug => style::AnsiColor::Blue.on_default(), + Level::Info => style::AnsiColor::Green.on_default(), + Level::Warn => style::AnsiColor::Yellow.on_default(), + Level::Error => style::AnsiColor::Red + .on_default() + .effects(style::Effects::BOLD), + } + } + } +} + +impl Write for Formatter { + fn write(&mut self, buf: &[u8]) -> io::Result { + self.buf.borrow_mut().write(buf) + } + + fn flush(&mut self) -> io::Result<()> { + self.buf.borrow_mut().flush() + } +} + +impl fmt::Debug for Formatter { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let buf = self.buf.borrow(); + f.debug_struct("Formatter") + .field("buf", &buf) + .field("write_style", &self.write_style) + .finish() + } +} + +pub(crate) trait RecordFormat { + fn format(&self, formatter: &mut Formatter, record: &Record<'_>) -> io::Result<()>; +} + +impl RecordFormat for F +where + F: Fn(&mut Formatter, &Record<'_>) -> io::Result<()>, +{ + fn format(&self, formatter: &mut Formatter, record: &Record<'_>) -> io::Result<()> { + (self)(formatter, record) + } +} + +pub(crate) type FormatFn = Box; + +#[derive(Default)] +pub(crate) struct Builder { + pub(crate) default_format: ConfigurableFormat, + pub(crate) custom_format: Option, + built: bool, +} + +impl Builder { + /// Convert the format into a callable function. + /// + /// If the `custom_format` is `Some`, then any `default_format` switches are ignored. + /// If the `custom_format` is `None`, then a default format is returned. + /// Any `default_format` switches set to `false` won't be written by the format. + pub(crate) fn build(&mut self) -> FormatFn { + assert!(!self.built, "attempt to re-use consumed builder"); + + let built = mem::replace( + self, + Builder { + built: true, + ..Default::default() + }, + ); + + if let Some(fmt) = built.custom_format { + fmt + } else { + Box::new(built.default_format) + } + } +} + +#[cfg(feature = "color")] +type SubtleStyle = StyledValue<&'static str>; +#[cfg(not(feature = "color"))] +type SubtleStyle = &'static str; + +/// A value that can be printed using the given styles. +#[cfg(feature = "color")] +struct StyledValue { + style: style::Style, + value: T, +} + +#[cfg(feature = "color")] +impl Display for StyledValue { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let style = self.style; + + // We need to make sure `f`s settings don't get passed onto the styling but do get passed + // to the value + write!(f, "{style}")?; + self.value.fmt(f)?; + write!(f, "{style:#}")?; + Ok(()) + } +} + +#[cfg(not(feature = "color"))] +type StyledValue = T; + +/// A [custom format][crate::Builder::format] with settings for which fields to show +pub struct ConfigurableFormat { + // This format needs to work with any combination of crate features. + pub(crate) timestamp: Option, + pub(crate) module_path: bool, + pub(crate) target: bool, + pub(crate) level: bool, + pub(crate) source_file: bool, + pub(crate) source_line_number: bool, + pub(crate) indent: Option, + pub(crate) suffix: &'static str, + #[cfg(feature = "kv")] + pub(crate) kv_format: Option>, +} + +impl ConfigurableFormat { + /// Format the [`Record`] as configured for outputting + pub fn format(&self, formatter: &mut Formatter, record: &Record<'_>) -> io::Result<()> { + let fmt = ConfigurableFormatWriter { + format: self, + buf: formatter, + written_header_value: false, + }; + + fmt.write(record) + } +} + +impl ConfigurableFormat { + /// Whether or not to write the level in the default format. + pub fn level(&mut self, write: bool) -> &mut Self { + self.level = write; + self + } + + /// Whether or not to write the source file path in the default format. + pub fn file(&mut self, write: bool) -> &mut Self { + self.source_file = write; + self + } + + /// Whether or not to write the source line number path in the default format. + /// + /// Only has effect if `format_file` is also enabled + pub fn line_number(&mut self, write: bool) -> &mut Self { + self.source_line_number = write; + self + } + + /// Whether or not to write the module path in the default format. + pub fn module_path(&mut self, write: bool) -> &mut Self { + self.module_path = write; + self + } + + /// Whether or not to write the target in the default format. + pub fn target(&mut self, write: bool) -> &mut Self { + self.target = write; + self + } + + /// Configures the amount of spaces to use to indent multiline log records. + /// A value of `None` disables any kind of indentation. + pub fn indent(&mut self, indent: Option) -> &mut Self { + self.indent = indent; + self + } + + /// Configures if timestamp should be included and in what precision. + pub fn timestamp(&mut self, timestamp: Option) -> &mut Self { + self.timestamp = timestamp; + self + } + + /// Configures the end of line suffix. + pub fn suffix(&mut self, suffix: &'static str) -> &mut Self { + self.suffix = suffix; + self + } + + /// Set the format for structured key/value pairs in the log record + /// + /// With the default format, this function is called for each record and should format + /// the structured key-value pairs as returned by [`log::Record::key_values`]. + /// + /// The format function is expected to output the string directly to the `Formatter` so that + /// implementations can use the [`std::fmt`] macros, similar to the main format function. + /// + /// The default format uses a space to separate each key-value pair, with an "=" between + /// the key and value. + #[cfg(feature = "kv")] + pub fn key_values(&mut self, format: F) -> &mut Self + where + F: Fn(&mut Formatter, &dyn log::kv::Source) -> io::Result<()> + Sync + Send + 'static, + { + self.kv_format = Some(Box::new(format)); + self + } +} + +impl Default for ConfigurableFormat { + fn default() -> Self { + Self { + timestamp: Some(Default::default()), + module_path: false, + target: true, + level: true, + source_file: false, + source_line_number: false, + indent: Some(4), + suffix: "\n", + #[cfg(feature = "kv")] + kv_format: None, + } + } +} + +impl RecordFormat for ConfigurableFormat { + fn format(&self, formatter: &mut Formatter, record: &Record<'_>) -> io::Result<()> { + self.format(formatter, record) + } +} + +/// The default format. +/// +/// This format needs to work with any combination of crate features. +struct ConfigurableFormatWriter<'a> { + format: &'a ConfigurableFormat, + buf: &'a mut Formatter, + written_header_value: bool, +} + +impl ConfigurableFormatWriter<'_> { + fn write(mut self, record: &Record<'_>) -> io::Result<()> { + self.write_timestamp()?; + self.write_level(record)?; + self.write_module_path(record)?; + self.write_source_location(record)?; + self.write_target(record)?; + self.finish_header()?; + + self.write_args(record)?; + #[cfg(feature = "kv")] + self.write_kv(record)?; + write!(self.buf, "{}", self.format.suffix) + } + + fn subtle_style(&self, text: &'static str) -> SubtleStyle { + #[cfg(feature = "color")] + { + StyledValue { + style: if self.buf.write_style == WriteStyle::Never { + style::Style::new() + } else { + style::AnsiColor::BrightBlack.on_default() + }, + value: text, + } + } + #[cfg(not(feature = "color"))] + { + text + } + } + + fn write_header_value(&mut self, value: T) -> io::Result<()> + where + T: Display, + { + if !self.written_header_value { + self.written_header_value = true; + + let open_brace = self.subtle_style("["); + write!(self.buf, "{open_brace}{value}") + } else { + write!(self.buf, " {value}") + } + } + + fn write_level(&mut self, record: &Record<'_>) -> io::Result<()> { + if !self.format.level { + return Ok(()); + } + + let level = { + let level = record.level(); + #[cfg(feature = "color")] + { + StyledValue { + style: self.buf.default_level_style(level), + value: level, + } + } + #[cfg(not(feature = "color"))] + { + level + } + }; + + self.write_header_value(format_args!("{level:<5}")) + } + + fn write_timestamp(&mut self) -> io::Result<()> { + #[cfg(feature = "humantime")] + { + use self::TimestampPrecision::{Micros, Millis, Nanos, Seconds}; + let ts = match self.format.timestamp { + None => return Ok(()), + Some(Seconds) => self.buf.timestamp_seconds(), + Some(Millis) => self.buf.timestamp_millis(), + Some(Micros) => self.buf.timestamp_micros(), + Some(Nanos) => self.buf.timestamp_nanos(), + }; + + self.write_header_value(ts) + } + #[cfg(not(feature = "humantime"))] + { + // Trick the compiler to think we have used self.timestamp + // Workaround for "field is never used: `timestamp`" compiler nag. + let _ = self.format.timestamp; + Ok(()) + } + } + + fn write_module_path(&mut self, record: &Record<'_>) -> io::Result<()> { + if !self.format.module_path { + return Ok(()); + } + + if let Some(module_path) = record.module_path() { + self.write_header_value(module_path) + } else { + Ok(()) + } + } + + fn write_source_location(&mut self, record: &Record<'_>) -> io::Result<()> { + if !self.format.source_file { + return Ok(()); + } + + if let Some(file_path) = record.file() { + let line = self + .format + .source_line_number + .then(|| record.line()) + .flatten(); + match line { + Some(line) => self.write_header_value(format_args!("{file_path}:{line}")), + None => self.write_header_value(file_path), + } + } else { + Ok(()) + } + } + + fn write_target(&mut self, record: &Record<'_>) -> io::Result<()> { + if !self.format.target { + return Ok(()); + } + + match record.target() { + "" => Ok(()), + target => self.write_header_value(target), + } + } + + fn finish_header(&mut self) -> io::Result<()> { + if self.written_header_value { + let close_brace = self.subtle_style("]"); + write!(self.buf, "{close_brace} ") + } else { + Ok(()) + } + } + + fn write_args(&mut self, record: &Record<'_>) -> io::Result<()> { + match self.format.indent { + // Fast path for no indentation + None => write!(self.buf, "{}", record.args()), + + Some(indent_count) => { + // Create a wrapper around the buffer only if we have to actually indent the message + + struct IndentWrapper<'a, 'b> { + fmt: &'a mut ConfigurableFormatWriter<'b>, + indent_count: usize, + } + + impl Write for IndentWrapper<'_, '_> { + fn write(&mut self, buf: &[u8]) -> io::Result { + let mut first = true; + for chunk in buf.split(|&x| x == b'\n') { + if !first { + write!( + self.fmt.buf, + "{}{:width$}", + self.fmt.format.suffix, + "", + width = self.indent_count + )?; + } + self.fmt.buf.write_all(chunk)?; + first = false; + } + + Ok(buf.len()) + } + + fn flush(&mut self) -> io::Result<()> { + self.fmt.buf.flush() + } + } + + // The explicit scope here is just to make older versions of Rust happy + { + let mut wrapper = IndentWrapper { + fmt: self, + indent_count, + }; + write!(wrapper, "{}", record.args())?; + } + + Ok(()) + } + } + } + + #[cfg(feature = "kv")] + fn write_kv(&mut self, record: &Record<'_>) -> io::Result<()> { + let format = self + .format + .kv_format + .as_deref() + .unwrap_or(&default_kv_format); + format(self.buf, record.key_values()) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + use log::{Level, Record}; + + fn write_record(record: Record<'_>, fmt: ConfigurableFormatWriter<'_>) -> String { + let buf = fmt.buf.buf.clone(); + + fmt.write(&record).expect("failed to write record"); + + let buf = buf.borrow(); + String::from_utf8(buf.as_bytes().to_vec()).expect("failed to read record") + } + + fn write_target(target: &str, fmt: ConfigurableFormatWriter<'_>) -> String { + write_record( + Record::builder() + .args(format_args!("log\nmessage")) + .level(Level::Info) + .file(Some("test.rs")) + .line(Some(144)) + .module_path(Some("test::path")) + .target(target) + .build(), + fmt, + ) + } + + fn write(fmt: ConfigurableFormatWriter<'_>) -> String { + write_target("", fmt) + } + + fn formatter() -> Formatter { + let writer = crate::writer::Builder::new() + .write_style(WriteStyle::Never) + .build(); + + Formatter::new(&writer) + } + + #[test] + fn format_with_header() { + let mut f = formatter(); + + let written = write(ConfigurableFormatWriter { + format: &ConfigurableFormat { + timestamp: None, + module_path: true, + target: false, + level: true, + source_file: false, + source_line_number: false, + #[cfg(feature = "kv")] + kv_format: Some(Box::new(hidden_kv_format)), + indent: None, + suffix: "\n", + }, + written_header_value: false, + buf: &mut f, + }); + + assert_eq!("[INFO test::path] log\nmessage\n", written); + } + + #[test] + fn format_no_header() { + let mut f = formatter(); + + let written = write(ConfigurableFormatWriter { + format: &ConfigurableFormat { + timestamp: None, + module_path: false, + target: false, + level: false, + source_file: false, + source_line_number: false, + #[cfg(feature = "kv")] + kv_format: Some(Box::new(hidden_kv_format)), + indent: None, + suffix: "\n", + }, + written_header_value: false, + buf: &mut f, + }); + + assert_eq!("log\nmessage\n", written); + } + + #[test] + fn format_indent_spaces() { + let mut f = formatter(); + + let written = write(ConfigurableFormatWriter { + format: &ConfigurableFormat { + timestamp: None, + module_path: true, + target: false, + level: true, + source_file: false, + source_line_number: false, + #[cfg(feature = "kv")] + kv_format: Some(Box::new(hidden_kv_format)), + indent: Some(4), + suffix: "\n", + }, + written_header_value: false, + buf: &mut f, + }); + + assert_eq!("[INFO test::path] log\n message\n", written); + } + + #[test] + fn format_indent_zero_spaces() { + let mut f = formatter(); + + let written = write(ConfigurableFormatWriter { + format: &ConfigurableFormat { + timestamp: None, + module_path: true, + target: false, + level: true, + source_file: false, + source_line_number: false, + #[cfg(feature = "kv")] + kv_format: Some(Box::new(hidden_kv_format)), + indent: Some(0), + suffix: "\n", + }, + written_header_value: false, + buf: &mut f, + }); + + assert_eq!("[INFO test::path] log\nmessage\n", written); + } + + #[test] + fn format_indent_spaces_no_header() { + let mut f = formatter(); + + let written = write(ConfigurableFormatWriter { + format: &ConfigurableFormat { + timestamp: None, + module_path: false, + target: false, + level: false, + source_file: false, + source_line_number: false, + #[cfg(feature = "kv")] + kv_format: Some(Box::new(hidden_kv_format)), + indent: Some(4), + suffix: "\n", + }, + written_header_value: false, + buf: &mut f, + }); + + assert_eq!("log\n message\n", written); + } + + #[test] + fn format_suffix() { + let mut f = formatter(); + + let written = write(ConfigurableFormatWriter { + format: &ConfigurableFormat { + timestamp: None, + module_path: false, + target: false, + level: false, + source_file: false, + source_line_number: false, + #[cfg(feature = "kv")] + kv_format: Some(Box::new(hidden_kv_format)), + indent: None, + suffix: "\n\n", + }, + written_header_value: false, + buf: &mut f, + }); + + assert_eq!("log\nmessage\n\n", written); + } + + #[test] + fn format_suffix_with_indent() { + let mut f = formatter(); + + let written = write(ConfigurableFormatWriter { + format: &ConfigurableFormat { + timestamp: None, + module_path: false, + target: false, + level: false, + source_file: false, + source_line_number: false, + #[cfg(feature = "kv")] + kv_format: Some(Box::new(hidden_kv_format)), + indent: Some(4), + suffix: "\n\n", + }, + written_header_value: false, + buf: &mut f, + }); + + assert_eq!("log\n\n message\n\n", written); + } + + #[test] + fn format_target() { + let mut f = formatter(); + + let written = write_target( + "target", + ConfigurableFormatWriter { + format: &ConfigurableFormat { + timestamp: None, + module_path: true, + target: true, + level: true, + source_file: false, + source_line_number: false, + #[cfg(feature = "kv")] + kv_format: Some(Box::new(hidden_kv_format)), + indent: None, + suffix: "\n", + }, + written_header_value: false, + buf: &mut f, + }, + ); + + assert_eq!("[INFO test::path target] log\nmessage\n", written); + } + + #[test] + fn format_empty_target() { + let mut f = formatter(); + + let written = write(ConfigurableFormatWriter { + format: &ConfigurableFormat { + timestamp: None, + module_path: true, + target: true, + level: true, + source_file: false, + source_line_number: false, + #[cfg(feature = "kv")] + kv_format: Some(Box::new(hidden_kv_format)), + indent: None, + suffix: "\n", + }, + written_header_value: false, + buf: &mut f, + }); + + assert_eq!("[INFO test::path] log\nmessage\n", written); + } + + #[test] + fn format_no_target() { + let mut f = formatter(); + + let written = write_target( + "target", + ConfigurableFormatWriter { + format: &ConfigurableFormat { + timestamp: None, + module_path: true, + target: false, + level: true, + source_file: false, + source_line_number: false, + #[cfg(feature = "kv")] + kv_format: Some(Box::new(hidden_kv_format)), + indent: None, + suffix: "\n", + }, + written_header_value: false, + buf: &mut f, + }, + ); + + assert_eq!("[INFO test::path] log\nmessage\n", written); + } + + #[test] + fn format_with_source_file_and_line_number() { + let mut f = formatter(); + + let written = write(ConfigurableFormatWriter { + format: &ConfigurableFormat { + timestamp: None, + module_path: false, + target: false, + level: true, + source_file: true, + source_line_number: true, + #[cfg(feature = "kv")] + kv_format: Some(Box::new(hidden_kv_format)), + indent: None, + suffix: "\n", + }, + written_header_value: false, + buf: &mut f, + }); + + assert_eq!("[INFO test.rs:144] log\nmessage\n", written); + } + + #[cfg(feature = "kv")] + #[test] + fn format_kv_default() { + let kvs = &[("a", 1u32), ("b", 2u32)][..]; + let mut f = formatter(); + let record = Record::builder() + .args(format_args!("log message")) + .level(Level::Info) + .module_path(Some("test::path")) + .key_values(&kvs) + .build(); + + let written = write_record( + record, + ConfigurableFormatWriter { + format: &ConfigurableFormat { + timestamp: None, + module_path: false, + target: false, + level: true, + source_file: false, + source_line_number: false, + kv_format: Some(Box::new(default_kv_format)), + indent: None, + suffix: "\n", + }, + written_header_value: false, + buf: &mut f, + }, + ); + + assert_eq!("[INFO ] log message a=1 b=2\n", written); + } + + #[cfg(feature = "kv")] + #[test] + fn format_kv_default_full() { + let kvs = &[("a", 1u32), ("b", 2u32)][..]; + let mut f = formatter(); + let record = Record::builder() + .args(format_args!("log\nmessage")) + .level(Level::Info) + .module_path(Some("test::path")) + .target("target") + .file(Some("test.rs")) + .line(Some(42)) + .key_values(&kvs) + .build(); + + let written = write_record( + record, + ConfigurableFormatWriter { + format: &ConfigurableFormat { + timestamp: None, + module_path: true, + target: true, + level: true, + source_file: true, + source_line_number: true, + kv_format: Some(Box::new(default_kv_format)), + indent: None, + suffix: "\n", + }, + written_header_value: false, + buf: &mut f, + }, + ); + + assert_eq!( + "[INFO test::path test.rs:42 target] log\nmessage a=1 b=2\n", + written + ); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/lib.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/lib.rs new file mode 100644 index 0000000000000000000000000000000000000000..7770bf1c4a3f02ccab0564c267d783acd381227d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/lib.rs @@ -0,0 +1,296 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +//! A simple logger that can be configured via environment variables, for use +//! with the logging facade exposed by the [`log` crate][log-crate-url]. +//! +//! Despite having "env" in its name, **`env_logger`** can also be configured by +//! other means besides environment variables. See [the examples][gh-repo-examples] +//! in the source repository for more approaches. +//! +//! By default, `env_logger` writes logs to `stderr`, but can be configured to +//! instead write them to `stdout`. +//! +//! ## Example +//! +//! ``` +//! use log::{debug, error, log_enabled, info, Level}; +//! +//! env_logger::init(); +//! +//! debug!("this is a debug {}", "message"); +//! error!("this is printed by default"); +//! +//! if log_enabled!(Level::Info) { +//! let x = 3 * 4; // expensive computation +//! info!("the answer was: {}", x); +//! } +//! ``` +//! +//! Assumes the binary is `main`: +//! +//! ```console +//! $ RUST_LOG=error ./main +//! [2017-11-09T02:12:24Z ERROR main] this is printed by default +//! ``` +//! +//! ```console +//! $ RUST_LOG=info ./main +//! [2017-11-09T02:12:24Z ERROR main] this is printed by default +//! [2017-11-09T02:12:24Z INFO main] the answer was: 12 +//! ``` +//! +//! ```console +//! $ RUST_LOG=debug ./main +//! [2017-11-09T02:12:24Z DEBUG main] this is a debug message +//! [2017-11-09T02:12:24Z ERROR main] this is printed by default +//! [2017-11-09T02:12:24Z INFO main] the answer was: 12 +//! ``` +//! +//! You can also set the log level on a per module basis: +//! +//! ```console +//! $ RUST_LOG=main=info ./main +//! [2017-11-09T02:12:24Z ERROR main] this is printed by default +//! [2017-11-09T02:12:24Z INFO main] the answer was: 12 +//! ``` +//! +//! And enable all logging: +//! +//! ```console +//! $ RUST_LOG=main ./main +//! [2017-11-09T02:12:24Z DEBUG main] this is a debug message +//! [2017-11-09T02:12:24Z ERROR main] this is printed by default +//! [2017-11-09T02:12:24Z INFO main] the answer was: 12 +//! ``` +//! +//! If the binary name contains hyphens, you will need to replace +//! them with underscores: +//! +//! ```console +//! $ RUST_LOG=my_app ./my-app +//! [2017-11-09T02:12:24Z DEBUG my_app] this is a debug message +//! [2017-11-09T02:12:24Z ERROR my_app] this is printed by default +//! [2017-11-09T02:12:24Z INFO my_app] the answer was: 12 +//! ``` +//! +//! This is because Rust modules and crates cannot contain hyphens +//! in their name, although `cargo` continues to accept them. +//! +//! See the documentation for the [`log` crate][log-crate-url] for more +//! information about its API. +//! +//! ## Enabling logging +//! +//! **By default all logging is disabled except for the `error` level** +//! +//! The **`RUST_LOG`** environment variable controls logging with the syntax: +//! ```console +//! RUST_LOG=[target][=][level][,...] +//! ``` +//! Or in other words, its a comma-separated list of directives. +//! Directives can filter by **target**, by **level**, or both (using `=`). +//! +//! For example, +//! ```console +//! RUST_LOG=data=debug,hardware=debug +//! ``` +//! +//! **target** is typically the path of the module the message +//! in question originated from, though it can be overridden. +//! The path is rooted in the name of the crate it was compiled for, so if +//! your program is in a file called, for example, `hello.rs`, the path would +//! simply be `hello`. +//! +//! Furthermore, the log can be filtered using prefix-search based on the +//! specified log target. +//! +//! For example, `RUST_LOG=example` would match the following targets: +//! - `example` +//! - `example::test` +//! - `example::test::module::submodule` +//! - `examples::and_more_examples` +//! +//! When providing the crate name or a module path, explicitly specifying the +//! log level is optional. If omitted, all logging for the item will be +//! enabled. +//! +//! **level** is the maximum [`log::Level`][level-enum] to be shown and includes: +//! - `error` +//! - `warn` +//! - `info` +//! - `debug` +//! - `trace` +//! - `off` (pseudo level to disable all logging for the target) +//! +//! Logging level names are case-insensitive; e.g., +//! `debug`, `DEBUG`, and `dEbuG` all represent the same logging level. For +//! consistency, our convention is to use the lower case names. Where our docs +//! do use other forms, they do so in the context of specific examples, so you +//! won't be surprised if you see similar usage in the wild. +//! +//! Some examples of valid values of `RUST_LOG` are: +//! +//! - `RUST_LOG=hello` turns on all logging for the `hello` module +//! - `RUST_LOG=trace` turns on all logging for the application, regardless of its name +//! - `RUST_LOG=TRACE` turns on all logging for the application, regardless of its name (same as previous) +//! - `RUST_LOG=info` turns on all info logging +//! - `RUST_LOG=INFO` turns on all info logging (same as previous) +//! - `RUST_LOG=hello=debug` turns on debug logging for `hello` +//! - `RUST_LOG=hello=DEBUG` turns on debug logging for `hello` (same as previous) +//! - `RUST_LOG=hello,std::option` turns on `hello`, and std's option logging +//! - `RUST_LOG=error,hello=warn` turn on global error logging and also warn for `hello` +//! - `RUST_LOG=error,hello=off` turn on global error logging, but turn off logging for `hello` +//! - `RUST_LOG=off` turns off all logging for the application +//! - `RUST_LOG=OFF` turns off all logging for the application (same as previous) +//! +//! ## Filtering results +//! +//! A `RUST_LOG` directive may include a regex filter. The syntax is to append `/` +//! followed by a regex. Each message is checked against the regex, and is only +//! logged if it matches. Note that the matching is done after formatting the +//! log string but before adding any logging meta-data. There is a single filter +//! for all modules. +//! +//! Some examples: +//! +//! * `hello/foo` turns on all logging for the 'hello' module where the log +//! message includes 'foo'. +//! * `info/f.o` turns on all info logging where the log message includes 'foo', +//! 'f1o', 'fao', etc. +//! * `hello=debug/foo*foo` turns on debug logging for 'hello' where the log +//! message includes 'foofoo' or 'fofoo' or 'fooooooofoo', etc. +//! * `error,hello=warn/[0-9]scopes` turn on global error logging and also +//! warn for hello. In both cases the log message must include a single digit +//! number followed by 'scopes'. +//! +//! ## Capturing logs in tests +//! +//! Records logged during `cargo test` will not be captured by the test harness by default. +//! The [`Builder::is_test`] method can be used in unit tests to ensure logs will be captured: +//! +//! ```test_harness +//! #[cfg(test)] +//! mod tests { +//! use log::info; +//! +//! fn init() { +//! let _ = env_logger::builder().is_test(true).try_init(); +//! } +//! +//! #[test] +//! fn it_works() { +//! init(); +//! +//! info!("This record will be captured by `cargo test`"); +//! +//! assert_eq!(2, 1 + 1); +//! } +//! } +//! ``` +//! +//! Enabling test capturing comes at the expense of color and other style support +//! and may have performance implications. +//! +//! ## Colors +//! +//! Outputting of colors and other styles can be controlled by the `RUST_LOG_STYLE` +//! environment variable. It accepts the following [values][fmt::WriteStyle]: +//! +//! * `auto` (default) will attempt to print style characters, but don't force the issue. +//! If the console isn't available on Windows, or if TERM=dumb, for example, then don't print colors. +//! * `always` will always print style characters even if they aren't supported by the terminal. +//! This includes emitting ANSI colors on Windows if the console API is unavailable. +//! * `never` will never print style characters. +//! +//! Color may be applied in the logged message or a [custom formatter][fmt]. +//! +//!
+//! +//! Logging of untrusted inputs can cause unexpected behavior as they may include ANSI escape codes which +//! will be forwarded to the users terminal as part of "Weaponizing ANSI Escape Sequences". +//! +//! Mitigations include: +//! - Setting `RUST_LOG_STYLE=never` to have all ANSI escape codes stripped +//! - In the application, calling [`Builder::write_style(Never)`][Builder::write_style] to have all ANSI escape codes stripped +//! - In the application, [stripping ANSI escape codes](https://docs.rs/anstream/latest/anstream/adapter/fn.strip_str.html) +//! from user inputs +//! +//! Note: deactivating the build-time feature `color` is not a mitigation as that removes all ANSI escape code +//! stripping from `env_logger`. +//! +//!
+//! +//! ## Tweaking the default format +//! +//! Parts of the default format can be excluded from the log output using the [`Builder`]. +//! The following example excludes the timestamp from the log output: +//! +//! ``` +//! env_logger::builder() +//! .format_timestamp(None) +//! .init(); +//! ``` +//! +//! ### Stability of the default format +//! +//! The default format won't optimise for long-term stability, and explicitly makes no +//! guarantees about the stability of its output across major, minor or patch version +//! bumps during `0.x`. +//! +//! If you want to capture or interpret the output of `env_logger` programmatically +//! then you should use a custom format. +//! +//! ### Using a custom format +//! +//! Custom formats can be provided as closures to the [`Builder`]. +//! These closures take a [`Formatter`][crate::fmt::Formatter] and `log::Record` as arguments: +//! +//! ``` +//! use std::io::Write; +//! +//! env_logger::builder() +//! .format(|buf, record| { +//! writeln!(buf, "{}: {}", record.level(), record.args()) +//! }) +//! .init(); +//! ``` +//! +//! See the [`fmt`] module for more details about custom formats. +//! +//! ## Specifying defaults for environment variables +//! +//! `env_logger` can read configuration from environment variables. +//! If these variables aren't present, the default value to use can be tweaked with the [`Env`] type. +//! The following example defaults to log `warn` and above if the `RUST_LOG` environment variable +//! isn't set: +//! +//! ``` +//! use env_logger::Env; +//! +//! env_logger::Builder::from_env(Env::default().default_filter_or("warn")).init(); +//! ``` +//! +//! [gh-repo-examples]: https://github.com/rust-cli/env_logger/tree/main/examples +//! [level-enum]: https://docs.rs/log/latest/log/enum.Level.html +//! [log-crate-url]: https://docs.rs/log + +#![cfg_attr(docsrs, feature(doc_cfg))] +#![warn(clippy::print_stderr)] +#![warn(clippy::print_stdout)] +#![allow(clippy::test_attr_in_doctest)] + +mod logger; +mod writer; + +pub mod fmt; + +pub use self::fmt::{Target, TimestampPrecision, WriteStyle}; +pub use self::logger::*; + +#[doc = include_str!("../README.md")] +#[cfg(doctest)] +pub struct ReadmeDoctests; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/logger.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/logger.rs new file mode 100644 index 0000000000000000000000000000000000000000..1ecfcc8445ad60895fea3da1a5bd4d1eda8cbfdf --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/logger.rs @@ -0,0 +1,1058 @@ +use std::{borrow::Cow, cell::RefCell, env, io}; + +use log::{LevelFilter, Log, Metadata, Record, SetLoggerError}; + +use crate::fmt; +use crate::fmt::{FormatFn, Formatter}; +use crate::writer::{self, Writer}; + +/// The default name for the environment variable to read filters from. +pub const DEFAULT_FILTER_ENV: &str = "RUST_LOG"; + +/// The default name for the environment variable to read style preferences from. +pub const DEFAULT_WRITE_STYLE_ENV: &str = "RUST_LOG_STYLE"; + +/// `Builder` acts as builder for initializing a `Logger`. +/// +/// It can be used to customize the log format, change the environment variable used +/// to provide the logging directives and also set the default log level filter. +/// +/// # Examples +/// +/// ``` +/// # use std::io::Write; +/// use env_logger::Builder; +/// use log::{LevelFilter, error, info}; +/// +/// let mut builder = Builder::from_default_env(); +/// +/// builder +/// .format(|buf, record| writeln!(buf, "{} - {}", record.level(), record.args())) +/// .filter(None, LevelFilter::Info) +/// .init(); +/// +/// error!("error message"); +/// info!("info message"); +/// ``` +#[derive(Default)] +pub struct Builder { + filter: env_filter::Builder, + writer: writer::Builder, + format: fmt::Builder, + built: bool, +} + +impl Builder { + /// Initializes the log builder with defaults. + /// + /// **NOTE:** This method won't read from any environment variables. + /// Use the [`filter`] and [`write_style`] methods to configure the builder + /// or use [`from_env`] or [`from_default_env`] instead. + /// + /// # Examples + /// + /// Create a new builder and configure filters and style: + /// + /// ``` + /// use log::LevelFilter; + /// use env_logger::{Builder, WriteStyle}; + /// + /// let mut builder = Builder::new(); + /// + /// builder + /// .filter(None, LevelFilter::Info) + /// .write_style(WriteStyle::Always) + /// .init(); + /// ``` + /// + /// [`filter`]: #method.filter + /// [`write_style`]: #method.write_style + /// [`from_env`]: #method.from_env + /// [`from_default_env`]: #method.from_default_env + pub fn new() -> Builder { + Default::default() + } + + /// Initializes the log builder from the environment. + /// + /// The variables used to read configuration from can be tweaked before + /// passing in. + /// + /// # Examples + /// + /// Initialise a logger reading the log filter from an environment variable + /// called `MY_LOG`: + /// + /// ``` + /// use env_logger::Builder; + /// + /// let mut builder = Builder::from_env("MY_LOG"); + /// builder.init(); + /// ``` + /// + /// Initialise a logger using the `MY_LOG` variable for filtering and + /// `MY_LOG_STYLE` for whether or not to write styles: + /// + /// ``` + /// use env_logger::{Builder, Env}; + /// + /// let env = Env::new().filter("MY_LOG").write_style("MY_LOG_STYLE"); + /// + /// let mut builder = Builder::from_env(env); + /// builder.init(); + /// ``` + pub fn from_env<'a, E>(env: E) -> Self + where + E: Into>, + { + let mut builder = Builder::new(); + builder.parse_env(env); + builder + } + + /// Applies the configuration from the environment. + /// + /// This function allows a builder to be configured with default parameters, + /// to be then overridden by the environment. + /// + /// # Examples + /// + /// Initialise a logger with filter level `Off`, then override the log + /// filter from an environment variable called `MY_LOG`: + /// + /// ``` + /// use log::LevelFilter; + /// use env_logger::Builder; + /// + /// let mut builder = Builder::new(); + /// + /// builder.filter_level(LevelFilter::Off); + /// builder.parse_env("MY_LOG"); + /// builder.init(); + /// ``` + /// + /// Initialise a logger with filter level `Off`, then use the `MY_LOG` + /// variable to override filtering and `MY_LOG_STYLE` to override whether + /// or not to write styles: + /// + /// ``` + /// use log::LevelFilter; + /// use env_logger::{Builder, Env}; + /// + /// let env = Env::new().filter("MY_LOG").write_style("MY_LOG_STYLE"); + /// + /// let mut builder = Builder::new(); + /// builder.filter_level(LevelFilter::Off); + /// builder.parse_env(env); + /// builder.init(); + /// ``` + pub fn parse_env<'a, E>(&mut self, env: E) -> &mut Self + where + E: Into>, + { + let env = env.into(); + + if let Some(s) = env.get_filter() { + self.parse_filters(&s); + } + + if let Some(s) = env.get_write_style() { + self.parse_write_style(&s); + } + + self + } + + /// Initializes the log builder from the environment using default variable names. + /// + /// This method is a convenient way to call `from_env(Env::default())` without + /// having to use the `Env` type explicitly. The builder will use the + /// [default environment variables]. + /// + /// # Examples + /// + /// Initialise a logger using the default environment variables: + /// + /// ``` + /// use env_logger::Builder; + /// + /// let mut builder = Builder::from_default_env(); + /// builder.init(); + /// ``` + /// + /// [default environment variables]: struct.Env.html#default-environment-variables + pub fn from_default_env() -> Self { + Self::from_env(Env::default()) + } + + /// Applies the configuration from the environment using default variable names. + /// + /// This method is a convenient way to call `parse_env(Env::default())` without + /// having to use the `Env` type explicitly. The builder will use the + /// [default environment variables]. + /// + /// # Examples + /// + /// Initialise a logger with filter level `Off`, then configure it using the + /// default environment variables: + /// + /// ``` + /// use log::LevelFilter; + /// use env_logger::Builder; + /// + /// let mut builder = Builder::new(); + /// builder.filter_level(LevelFilter::Off); + /// builder.parse_default_env(); + /// builder.init(); + /// ``` + /// + /// [default environment variables]: struct.Env.html#default-environment-variables + pub fn parse_default_env(&mut self) -> &mut Self { + self.parse_env(Env::default()) + } + + /// Sets the format function for formatting the log output. + /// + /// This function is called on each record logged and should format the + /// log record and output it to the given [`Formatter`]. + /// + /// The format function is expected to output the string directly to the + /// `Formatter` so that implementations can use the [`std::fmt`] macros + /// to format and output without intermediate heap allocations. The default + /// `env_logger` formatter takes advantage of this. + /// + /// When the `color` feature is enabled, styling via ANSI escape codes is supported and the + /// output will automatically respect [`Builder::write_style`]. + /// + /// # Examples + /// + /// Use a custom format to write only the log message: + /// + /// ``` + /// use std::io::Write; + /// use env_logger::Builder; + /// + /// let mut builder = Builder::new(); + /// + /// builder.format(|buf, record| writeln!(buf, "{}", record.args())); + /// ``` + /// + /// [`Formatter`]: fmt/struct.Formatter.html + /// [`String`]: https://doc.rust-lang.org/stable/std/string/struct.String.html + /// [`std::fmt`]: https://doc.rust-lang.org/std/fmt/index.html + pub fn format(&mut self, format: F) -> &mut Self + where + F: Fn(&mut Formatter, &Record<'_>) -> io::Result<()> + Sync + Send + 'static, + { + self.format.custom_format = Some(Box::new(format)); + self + } + + /// Use the default format. + /// + /// This method will clear any custom format set on the builder. + pub fn default_format(&mut self) -> &mut Self { + self.format = Default::default(); + self + } + + /// Whether or not to write the level in the default format. + pub fn format_level(&mut self, write: bool) -> &mut Self { + self.format.default_format.level(write); + self + } + + /// Whether or not to write the source file path in the default format. + pub fn format_file(&mut self, write: bool) -> &mut Self { + self.format.default_format.file(write); + self + } + + /// Whether or not to write the source line number path in the default format. + /// + /// Only has effect if `format_file` is also enabled + pub fn format_line_number(&mut self, write: bool) -> &mut Self { + self.format.default_format.line_number(write); + self + } + + /// Whether or not to write the source path and line number + /// + /// Equivalent to calling both `format_file` and `format_line_number` + /// with `true` + pub fn format_source_path(&mut self, write: bool) -> &mut Self { + self.format_file(write).format_line_number(write); + self + } + + /// Whether or not to write the module path in the default format. + pub fn format_module_path(&mut self, write: bool) -> &mut Self { + self.format.default_format.module_path(write); + self + } + + /// Whether or not to write the target in the default format. + pub fn format_target(&mut self, write: bool) -> &mut Self { + self.format.default_format.target(write); + self + } + + /// Configures the amount of spaces to use to indent multiline log records. + /// A value of `None` disables any kind of indentation. + pub fn format_indent(&mut self, indent: Option) -> &mut Self { + self.format.default_format.indent(indent); + self + } + + /// Configures if timestamp should be included and in what precision. + pub fn format_timestamp(&mut self, timestamp: Option) -> &mut Self { + self.format.default_format.timestamp(timestamp); + self + } + + /// Configures the timestamp to use second precision. + pub fn format_timestamp_secs(&mut self) -> &mut Self { + self.format_timestamp(Some(fmt::TimestampPrecision::Seconds)) + } + + /// Configures the timestamp to use millisecond precision. + pub fn format_timestamp_millis(&mut self) -> &mut Self { + self.format_timestamp(Some(fmt::TimestampPrecision::Millis)) + } + + /// Configures the timestamp to use microsecond precision. + pub fn format_timestamp_micros(&mut self) -> &mut Self { + self.format_timestamp(Some(fmt::TimestampPrecision::Micros)) + } + + /// Configures the timestamp to use nanosecond precision. + pub fn format_timestamp_nanos(&mut self) -> &mut Self { + self.format_timestamp(Some(fmt::TimestampPrecision::Nanos)) + } + + /// Configures the end of line suffix. + pub fn format_suffix(&mut self, suffix: &'static str) -> &mut Self { + self.format.default_format.suffix(suffix); + self + } + + /// Set the format for structured key/value pairs in the log record + /// + /// With the default format, this function is called for each record and should format + /// the structured key-value pairs as returned by [`log::Record::key_values`]. + /// + /// The format function is expected to output the string directly to the `Formatter` so that + /// implementations can use the [`std::fmt`] macros, similar to the main format function. + /// + /// The default format uses a space to separate each key-value pair, with an "=" between + /// the key and value. + #[cfg(feature = "kv")] + pub fn format_key_values(&mut self, format: F) -> &mut Self + where + F: Fn(&mut Formatter, &dyn log::kv::Source) -> io::Result<()> + Sync + Send + 'static, + { + self.format.default_format.key_values(format); + self + } + + /// Adds a directive to the filter for a specific module. + /// + /// # Examples + /// + /// Only include messages for info and above for logs in `path::to::module`: + /// + /// ``` + /// use env_logger::Builder; + /// use log::LevelFilter; + /// + /// let mut builder = Builder::new(); + /// + /// builder.filter_module("path::to::module", LevelFilter::Info); + /// ``` + pub fn filter_module(&mut self, module: &str, level: LevelFilter) -> &mut Self { + self.filter.filter_module(module, level); + self + } + + /// Adds a directive to the filter for all modules. + /// + /// # Examples + /// + /// Only include messages for info and above for logs globally: + /// + /// ``` + /// use env_logger::Builder; + /// use log::LevelFilter; + /// + /// let mut builder = Builder::new(); + /// + /// builder.filter_level(LevelFilter::Info); + /// ``` + pub fn filter_level(&mut self, level: LevelFilter) -> &mut Self { + self.filter.filter_level(level); + self + } + + /// Adds filters to the logger. + /// + /// The given module (if any) will log at most the specified level provided. + /// If no module is provided then the filter will apply to all log messages. + /// + /// # Examples + /// + /// Only include messages for info and above for logs in `path::to::module`: + /// + /// ``` + /// use env_logger::Builder; + /// use log::LevelFilter; + /// + /// let mut builder = Builder::new(); + /// + /// builder.filter(Some("path::to::module"), LevelFilter::Info); + /// ``` + pub fn filter(&mut self, module: Option<&str>, level: LevelFilter) -> &mut Self { + self.filter.filter(module, level); + self + } + + /// Parses the directives string in the same form as the `RUST_LOG` + /// environment variable. + /// + /// See the module documentation for more details. + pub fn parse_filters(&mut self, filters: &str) -> &mut Self { + self.filter.parse(filters); + self + } + + /// Sets the target for the log output. + /// + /// Env logger can log to either stdout, stderr or a custom pipe. The default is stderr. + /// + /// The custom pipe can be used to send the log messages to a custom sink (for example a file). + /// Do note that direct writes to a file can become a bottleneck due to IO operation times. + /// + /// # Examples + /// + /// Write log message to `stdout`: + /// + /// ``` + /// use env_logger::{Builder, Target}; + /// + /// let mut builder = Builder::new(); + /// + /// builder.target(Target::Stdout); + /// ``` + pub fn target(&mut self, target: fmt::Target) -> &mut Self { + self.writer.target(target); + self + } + + /// Sets whether or not styles will be written. + /// + /// This can be useful in environments that don't support control characters + /// for setting colors. + /// + /// # Examples + /// + /// Never attempt to write styles: + /// + /// ``` + /// use env_logger::{Builder, WriteStyle}; + /// + /// let mut builder = Builder::new(); + /// + /// builder.write_style(WriteStyle::Never); + /// ``` + pub fn write_style(&mut self, write_style: fmt::WriteStyle) -> &mut Self { + self.writer.write_style(write_style); + self + } + + /// Parses whether or not to write styles in the same form as the `RUST_LOG_STYLE` + /// environment variable. + /// + /// See the module documentation for more details. + pub fn parse_write_style(&mut self, write_style: &str) -> &mut Self { + self.writer.parse_write_style(write_style); + self + } + + /// Sets whether or not the logger will be used in unit tests. + /// + /// If `is_test` is `true` then the logger will allow the testing framework to + /// capture log records rather than printing them to the terminal directly. + pub fn is_test(&mut self, is_test: bool) -> &mut Self { + self.writer.is_test(is_test); + self + } + + /// Initializes the global logger with the built env logger. + /// + /// This should be called early in the execution of a Rust program. Any log + /// events that occur before initialization will be ignored. + /// + /// # Errors + /// + /// This function will fail if it is called more than once, or if another + /// library has already initialized a global logger. + pub fn try_init(&mut self) -> Result<(), SetLoggerError> { + let logger = self.build(); + + let max_level = logger.filter(); + let r = log::set_boxed_logger(Box::new(logger)); + + if r.is_ok() { + log::set_max_level(max_level); + } + + r + } + + /// Initializes the global logger with the built env logger. + /// + /// This should be called early in the execution of a Rust program. Any log + /// events that occur before initialization will be ignored. + /// + /// # Panics + /// + /// This function will panic if it is called more than once, or if another + /// library has already initialized a global logger. + pub fn init(&mut self) { + self.try_init() + .expect("Builder::init should not be called after logger initialized"); + } + + /// Build an env logger. + /// + /// The returned logger implements the `Log` trait and can be installed manually + /// or nested within another logger. + pub fn build(&mut self) -> Logger { + assert!(!self.built, "attempt to re-use consumed builder"); + self.built = true; + + Logger { + writer: self.writer.build(), + filter: self.filter.build(), + format: self.format.build(), + } + } +} + +impl std::fmt::Debug for Builder { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + if self.built { + f.debug_struct("Logger").field("built", &true).finish() + } else { + f.debug_struct("Logger") + .field("filter", &self.filter) + .field("writer", &self.writer) + .finish() + } + } +} + +/// The env logger. +/// +/// This struct implements the `Log` trait from the [`log` crate][log-crate-url], +/// which allows it to act as a logger. +/// +/// The [`init()`], [`try_init()`], [`Builder::init()`] and [`Builder::try_init()`] +/// methods will each construct a `Logger` and immediately initialize it as the +/// default global logger. +/// +/// If you'd instead need access to the constructed `Logger`, you can use +/// the associated [`Builder`] and install it with the +/// [`log` crate][log-crate-url] directly. +/// +/// [log-crate-url]: https://docs.rs/log +/// [`init()`]: fn.init.html +/// [`try_init()`]: fn.try_init.html +/// [`Builder::init()`]: struct.Builder.html#method.init +/// [`Builder::try_init()`]: struct.Builder.html#method.try_init +/// [`Builder`]: struct.Builder.html +pub struct Logger { + writer: Writer, + filter: env_filter::Filter, + format: FormatFn, +} + +impl Logger { + /// Creates the logger from the environment. + /// + /// The variables used to read configuration from can be tweaked before + /// passing in. + /// + /// # Examples + /// + /// Create a logger reading the log filter from an environment variable + /// called `MY_LOG`: + /// + /// ``` + /// use env_logger::Logger; + /// + /// let logger = Logger::from_env("MY_LOG"); + /// ``` + /// + /// Create a logger using the `MY_LOG` variable for filtering and + /// `MY_LOG_STYLE` for whether or not to write styles: + /// + /// ``` + /// use env_logger::{Logger, Env}; + /// + /// let env = Env::new().filter_or("MY_LOG", "info").write_style_or("MY_LOG_STYLE", "always"); + /// + /// let logger = Logger::from_env(env); + /// ``` + pub fn from_env<'a, E>(env: E) -> Self + where + E: Into>, + { + Builder::from_env(env).build() + } + + /// Creates the logger from the environment using default variable names. + /// + /// This method is a convenient way to call `from_env(Env::default())` without + /// having to use the `Env` type explicitly. The logger will use the + /// [default environment variables]. + /// + /// # Examples + /// + /// Creates a logger using the default environment variables: + /// + /// ``` + /// use env_logger::Logger; + /// + /// let logger = Logger::from_default_env(); + /// ``` + /// + /// [default environment variables]: struct.Env.html#default-environment-variables + pub fn from_default_env() -> Self { + Builder::from_default_env().build() + } + + /// Returns the maximum `LevelFilter` that this env logger instance is + /// configured to output. + pub fn filter(&self) -> LevelFilter { + self.filter.filter() + } + + /// Checks if this record matches the configured filter. + pub fn matches(&self, record: &Record<'_>) -> bool { + self.filter.matches(record) + } +} + +impl Log for Logger { + fn enabled(&self, metadata: &Metadata<'_>) -> bool { + self.filter.enabled(metadata) + } + + fn log(&self, record: &Record<'_>) { + if self.matches(record) { + // Log records are written to a thread-local buffer before being printed + // to the terminal. We clear these buffers afterwards, but they aren't shrunk + // so will always at least have capacity for the largest log record formatted + // on that thread. + // + // If multiple `Logger`s are used by the same threads then the thread-local + // formatter might have different color support. If this is the case the + // formatter and its buffer are discarded and recreated. + + thread_local! { + static FORMATTER: RefCell> = const { RefCell::new(None) }; + } + + let print = |formatter: &mut Formatter, record: &Record<'_>| { + let _ = self + .format + .format(formatter, record) + .and_then(|_| formatter.print(&self.writer)); + + // Always clear the buffer afterwards + formatter.clear(); + }; + + let printed = FORMATTER + .try_with(|tl_buf| { + if let Ok(mut tl_buf) = tl_buf.try_borrow_mut() { + // There are no active borrows of the buffer + if let Some(ref mut formatter) = *tl_buf { + // We have a previously set formatter + + // Check the buffer style. If it's different from the logger's + // style then drop the buffer and recreate it. + if formatter.write_style() != self.writer.write_style() { + *formatter = Formatter::new(&self.writer); + } + + print(formatter, record); + } else { + // We don't have a previously set formatter + let mut formatter = Formatter::new(&self.writer); + print(&mut formatter, record); + + *tl_buf = Some(formatter); + } + } else { + // There's already an active borrow of the buffer (due to re-entrancy) + print(&mut Formatter::new(&self.writer), record); + } + }) + .is_ok(); + + if !printed { + // The thread-local storage was not available (because its + // destructor has already run). Create a new single-use + // Formatter on the stack for this call. + print(&mut Formatter::new(&self.writer), record); + } + } + } + + fn flush(&self) {} +} + +impl std::fmt::Debug for Logger { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("Logger") + .field("filter", &self.filter) + .finish() + } +} + +/// Set of environment variables to configure from. +/// +/// # Default environment variables +/// +/// By default, the `Env` will read the following environment variables: +/// +/// - `RUST_LOG`: the level filter +/// - `RUST_LOG_STYLE`: whether or not to print styles with records. +/// +/// These sources can be configured using the builder methods on `Env`. +#[derive(Debug)] +pub struct Env<'a> { + filter: Var<'a>, + write_style: Var<'a>, +} + +impl<'a> Env<'a> { + /// Get a default set of environment variables. + pub fn new() -> Self { + Self::default() + } + + /// Specify an environment variable to read the filter from. + pub fn filter(mut self, filter_env: E) -> Self + where + E: Into>, + { + self.filter = Var::new(filter_env); + + self + } + + /// Specify an environment variable to read the filter from. + /// + /// If the variable is not set, the default value will be used. + pub fn filter_or(mut self, filter_env: E, default: V) -> Self + where + E: Into>, + V: Into>, + { + self.filter = Var::new_with_default(filter_env, default); + + self + } + + /// Use the default environment variable to read the filter from. + /// + /// If the variable is not set, the default value will be used. + pub fn default_filter_or(mut self, default: V) -> Self + where + V: Into>, + { + self.filter = Var::new_with_default(DEFAULT_FILTER_ENV, default); + + self + } + + fn get_filter(&self) -> Option { + self.filter.get() + } + + /// Specify an environment variable to read the style from. + pub fn write_style(mut self, write_style_env: E) -> Self + where + E: Into>, + { + self.write_style = Var::new(write_style_env); + + self + } + + /// Specify an environment variable to read the style from. + /// + /// If the variable is not set, the default value will be used. + pub fn write_style_or(mut self, write_style_env: E, default: V) -> Self + where + E: Into>, + V: Into>, + { + self.write_style = Var::new_with_default(write_style_env, default); + + self + } + + /// Use the default environment variable to read the style from. + /// + /// If the variable is not set, the default value will be used. + pub fn default_write_style_or(mut self, default: V) -> Self + where + V: Into>, + { + self.write_style = Var::new_with_default(DEFAULT_WRITE_STYLE_ENV, default); + + self + } + + fn get_write_style(&self) -> Option { + self.write_style.get() + } +} + +impl<'a, T> From for Env<'a> +where + T: Into>, +{ + fn from(filter_env: T) -> Self { + Env::default().filter(filter_env.into()) + } +} + +impl Default for Env<'_> { + fn default() -> Self { + Env { + filter: Var::new(DEFAULT_FILTER_ENV), + write_style: Var::new(DEFAULT_WRITE_STYLE_ENV), + } + } +} + +#[derive(Debug)] +struct Var<'a> { + name: Cow<'a, str>, + default: Option>, +} + +impl<'a> Var<'a> { + fn new(name: E) -> Self + where + E: Into>, + { + Var { + name: name.into(), + default: None, + } + } + + fn new_with_default(name: E, default: V) -> Self + where + E: Into>, + V: Into>, + { + Var { + name: name.into(), + default: Some(default.into()), + } + } + + fn get(&self) -> Option { + env::var(&*self.name) + .ok() + .or_else(|| self.default.clone().map(|v| v.into_owned())) + } +} + +/// Attempts to initialize the global logger with an env logger. +/// +/// This should be called early in the execution of a Rust program. Any log +/// events that occur before initialization will be ignored. +/// +/// # Errors +/// +/// This function will fail if it is called more than once, or if another +/// library has already initialized a global logger. +pub fn try_init() -> Result<(), SetLoggerError> { + try_init_from_env(Env::default()) +} + +/// Initializes the global logger with an env logger. +/// +/// This should be called early in the execution of a Rust program. Any log +/// events that occur before initialization will be ignored. +/// +/// # Panics +/// +/// This function will panic if it is called more than once, or if another +/// library has already initialized a global logger. +pub fn init() { + try_init().expect("env_logger::init should not be called after logger initialized"); +} + +/// Attempts to initialize the global logger with an env logger from the given +/// environment variables. +/// +/// This should be called early in the execution of a Rust program. Any log +/// events that occur before initialization will be ignored. +/// +/// # Examples +/// +/// Initialise a logger using the `MY_LOG` environment variable for filters +/// and `MY_LOG_STYLE` for writing colors: +/// +/// ``` +/// use env_logger::{Builder, Env}; +/// +/// # fn run() -> Result<(), Box> { +/// let env = Env::new().filter("MY_LOG").write_style("MY_LOG_STYLE"); +/// +/// env_logger::try_init_from_env(env)?; +/// +/// Ok(()) +/// # } +/// # run().unwrap(); +/// ``` +/// +/// # Errors +/// +/// This function will fail if it is called more than once, or if another +/// library has already initialized a global logger. +pub fn try_init_from_env<'a, E>(env: E) -> Result<(), SetLoggerError> +where + E: Into>, +{ + let mut builder = Builder::from_env(env); + + builder.try_init() +} + +/// Initializes the global logger with an env logger from the given environment +/// variables. +/// +/// This should be called early in the execution of a Rust program. Any log +/// events that occur before initialization will be ignored. +/// +/// # Examples +/// +/// Initialise a logger using the `MY_LOG` environment variable for filters +/// and `MY_LOG_STYLE` for writing colors: +/// +/// ``` +/// use env_logger::{Builder, Env}; +/// +/// let env = Env::new().filter("MY_LOG").write_style("MY_LOG_STYLE"); +/// +/// env_logger::init_from_env(env); +/// ``` +/// +/// # Panics +/// +/// This function will panic if it is called more than once, or if another +/// library has already initialized a global logger. +pub fn init_from_env<'a, E>(env: E) +where + E: Into>, +{ + try_init_from_env(env) + .expect("env_logger::init_from_env should not be called after logger initialized"); +} + +/// Create a new builder with the default environment variables. +/// +/// The builder can be configured before being initialized. +/// This is a convenient way of calling [`Builder::from_default_env`]. +/// +/// [`Builder::from_default_env`]: struct.Builder.html#method.from_default_env +pub fn builder() -> Builder { + Builder::from_default_env() +} + +/// Create a builder from the given environment variables. +/// +/// The builder can be configured before being initialized. +#[deprecated( + since = "0.8.0", + note = "Prefer `env_logger::Builder::from_env()` instead." +)] +pub fn from_env<'a, E>(env: E) -> Builder +where + E: Into>, +{ + Builder::from_env(env) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn env_get_filter_reads_from_var_if_set() { + env::set_var("env_get_filter_reads_from_var_if_set", "from var"); + + let env = Env::new().filter_or("env_get_filter_reads_from_var_if_set", "from default"); + + assert_eq!(Some("from var".to_owned()), env.get_filter()); + } + + #[test] + fn env_get_filter_reads_from_default_if_var_not_set() { + env::remove_var("env_get_filter_reads_from_default_if_var_not_set"); + + let env = Env::new().filter_or( + "env_get_filter_reads_from_default_if_var_not_set", + "from default", + ); + + assert_eq!(Some("from default".to_owned()), env.get_filter()); + } + + #[test] + fn env_get_write_style_reads_from_var_if_set() { + env::set_var("env_get_write_style_reads_from_var_if_set", "from var"); + + let env = + Env::new().write_style_or("env_get_write_style_reads_from_var_if_set", "from default"); + + assert_eq!(Some("from var".to_owned()), env.get_write_style()); + } + + #[test] + fn env_get_write_style_reads_from_default_if_var_not_set() { + env::remove_var("env_get_write_style_reads_from_default_if_var_not_set"); + + let env = Env::new().write_style_or( + "env_get_write_style_reads_from_default_if_var_not_set", + "from default", + ); + + assert_eq!(Some("from default".to_owned()), env.get_write_style()); + } + + #[test] + fn builder_parse_env_overrides_existing_filters() { + env::set_var( + "builder_parse_default_env_overrides_existing_filters", + "debug", + ); + let env = Env::new().filter("builder_parse_default_env_overrides_existing_filters"); + + let mut builder = Builder::new(); + builder.filter_level(LevelFilter::Trace); + // Overrides global level to debug + builder.parse_env(env); + + assert_eq!(builder.filter.build().filter(), LevelFilter::Debug); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/writer/buffer.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/writer/buffer.rs new file mode 100644 index 0000000000000000000000000000000000000000..f2661eea9a76a7a7e07640b2aa483b77995a3bab --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.9/src/writer/buffer.rs @@ -0,0 +1,175 @@ +use std::{io, sync::Mutex}; + +use crate::writer::WriteStyle; + +#[derive(Debug)] +pub(crate) struct BufferWriter { + target: WritableTarget, + write_style: WriteStyle, +} + +impl BufferWriter { + pub(crate) fn stderr(is_test: bool, write_style: WriteStyle) -> Self { + BufferWriter { + target: if is_test { + WritableTarget::PrintStderr + } else { + WritableTarget::WriteStderr + }, + write_style, + } + } + + pub(crate) fn stdout(is_test: bool, write_style: WriteStyle) -> Self { + BufferWriter { + target: if is_test { + WritableTarget::PrintStdout + } else { + WritableTarget::WriteStdout + }, + write_style, + } + } + + pub(crate) fn pipe( + pipe: Box>, + write_style: WriteStyle, + ) -> Self { + BufferWriter { + target: WritableTarget::Pipe(pipe), + write_style, + } + } + + pub(crate) fn write_style(&self) -> WriteStyle { + self.write_style + } + + pub(crate) fn buffer(&self) -> Buffer { + Buffer(Vec::new()) + } + + pub(crate) fn print(&self, buf: &Buffer) -> io::Result<()> { + #![allow(clippy::print_stdout)] // enabled for tests only + #![allow(clippy::print_stderr)] // enabled for tests only + + use std::io::Write as _; + + let buf = buf.as_bytes(); + match &self.target { + WritableTarget::WriteStdout => { + let stream = io::stdout(); + #[cfg(feature = "color")] + let stream = anstream::AutoStream::new(stream, self.write_style.into()); + let mut stream = stream.lock(); + stream.write_all(buf)?; + stream.flush()?; + } + WritableTarget::PrintStdout => { + #[cfg(feature = "color")] + let buf = adapt(buf, self.write_style)?; + #[cfg(feature = "color")] + let buf = &buf; + let buf = String::from_utf8_lossy(buf); + print!("{buf}"); + } + WritableTarget::WriteStderr => { + let stream = io::stderr(); + #[cfg(feature = "color")] + let stream = anstream::AutoStream::new(stream, self.write_style.into()); + let mut stream = stream.lock(); + stream.write_all(buf)?; + stream.flush()?; + } + WritableTarget::PrintStderr => { + #[cfg(feature = "color")] + let buf = adapt(buf, self.write_style)?; + #[cfg(feature = "color")] + let buf = &buf; + let buf = String::from_utf8_lossy(buf); + eprint!("{buf}"); + } + WritableTarget::Pipe(pipe) => { + #[cfg(feature = "color")] + let buf = adapt(buf, self.write_style)?; + #[cfg(feature = "color")] + let buf = &buf; + let mut stream = pipe.lock().expect("no panics while held"); + stream.write_all(buf)?; + stream.flush()?; + } + } + + Ok(()) + } +} + +#[cfg(feature = "color")] +fn adapt(buf: &[u8], write_style: WriteStyle) -> io::Result> { + use std::io::Write as _; + + let adapted = Vec::with_capacity(buf.len()); + let mut stream = anstream::AutoStream::new(adapted, write_style.into()); + stream.write_all(buf)?; + let adapted = stream.into_inner(); + Ok(adapted) +} + +pub(crate) struct Buffer(Vec); + +impl Buffer { + pub(crate) fn clear(&mut self) { + self.0.clear(); + } + + pub(crate) fn write(&mut self, buf: &[u8]) -> io::Result { + self.0.extend(buf); + Ok(buf.len()) + } + + pub(crate) fn flush(&mut self) -> io::Result<()> { + Ok(()) + } + + pub(crate) fn as_bytes(&self) -> &[u8] { + &self.0 + } +} + +impl std::fmt::Debug for Buffer { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + String::from_utf8_lossy(self.as_bytes()).fmt(f) + } +} + +/// Log target, either `stdout`, `stderr` or a custom pipe. +/// +/// Same as `Target`, except the pipe is wrapped in a mutex for interior mutability. +pub(crate) enum WritableTarget { + /// Logs will be written to standard output. + WriteStdout, + /// Logs will be printed to standard output. + PrintStdout, + /// Logs will be written to standard error. + WriteStderr, + /// Logs will be printed to standard error. + PrintStderr, + /// Logs will be sent to a custom pipe. + Pipe(Box>), +} + +impl std::fmt::Debug for WritableTarget { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!( + f, + "{}", + match self { + Self::WriteStdout => "stdout", + Self::PrintStdout => "stdout", + Self::WriteStderr => "stderr", + Self::PrintStderr => "stderr", + Self::Pipe(_) => "pipe", + } + ) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/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/arm/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/arm/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..2426b94f476c07e4b2a92ff9f6b8f8c49105033f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/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_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 __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/arm/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..06d3016bfa5c8ae3441c546d29d30506445b5750 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/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_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_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/csky/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/auxvec.rs new file mode 100644 index 0000000000000000000000000000000000000000..4ff4b54b60327c4fd6cbd58371771a1d9728abee --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/auxvec.rs @@ -0,0 +1,30 @@ +/* automatically generated by rust-bindgen 0.72.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/csky/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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/csky/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/csky/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..6006b5453915025099809300d636fb26f49b43bb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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_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 = 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/csky/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..9a42c19d34d48200815b4d7f42524a379c334b58 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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_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 = 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/csky/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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/csky/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/csky/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..a7770b7468660022ebe798eddc1113e9ade43fbb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/general.rs @@ -0,0 +1,3221 @@ +/* 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_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 = 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 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 = __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)] +#[repr(align(8))] +#[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 sigaction { +pub sa_handler: __sighandler_t, +pub sa_flags: crate::ctypes::c_ulong, +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; 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)] +#[repr(align(8))] +#[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_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 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 __pad1: crate::ctypes::c_ulonglong, +pub st_size: crate::ctypes::c_longlong, +pub st_blksize: crate::ctypes::c_int, +pub __pad2: crate::ctypes::c_int, +pub st_blocks: crate::ctypes::c_longlong, +pub st_atime: crate::ctypes::c_int, +pub st_atime_nsec: crate::ctypes::c_uint, +pub st_mtime: crate::ctypes::c_int, +pub st_mtime_nsec: crate::ctypes::c_uint, +pub st_ctime: crate::ctypes::c_int, +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_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 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 = 64; +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 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_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_fcntl64: 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_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_statfs64: u32 = 43; +pub const __NR_fstatfs64: u32 = 44; +pub const __NR_truncate64: u32 = 45; +pub const __NR_ftruncate64: 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_llseek: 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_sendfile64: 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_fstatat64: u32 = 79; +pub const __NR_fstat64: 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_mmap2: u32 = 222; +pub const __NR_fadvise64_64: 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_set_thread_area: u32 = 244; +pub const __NR_cacheflush: u32 = 245; +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_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 = 84; +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; 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/csky/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..c0712336b1e6a0380ffcf686304945cdefd8d5c7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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 = 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)] +#[repr(align(8))] +#[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)] +#[repr(align(8))] +#[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/csky/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..37b557031a08524e4b266d52146bd3b060e05429 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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_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 = 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/csky/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..f3b1a9bb83a9381b7f27ca7f7e5e614a6289becc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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 = 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)] +#[repr(align(8))] +#[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)] +#[repr(align(8))] +#[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/csky/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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/csky/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/csky/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..599a89670acf0cc2cea7a98184d7b61c11f4ac83 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/io_uring.rs @@ -0,0 +1,1442 @@ +/* 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 = 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: [u32; 4usize], +} +#[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)] +#[repr(align(8))] +#[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)] +#[repr(align(8))] +#[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)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +} +#[repr(C)] +#[repr(align(8))] +#[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: [u32; 4usize], +} +#[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/csky/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..35c4c22c4b7ea21fd04ca12537876c09d30a565b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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 = 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 = 3225424499; +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 = 2155370073; +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 = 1076645442; +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 = 1075061508; +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 = 3225441817; +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 = 1076110081; +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 = 3222565639; +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 = 2148279052; +pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074537239; +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 = 3223614220; +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 = 3223614218; +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 = 3223614219; +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 = 2228508482; +pub const VFIO_EEH_PE_OP: u32 = 15225; +pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223069448; +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 = 1078236198; +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 = 3223614221; +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 = 3233846309; +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 = 3223123209; +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 = 3222545173; +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 = 3222565638; +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 = 3225441817; +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 = 1076110098; +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 = 3222565646; +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 = 2179503164; +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 = 3391394869; +pub const PPPIOCGFLAGS: u32 = 2147775578; +pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222545172; +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 = 3222041359; +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 = 3223614225; +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 = 3226228250; +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 = 3223093520; +pub const FW_CDEV_IOC_GET_INFO: u32 = 3223593728; +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 = 1075115275; +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 = 3224142101; +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 = 1092919830; +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/csky/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..003e937b447ae4e308a7c05a365c3a686b6c107d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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_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 = 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/csky/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..ea21927f70483d04b6a4133bcb2348b9ad047b42 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/loop_device.rs @@ -0,0 +1,132 @@ +/* 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 = 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/csky/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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/csky/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/csky/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..5b6ed574c00b66da078d078ab0fbd8daf3c0e9b3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/net.rs @@ -0,0 +1,3485 @@ +/* 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 = 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)] +#[repr(align(8))] +#[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)] +#[repr(align(8))] +#[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/csky/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..bbceed6c4581c55056eaa81701cd0275b51d685b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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_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 = 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 __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/csky/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..8e21959df535f440f5ad7a14cd7fcf3d6fc233dc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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_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 = 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/csky/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..11f5cbaec155190814f95c588c71aaddd74b8f33 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/ptrace.rs @@ -0,0 +1,814 @@ +/* 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 = 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 tls: crate::ctypes::c_ulong, +pub lr: crate::ctypes::c_ulong, +pub pc: crate::ctypes::c_ulong, +pub sr: crate::ctypes::c_ulong, +pub usp: crate::ctypes::c_ulong, +pub orig_a0: 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 regs: [crate::ctypes::c_ulong; 10usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_fp { +pub vr: [crate::ctypes::c_ulong; 96usize], +pub fcr: crate::ctypes::c_ulong, +pub fesr: crate::ctypes::c_ulong, +pub fid: crate::ctypes::c_ulong, +pub reserved: 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 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/csky/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..7ed06a5054b72387844a7806d9eb3c4d377dddb0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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_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 = 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/csky/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..f285133ce2641a848a198285f91dd2f45c08a29e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/csky/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_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 = 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_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/loongarch64/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..c8680dfb01f3c692a1d0fee1bd27a3f70b9becf3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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_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)] +#[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/loongarch64/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..595b774c48c872defb8289b39e22772b60efd8b8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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_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 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/loongarch64/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..862a32dcbf3d7c91b805d8f806bce932e7d45e0a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/general.rs @@ -0,0 +1,3169 @@ +/* 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_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 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_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)] +#[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_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 = 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 MINSIGSTKSZ: u32 = 4096; +pub const SIGSTKSZ: u32 = 16384; +pub const _NSIG: u32 = 64; +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_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_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_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/loongarch64/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..12173e6355806c33c81ca6de2a15d90477f49f6b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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_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, 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/loongarch64/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..c311d174670c1ab7724f3cb09f3ff17330434f87 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/ioctl.rs @@ -0,0 +1,1489 @@ +/* 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 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 CM_IOSDBGLVL: u32 = 1074291706; +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 MEYEIOC_SYNC: u32 = 3221518019; +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 CM_IOCGATR: u32 = 3221775105; +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/loongarch64/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..3f05a6b5d525826b72577ff8f39d3332ac61a0d1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/ptrace.rs @@ -0,0 +1,862 @@ +/* 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_pt_regs { +pub regs: [crate::ctypes::c_ulong; 32usize], +pub orig_a0: crate::ctypes::c_ulong, +pub csr_era: crate::ctypes::c_ulong, +pub csr_badv: crate::ctypes::c_ulong, +pub reserved: [crate::ctypes::c_ulong; 10usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_fp_state { +pub fpr: [u64; 32usize], +pub fcc: u64, +pub fcsr: u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_lsx_state { +pub vregs: [u64; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_lasx_state { +pub vregs: [u64; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_lbt_state { +pub scr: [u64; 4usize], +pub eflags: u32, +pub ftop: u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_watch_state { +pub dbg_info: u64, +pub dbg_regs: [user_watch_state__bindgen_ty_1; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_watch_state__bindgen_ty_1 { +pub addr: u64, +pub mask: u64, +pub ctrl: u32, +pub pad: u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_watch_state_v2 { +pub dbg_info: u64, +pub dbg_regs: [user_watch_state_v2__bindgen_ty_1; 14usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_watch_state_v2__bindgen_ty_1 { +pub addr: u64, +pub mask: u64, +pub ctrl: u32, +pub pad: u32, +} +#[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 GPR_BASE: u32 = 0; +pub const GPR_NUM: u32 = 32; +pub const GPR_END: u32 = 31; +pub const ARG0: u32 = 32; +pub const PC: u32 = 33; +pub const BADVADDR: u32 = 34; +pub const NUM_FPU_REGS: u32 = 32; +pub const PTRACE_SYSEMU: u32 = 31; +pub const PTRACE_SYSEMU_SINGLESTEP: u32 = 32; +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/loongarch64/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/loongarch64/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/loongarch64/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/loongarch64/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/mips/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/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/mips/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/mips/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/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/mips/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/mips/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..6fff1120825e6c3e85396b804a8975f1552cf7e2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/btrfs.rs @@ -0,0 +1,1904 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +pub const _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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/mips/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..0636f3d7596790f243dee4745252202e5beb4e9d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/elf_uapi.rs @@ -0,0 +1,662 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..59b928fcb02b282b8fbe061e1241ae5c9866fb52 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/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 ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +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 EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..5a9f634857c49fffa85cf16d60c2a05f379826d3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/general.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_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_daddr_t = crate::ctypes::c_long; +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_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 = 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 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 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)] +#[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 l_sysid: crate::ctypes::c_long, +pub pad: [crate::ctypes::c_long; 4usize], +} +#[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; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaction { +pub sa_flags: crate::ctypes::c_uint, +pub sa_handler: __sighandler_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_size: __kernel_size_t, +pub ss_flags: crate::ctypes::c_int, +} +#[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_code: crate::ctypes::c_int, +pub si_errno: 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; 23usize], +} +#[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; 23usize], +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; 23usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sgttyb { +pub sg_ispeed: crate::ctypes::c_char, +pub sg_ospeed: crate::ctypes::c_char, +pub sg_erase: crate::ctypes::c_char, +pub sg_kill: crate::ctypes::c_char, +pub sg_flags: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tchars { +pub t_intrc: crate::ctypes::c_char, +pub t_quitc: crate::ctypes::c_char, +pub t_startc: crate::ctypes::c_char, +pub t_stopc: crate::ctypes::c_char, +pub t_eofc: crate::ctypes::c_char, +pub t_brkc: crate::ctypes::c_char, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ltchars { +pub t_suspc: crate::ctypes::c_char, +pub t_dsuspc: crate::ctypes::c_char, +pub t_rprntc: crate::ctypes::c_char, +pub t_flushc: crate::ctypes::c_char, +pub t_werasc: crate::ctypes::c_char, +pub t_lnextc: crate::ctypes::c_char, +} +#[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_char, +pub c_cc: [crate::ctypes::c_uchar; 23usize], +} +#[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_uint, +pub st_pad1: [crate::ctypes::c_long; 3usize], +pub st_ino: __kernel_ino_t, +pub st_mode: __kernel_mode_t, +pub st_nlink: __u32, +pub st_uid: __kernel_uid32_t, +pub st_gid: __kernel_gid32_t, +pub st_rdev: crate::ctypes::c_uint, +pub st_pad2: [crate::ctypes::c_long; 2usize], +pub st_size: crate::ctypes::c_long, +pub st_pad3: crate::ctypes::c_long, +pub st_atime: crate::ctypes::c_long, +pub st_atime_nsec: crate::ctypes::c_long, +pub st_mtime: crate::ctypes::c_long, +pub st_mtime_nsec: crate::ctypes::c_long, +pub st_ctime: crate::ctypes::c_long, +pub st_ctime_nsec: crate::ctypes::c_long, +pub st_blksize: crate::ctypes::c_long, +pub st_blocks: crate::ctypes::c_long, +pub st_pad4: [crate::ctypes::c_long; 14usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stat64 { +pub st_dev: crate::ctypes::c_ulong, +pub st_pad0: [crate::ctypes::c_ulong; 3usize], +pub st_ino: crate::ctypes::c_ulonglong, +pub st_mode: __kernel_mode_t, +pub st_nlink: __u32, +pub st_uid: __kernel_uid32_t, +pub st_gid: __kernel_gid32_t, +pub st_rdev: crate::ctypes::c_ulong, +pub st_pad1: [crate::ctypes::c_ulong; 3usize], +pub st_size: crate::ctypes::c_longlong, +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_ulong, +pub st_pad2: crate::ctypes::c_ulong, +pub st_blocks: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs { +pub f_type: crate::ctypes::c_long, +pub f_bsize: crate::ctypes::c_long, +pub f_frsize: crate::ctypes::c_long, +pub f_blocks: crate::ctypes::c_long, +pub f_bfree: crate::ctypes::c_long, +pub f_files: crate::ctypes::c_long, +pub f_ffree: crate::ctypes::c_long, +pub f_bavail: crate::ctypes::c_long, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: crate::ctypes::c_long, +pub f_flags: crate::ctypes::c_long, +pub f_spare: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs64 { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_frsize: __u32, +pub __pad: __u32, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_bavail: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 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; 4usize], +} +#[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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 O_DSYNC: u32 = 16; +pub const O_NONBLOCK: u32 = 128; +pub const O_CREAT: u32 = 256; +pub const O_TRUNC: u32 = 512; +pub const O_EXCL: u32 = 1024; +pub const O_NOCTTY: u32 = 2048; +pub const FASYNC: u32 = 4096; +pub const O_LARGEFILE: u32 = 8192; +pub const __O_SYNC: u32 = 16384; +pub const O_SYNC: u32 = 16400; +pub const O_DIRECT: u32 = 32768; +pub const F_GETLK: u32 = 14; +pub const F_SETLK: u32 = 6; +pub const F_SETLKW: u32 = 7; +pub const F_SETOWN: u32 = 24; +pub const F_GETOWN: u32 = 23; +pub const F_GETLK64: u32 = 33; +pub const F_SETLK64: u32 = 34; +pub const F_SETLKW64: u32 = 35; +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_NOATIME: u32 = 262144; +pub const O_CLOEXEC: u32 = 524288; +pub const O_PATH: u32 = 2097152; +pub const __O_TMPFILE: u32 = 4194304; +pub const O_TMPFILE: u32 = 4259840; +pub const O_NDELAY: u32 = 128; +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_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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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 = 128; +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_NONE: u32 = 0; +pub const PROT_READ: u32 = 1; +pub const PROT_WRITE: u32 = 2; +pub const PROT_EXEC: u32 = 4; +pub const PROT_SEM: u32 = 16; +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_RENAME: u32 = 32; +pub const MAP_AUTOGROW: u32 = 64; +pub const MAP_LOCAL: u32 = 128; +pub const MAP_AUTORSRV: u32 = 256; +pub const MAP_NORESERVE: u32 = 1024; +pub const MAP_ANONYMOUS: u32 = 2048; +pub const MAP_GROWSDOWN: u32 = 4096; +pub const MAP_DENYWRITE: u32 = 8192; +pub const MAP_EXECUTABLE: u32 = 16384; +pub const MAP_LOCKED: u32 = 32768; +pub const MAP_POPULATE: u32 = 65536; +pub const MAP_NONBLOCK: u32 = 131072; +pub const MAP_STACK: u32 = 262144; +pub const MAP_HUGETLB: u32 = 524288; +pub const MAP_FIXED_NOREPLACE: u32 = 1048576; +pub const MS_ASYNC: u32 = 1; +pub const MS_INVALIDATE: u32 = 2; +pub const MS_SYNC: u32 = 4; +pub const MCL_CURRENT: u32 = 1; +pub const MCL_FUTURE: u32 = 2; +pub const MCL_ONFAULT: u32 = 4; +pub const MLOCK_ONFAULT: u32 = 1; +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_MERGEABLE: u32 = 12; +pub const MADV_UNMERGEABLE: u32 = 13; +pub const MADV_HWPOISON: u32 = 100; +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_DISABLE_ACCESS: u32 = 1; +pub const PKEY_DISABLE_WRITE: u32 = 2; +pub const PKEY_ACCESS_MASK: u32 = 3; +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 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 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_NOFILE: u32 = 5; +pub const RLIMIT_AS: u32 = 6; +pub const RLIMIT_RSS: u32 = 7; +pub const RLIMIT_NPROC: u32 = 8; +pub const RLIMIT_MEMLOCK: u32 = 9; +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_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 _NSIG: u32 = 128; +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 SIGIOT: u32 = 6; +pub const SIGABRT: u32 = 6; +pub const SIGEMT: u32 = 7; +pub const SIGFPE: u32 = 8; +pub const SIGKILL: u32 = 9; +pub const SIGBUS: u32 = 10; +pub const SIGSEGV: u32 = 11; +pub const SIGSYS: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGUSR1: u32 = 16; +pub const SIGUSR2: u32 = 17; +pub const SIGCHLD: u32 = 18; +pub const SIGCLD: u32 = 18; +pub const SIGPWR: u32 = 19; +pub const SIGWINCH: u32 = 20; +pub const SIGURG: u32 = 21; +pub const SIGIO: u32 = 22; +pub const SIGPOLL: u32 = 22; +pub const SIGSTOP: u32 = 23; +pub const SIGTSTP: u32 = 24; +pub const SIGCONT: u32 = 25; +pub const SIGTTIN: u32 = 26; +pub const SIGTTOU: u32 = 27; +pub const SIGVTALRM: u32 = 28; +pub const SIGPROF: u32 = 29; +pub const SIGXCPU: u32 = 30; +pub const SIGXFSZ: u32 = 31; +pub const SIGRTMIN: u32 = 32; +pub const SIGRTMAX: u32 = 128; +pub const SA_ONSTACK: u32 = 134217728; +pub const SA_RESETHAND: u32 = 2147483648; +pub const SA_RESTART: u32 = 268435456; +pub const SA_SIGINFO: u32 = 8; +pub const SA_NODEFER: u32 = 1073741824; +pub const SA_NOCLDWAIT: u32 = 65536; +pub const SA_NOCLDSTOP: u32 = 1; +pub const SA_NOMASK: u32 = 1073741824; +pub const SA_ONESHOT: u32 = 2147483648; +pub const MINSIGSTKSZ: u32 = 2048; +pub const SIGSTKSZ: u32 = 8192; +pub const SIG_BLOCK: u32 = 1; +pub const SIG_UNBLOCK: u32 = 2; +pub const SIG_SETMASK: u32 = 3; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +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 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 ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +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 EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; +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 = 23; +pub const VINTR: u32 = 0; +pub const VQUIT: u32 = 1; +pub const VERASE: u32 = 2; +pub const VKILL: u32 = 3; +pub const VMIN: u32 = 4; +pub const VTIME: u32 = 5; +pub const VEOL2: u32 = 6; +pub const VSWTC: u32 = 7; +pub const VSWTCH: u32 = 7; +pub const VSTART: u32 = 8; +pub const VSTOP: u32 = 9; +pub const VSUSP: u32 = 10; +pub const VREPRINT: u32 = 12; +pub const VDISCARD: u32 = 13; +pub const VWERASE: u32 = 14; +pub const VLNEXT: u32 = 15; +pub const VEOF: u32 = 16; +pub const VEOL: u32 = 17; +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 IEXTEN: u32 = 256; +pub const ECHOCTL: u32 = 512; +pub const ECHOPRT: u32 = 1024; +pub const ECHOKE: u32 = 2048; +pub const FLUSHO: u32 = 8192; +pub const PENDIN: u32 = 16384; +pub const TOSTOP: u32 = 32768; +pub const ITOSTOP: u32 = 32768; +pub const EXTPROC: u32 = 65536; +pub const TIOCSER_TEMT: u32 = 1; +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 TIOCGLTC: u32 = 29812; +pub const TIOCSLTC: u32 = 29813; +pub const TIOCGETP: u32 = 29704; +pub const TIOCSETP: u32 = 29705; +pub const TIOCSETN: u32 = 29706; +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 = 16; +pub const TIOCM_SR: u32 = 32; +pub const TIOCM_CTS: u32 = 64; +pub const TIOCM_CAR: u32 = 256; +pub const TIOCM_CD: u32 = 256; +pub const TIOCM_RNG: u32 = 512; +pub const TIOCM_RI: u32 = 512; +pub const TIOCM_DSR: u32 = 1024; +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_Linux: u32 = 4000; +pub const __NR_syscall: u32 = 4000; +pub const __NR_exit: u32 = 4001; +pub const __NR_fork: u32 = 4002; +pub const __NR_read: u32 = 4003; +pub const __NR_write: u32 = 4004; +pub const __NR_open: u32 = 4005; +pub const __NR_close: u32 = 4006; +pub const __NR_waitpid: u32 = 4007; +pub const __NR_creat: u32 = 4008; +pub const __NR_link: u32 = 4009; +pub const __NR_unlink: u32 = 4010; +pub const __NR_execve: u32 = 4011; +pub const __NR_chdir: u32 = 4012; +pub const __NR_time: u32 = 4013; +pub const __NR_mknod: u32 = 4014; +pub const __NR_chmod: u32 = 4015; +pub const __NR_lchown: u32 = 4016; +pub const __NR_break: u32 = 4017; +pub const __NR_unused18: u32 = 4018; +pub const __NR_lseek: u32 = 4019; +pub const __NR_getpid: u32 = 4020; +pub const __NR_mount: u32 = 4021; +pub const __NR_umount: u32 = 4022; +pub const __NR_setuid: u32 = 4023; +pub const __NR_getuid: u32 = 4024; +pub const __NR_stime: u32 = 4025; +pub const __NR_ptrace: u32 = 4026; +pub const __NR_alarm: u32 = 4027; +pub const __NR_unused28: u32 = 4028; +pub const __NR_pause: u32 = 4029; +pub const __NR_utime: u32 = 4030; +pub const __NR_stty: u32 = 4031; +pub const __NR_gtty: u32 = 4032; +pub const __NR_access: u32 = 4033; +pub const __NR_nice: u32 = 4034; +pub const __NR_ftime: u32 = 4035; +pub const __NR_sync: u32 = 4036; +pub const __NR_kill: u32 = 4037; +pub const __NR_rename: u32 = 4038; +pub const __NR_mkdir: u32 = 4039; +pub const __NR_rmdir: u32 = 4040; +pub const __NR_dup: u32 = 4041; +pub const __NR_pipe: u32 = 4042; +pub const __NR_times: u32 = 4043; +pub const __NR_prof: u32 = 4044; +pub const __NR_brk: u32 = 4045; +pub const __NR_setgid: u32 = 4046; +pub const __NR_getgid: u32 = 4047; +pub const __NR_signal: u32 = 4048; +pub const __NR_geteuid: u32 = 4049; +pub const __NR_getegid: u32 = 4050; +pub const __NR_acct: u32 = 4051; +pub const __NR_umount2: u32 = 4052; +pub const __NR_lock: u32 = 4053; +pub const __NR_ioctl: u32 = 4054; +pub const __NR_fcntl: u32 = 4055; +pub const __NR_mpx: u32 = 4056; +pub const __NR_setpgid: u32 = 4057; +pub const __NR_ulimit: u32 = 4058; +pub const __NR_unused59: u32 = 4059; +pub const __NR_umask: u32 = 4060; +pub const __NR_chroot: u32 = 4061; +pub const __NR_ustat: u32 = 4062; +pub const __NR_dup2: u32 = 4063; +pub const __NR_getppid: u32 = 4064; +pub const __NR_getpgrp: u32 = 4065; +pub const __NR_setsid: u32 = 4066; +pub const __NR_sigaction: u32 = 4067; +pub const __NR_sgetmask: u32 = 4068; +pub const __NR_ssetmask: u32 = 4069; +pub const __NR_setreuid: u32 = 4070; +pub const __NR_setregid: u32 = 4071; +pub const __NR_sigsuspend: u32 = 4072; +pub const __NR_sigpending: u32 = 4073; +pub const __NR_sethostname: u32 = 4074; +pub const __NR_setrlimit: u32 = 4075; +pub const __NR_getrlimit: u32 = 4076; +pub const __NR_getrusage: u32 = 4077; +pub const __NR_gettimeofday: u32 = 4078; +pub const __NR_settimeofday: u32 = 4079; +pub const __NR_getgroups: u32 = 4080; +pub const __NR_setgroups: u32 = 4081; +pub const __NR_reserved82: u32 = 4082; +pub const __NR_symlink: u32 = 4083; +pub const __NR_unused84: u32 = 4084; +pub const __NR_readlink: u32 = 4085; +pub const __NR_uselib: u32 = 4086; +pub const __NR_swapon: u32 = 4087; +pub const __NR_reboot: u32 = 4088; +pub const __NR_readdir: u32 = 4089; +pub const __NR_mmap: u32 = 4090; +pub const __NR_munmap: u32 = 4091; +pub const __NR_truncate: u32 = 4092; +pub const __NR_ftruncate: u32 = 4093; +pub const __NR_fchmod: u32 = 4094; +pub const __NR_fchown: u32 = 4095; +pub const __NR_getpriority: u32 = 4096; +pub const __NR_setpriority: u32 = 4097; +pub const __NR_profil: u32 = 4098; +pub const __NR_statfs: u32 = 4099; +pub const __NR_fstatfs: u32 = 4100; +pub const __NR_ioperm: u32 = 4101; +pub const __NR_socketcall: u32 = 4102; +pub const __NR_syslog: u32 = 4103; +pub const __NR_setitimer: u32 = 4104; +pub const __NR_getitimer: u32 = 4105; +pub const __NR_stat: u32 = 4106; +pub const __NR_lstat: u32 = 4107; +pub const __NR_fstat: u32 = 4108; +pub const __NR_unused109: u32 = 4109; +pub const __NR_iopl: u32 = 4110; +pub const __NR_vhangup: u32 = 4111; +pub const __NR_idle: u32 = 4112; +pub const __NR_vm86: u32 = 4113; +pub const __NR_wait4: u32 = 4114; +pub const __NR_swapoff: u32 = 4115; +pub const __NR_sysinfo: u32 = 4116; +pub const __NR_ipc: u32 = 4117; +pub const __NR_fsync: u32 = 4118; +pub const __NR_sigreturn: u32 = 4119; +pub const __NR_clone: u32 = 4120; +pub const __NR_setdomainname: u32 = 4121; +pub const __NR_uname: u32 = 4122; +pub const __NR_modify_ldt: u32 = 4123; +pub const __NR_adjtimex: u32 = 4124; +pub const __NR_mprotect: u32 = 4125; +pub const __NR_sigprocmask: u32 = 4126; +pub const __NR_create_module: u32 = 4127; +pub const __NR_init_module: u32 = 4128; +pub const __NR_delete_module: u32 = 4129; +pub const __NR_get_kernel_syms: u32 = 4130; +pub const __NR_quotactl: u32 = 4131; +pub const __NR_getpgid: u32 = 4132; +pub const __NR_fchdir: u32 = 4133; +pub const __NR_bdflush: u32 = 4134; +pub const __NR_sysfs: u32 = 4135; +pub const __NR_personality: u32 = 4136; +pub const __NR_afs_syscall: u32 = 4137; +pub const __NR_setfsuid: u32 = 4138; +pub const __NR_setfsgid: u32 = 4139; +pub const __NR__llseek: u32 = 4140; +pub const __NR_getdents: u32 = 4141; +pub const __NR__newselect: u32 = 4142; +pub const __NR_flock: u32 = 4143; +pub const __NR_msync: u32 = 4144; +pub const __NR_readv: u32 = 4145; +pub const __NR_writev: u32 = 4146; +pub const __NR_cacheflush: u32 = 4147; +pub const __NR_cachectl: u32 = 4148; +pub const __NR_sysmips: u32 = 4149; +pub const __NR_unused150: u32 = 4150; +pub const __NR_getsid: u32 = 4151; +pub const __NR_fdatasync: u32 = 4152; +pub const __NR__sysctl: u32 = 4153; +pub const __NR_mlock: u32 = 4154; +pub const __NR_munlock: u32 = 4155; +pub const __NR_mlockall: u32 = 4156; +pub const __NR_munlockall: u32 = 4157; +pub const __NR_sched_setparam: u32 = 4158; +pub const __NR_sched_getparam: u32 = 4159; +pub const __NR_sched_setscheduler: u32 = 4160; +pub const __NR_sched_getscheduler: u32 = 4161; +pub const __NR_sched_yield: u32 = 4162; +pub const __NR_sched_get_priority_max: u32 = 4163; +pub const __NR_sched_get_priority_min: u32 = 4164; +pub const __NR_sched_rr_get_interval: u32 = 4165; +pub const __NR_nanosleep: u32 = 4166; +pub const __NR_mremap: u32 = 4167; +pub const __NR_accept: u32 = 4168; +pub const __NR_bind: u32 = 4169; +pub const __NR_connect: u32 = 4170; +pub const __NR_getpeername: u32 = 4171; +pub const __NR_getsockname: u32 = 4172; +pub const __NR_getsockopt: u32 = 4173; +pub const __NR_listen: u32 = 4174; +pub const __NR_recv: u32 = 4175; +pub const __NR_recvfrom: u32 = 4176; +pub const __NR_recvmsg: u32 = 4177; +pub const __NR_send: u32 = 4178; +pub const __NR_sendmsg: u32 = 4179; +pub const __NR_sendto: u32 = 4180; +pub const __NR_setsockopt: u32 = 4181; +pub const __NR_shutdown: u32 = 4182; +pub const __NR_socket: u32 = 4183; +pub const __NR_socketpair: u32 = 4184; +pub const __NR_setresuid: u32 = 4185; +pub const __NR_getresuid: u32 = 4186; +pub const __NR_query_module: u32 = 4187; +pub const __NR_poll: u32 = 4188; +pub const __NR_nfsservctl: u32 = 4189; +pub const __NR_setresgid: u32 = 4190; +pub const __NR_getresgid: u32 = 4191; +pub const __NR_prctl: u32 = 4192; +pub const __NR_rt_sigreturn: u32 = 4193; +pub const __NR_rt_sigaction: u32 = 4194; +pub const __NR_rt_sigprocmask: u32 = 4195; +pub const __NR_rt_sigpending: u32 = 4196; +pub const __NR_rt_sigtimedwait: u32 = 4197; +pub const __NR_rt_sigqueueinfo: u32 = 4198; +pub const __NR_rt_sigsuspend: u32 = 4199; +pub const __NR_pread64: u32 = 4200; +pub const __NR_pwrite64: u32 = 4201; +pub const __NR_chown: u32 = 4202; +pub const __NR_getcwd: u32 = 4203; +pub const __NR_capget: u32 = 4204; +pub const __NR_capset: u32 = 4205; +pub const __NR_sigaltstack: u32 = 4206; +pub const __NR_sendfile: u32 = 4207; +pub const __NR_getpmsg: u32 = 4208; +pub const __NR_putpmsg: u32 = 4209; +pub const __NR_mmap2: u32 = 4210; +pub const __NR_truncate64: u32 = 4211; +pub const __NR_ftruncate64: u32 = 4212; +pub const __NR_stat64: u32 = 4213; +pub const __NR_lstat64: u32 = 4214; +pub const __NR_fstat64: u32 = 4215; +pub const __NR_pivot_root: u32 = 4216; +pub const __NR_mincore: u32 = 4217; +pub const __NR_madvise: u32 = 4218; +pub const __NR_getdents64: u32 = 4219; +pub const __NR_fcntl64: u32 = 4220; +pub const __NR_reserved221: u32 = 4221; +pub const __NR_gettid: u32 = 4222; +pub const __NR_readahead: u32 = 4223; +pub const __NR_setxattr: u32 = 4224; +pub const __NR_lsetxattr: u32 = 4225; +pub const __NR_fsetxattr: u32 = 4226; +pub const __NR_getxattr: u32 = 4227; +pub const __NR_lgetxattr: u32 = 4228; +pub const __NR_fgetxattr: u32 = 4229; +pub const __NR_listxattr: u32 = 4230; +pub const __NR_llistxattr: u32 = 4231; +pub const __NR_flistxattr: u32 = 4232; +pub const __NR_removexattr: u32 = 4233; +pub const __NR_lremovexattr: u32 = 4234; +pub const __NR_fremovexattr: u32 = 4235; +pub const __NR_tkill: u32 = 4236; +pub const __NR_sendfile64: u32 = 4237; +pub const __NR_futex: u32 = 4238; +pub const __NR_sched_setaffinity: u32 = 4239; +pub const __NR_sched_getaffinity: u32 = 4240; +pub const __NR_io_setup: u32 = 4241; +pub const __NR_io_destroy: u32 = 4242; +pub const __NR_io_getevents: u32 = 4243; +pub const __NR_io_submit: u32 = 4244; +pub const __NR_io_cancel: u32 = 4245; +pub const __NR_exit_group: u32 = 4246; +pub const __NR_lookup_dcookie: u32 = 4247; +pub const __NR_epoll_create: u32 = 4248; +pub const __NR_epoll_ctl: u32 = 4249; +pub const __NR_epoll_wait: u32 = 4250; +pub const __NR_remap_file_pages: u32 = 4251; +pub const __NR_set_tid_address: u32 = 4252; +pub const __NR_restart_syscall: u32 = 4253; +pub const __NR_fadvise64: u32 = 4254; +pub const __NR_statfs64: u32 = 4255; +pub const __NR_fstatfs64: u32 = 4256; +pub const __NR_timer_create: u32 = 4257; +pub const __NR_timer_settime: u32 = 4258; +pub const __NR_timer_gettime: u32 = 4259; +pub const __NR_timer_getoverrun: u32 = 4260; +pub const __NR_timer_delete: u32 = 4261; +pub const __NR_clock_settime: u32 = 4262; +pub const __NR_clock_gettime: u32 = 4263; +pub const __NR_clock_getres: u32 = 4264; +pub const __NR_clock_nanosleep: u32 = 4265; +pub const __NR_tgkill: u32 = 4266; +pub const __NR_utimes: u32 = 4267; +pub const __NR_mbind: u32 = 4268; +pub const __NR_get_mempolicy: u32 = 4269; +pub const __NR_set_mempolicy: u32 = 4270; +pub const __NR_mq_open: u32 = 4271; +pub const __NR_mq_unlink: u32 = 4272; +pub const __NR_mq_timedsend: u32 = 4273; +pub const __NR_mq_timedreceive: u32 = 4274; +pub const __NR_mq_notify: u32 = 4275; +pub const __NR_mq_getsetattr: u32 = 4276; +pub const __NR_vserver: u32 = 4277; +pub const __NR_waitid: u32 = 4278; +pub const __NR_add_key: u32 = 4280; +pub const __NR_request_key: u32 = 4281; +pub const __NR_keyctl: u32 = 4282; +pub const __NR_set_thread_area: u32 = 4283; +pub const __NR_inotify_init: u32 = 4284; +pub const __NR_inotify_add_watch: u32 = 4285; +pub const __NR_inotify_rm_watch: u32 = 4286; +pub const __NR_migrate_pages: u32 = 4287; +pub const __NR_openat: u32 = 4288; +pub const __NR_mkdirat: u32 = 4289; +pub const __NR_mknodat: u32 = 4290; +pub const __NR_fchownat: u32 = 4291; +pub const __NR_futimesat: u32 = 4292; +pub const __NR_fstatat64: u32 = 4293; +pub const __NR_unlinkat: u32 = 4294; +pub const __NR_renameat: u32 = 4295; +pub const __NR_linkat: u32 = 4296; +pub const __NR_symlinkat: u32 = 4297; +pub const __NR_readlinkat: u32 = 4298; +pub const __NR_fchmodat: u32 = 4299; +pub const __NR_faccessat: u32 = 4300; +pub const __NR_pselect6: u32 = 4301; +pub const __NR_ppoll: u32 = 4302; +pub const __NR_unshare: u32 = 4303; +pub const __NR_splice: u32 = 4304; +pub const __NR_sync_file_range: u32 = 4305; +pub const __NR_tee: u32 = 4306; +pub const __NR_vmsplice: u32 = 4307; +pub const __NR_move_pages: u32 = 4308; +pub const __NR_set_robust_list: u32 = 4309; +pub const __NR_get_robust_list: u32 = 4310; +pub const __NR_kexec_load: u32 = 4311; +pub const __NR_getcpu: u32 = 4312; +pub const __NR_epoll_pwait: u32 = 4313; +pub const __NR_ioprio_set: u32 = 4314; +pub const __NR_ioprio_get: u32 = 4315; +pub const __NR_utimensat: u32 = 4316; +pub const __NR_signalfd: u32 = 4317; +pub const __NR_timerfd: u32 = 4318; +pub const __NR_eventfd: u32 = 4319; +pub const __NR_fallocate: u32 = 4320; +pub const __NR_timerfd_create: u32 = 4321; +pub const __NR_timerfd_gettime: u32 = 4322; +pub const __NR_timerfd_settime: u32 = 4323; +pub const __NR_signalfd4: u32 = 4324; +pub const __NR_eventfd2: u32 = 4325; +pub const __NR_epoll_create1: u32 = 4326; +pub const __NR_dup3: u32 = 4327; +pub const __NR_pipe2: u32 = 4328; +pub const __NR_inotify_init1: u32 = 4329; +pub const __NR_preadv: u32 = 4330; +pub const __NR_pwritev: u32 = 4331; +pub const __NR_rt_tgsigqueueinfo: u32 = 4332; +pub const __NR_perf_event_open: u32 = 4333; +pub const __NR_accept4: u32 = 4334; +pub const __NR_recvmmsg: u32 = 4335; +pub const __NR_fanotify_init: u32 = 4336; +pub const __NR_fanotify_mark: u32 = 4337; +pub const __NR_prlimit64: u32 = 4338; +pub const __NR_name_to_handle_at: u32 = 4339; +pub const __NR_open_by_handle_at: u32 = 4340; +pub const __NR_clock_adjtime: u32 = 4341; +pub const __NR_syncfs: u32 = 4342; +pub const __NR_sendmmsg: u32 = 4343; +pub const __NR_setns: u32 = 4344; +pub const __NR_process_vm_readv: u32 = 4345; +pub const __NR_process_vm_writev: u32 = 4346; +pub const __NR_kcmp: u32 = 4347; +pub const __NR_finit_module: u32 = 4348; +pub const __NR_sched_setattr: u32 = 4349; +pub const __NR_sched_getattr: u32 = 4350; +pub const __NR_renameat2: u32 = 4351; +pub const __NR_seccomp: u32 = 4352; +pub const __NR_getrandom: u32 = 4353; +pub const __NR_memfd_create: u32 = 4354; +pub const __NR_bpf: u32 = 4355; +pub const __NR_execveat: u32 = 4356; +pub const __NR_userfaultfd: u32 = 4357; +pub const __NR_membarrier: u32 = 4358; +pub const __NR_mlock2: u32 = 4359; +pub const __NR_copy_file_range: u32 = 4360; +pub const __NR_preadv2: u32 = 4361; +pub const __NR_pwritev2: u32 = 4362; +pub const __NR_pkey_mprotect: u32 = 4363; +pub const __NR_pkey_alloc: u32 = 4364; +pub const __NR_pkey_free: u32 = 4365; +pub const __NR_statx: u32 = 4366; +pub const __NR_rseq: u32 = 4367; +pub const __NR_io_pgetevents: u32 = 4368; +pub const __NR_semget: u32 = 4393; +pub const __NR_semctl: u32 = 4394; +pub const __NR_shmget: u32 = 4395; +pub const __NR_shmctl: u32 = 4396; +pub const __NR_shmat: u32 = 4397; +pub const __NR_shmdt: u32 = 4398; +pub const __NR_msgget: u32 = 4399; +pub const __NR_msgsnd: u32 = 4400; +pub const __NR_msgrcv: u32 = 4401; +pub const __NR_msgctl: u32 = 4402; +pub const __NR_clock_gettime64: u32 = 4403; +pub const __NR_clock_settime64: u32 = 4404; +pub const __NR_clock_adjtime64: u32 = 4405; +pub const __NR_clock_getres_time64: u32 = 4406; +pub const __NR_clock_nanosleep_time64: u32 = 4407; +pub const __NR_timer_gettime64: u32 = 4408; +pub const __NR_timer_settime64: u32 = 4409; +pub const __NR_timerfd_gettime64: u32 = 4410; +pub const __NR_timerfd_settime64: u32 = 4411; +pub const __NR_utimensat_time64: u32 = 4412; +pub const __NR_pselect6_time64: u32 = 4413; +pub const __NR_ppoll_time64: u32 = 4414; +pub const __NR_io_pgetevents_time64: u32 = 4416; +pub const __NR_recvmmsg_time64: u32 = 4417; +pub const __NR_mq_timedsend_time64: u32 = 4418; +pub const __NR_mq_timedreceive_time64: u32 = 4419; +pub const __NR_semtimedop_time64: u32 = 4420; +pub const __NR_rt_sigtimedwait_time64: u32 = 4421; +pub const __NR_futex_time64: u32 = 4422; +pub const __NR_sched_rr_get_interval_time64: u32 = 4423; +pub const __NR_pidfd_send_signal: u32 = 4424; +pub const __NR_io_uring_setup: u32 = 4425; +pub const __NR_io_uring_enter: u32 = 4426; +pub const __NR_io_uring_register: u32 = 4427; +pub const __NR_open_tree: u32 = 4428; +pub const __NR_move_mount: u32 = 4429; +pub const __NR_fsopen: u32 = 4430; +pub const __NR_fsconfig: u32 = 4431; +pub const __NR_fsmount: u32 = 4432; +pub const __NR_fspick: u32 = 4433; +pub const __NR_pidfd_open: u32 = 4434; +pub const __NR_clone3: u32 = 4435; +pub const __NR_close_range: u32 = 4436; +pub const __NR_openat2: u32 = 4437; +pub const __NR_pidfd_getfd: u32 = 4438; +pub const __NR_faccessat2: u32 = 4439; +pub const __NR_process_madvise: u32 = 4440; +pub const __NR_epoll_pwait2: u32 = 4441; +pub const __NR_mount_setattr: u32 = 4442; +pub const __NR_quotactl_fd: u32 = 4443; +pub const __NR_landlock_create_ruleset: u32 = 4444; +pub const __NR_landlock_add_rule: u32 = 4445; +pub const __NR_landlock_restrict_self: u32 = 4446; +pub const __NR_process_mrelease: u32 = 4448; +pub const __NR_futex_waitv: u32 = 4449; +pub const __NR_set_mempolicy_home_node: u32 = 4450; +pub const __NR_cachestat: u32 = 4451; +pub const __NR_fchmodat2: u32 = 4452; +pub const __NR_map_shadow_stack: u32 = 4453; +pub const __NR_futex_wake: u32 = 4454; +pub const __NR_futex_wait: u32 = 4455; +pub const __NR_futex_requeue: u32 = 4456; +pub const __NR_statmount: u32 = 4457; +pub const __NR_listmount: u32 = 4458; +pub const __NR_lsm_get_self_attr: u32 = 4459; +pub const __NR_lsm_set_self_attr: u32 = 4460; +pub const __NR_lsm_list_modules: u32 = 4461; +pub const __NR_mseal: u32 = 4462; +pub const __NR_setxattrat: u32 = 4463; +pub const __NR_getxattrat: u32 = 4464; +pub const __NR_listxattrat: u32 = 4465; +pub const __NR_removexattrat: u32 = 4466; +pub const __NR_open_tree_attr: u32 = 4467; +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 = 128; +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 = 128; +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 = 524416; +pub const TFD_CREATE_FLAGS: u32 = 524416; +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 POLLWRNORM: u32 = 4; +pub const TCSANOW: u32 = 21518; +pub const TCSADRAIN: u32 = 21519; +pub const TCSAFLUSH: u32 = 21520; +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/mips/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..8d0bcc8d1bba679c1b5b526d5483d86c4341c39d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/if_arp.rs @@ -0,0 +1,2799 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 __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/mips/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..b4254334fbb1daedddcfc56f804faf6b3d4df7c0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/if_ether.rs @@ -0,0 +1,178 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..0ea053f55fe53d627a505c1c267c783a02051942 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/if_packet.rs @@ -0,0 +1,319 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/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/mips/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/mips/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..371216ff2736e4510f8592dfa29e82f873117901 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/io_uring.rs @@ -0,0 +1,1448 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..5f9b56071a6d369b123c23a2c263e753fff5388f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/ioctl.rs @@ -0,0 +1,1496 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const FIONREAD: u32 = 18047; +pub const FIONBIO: u32 = 26238; +pub const FIOCLEX: u32 = 26113; +pub const FIONCLEX: u32 = 26114; +pub const FIOASYNC: u32 = 26237; +pub const FIOQSIZE: u32 = 26239; +pub const TCXONC: u32 = 21510; +pub const TCFLSH: u32 = 21511; +pub const TIOCSCTTY: u32 = 21632; +pub const TIOCSPGRP: u32 = 2147775606; +pub const TIOCOUTQ: u32 = 29810; +pub const TIOCSTI: u32 = 21618; +pub const TIOCSWINSZ: u32 = 2148037735; +pub const TIOCMGET: u32 = 29725; +pub const TIOCMBIS: u32 = 29723; +pub const TIOCMBIC: u32 = 29724; +pub const TIOCMSET: u32 = 29722; +pub const TIOCSSOFTCAR: u32 = 21634; +pub const TIOCLINUX: u32 = 21635; +pub const TIOCCONS: u32 = 2147775608; +pub const TIOCSSERIAL: u32 = 21637; +pub const TIOCPKT: u32 = 21616; +pub const TIOCNOTTY: u32 = 21617; +pub const TIOCSETD: u32 = 29697; +pub const TIOCSBRK: u32 = 21543; +pub const TIOCCBRK: u32 = 21544; +pub const TIOCSPTLCK: u32 = 2147767345; +pub const TIOCSIG: u32 = 2147767350; +pub const TIOCVHANGUP: u32 = 21559; +pub const TIOCSERCONFIG: u32 = 21640; +pub const TIOCSERGWILD: u32 = 21641; +pub const TIOCSERSWILD: u32 = 21642; +pub const TIOCSLCKTRMIOS: u32 = 21644; +pub const TIOCSERGSTRUCT: u32 = 21645; +pub const TIOCSERGETLSR: u32 = 21646; +pub const TIOCSERGETMULTI: u32 = 21647; +pub const TIOCSERSETMULTI: u32 = 21648; +pub const TIOCMIWAIT: u32 = 21649; +pub const TCGETS: u32 = 21517; +pub const TCGETA: u32 = 21505; +pub const TCSBRK: u32 = 21509; +pub const TCSBRKP: u32 = 21638; +pub const TCSETA: u32 = 21506; +pub const TCSETAF: u32 = 21508; +pub const TCSETAW: u32 = 21507; +pub const TIOCEXCL: u32 = 29709; +pub const TIOCNXCL: u32 = 29710; +pub const TIOCGDEV: u32 = 1074025522; +pub const TIOCGEXCL: u32 = 1074025536; +pub const TIOCGICOUNT: u32 = 21650; +pub const TIOCGLCKTRMIOS: u32 = 21643; +pub const TIOCGPGRP: u32 = 1074033783; +pub const TIOCGPKT: u32 = 1074025528; +pub const TIOCGPTLCK: u32 = 1074025529; +pub const TIOCGPTN: u32 = 1074025520; +pub const TIOCGPTPEER: u32 = 536892481; +pub const TIOCGSERIAL: u32 = 21636; +pub const TIOCGSID: u32 = 29718; +pub const TIOCGSOFTCAR: u32 = 21633; +pub const TIOCGWINSZ: u32 = 1074295912; +pub const TCGETS2: u32 = 1076909098; +pub const TCSETS: u32 = 21518; +pub const TCSETS2: u32 = 2150650923; +pub const TCSETSF: u32 = 21520; +pub const TCSETSF2: u32 = 2150650925; +pub const TCSETSW: u32 = 21519; +pub const TCSETSW2: u32 = 2150650924; +pub const TIOCGETD: u32 = 29696; +pub const TIOCGETP: u32 = 29704; +pub const TIOCGLTC: u32 = 29812; +pub const MTIOCGET: u32 = 1075604738; +pub const BLKSSZGET: u32 = 536875624; +pub const BLKPBSZGET: u32 = 536875643; +pub const BLKROSET: u32 = 536875613; +pub const BLKROGET: u32 = 536875614; +pub const BLKRRPART: u32 = 536875615; +pub const BLKGETSIZE: u32 = 536875616; +pub const BLKFLSBUF: u32 = 536875617; +pub const BLKRASET: u32 = 536875618; +pub const BLKRAGET: u32 = 536875619; +pub const BLKFRASET: u32 = 536875620; +pub const BLKFRAGET: u32 = 536875621; +pub const BLKSECTSET: u32 = 536875622; +pub const BLKSECTGET: u32 = 536875623; +pub const BLKPG: u32 = 536875625; +pub const BLKBSZGET: u32 = 1074008688; +pub const BLKBSZSET: u32 = 2147750513; +pub const BLKGETSIZE64: u32 = 1074008690; +pub const BLKTRACESETUP: u32 = 3225948787; +pub const BLKTRACESTART: u32 = 536875636; +pub const BLKTRACESTOP: u32 = 536875637; +pub const BLKTRACETEARDOWN: u32 = 536875638; +pub const BLKDISCARD: u32 = 536875639; +pub const BLKIOMIN: u32 = 536875640; +pub const BLKIOOPT: u32 = 536875641; +pub const BLKALIGNOFF: u32 = 536875642; +pub const BLKDISCARDZEROES: u32 = 536875644; +pub const BLKSECDISCARD: u32 = 536875645; +pub const BLKROTATIONAL: u32 = 536875646; +pub const BLKZEROOUT: u32 = 536875647; +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 = 1074833921; +pub const UFFDIO_WAKE: u32 = 1074833922; +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 = 536917761; +pub const NS_GET_PARENT: u32 = 536917762; +pub const NS_GET_NSTYPE: u32 = 536917763; +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 = 2147772028; +pub const FIOGETOWN: u32 = 1074030203; +pub const SIOCATMARK: u32 = 1074033415; +pub const SIOCGSTAMP: u32 = 35078; +pub const TIOCINQ: u32 = 18047; +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 = 536870913; +pub const FIGETBSZ: u32 = 536870914; +pub const FIFREEZE: u32 = 3221510263; +pub const FITHAW: u32 = 3221510264; +pub const FITRIM: u32 = 3222820985; +pub const FICLONE: u32 = 2147783689; +pub const FICLONERANGE: u32 = 2149618701; +pub const FIDEDUPERANGE: u32 = 3222836278; +pub const FS_IOC_GETFLAGS: u32 = 1074030081; +pub const FS_IOC_SETFLAGS: u32 = 2147771906; +pub const FS_IOC_GETVERSION: u32 = 1074034177; +pub const FS_IOC_SETVERSION: u32 = 2147776002; +pub const FS_IOC_FIEMAP: u32 = 3223348747; +pub const FS_IOC32_GETFLAGS: u32 = 1074030081; +pub const FS_IOC32_SETFLAGS: u32 = 2147771906; +pub const FS_IOC32_GETVERSION: u32 = 1074034177; +pub const FS_IOC32_SETVERSION: u32 = 2147776002; +pub const FS_IOC_FSGETXATTR: u32 = 1075599391; +pub const FS_IOC_FSSETXATTR: u32 = 2149341216; +pub const FS_IOC_GETFSLABEL: u32 = 1090556977; +pub const FS_IOC_SETFSLABEL: u32 = 2164298802; +pub const EXT4_IOC_GETVERSION: u32 = 1074030083; +pub const EXT4_IOC_SETVERSION: u32 = 2147771908; +pub const EXT4_IOC_GETVERSION_OLD: u32 = 1074034177; +pub const EXT4_IOC_SETVERSION_OLD: u32 = 2147776002; +pub const EXT4_IOC_GETRSVSZ: u32 = 1074030085; +pub const EXT4_IOC_SETRSVSZ: u32 = 2147771910; +pub const EXT4_IOC_GROUP_EXTEND: u32 = 2147771911; +pub const EXT4_IOC_MIGRATE: u32 = 536897033; +pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; +pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; +pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; +pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; +pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; +pub const EXT4_IOC_GETSTATE: u32 = 2147771945; +pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; +pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; +pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; +pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; +pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; +pub const EXT4_IOC32_GETRSVSZ: u32 = 1074030085; +pub const EXT4_IOC32_SETRSVSZ: u32 = 2147771910; +pub const EXT4_IOC32_GROUP_EXTEND: u32 = 2147771911; +pub const EXT4_IOC32_GETVERSION_OLD: u32 = 1074034177; +pub const EXT4_IOC32_SETVERSION_OLD: u32 = 2147776002; +pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 1074288191; +pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; +pub const LIRC_SET_SEND_CARRIER: u32 = 2147772691; +pub const AUTOFS_IOC_PROTOSUBVER: u32 = 1074041703; +pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; +pub const FSI_SCOM_WRITE: u32 = 3223352066; +pub const ATM_GETCIRANGE: u32 = 2148295050; +pub const DMA_BUF_SET_NAME_B: u32 = 2148033025; +pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; +pub const TUNSETPERSIST: u32 = 2147767499; +pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; +pub const CEC_RECEIVE: u32 = 3224920326; +pub const MGSL_IOCGPARAMS: u32 = 1075866881; +pub const ENI_SETMULT: u32 = 2148295015; +pub const RIO_GET_EVENT_MASK: u32 = 1074031886; +pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; +pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; +pub const CHIOMOVE: u32 = 2148819713; +pub const SONYPI_IOCGBATFLAGS: u32 = 1073837575; +pub const BTRFS_IOC_SYNC: u32 = 536908808; +pub const VIDIOC_TRY_FMT: u32 = 3234616896; +pub const LIRC_SET_REC_MODE: u32 = 2147772690; +pub const VIDIOC_DQEVENT: u32 = 1082152537; +pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 536917250; +pub const UVCIOC_CTRL_MAP: u32 = 3227022624; +pub const VHOST_SET_BACKEND_FEATURES: u32 = 2148052773; +pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 2148052832; +pub const UI_SET_KEYBIT: u32 = 2147767653; +pub const LIRC_SET_REC_TIMEOUT: u32 = 2147772696; +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 = 2148052754; +pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 2148035849; +pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3222820425; +pub const LIRC_GET_REC_MODE: u32 = 1074030850; +pub const PPGETTIME: u32 = 1074294933; +pub const BTRFS_IOC_RM_DEV: u32 = 2415957003; +pub const ATM_SETBACKEND: u32 = 2147639794; +pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; +pub const FBIO_WAITEVENT: u32 = 536888968; +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 = 536871513; +pub const NVME_IOCTL_SUBMIT_IO: u32 = 2150649410; +pub const NILFS_IOCTL_SYNC: u32 = 1074294410; +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 = 1074045957; +pub const NS_GETPSTAT: u32 = 3222036833; +pub const UI_SET_PROPBIT: u32 = 2147767662; +pub const TUNSETFILTEREBPF: u32 = 1074025697; +pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; +pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; +pub const WDIOC_SETOPTIONS: u32 = 1074026244; +pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; +pub const MGSL_IOCGTXIDLE: u32 = 536898819; +pub const ATM_ADDLECSADDR: u32 = 2148295054; +pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; +pub const FDGETPRM: u32 = 1075577348; +pub const HIDIOCAPPLICATION: u32 = 536889346; +pub const ENI_MEMDUMP: u32 = 2148295008; +pub const PTP_SYS_OFFSET2: u32 = 2202025230; +pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; +pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; +pub const PTP_PIN_GETFUNC: u32 = 3227532550; +pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; +pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; +pub const RTC_EPOCH_READ: u32 = 1074032653; +pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; +pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; +pub const ATM_GETLECSADDR: u32 = 2148295056; +pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; +pub const SONET_GETDIAG: u32 = 1074028820; +pub const ATMMPC_DATA: u32 = 536895961; +pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; +pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; +pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; +pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; +pub const UI_DEV_SETUP: u32 = 2153534723; +pub const ISST_IF_IO_CMD: u32 = 2147810818; +pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 1075342599; +pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; +pub const BLKGETNRZONES: u32 = 1074008709; +pub const VIDIOC_G_MODULATOR: u32 = 3225703990; +pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; +pub const USBDEVFS_SETINTERFACE: u32 = 1074287876; +pub const PPPIOCGCHAN: u32 = 1074033719; +pub const EVIOCGVERSION: u32 = 1074021633; +pub const VHOST_NET_SET_BACKEND: u32 = 2148052784; +pub const USBDEVFS_REAPURBNDELAY: u32 = 2147767565; +pub const RNDZAPENTCNT: u32 = 536891908; +pub const VIDIOC_G_PARM: u32 = 3234616853; +pub const TUNGETDEVNETNS: u32 = 536892643; +pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 2147772701; +pub const VHOST_SET_VRING_ERR: u32 = 2148052770; +pub const VDUSE_VQ_SETUP: u32 = 2149613844; +pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221525348; +pub const VIDIOC_S_FREQUENCY: u32 = 2150389305; +pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 2149119252; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; +pub const WDIOC_GETPRETIMEOUT: u32 = 1074026249; +pub const USBDEVFS_DROP_PRIVILEGES: u32 = 2147767582; +pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 2415957015; +pub const VHOST_VSOCK_SET_RUNNING: u32 = 2147790689; +pub const STP_SET_OPTIONS: u32 = 2148017410; +pub const FBIO_RADEON_GET_MIRROR: u32 = 1074020355; +pub const IVTVFB_IOC_DMA_FRAME: u32 = 2148292288; +pub const IPMICTL_SEND_COMMAND: u32 = 1075079437; +pub const VIDIOC_G_ENC_INDEX: u32 = 1209554508; +pub const DFL_FPGA_FME_PORT_PR: u32 = 536917632; +pub const CHIOSVOLTAG: u32 = 2150654738; +pub const ATM_SETESIF: u32 = 2148295053; +pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 2149065476; +pub const PMU_IOC_GET_MODEL: u32 = 1074020867; +pub const JSIOCGBTNMAP: u32 = 1140877876; +pub const USBDEVFS_HUB_PORTINFO: u32 = 1082152211; +pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; +pub const FDCLRPRM: u32 = 536871489; +pub const BTRFS_IOC_SCRUB: u32 = 3288372251; +pub const USBDEVFS_DISCONNECT: u32 = 536892694; +pub const TUNSETVNETBE: u32 = 2147767518; +pub const ATMTCP_REMOVE: u32 = 536895887; +pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; +pub const PPPIOCGNPMODE: u32 = 3221779532; +pub const FDGETDRVPRM: u32 = 1079509521; +pub const TUNSETVNETLE: u32 = 2147767516; +pub const PHN_SETREG: u32 = 2148036614; +pub const PPPIOCDETACH: u32 = 2147775548; +pub const MMTIMER_GETRES: u32 = 1074031873; +pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; +pub const PPGETFLAGS: u32 = 1074032794; +pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; +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 = 1074310688; +pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; +pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; +pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; +pub const MGSL_IOCGXCTRL: u32 = 536898838; +pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; +pub const SONYPI_IOCGBLUE: u32 = 1073837576; +pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; +pub const I2OHTML: u32 = 3223087369; +pub const VFIO_GET_API_VERSION: u32 = 536886116; +pub const IDT77105_GETSTATZ: u32 = 2148294963; +pub const I2OPARMSET: u32 = 3222825219; +pub const TEE_IOC_CANCEL: u32 = 1074308100; +pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; +pub const DFL_FPGA_PORT_RESET: u32 = 536917568; +pub const PPPIOCGASYNCMAP: u32 = 1074033752; +pub const EVIOCGKEYCODE_V2: u32 = 1076380932; +pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; +pub const HIDIOCSUSAGE: u32 = 2149074956; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065488; +pub const PTP_EXTTS_REQUEST: u32 = 2148547842; +pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; +pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; +pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 2162732865; +pub const JSIOCGAXES: u32 = 1073834513; +pub const HIDIOCSFLAG: u32 = 2147764239; +pub const PTP_PEROUT_REQUEST2: u32 = 2151169292; +pub const PPWDATA: u32 = 2147577990; +pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; +pub const FDGETMAXERRS: u32 = 1075053070; +pub const TUNSETQUEUE: u32 = 2147767513; +pub const PTP_ENABLE_PPS: u32 = 2147761412; +pub const SIOCSIFATMTCP: u32 = 536895872; +pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; +pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; +pub const NBD_SET_BLKSIZE: u32 = 536914689; +pub const NBD_SET_TIMEOUT: u32 = 536914697; +pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 2147790658; +pub const RIO_UNMAP_INBOUND: u32 = 2148035858; +pub const ATM_QUERYLOOP: u32 = 2148294996; +pub const DFL_FPGA_GET_API_VERSION: u32 = 536917504; +pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 536892707; +pub const FBIO_CURSOR: u32 = 3225961992; +pub const RNDCLEARPOOL: u32 = 536891910; +pub const VIDIOC_QUERYSTD: u32 = 1074288191; +pub const DMA_BUF_IOCTL_SYNC: u32 = 2148033024; +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 = 1076647434; +pub const PTP_ENABLE_PPS2: u32 = 2147761421; +pub const PCITEST_CLEAR_IRQ: u32 = 536891408; +pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 1074030864; +pub const BTRFS_IOC_DEVICES_READY: u32 = 1342215207; +pub const JSIOCGAXMAP: u32 = 1077963314; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 1074799372; +pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 2148541207; +pub const RTC_WIE_OFF: u32 = 536899600; +pub const PPGETMODE: u32 = 1074032792; +pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; +pub const PTP_SYS_OFFSET: u32 = 2202025221; +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 = 536908806; +pub const INOTIFY_IOC_SETNEXTWD: u32 = 2147764480; +pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 1074279182; +pub const TUNDETACHFILTER: u32 = 2148029654; +pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; +pub const IOC_PR_CLEAR: u32 = 2148561101; +pub const SCIF_READFROM: u32 = 3223876362; +pub const PPPIOCGDEBUG: u32 = 1074033729; +pub const BLKGETZONESZ: u32 = 1074008708; +pub const HIDIOCGUSAGES: u32 = 3491514387; +pub const SONYPI_IOCGTEMP: u32 = 1073837580; +pub const UI_SET_MSCBIT: u32 = 2147767656; +pub const APM_IOC_SUSPEND: u32 = 536887554; +pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; +pub const RTC_PLL_GET: u32 = 1075605521; +pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; +pub const USBDEVFS_DISCSIGNAL: u32 = 1074287886; +pub const LIRC_GET_MIN_TIMEOUT: u32 = 1074030856; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 1100502850; +pub const DM_TARGET_MSG: u32 = 3241737486; +pub const SONYPI_IOCGBAT1REM: u32 = 1073903107; +pub const EVIOCSFF: u32 = 2150385024; +pub const TUNSETGROUP: u32 = 2147767502; +pub const EVIOCGKEYCODE: u32 = 1074283780; +pub const KCOV_REMOTE_ENABLE: u32 = 2149081958; +pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; +pub const FDEJECT: u32 = 536871514; +pub const TUNSETOFFLOAD: u32 = 2147767504; +pub const PPPIOCCONNECT: u32 = 2147775546; +pub const ATM_ADDADDR: u32 = 2148295048; +pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; +pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; +pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; +pub const CCISS_PASSTHRU: u32 = 3226747403; +pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; +pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; +pub const ATMARPD_CTRL: u32 = 536895969; +pub const UI_ABS_SETUP: u32 = 2149340420; +pub const UI_DEV_DESTROY: u32 = 536892674; +pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; +pub const RTC_AIE_ON: u32 = 536899585; +pub const AUTOFS_IOC_EXPIRE: u32 = 1091343205; +pub const PPPIOCSDEBUG: u32 = 2147775552; +pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; +pub const PPPIOCSMRU: u32 = 2147775570; +pub const CCISS_DEREGDISK: u32 = 536887820; +pub const UI_DEV_CREATE: u32 = 536892673; +pub const FUSE_DEV_IOC_CLONE: u32 = 1074062592; +pub const BTRFS_IOC_START_SYNC: u32 = 1074304024; +pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 2148036225; +pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 1074279187; +pub const DM_TABLE_CLEAR: u32 = 3241737482; +pub const CCISS_GETINTINFO: u32 = 1074283010; +pub const PPPIOCSASYNCMAP: u32 = 2147775575; +pub const I2OEVTGET: u32 = 1080584459; +pub const NVME_IOCTL_RESET: u32 = 536890948; +pub const PPYIELD: u32 = 536899725; +pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; +pub const TUNSETCARRIER: u32 = 2147767522; +pub const DM_DEV_WAIT: u32 = 3241737480; +pub const RTC_WIE_ON: u32 = 536899599; +pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; +pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; +pub const MGSL_IOCSPARAMS: u32 = 2149608704; +pub const RTC_SET_TIME: u32 = 2149871626; +pub const VHOST_RESET_OWNER: u32 = 536915714; +pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; +pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; +pub const UDF_GETEABLOCK: u32 = 1074031681; +pub const VFIO_IOMMU_MAP_DMA: u32 = 536886129; +pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 2149602906; +pub const HIDIOCGFLAG: u32 = 1074022414; +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 = 2148577793; +pub const CCISS_GETFIRMVER: u32 = 1074020872; +pub const ND_IOCTL_ARS_START: u32 = 3223342594; +pub const PPPIOCSMRRU: u32 = 2147775547; +pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; +pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 1074050818; +pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; +pub const PPSETTIME: u32 = 2148036758; +pub const RTC_ALM_READ: u32 = 1076129800; +pub const VDUSE_SET_API_VERSION: u32 = 2148040961; +pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; +pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; +pub const USBDEVFS_CONNECT: u32 = 536892695; +pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; +pub const ATMARP_MKIP: u32 = 536895970; +pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; +pub const CCISS_GETHEARTBEAT: u32 = 1074020870; +pub const ATM_RSTADDR: u32 = 2148295047; +pub const NBD_SET_SIZE: u32 = 536914690; +pub const UDF_GETVOLIDENT: u32 = 1074031682; +pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; +pub const MGSL_IOCSTXIDLE: u32 = 536898818; +pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; +pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; +pub const PPRSTATUS: u32 = 1073836161; +pub const MGSL_IOCTXENABLE: u32 = 536898820; +pub const UDF_GETEASIZE: u32 = 1074031680; +pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; +pub const VHOST_SET_OWNER: u32 = 536915713; +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 = 2148295051; +pub const HPET_IE_ON: u32 = 536897537; +pub const PERF_EVENT_IOC_ID: u32 = 1074013191; +pub const TUNSETSNDBUF: u32 = 2147767508; +pub const PTP_PIN_SETFUNC: u32 = 2153790727; +pub const PPPIOCDISCONN: u32 = 536900665; +pub const VIDIOC_QUERYCTRL: u32 = 3225703972; +pub const PPEXCL: u32 = 536899727; +pub const PCITEST_MSI: u32 = 2147766275; +pub const FDWERRORCLR: u32 = 536871510; +pub const AUTOFS_IOC_FAIL: u32 = 536908641; +pub const USBDEVFS_IOCTL: u32 = 3222033682; +pub const VIDIOC_S_STD: u32 = 2148029976; +pub const F2FS_IOC_RESIZE_FS: u32 = 2148070672; +pub const SONET_SETDIAG: u32 = 3221512466; +pub const BTRFS_IOC_DEFRAG: u32 = 2415956994; +pub const CCISS_GETDRIVVER: u32 = 1074020873; +pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 1074293015; +pub const HPET_IRQFREQ: u32 = 2147772422; +pub const ATM_GETESI: u32 = 2148295045; +pub const CCISS_GETLUNINFO: u32 = 1074545169; +pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; +pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; +pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; +pub const UDMABUF_CREATE_LIST: u32 = 2148037955; +pub const VHOST_SET_LOG_BASE: u32 = 2148052740; +pub const ZATM_GETPOOL: u32 = 2148295009; +pub const BR2684_SETFILT: u32 = 2149343632; +pub const RNDGETPOOL: u32 = 1074287106; +pub const PPS_GETPARAMS: u32 = 1074032801; +pub const IOC_PR_RESERVE: u32 = 2148561097; +pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; +pub const RIO_CM_CHAN_CLOSE: u32 = 2147640068; +pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; +pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; +pub const PMU_IOC_GET_BACKLIGHT: u32 = 1074020865; +pub const USBDEVFS_GET_CAPABILITIES: u32 = 1074025754; +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 = 536887822; +pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; +pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; +pub const CAPI_GET_VERSION: u32 = 3222291207; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; +pub const VFIO_EEH_PE_OP: u32 = 536886137; +pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; +pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 1074328850; +pub const NBD_SET_SIZE_BLOCKS: u32 = 536914695; +pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 536916224; +pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; +pub const VIDIOC_S_AUDOUT: u32 = 2150913586; +pub const VIDIOC_S_FMT: u32 = 3234616837; +pub const PPPIOCATTACH: u32 = 2147775549; +pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052772; +pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; +pub const CCISS_BIG_PASSTHRU: u32 = 3227009554; +pub const IPMICTL_SET_MY_LUN_CMD: u32 = 1074030867; +pub const PCITEST_LEGACY_IRQ: u32 = 536891394; +pub const USBDEVFS_SUBMITURB: u32 = 1076647178; +pub const AUTOFS_IOC_READY: u32 = 536908640; +pub const BTRFS_IOC_SEND: u32 = 2152240166; +pub const VIDIOC_G_EXT_CTRLS: u32 = 3222820423; +pub const JSIOCSBTNMAP: u32 = 2214619699; +pub const PPPIOCSFLAGS: u32 = 2147775577; +pub const NVRAM_INIT: u32 = 536899648; +pub const RFKILL_IOCTL_NOINPUT: u32 = 536891905; +pub const BTRFS_IOC_BALANCE: u32 = 2415957004; +pub const FS_IOC_GETFSMAP: u32 = 3233830971; +pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; +pub const STP_POLICY_ID_GET: u32 = 1074799873; +pub const PPSETFLAGS: u32 = 2147774619; +pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; +pub const ATMTCP_CREATE: u32 = 536895886; +pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; +pub const PPPIOCGXASYNCMAP: u32 = 1075868752; +pub const VHOST_SET_VRING_CALL: u32 = 2148052769; +pub const LIRC_GET_FEATURES: u32 = 1074030848; +pub const GSMIOC_DISABLE_NET: u32 = 536889091; +pub const AUTOFS_IOC_CATATONIC: u32 = 536908642; +pub const NBD_DO_IT: u32 = 536914691; +pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 2147772703; +pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030873; +pub const EVIOCSCLOCKID: u32 = 2147763616; +pub const USBDEVFS_FREE_STREAMS: u32 = 1074287901; +pub const FSI_SCOM_RESET: u32 = 2147775235; +pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 1074020870; +pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; +pub const FDDEFPRM: u32 = 2149319235; +pub const TEE_IOC_INVOKE: u32 = 1074832387; +pub const USBDEVFS_BULK: u32 = 3222295810; +pub const SCIF_VWRITETO: u32 = 3223876365; +pub const SONYPI_IOCSBRT: u32 = 2147579392; +pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; +pub const RTC_PIE_ON: u32 = 536899589; +pub const BTRFS_IOC_SCAN_DEV: u32 = 2415956996; +pub const PPPIOCXFERUNIT: u32 = 536900686; +pub const WDIOC_GETTIMEOUT: u32 = 1074026247; +pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; +pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 2148054598; +pub const FBIO_WAITFORVSYNC: u32 = 2147763744; +pub const RTC_PIE_OFF: u32 = 536899590; +pub const EVIOCGRAB: u32 = 2147763600; +pub const PMU_IOC_SET_BACKLIGHT: u32 = 2147762690; +pub const EVIOCGREP: u32 = 1074283779; +pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 2147755019; +pub const UFFDIO_CONTINUE: u32 = 3223366151; +pub const VDUSE_GET_API_VERSION: u32 = 1074299136; +pub const RTC_RD_TIME: u32 = 1076129801; +pub const FDMSGOFF: u32 = 536871494; +pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; +pub const CAPI_GET_ERRCODE: u32 = 1073890081; +pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; +pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; +pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2147774202; +pub const RIO_DEV_ADD: u32 = 2149608727; +pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; +pub const FBIO_RADEON_SET_MIRROR: u32 = 2147762180; +pub const PCITEST_GET_IRQTYPE: u32 = 536891401; +pub const JSIOCGVERSION: u32 = 1074031105; +pub const SONYPI_IOCSBLUE: u32 = 2147579401; +pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 536883986; +pub const F2FS_IOC_GET_FEATURES: u32 = 1074066700; +pub const SCIF_REG: u32 = 3223876360; +pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 2155376264; +pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 2147754757; +pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; +pub const VHOST_SET_VRING_NUM: u32 = 2148052752; +pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; +pub const RIO_FREE_DMA: u32 = 2148035860; +pub const MGSL_IOCRXENABLE: u32 = 536898821; +pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; +pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; +pub const PPPIOCGL2TPSTATS: u32 = 1078490166; +pub const PERF_EVENT_IOC_PERIOD: u32 = 2148017156; +pub const PTP_PIN_SETFUNC2: u32 = 2153790736; +pub const CHIOEXCHANGE: u32 = 2149344002; +pub const NILFS_IOCTL_GET_SUINFO: u32 = 1075342980; +pub const CEC_DQEVENT: u32 = 3226493191; +pub const UI_SET_SWBIT: u32 = 2147767661; +pub const VHOST_VDPA_SET_CONFIG: u32 = 2148052852; +pub const TUNSETIFF: u32 = 2147767498; +pub const CHIOPOSITION: u32 = 2148295427; +pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; +pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; +pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; +pub const CAPI_CLR_FLAGS: u32 = 1074021157; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; +pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074032376; +pub const EVIOCSMASK: u32 = 2148550035; +pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; +pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; +pub const CEC_S_MODE: u32 = 2147770633; +pub const MGSL_IOCSIF: u32 = 536898826; +pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; +pub const PPSETMODE: u32 = 2147774592; +pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; +pub const VIDIOC_PREPARE_BUF: u32 = 3225704029; +pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 1078223114; +pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 2166386922; +pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; +pub const UDMABUF_CREATE: u32 = 2149086530; +pub const SONET_CLRDIAG: u32 = 3221512467; +pub const PHN_SET_REG: u32 = 2147774465; +pub const RNDADDTOENTCNT: u32 = 2147766785; +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 = 536899586; +pub const VFIO_GROUP_SET_CONTAINER: u32 = 536886120; +pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 2148016918; +pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 536886136; +pub const VFIO_IOMMU_GET_INFO: u32 = 536886128; +pub const DM_DEV_SUSPEND: u32 = 3241737478; +pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; +pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; +pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; +pub const ATMMPC_CTRL: u32 = 536895960; +pub const PPPIOCSXASYNCMAP: u32 = 2149610575; +pub const CHIOGSTATUS: u32 = 2148033288; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; +pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; +pub const CAPI_SET_FLAGS: u32 = 1074021156; +pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; +pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; +pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2147774200; +pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 536917570; +pub const VHOST_GET_FEATURES: u32 = 1074310912; +pub const LIRC_GET_REC_RESOLUTION: u32 = 1074030855; +pub const PACKET_CTRL_CMD: u32 = 3222820865; +pub const LIRC_SET_TRANSMITTER_MASK: u32 = 2147772695; +pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; +pub const JSIOCGCORR: u32 = 1076128290; +pub const VIDIOC_G_FMT: u32 = 3234616836; +pub const RTC_EPOCH_SET: u32 = 2147774478; +pub const CAPI_GET_PROFILE: u32 = 3225436937; +pub const ATM_GETLOOP: u32 = 2148294994; +pub const SCIF_LISTEN: u32 = 2147775234; +pub const NBD_CLEAR_QUE: u32 = 536914693; +pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; +pub const LIRC_GET_LENGTH: u32 = 1074030863; +pub const I8K_SET_FAN: u32 = 3221514631; +pub const FDSETMAXERRS: u32 = 2148794956; +pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 1077958144; +pub const SNAPSHOT_SET_SWAP_AREA: u32 = 2148283149; +pub const LIRC_GET_REC_TIMEOUT: u32 = 1074030884; +pub const EVIOCRMFF: u32 = 2147763585; +pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; +pub const PPRDATA: u32 = 1073836165; +pub const RIO_MPORT_GET_PROPERTIES: u32 = 1076915460; +pub const TUNSETVNETHDRSZ: u32 = 2147767512; +pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; +pub const GSMIOC_GETCONF: u32 = 1078740736; +pub const LIRC_GET_SEND_MODE: u32 = 1074030849; +pub const PPPIOCSACTIVE: u32 = 2148037702; +pub const SIOCGSTAMPNS_NEW: u32 = 1074825479; +pub const IPMICTL_RECEIVE_MSG: u32 = 3222825228; +pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 2147772693; +pub const UI_END_FF_ERASE: u32 = 2148292043; +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 = 536914698; +pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 536886124; +pub const REISERFS_IOC_UNPACK: u32 = 2147798273; +pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 2147754759; +pub const RIO_SET_EVENT_MASK: u32 = 2147773709; +pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 1074279188; +pub const VDUSE_VQ_INJECT_IRQ: u32 = 2147778839; +pub const I2OPASSTHRU: u32 = 1074293004; +pub const IOC_OPAL_SET_PW: u32 = 2183164128; +pub const FSI_SCOM_READ: u32 = 3223352065; +pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; +pub const VIDIOC_QBUF: u32 = 3225703951; +pub const VIDIOC_S_TUNER: u32 = 2153010718; +pub const TUNGETVNETHDRSZ: u32 = 1074025687; +pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; +pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; +pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; +pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; +pub const TEE_IOC_VERSION: u32 = 1074570240; +pub const VIDIOC_LOG_STATUS: u32 = 536892998; +pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1075603733; +pub const VHOST_SET_LOG_FD: u32 = 2147790599; +pub const SCIF_SEND: u32 = 3222827782; +pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; +pub const NS_ADJBUFLEV: u32 = 536895843; +pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; +pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; +pub const PHN_GETREG: u32 = 3221778437; +pub const I2OSWDL: u32 = 3223087365; +pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 536892931; +pub const JSIOCGBUTTONS: u32 = 1073834514; +pub const VFIO_IOMMU_ENABLE: u32 = 536886131; +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 = 2147790711; +pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; +pub const VIDIOC_S_CROP: u32 = 2148816444; +pub const WDIOC_GETTEMP: u32 = 1074026243; +pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 2165862628; +pub const UI_SET_LEDBIT: u32 = 2147767657; +pub const NBD_SET_SOCK: u32 = 536914688; +pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 2415957055; +pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; +pub const I2OSWUL: u32 = 3223087366; +pub const IOCTL_MEI_NOTIFY_GET: u32 = 1074022403; +pub const FDFMTTRK: u32 = 2148270664; +pub const MMTIMER_GETBITS: u32 = 536898820; +pub const VIDIOC_ENUMSTD: u32 = 3225966105; +pub const VHOST_GET_VRING_BASE: u32 = 3221794578; +pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; +pub const ATMARP_SETENTRY: u32 = 536895971; +pub const CCISS_REVALIDVOLS: u32 = 536887818; +pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; +pub const RTC_VL_READ: u32 = 1074032659; +pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; +pub const RIO_DEV_DEL: u32 = 2149608728; +pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; +pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; +pub const SONYPI_IOCSFAN: u32 = 2147579403; +pub const SPIOCSTYPE: u32 = 2147774721; +pub const IPMICTL_REGISTER_FOR_CMD: u32 = 1073899790; +pub const I8K_GET_FAN: u32 = 3221514630; +pub const TUNGETVNETBE: u32 = 1074025695; +pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; +pub const UI_END_FF_UPLOAD: u32 = 2153797065; +pub const TOSH_SMM: u32 = 3222828176; +pub const SONYPI_IOCGBAT2REM: u32 = 1073903109; +pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 1074328849; +pub const PPPIOCSNPMODE: u32 = 2148037707; +pub const USBDEVFS_CONTROL: u32 = 3222295808; +pub const HIDIOCGUSAGE: u32 = 3222816779; +pub const TUNSETTXFILTER: u32 = 2147767505; +pub const TUNGETVNETLE: u32 = 1074025693; +pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; +pub const MGSL_IOCGXSYNC: u32 = 536898836; +pub const HIDIOCGFIELDINFO: u32 = 3224913930; +pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; +pub const I2OVALIDATE: u32 = 1074030856; +pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; +pub const NILFS_IOCTL_GET_CPINFO: u32 = 1075342978; +pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; +pub const VFAT_IOCTL_READDIR_SHORT: u32 = 1108898306; +pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; +pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 1074328851; +pub const FDGETDRVSTAT: u32 = 1077150226; +pub const SYNC_IOC_MERGE: u32 = 3224387075; +pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; +pub const PPPIOCBRIDGECHAN: u32 = 2147775541; +pub const LIRC_SET_SEND_MODE: u32 = 2147772689; +pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 2148560139; +pub const ATM_GETTYPE: u32 = 2148295044; +pub const PHN_GETREGS: u32 = 3223875591; +pub const FDSETEMSGTRESH: u32 = 536871498; +pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; +pub const MGSL_IOCWAITEVENT: u32 = 3221515528; +pub const CAPI_INSTALLED: u32 = 1073890082; +pub const EVIOCGMASK: u32 = 1074808210; +pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; +pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; +pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; +pub const GSMIOC_GETFIRST: u32 = 1074022148; +pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; +pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; +pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; +pub const CAPI_GET_SERIAL: u32 = 3221504776; +pub const FDSETDRVPRM: u32 = 2153251472; +pub const IOC_OPAL_SAVE: u32 = 2165862620; +pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; +pub const TUNSETIFINDEX: u32 = 2147767514; +pub const CCISS_SETINTINFO: u32 = 2148024835; +pub const RTC_VL_CLR: u32 = 536899604; +pub const VIDIOC_REQBUFS: u32 = 3222558216; +pub const USBDEVFS_REAPURBNDELAY32: u32 = 2147767565; +pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; +pub const USBDEVFS_SETCONFIGURATION: u32 = 1074025733; +pub const CCISS_GETNODENAME: u32 = 1074807300; +pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; +pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; +pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 536886129; +pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 2150114066; +pub const LPSETTIMEOUT_NEW: u32 = 2148533775; +pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; +pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; +pub const FDRAWCMD: u32 = 536871512; +pub const SCIF_UNREG: u32 = 3222303497; +pub const PPPIOCGIDLE64: u32 = 1074820159; +pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; +pub const VIDIOC_CROPCAP: u32 = 3224131130; +pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; +pub const PHN_SET_REGS: u32 = 2147774467; +pub const ATMLEC_DATA: u32 = 536895953; +pub const PPPOEIOCDFWD: u32 = 536916225; +pub const VIDIOC_S_SELECTION: u32 = 3225441887; +pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; +pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; +pub const VIDIOC_S_CTRL: u32 = 3221771804; +pub const ZATM_SETPOOL: u32 = 2148295011; +pub const MTIOCPOS: u32 = 1074031875; +pub const PMU_IOC_SLEEP: u32 = 536887808; +pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; +pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; +pub const NILFS_IOCTL_GET_SUSTAT: u32 = 1076915845; +pub const VIDIOC_QUERYCAP: u32 = 1080579584; +pub const HPET_INFO: u32 = 1074554883; +pub const VIDIOC_AM437X_CCDC_CFG: u32 = 2147768001; +pub const DM_LIST_DEVICES: u32 = 3241737474; +pub const TUNSETOWNER: u32 = 2147767500; +pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; +pub const RNDADDENTROPY: u32 = 2148028931; +pub const USBDEVFS_RESET: u32 = 536892692; +pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 2415957006; +pub const USBDEVFS_FORBID_SUSPEND: u32 = 536892705; +pub const FDGETDRVTYP: u32 = 1074790927; +pub const PPWCONTROL: u32 = 2147577988; +pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; +pub const KCOV_DISABLE: u32 = 536896357; +pub const IOC_OPAL_ACTIVATE_LSP: u32 = 2165862623; +pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 1074835320; +pub const PPPIOCSPASS: u32 = 2148037703; +pub const RIO_CM_CHAN_CONNECT: u32 = 2148033288; +pub const I2OSWDEL: u32 = 3223087367; +pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 1074554387; +pub const IOC_OPAL_MBR_DONE: u32 = 2165338345; +pub const PPPIOCSMAXCID: u32 = 2147775569; +pub const PPSETPHASE: u32 = 2147774612; +pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 2148052853; +pub const USBDEVFS_GET_SPEED: u32 = 536892703; +pub const SONET_GETFRAMING: u32 = 1074028822; +pub const VIDIOC_QUERYBUF: u32 = 3225703945; +pub const VIDIOC_S_EDID: u32 = 3223606825; +pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 2149094441; +pub const PPS_GETCAP: u32 = 1074032803; +pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 536883983; +pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 2147772697; +pub const SCIF_GET_NODEIDS: u32 = 3222827790; +pub const NBD_DISCONNECT: u32 = 536914696; +pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; +pub const VFIO_IOMMU_DISABLE: u32 = 536886132; +pub const SNAPSHOT_CREATE_IMAGE: u32 = 2147758865; +pub const SNAPSHOT_POWER_OFF: u32 = 536883984; +pub const APM_IOC_STANDBY: u32 = 536887553; +pub const PPPIOCGUNIT: u32 = 1074033750; +pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 2147783526; +pub const SCIF_BIND: u32 = 3221779201; +pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 536893280; +pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 2148560512; +pub const IOC_OPAL_LOCK_UNLOCK: u32 = 2165862621; +pub const F2FS_IOC_SET_PIN_FILE: u32 = 2147808525; +pub const PPPIOCGRASYNCMAP: u32 = 1074033749; +pub const MMTIMER_MMAPAVAIL: u32 = 536898822; +pub const I2OPASSTHRU32: u32 = 1074293004; +pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 2147792513; +pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 1082414691; +pub const UI_SET_SNDBIT: u32 = 2147767658; +pub const VIDIOC_G_AUDOUT: u32 = 1077171761; +pub const RTC_PLL_SET: u32 = 2149347346; +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 = 2147790660; +pub const VHOST_SET_VRING_ADDR: u32 = 2150149905; +pub const VDUSE_CREATE_DEV: u32 = 2169536770; +pub const FDFLUSH: u32 = 536871499; +pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; +pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 2148054660; +pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; +pub const SCIF_CONNECT: u32 = 3221779203; +pub const BLKREPORTZONE: u32 = 3222278786; +pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; +pub const ATM_ADDPARTY: u32 = 2148033012; +pub const FDSETPRM: u32 = 2149319234; +pub const ATM_GETSTATZ: u32 = 2148294993; +pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; +pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 1106809916; +pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 2149602907; +pub const SEV_ISSUE_CMD: u32 = 3222295296; +pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; +pub const PCITEST_COPY: u32 = 2147766278; +pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; +pub const CHIOGPICKER: u32 = 1074029316; +pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; +pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; +pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2147755014; +pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; +pub const CHIOGVPARAMS: u32 = 1081107219; +pub const PTP_PEROUT_REQUEST: u32 = 2151169283; +pub const FSI_SCOM_CHECK: u32 = 1074033408; +pub const RTC_IRQP_READ: u32 = 1074032651; +pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 1075342597; +pub const HIDIOCGRDESCSIZE: u32 = 1074022401; +pub const UI_GET_VERSION: u32 = 1074025773; +pub const NILFS_IOCTL_GET_CPSTAT: u32 = 1075342979; +pub const CCISS_GETBUSTYPES: u32 = 1074020871; +pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 536886135; +pub const VIDIOC_EXPBUF: u32 = 3225441808; +pub const UI_SET_RELBIT: u32 = 2147767654; +pub const VFIO_SET_IOMMU: u32 = 536886118; +pub const VIDIOC_S_MODULATOR: u32 = 2151962167; +pub const TUNGETFILTER: u32 = 1074287835; +pub const CCISS_SETNODENAME: u32 = 2148549125; +pub const FBIO_GETCONTROL2: u32 = 1074022025; +pub const TUNSETDEBUG: u32 = 2147767497; +pub const DM_DEV_REMOVE: u32 = 3241737476; +pub const HIDIOCSUSAGES: u32 = 2417772564; +pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; +pub const FBIOGET_VBLANK: u32 = 1075856914; +pub const ATM_GETSTAT: u32 = 2148294992; +pub const VIDIOC_G_JPEGCOMP: u32 = 1082938941; +pub const TUNATTACHFILTER: u32 = 2148029653; +pub const UI_SET_ABSBIT: u32 = 2147767655; +pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; +pub const USBDEVFS_REAPURB32: u32 = 2147767564; +pub const BTRFS_IOC_TRANS_END: u32 = 536908807; +pub const CAPI_REGISTER: u32 = 2148287233; +pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; +pub const USBDEVFS_DISCARDURB: u32 = 536892683; +pub const HE_GET_REG: u32 = 2148295008; +pub const ATM_SETLOOP: u32 = 2148294995; +pub const ATMSIGD_CTRL: u32 = 536895984; +pub const CIOC_KERNEL_VERSION: u32 = 3221512970; +pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; +pub const SNAPSHOT_UNFREEZE: u32 = 536883970; +pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 536933635; +pub const PMU_IOC_HAS_ADB: u32 = 1074020868; +pub const I2OGETIOPS: u32 = 1075865856; +pub const VIDIOC_S_FBUF: u32 = 2150389259; +pub const PPRCONTROL: u32 = 1073836163; +pub const CHIOSPICKER: u32 = 2147771141; +pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 536886133; +pub const TUNGETSNDBUF: u32 = 1074025683; +pub const GSMIOC_SETCONF: u32 = 2152482561; +pub const IOC_PR_PREEMPT: u32 = 2149085387; +pub const KCOV_INIT_TRACE: u32 = 1074029313; +pub const SONYPI_IOCGBAT1CAP: u32 = 1073903106; +pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 1074812736; +pub const MTIOCTOP: u32 = 2148035841; +pub const VHOST_VDPA_SET_STATUS: u32 = 2147594098; +pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 2147790659; +pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 536886133; +pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; +pub const PPPIOCGMRU: u32 = 1074033747; +pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; +pub const PPPIOCGFLAGS: u32 = 1074033754; +pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; +pub const ATM_DELLECSADDR: u32 = 2148295055; +pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; +pub const PPPIOCGIDLE32: u32 = 1074295871; +pub const VFIO_DEVICE_RESET: u32 = 536886127; +pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; +pub const WDIOC_GETSTATUS: u32 = 1074026241; +pub const BTRFS_IOC_SET_FEATURES: u32 = 2150667321; +pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; +pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; +pub const PCITEST_READ: u32 = 2147766277; +pub const VFIO_GROUP_GET_STATUS: u32 = 536886119; +pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 1074032379; +pub const USBDEVFS_CLEAR_HALT: u32 = 1074025749; +pub const VIDIOC_DECODER_CMD: u32 = 3225966176; +pub const VIDIOC_G_AUDIO: u32 = 1077171745; +pub const CCISS_RESCANDISK: u32 = 536887824; +pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 2148560140; +pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 2165338343; +pub const USBDEVFS_REAPURB: u32 = 2147767564; +pub const DFL_FPGA_CHECK_EXTENSION: u32 = 536917505; +pub const AUTOFS_IOC_PROTOVER: u32 = 1074041699; +pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; +pub const BTRFS_IOC_GET_FEATURES: u32 = 1075352633; +pub const PCITEST_MSIX: u32 = 2147766279; +pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 2150667280; +pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; +pub const DM_GET_TARGET_VERSION: u32 = 3241737489; +pub const PPPIOCGIDLE: u32 = 1074295871; +pub const NVRAM_SETCKS: u32 = 536899649; +pub const WDIOC_GETSUPPORT: u32 = 1076385536; +pub const GSMIOC_ENABLE_NET: u32 = 2150909698; +pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 1078244353; +pub const NE_ADD_VCPU: u32 = 3221532193; +pub const EVIOCSKEYCODE_V2: u32 = 2150122756; +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 = 2149084422; +pub const I2OEVTREG: u32 = 2148296970; +pub const I2OPARMGET: u32 = 3222825220; +pub const EVIOCGID: u32 = 1074283778; +pub const BTRFS_IOC_QGROUP_CREATE: u32 = 2148570154; +pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; +pub const VIDIOC_S_PARM: u32 = 3234616854; +pub const TUNSETSTEERINGEBPF: u32 = 1074025696; +pub const ATM_GETNAMES: u32 = 2148032899; +pub const VIDIOC_QUERYMENU: u32 = 3224131109; +pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; +pub const I2OLCTGET: u32 = 3222038786; +pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; +pub const NS_SETBUFLEV: u32 = 2148295010; +pub const BLKCLOSEZONE: u32 = 2148536967; +pub const SONET_GETFRSENSE: u32 = 1074159895; +pub const UI_SET_EVBIT: u32 = 2147767652; +pub const DM_LIST_VERSIONS: u32 = 3241737485; +pub const HIDIOCGSTRING: u32 = 1090799620; +pub const PPPIOCATTCHAN: u32 = 2147775544; +pub const VDUSE_DEV_SET_CONFIG: u32 = 2148040978; +pub const TUNGETFEATURES: u32 = 1074025679; +pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 536886121; +pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 1074030865; +pub const CCISS_REGNEWDISK: u32 = 2147762701; +pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 1082414691; +pub const PHN_SETREGS: u32 = 2150133768; +pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 1074033168; +pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; +pub const TUNGETIFF: u32 = 1074025682; +pub const PTP_CLOCK_GETCAPS2: u32 = 1079000330; +pub const BTRFS_IOC_RESIZE: u32 = 2415956995; +pub const VHOST_SET_VRING_ENDIAN: u32 = 2148052755; +pub const PPS_KC_BIND: u32 = 2147774629; +pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 536933639; +pub const UI_SET_FFBIT: u32 = 2147767659; +pub const IPMICTL_GET_MY_LUN_CMD: u32 = 1074030868; +pub const CEC_ADAP_G_PHYS_ADDR: u32 = 1073897729; +pub const CEC_G_MODE: u32 = 1074028808; +pub const USBDEVFS_RESETEP: u32 = 1074025731; +pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; +pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; +pub const MGSL_IOCSXCTRL: u32 = 536898837; +pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; +pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; +pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; +pub const ISST_IF_GET_PLATFORM_INFO: u32 = 1074068992; +pub const SCIF_FENCE_MARK: u32 = 3222303503; +pub const USBDEVFS_RELEASE_PORT: u32 = 1074025753; +pub const VFIO_CHECK_EXTENSION: u32 = 536886117; +pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 1076925483; +pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; +pub const UI_SET_PHYS: u32 = 2147767660; +pub const FDWERRORGET: u32 = 1075315223; +pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; +pub const MGSL_IOCGSTATS: u32 = 536898823; +pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; +pub const SIOCGSTAMP_NEW: u32 = 1074825478; +pub const RTC_WKALM_RD: u32 = 1076391952; +pub const PHN_GET_REG: u32 = 3221516288; +pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; +pub const PHN_NOT_OH: u32 = 536899588; +pub const PPGETMODES: u32 = 1074032791; +pub const CHIOGPARAMS: u32 = 1075077894; +pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; +pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; +pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; +pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; +pub const MGSL_IOCWAITGPIO: u32 = 3222301970; +pub const PMU_IOC_CAN_SLEEP: u32 = 1074020869; +pub const KCOV_ENABLE: u32 = 536896356; +pub const BTRFS_IOC_CLONE: u32 = 2147783689; +pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; +pub const AGPIOC_ALLOCATE: u32 = 3221504262; +pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; +pub const MGSL_IOCTXABORT: u32 = 536898822; +pub const MGSL_IOCSGPIO: u32 = 2148560144; +pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; +pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; +pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; +pub const RTC_UIE_OFF: u32 = 536899588; +pub const BT_BMC_IOCTL_SMS_ATN: u32 = 536916224; +pub const NVME_IOCTL_ID: u32 = 536890944; +pub const NE_START_ENCLAVE: u32 = 3222318628; +pub const VIDIOC_STREAMON: u32 = 2147767826; +pub const FDPOLLDRVSTAT: u32 = 1077150227; +pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; +pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; +pub const VIDIOC_SUBDEV_S_STD: u32 = 2148029976; +pub const WDIOC_GETTIMELEFT: u32 = 1074026250; +pub const ATM_GETLINKRATE: u32 = 2148295041; +pub const RTC_WKALM_SET: u32 = 2150133775; +pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; +pub const ATMARP_ENCAP: u32 = 536895973; +pub const CAPI_GET_FLAGS: u32 = 1074021155; +pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; +pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; +pub const NS_GET_OWNER_UID: u32 = 536917764; +pub const VIDIOC_OVERLAY: u32 = 2147767822; +pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; +pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; +pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; +pub const ATM_GETADDR: u32 = 2148295046; +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 = 536883979; +pub const JSIOCSAXMAP: u32 = 2151705137; +pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 2147677462; +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 = 536886128; +pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; +pub const MMTIMER_GETOFFSET: u32 = 536898816; +pub const RIO_CM_CHAN_LISTEN: u32 = 2147640070; +pub const ATM_SETSC: u32 = 2147770865; +pub const F2FS_IOC_SHUTDOWN: u32 = 1074026621; +pub const NVME_IOCTL_RESCAN: u32 = 536890950; +pub const BLKOPENZONE: u32 = 2148536966; +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 = 536895968; +pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; +pub const HIDIOCGVERSION: u32 = 1074022401; +pub const VIDIOC_S_INPUT: u32 = 3221509671; +pub const VIDIOC_G_CROP: u32 = 3222558267; +pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 2147772707; +pub const EVIOCGEFFECTS: u32 = 1074021764; +pub const UVCIOC_CTRL_QUERY: u32 = 3222041889; +pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; +pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; +pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; +pub const USBDEVFS_GETDRIVER: u32 = 2164544776; +pub const IDT77105_GETSTAT: u32 = 2148294962; +pub const HIDIOCINITREPORT: u32 = 536889349; +pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; +pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; +pub const RNDGETENTCNT: u32 = 1074024960; +pub const PPPIOCNEWUNIT: u32 = 3221517374; +pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; +pub const FDRESET: u32 = 536871508; +pub const IOC_PR_REGISTER: u32 = 2149085384; +pub const HIDIOCSREPORT: u32 = 2148288520; +pub const TEE_IOC_OPEN_SESSION: u32 = 1074832386; +pub const TEE_IOC_SUPPL_RECV: u32 = 1074832390; +pub const BTRFS_IOC_BALANCE_CTL: u32 = 2147783713; +pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; +pub const HIDIOCGRAWINFO: u32 = 1074284547; +pub const PPPIOCSCOMPRESS: u32 = 2148299853; +pub const USBDEVFS_CONNECTINFO: u32 = 2148029713; +pub const BLKRESETZONE: u32 = 2148536963; +pub const CHIOINITELEM: u32 = 536896273; +pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 2148560524; +pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; +pub const RIO_MPORT_MAINT_HDID_SET: u32 = 2147642625; +pub const PPGETPHASE: u32 = 1074032793; +pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 1091065115; +pub const FDMSGON: u32 = 536871493; +pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; +pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; +pub const MEDIA_REQUEST_IOC_REINIT: u32 = 536902785; +pub const IOC_OPAL_ERASE_LR: u32 = 2165338342; +pub const FDFMTBEG: u32 = 536871495; +pub const RNDRESEEDCRNG: u32 = 536891911; +pub const ISST_IF_GET_PHY_ID: u32 = 3221552641; +pub const TUNSETNOCSUM: u32 = 2147767496; +pub const SONET_GETSTAT: u32 = 1076125968; +pub const TFD_IOC_SET_TICKS: u32 = 2148029440; +pub const PPDATADIR: u32 = 2147774608; +pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 2165338341; +pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; +pub const RIO_CM_CHAN_SEND: u32 = 2148557577; +pub const PPWCTLONIRQ: u32 = 2147578002; +pub const SONYPI_IOCGBRT: u32 = 1073837568; +pub const IOC_PR_RELEASE: u32 = 2148561098; +pub const PPCLRIRQ: u32 = 1074032787; +pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; +pub const MGSL_IOCSXSYNC: u32 = 536898835; +pub const HPET_IE_OFF: u32 = 536897538; +pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; +pub const SONET_SETFRAMING: u32 = 2147770645; +pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 2147755017; +pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; +pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; +pub const BLKFINISHZONE: u32 = 2148536968; +pub const EVIOCREVOKE: u32 = 2147763601; +pub const VFIO_DEVICE_FEATURE: u32 = 536886133; +pub const CCISS_GETPCIINFO: u32 = 1074283009; +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 = 2147767827; +pub const VDUSE_DESTROY_DEV: u32 = 2164293891; +pub const FDGETFDCSTAT: u32 = 1075839509; +pub const VIDIOC_S_PRIORITY: u32 = 2147767876; +pub const SNAPSHOT_FREEZE: u32 = 536883969; +pub const VIDIOC_ENUMINPUT: u32 = 3226490394; +pub const ZATM_GETPOOLZ: u32 = 2148295010; +pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; +pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; +pub const VIDIOC_G_STD: u32 = 1074288151; +pub const USBDEVFS_ALLOW_SUSPEND: u32 = 536892706; +pub const SONET_GETSTATZ: u32 = 1076125969; +pub const SCIF_ACCEPTREG: u32 = 3221779205; +pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; +pub const PPPIOCSRASYNCMAP: u32 = 2147775572; +pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; +pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; +pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; +pub const ATMLEC_CTRL: u32 = 536895952; +pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074032377; +pub const DM_DEV_CREATE: u32 = 3241737475; +pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; +pub const VIDIOC_G_CTRL: u32 = 3221771803; +pub const NBD_CLEAR_SOCK: u32 = 536914692; +pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 536886130; +pub const WDIOC_KEEPALIVE: u32 = 1074026245; +pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; +pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; +pub const PCITEST_BAR: u32 = 536891393; +pub const MGSL_IOCGGPIO: u32 = 1074818321; +pub const EVIOCSREP: u32 = 2148025603; +pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; +pub const HPET_DPI: u32 = 536897541; +pub const VDUSE_VQ_SETUP_KICKFD: u32 = 2148040982; +pub const ND_IOCTL_CALL: u32 = 3225439754; +pub const HIDIOCGDEVINFO: u32 = 1075595267; +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 = 1074026051; +pub const ATM_NEWBACKENDIF: u32 = 2147639795; +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 = 2150651474; +pub const DM_TABLE_LOAD: u32 = 3241737481; +pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; +pub const VIDIOC_G_OUTPUT: u32 = 1074026030; +pub const ATM_DROPPARTY: u32 = 2147770869; +pub const CHIOGELEM: u32 = 2154586896; +pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; +pub const EVIOCSKEYCODE: u32 = 2148025604; +pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; +pub const TUNSETLINK: u32 = 2147767501; +pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; +pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 536908828; +pub const PPS_SETPARAMS: u32 = 2147774626; +pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; +pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; +pub const WDIOC_SETTIMEOUT: u32 = 3221509894; +pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; +pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; +pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; +pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; +pub const VIDIOC_G_EDID: u32 = 3223606824; +pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 2149119243; +pub const RIO_MAP_INBOUND: u32 = 3223874833; +pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 2164814046; +pub const USBDEVFS_CLAIM_PORT: u32 = 1074025752; +pub const VIDIOC_S_AUDIO: u32 = 2150913570; +pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 1074816539; +pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 2150114067; +pub const BTRFS_IOC_SNAP_DESTROY: u32 = 2415957007; +pub const SNAPSHOT_FREE: u32 = 536883973; +pub const I8K_GET_SPEED: u32 = 3221514629; +pub const HIDIOCGREPORT: u32 = 2148288519; +pub const HPET_EPI: u32 = 536897540; +pub const JSIOCSCORR: u32 = 2149870113; +pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; +pub const RIO_MAP_OUTBOUND: u32 = 3223874831; +pub const ATM_SETESI: u32 = 2148295052; +pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; +pub const ATM_DELADDR: u32 = 2148295049; +pub const PPFCONTROL: u32 = 2147643534; +pub const SONYPI_IOCGFAN: u32 = 1073837578; +pub const RTC_IRQP_SET: u32 = 2147774476; +pub const PCITEST_WRITE: u32 = 2147766276; +pub const PPCLAIM: u32 = 536899723; +pub const VIDIOC_S_JPEGCOMP: u32 = 2156680766; +pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 1073899791; +pub const VHOST_SET_FEATURES: u32 = 2148052736; +pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; +pub const VIDIOC_DQBUF: u32 = 3225703953; +pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; +pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; +pub const ATMLEC_MCAST: u32 = 536895954; +pub const MMTIMER_GETFREQ: u32 = 1074031874; +pub const VIDIOC_G_SELECTION: u32 = 3225441886; +pub const RTC_ALM_SET: u32 = 2149871623; +pub const PPPOEIOCSFWD: u32 = 2147791104; +pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; +pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; +pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; +pub const FDFMTEND: u32 = 536871497; +pub const DMA_BUF_SET_NAME: u32 = 2147770881; +pub const UI_BEGIN_FF_UPLOAD: u32 = 3227538888; +pub const RTC_UIE_ON: u32 = 536899587; +pub const PPRELEASE: u32 = 536899724; +pub const VFIO_IOMMU_UNMAP_DMA: u32 = 536886130; +pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3225179842; +pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; +pub const VFAT_IOCTL_READDIR_BOTH: u32 = 1108898305; +pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; +pub const VHOST_SET_VRING_KICK: u32 = 2148052768; +pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 2415957016; +pub const BTRFS_IOC_SNAP_CREATE: u32 = 2415956993; +pub const SONYPI_IOCGBAT2CAP: u32 = 1073903108; +pub const PPNEGOT: u32 = 2147774609; +pub const NBD_PRINT_DEBUG: u32 = 536914694; +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 = 1140888607; +pub const VIDIOC_ENUM_FMT: u32 = 3225441794; +pub const VIDIOC_G_INPUT: u32 = 1074026022; +pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; +pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 1074050691; +pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; +pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 2151715884; +pub const MMTIMER_GETCOUNTER: u32 = 1074031881; +pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; +pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; +pub const RIO_CM_CHAN_BIND: u32 = 2148033285; +pub const HIDIOCGRDESC: u32 = 1342457858; +pub const MGSL_IOCGIF: u32 = 536898827; +pub const VIDIOC_S_OUTPUT: u32 = 3221509679; +pub const HIDIOCGREPORTINFO: u32 = 3222030345; +pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; +pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; +pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 2149884501; +pub const BLKGETDISKSEQ: u32 = 1074270848; +pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; +pub const ACRN_IOCTL_DESTROY_VM: u32 = 536912401; +pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 2148835923; +pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 536912434; +pub const ACRN_IOCTL_IRQFD: u32 = 2149098097; +pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; +pub const ACRN_IOCTL_INJECT_MSI: u32 = 2148573731; +pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 536912435; +pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 2148835924; +pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 2148049457; +pub const ACRN_IOCTL_SET_IRQLINE: u32 = 2148049445; +pub const ACRN_IOCTL_START_VM: u32 = 536912402; +pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 2166923798; +pub const ACRN_IOCTL_SET_MEMSEG: u32 = 2149622337; +pub const ACRN_IOCTL_PAUSE_VM: u32 = 536912403; +pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 536912437; +pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 2149622338; +pub const ACRN_IOCTL_IOEVENTFD: u32 = 2149622384; +pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; +pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; +pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; +pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2147787300; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..636ba35f465ce0d513b80980886c7c208eae329a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/landlock.rs @@ -0,0 +1,112 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..8865f5d656958ac7e0cbb7fcb97bd558233b648b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/loop_device.rs @@ -0,0 +1,142 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/mempolicy.rs new file mode 100644 index 0000000000000000000000000000000000000000..f36e463e942f1dd04be76a000231941d88b79a85 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/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 ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +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 EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; +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/mips/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..3c0fd983335f8c79a710a82a2fb3145786587cd6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/net.rs @@ -0,0 +1,3514 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +pub const IOCSIZE_SHIFT: u32 = 16; +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_REUSEADDR: u32 = 4; +pub const SO_KEEPALIVE: u32 = 8; +pub const SO_DONTROUTE: u32 = 16; +pub const SO_BROADCAST: u32 = 32; +pub const SO_LINGER: u32 = 128; +pub const SO_OOBINLINE: u32 = 256; +pub const SO_REUSEPORT: u32 = 512; +pub const SO_TYPE: u32 = 4104; +pub const SO_STYLE: u32 = 4104; +pub const SO_ERROR: u32 = 4103; +pub const SO_SNDBUF: u32 = 4097; +pub const SO_RCVBUF: u32 = 4098; +pub const SO_SNDLOWAT: u32 = 4099; +pub const SO_RCVLOWAT: u32 = 4100; +pub const SO_SNDTIMEO_OLD: u32 = 4101; +pub const SO_RCVTIMEO_OLD: u32 = 4102; +pub const SO_ACCEPTCONN: u32 = 4105; +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_BSDCOMPAT: u32 = 14; +pub const SO_PASSCRED: u32 = 17; +pub const SO_PEERCRED: u32 = 18; +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_PEERSEC: u32 = 30; +pub const SO_SNDBUFFORCE: u32 = 31; +pub const SO_RCVBUFFORCE: u32 = 33; +pub const SO_PASSSEC: u32 = 34; +pub const SO_MARK: u32 = 36; +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 = 2; +pub const SOCK_DGRAM: u32 = 1; +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/mips/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..edc054cf732faf67b38498024e695e54178c28f5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/netlink.rs @@ -0,0 +1,5469 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 __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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: 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 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/mips/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..56851873644faac8e0811fa402dea3024f23bbd0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/prctl.rs @@ -0,0 +1,279 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..9b785f7d5fbfb29bf735541114439b4e56af3184 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/ptrace.rs @@ -0,0 +1,872 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 regs: [__u64; 32usize], +pub lo: __u64, +pub hi: __u64, +pub cp0_epc: __u64, +pub cp0_badvaddr: __u64, +pub cp0_status: __u64, +pub cp0_cause: __u64, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct mips32_watch_regs { +pub watchlo: [crate::ctypes::c_uint; 8usize], +pub watchhi: [crate::ctypes::c_ushort; 8usize], +pub watch_masks: [crate::ctypes::c_ushort; 8usize], +pub num_valid: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mips64_watch_regs { +pub watchlo: [crate::ctypes::c_ulonglong; 8usize], +pub watchhi: [crate::ctypes::c_ushort; 8usize], +pub watch_masks: [crate::ctypes::c_ushort; 8usize], +pub num_valid: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct pt_watch_regs { +pub style: pt_watch_style, +pub __bindgen_anon_1: pt_watch_regs__bindgen_ty_1, +} +#[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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 FPR_BASE: u32 = 32; +pub const PC: u32 = 64; +pub const CAUSE: u32 = 65; +pub const BADVADDR: u32 = 66; +pub const MMHI: u32 = 67; +pub const MMLO: u32 = 68; +pub const FPC_CSR: u32 = 69; +pub const FPC_EIR: u32 = 70; +pub const DSP_BASE: u32 = 71; +pub const DSP_CONTROL: u32 = 77; +pub const ACX: u32 = 78; +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_OLDSETOPTIONS: u32 = 21; +pub const PTRACE_GET_THREAD_AREA: u32 = 25; +pub const PTRACE_SET_THREAD_AREA: u32 = 26; +pub const PTRACE_PEEKTEXT_3264: u32 = 192; +pub const PTRACE_PEEKDATA_3264: u32 = 193; +pub const PTRACE_POKETEXT_3264: u32 = 194; +pub const PTRACE_POKEDATA_3264: u32 = 195; +pub const PTRACE_GET_THREAD_AREA_3264: u32 = 196; +pub const PTRACE_GET_WATCH_REGS: u32 = 208; +pub const PTRACE_SET_WATCH_REGS: u32 = 209; +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 pt_watch_style { +pt_watch_style_mips32 = 0, +pt_watch_style_mips64 = 1, +} +#[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 pt_watch_regs__bindgen_ty_1 { +pub mips32: mips32_watch_regs, +pub mips64: mips64_watch_regs, +} +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/mips/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..e15e4fd7a7805582c7b15381feb748090db88c94 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/system.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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..84ae198a976edfda7af57d72689561085d60015c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips/xdp.rs @@ -0,0 +1,201 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips32r6/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/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/mips32r6/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/mips32r6/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/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/mips32r6/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/mips32r6/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..6fff1120825e6c3e85396b804a8975f1552cf7e2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/btrfs.rs @@ -0,0 +1,1904 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +pub const _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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/mips32r6/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..0636f3d7596790f243dee4745252202e5beb4e9d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/elf_uapi.rs @@ -0,0 +1,662 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips32r6/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..59b928fcb02b282b8fbe061e1241ae5c9866fb52 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/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 ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +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 EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..5a9f634857c49fffa85cf16d60c2a05f379826d3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/general.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_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_daddr_t = crate::ctypes::c_long; +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_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 = 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 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 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)] +#[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 l_sysid: crate::ctypes::c_long, +pub pad: [crate::ctypes::c_long; 4usize], +} +#[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; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaction { +pub sa_flags: crate::ctypes::c_uint, +pub sa_handler: __sighandler_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_size: __kernel_size_t, +pub ss_flags: crate::ctypes::c_int, +} +#[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_code: crate::ctypes::c_int, +pub si_errno: 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; 23usize], +} +#[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; 23usize], +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; 23usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sgttyb { +pub sg_ispeed: crate::ctypes::c_char, +pub sg_ospeed: crate::ctypes::c_char, +pub sg_erase: crate::ctypes::c_char, +pub sg_kill: crate::ctypes::c_char, +pub sg_flags: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tchars { +pub t_intrc: crate::ctypes::c_char, +pub t_quitc: crate::ctypes::c_char, +pub t_startc: crate::ctypes::c_char, +pub t_stopc: crate::ctypes::c_char, +pub t_eofc: crate::ctypes::c_char, +pub t_brkc: crate::ctypes::c_char, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ltchars { +pub t_suspc: crate::ctypes::c_char, +pub t_dsuspc: crate::ctypes::c_char, +pub t_rprntc: crate::ctypes::c_char, +pub t_flushc: crate::ctypes::c_char, +pub t_werasc: crate::ctypes::c_char, +pub t_lnextc: crate::ctypes::c_char, +} +#[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_char, +pub c_cc: [crate::ctypes::c_uchar; 23usize], +} +#[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_uint, +pub st_pad1: [crate::ctypes::c_long; 3usize], +pub st_ino: __kernel_ino_t, +pub st_mode: __kernel_mode_t, +pub st_nlink: __u32, +pub st_uid: __kernel_uid32_t, +pub st_gid: __kernel_gid32_t, +pub st_rdev: crate::ctypes::c_uint, +pub st_pad2: [crate::ctypes::c_long; 2usize], +pub st_size: crate::ctypes::c_long, +pub st_pad3: crate::ctypes::c_long, +pub st_atime: crate::ctypes::c_long, +pub st_atime_nsec: crate::ctypes::c_long, +pub st_mtime: crate::ctypes::c_long, +pub st_mtime_nsec: crate::ctypes::c_long, +pub st_ctime: crate::ctypes::c_long, +pub st_ctime_nsec: crate::ctypes::c_long, +pub st_blksize: crate::ctypes::c_long, +pub st_blocks: crate::ctypes::c_long, +pub st_pad4: [crate::ctypes::c_long; 14usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stat64 { +pub st_dev: crate::ctypes::c_ulong, +pub st_pad0: [crate::ctypes::c_ulong; 3usize], +pub st_ino: crate::ctypes::c_ulonglong, +pub st_mode: __kernel_mode_t, +pub st_nlink: __u32, +pub st_uid: __kernel_uid32_t, +pub st_gid: __kernel_gid32_t, +pub st_rdev: crate::ctypes::c_ulong, +pub st_pad1: [crate::ctypes::c_ulong; 3usize], +pub st_size: crate::ctypes::c_longlong, +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_ulong, +pub st_pad2: crate::ctypes::c_ulong, +pub st_blocks: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs { +pub f_type: crate::ctypes::c_long, +pub f_bsize: crate::ctypes::c_long, +pub f_frsize: crate::ctypes::c_long, +pub f_blocks: crate::ctypes::c_long, +pub f_bfree: crate::ctypes::c_long, +pub f_files: crate::ctypes::c_long, +pub f_ffree: crate::ctypes::c_long, +pub f_bavail: crate::ctypes::c_long, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: crate::ctypes::c_long, +pub f_flags: crate::ctypes::c_long, +pub f_spare: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs64 { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_frsize: __u32, +pub __pad: __u32, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_bavail: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 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; 4usize], +} +#[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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 O_DSYNC: u32 = 16; +pub const O_NONBLOCK: u32 = 128; +pub const O_CREAT: u32 = 256; +pub const O_TRUNC: u32 = 512; +pub const O_EXCL: u32 = 1024; +pub const O_NOCTTY: u32 = 2048; +pub const FASYNC: u32 = 4096; +pub const O_LARGEFILE: u32 = 8192; +pub const __O_SYNC: u32 = 16384; +pub const O_SYNC: u32 = 16400; +pub const O_DIRECT: u32 = 32768; +pub const F_GETLK: u32 = 14; +pub const F_SETLK: u32 = 6; +pub const F_SETLKW: u32 = 7; +pub const F_SETOWN: u32 = 24; +pub const F_GETOWN: u32 = 23; +pub const F_GETLK64: u32 = 33; +pub const F_SETLK64: u32 = 34; +pub const F_SETLKW64: u32 = 35; +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_NOATIME: u32 = 262144; +pub const O_CLOEXEC: u32 = 524288; +pub const O_PATH: u32 = 2097152; +pub const __O_TMPFILE: u32 = 4194304; +pub const O_TMPFILE: u32 = 4259840; +pub const O_NDELAY: u32 = 128; +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_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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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 = 128; +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_NONE: u32 = 0; +pub const PROT_READ: u32 = 1; +pub const PROT_WRITE: u32 = 2; +pub const PROT_EXEC: u32 = 4; +pub const PROT_SEM: u32 = 16; +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_RENAME: u32 = 32; +pub const MAP_AUTOGROW: u32 = 64; +pub const MAP_LOCAL: u32 = 128; +pub const MAP_AUTORSRV: u32 = 256; +pub const MAP_NORESERVE: u32 = 1024; +pub const MAP_ANONYMOUS: u32 = 2048; +pub const MAP_GROWSDOWN: u32 = 4096; +pub const MAP_DENYWRITE: u32 = 8192; +pub const MAP_EXECUTABLE: u32 = 16384; +pub const MAP_LOCKED: u32 = 32768; +pub const MAP_POPULATE: u32 = 65536; +pub const MAP_NONBLOCK: u32 = 131072; +pub const MAP_STACK: u32 = 262144; +pub const MAP_HUGETLB: u32 = 524288; +pub const MAP_FIXED_NOREPLACE: u32 = 1048576; +pub const MS_ASYNC: u32 = 1; +pub const MS_INVALIDATE: u32 = 2; +pub const MS_SYNC: u32 = 4; +pub const MCL_CURRENT: u32 = 1; +pub const MCL_FUTURE: u32 = 2; +pub const MCL_ONFAULT: u32 = 4; +pub const MLOCK_ONFAULT: u32 = 1; +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_MERGEABLE: u32 = 12; +pub const MADV_UNMERGEABLE: u32 = 13; +pub const MADV_HWPOISON: u32 = 100; +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_DISABLE_ACCESS: u32 = 1; +pub const PKEY_DISABLE_WRITE: u32 = 2; +pub const PKEY_ACCESS_MASK: u32 = 3; +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 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 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_NOFILE: u32 = 5; +pub const RLIMIT_AS: u32 = 6; +pub const RLIMIT_RSS: u32 = 7; +pub const RLIMIT_NPROC: u32 = 8; +pub const RLIMIT_MEMLOCK: u32 = 9; +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_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 _NSIG: u32 = 128; +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 SIGIOT: u32 = 6; +pub const SIGABRT: u32 = 6; +pub const SIGEMT: u32 = 7; +pub const SIGFPE: u32 = 8; +pub const SIGKILL: u32 = 9; +pub const SIGBUS: u32 = 10; +pub const SIGSEGV: u32 = 11; +pub const SIGSYS: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGUSR1: u32 = 16; +pub const SIGUSR2: u32 = 17; +pub const SIGCHLD: u32 = 18; +pub const SIGCLD: u32 = 18; +pub const SIGPWR: u32 = 19; +pub const SIGWINCH: u32 = 20; +pub const SIGURG: u32 = 21; +pub const SIGIO: u32 = 22; +pub const SIGPOLL: u32 = 22; +pub const SIGSTOP: u32 = 23; +pub const SIGTSTP: u32 = 24; +pub const SIGCONT: u32 = 25; +pub const SIGTTIN: u32 = 26; +pub const SIGTTOU: u32 = 27; +pub const SIGVTALRM: u32 = 28; +pub const SIGPROF: u32 = 29; +pub const SIGXCPU: u32 = 30; +pub const SIGXFSZ: u32 = 31; +pub const SIGRTMIN: u32 = 32; +pub const SIGRTMAX: u32 = 128; +pub const SA_ONSTACK: u32 = 134217728; +pub const SA_RESETHAND: u32 = 2147483648; +pub const SA_RESTART: u32 = 268435456; +pub const SA_SIGINFO: u32 = 8; +pub const SA_NODEFER: u32 = 1073741824; +pub const SA_NOCLDWAIT: u32 = 65536; +pub const SA_NOCLDSTOP: u32 = 1; +pub const SA_NOMASK: u32 = 1073741824; +pub const SA_ONESHOT: u32 = 2147483648; +pub const MINSIGSTKSZ: u32 = 2048; +pub const SIGSTKSZ: u32 = 8192; +pub const SIG_BLOCK: u32 = 1; +pub const SIG_UNBLOCK: u32 = 2; +pub const SIG_SETMASK: u32 = 3; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +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 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 ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +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 EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; +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 = 23; +pub const VINTR: u32 = 0; +pub const VQUIT: u32 = 1; +pub const VERASE: u32 = 2; +pub const VKILL: u32 = 3; +pub const VMIN: u32 = 4; +pub const VTIME: u32 = 5; +pub const VEOL2: u32 = 6; +pub const VSWTC: u32 = 7; +pub const VSWTCH: u32 = 7; +pub const VSTART: u32 = 8; +pub const VSTOP: u32 = 9; +pub const VSUSP: u32 = 10; +pub const VREPRINT: u32 = 12; +pub const VDISCARD: u32 = 13; +pub const VWERASE: u32 = 14; +pub const VLNEXT: u32 = 15; +pub const VEOF: u32 = 16; +pub const VEOL: u32 = 17; +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 IEXTEN: u32 = 256; +pub const ECHOCTL: u32 = 512; +pub const ECHOPRT: u32 = 1024; +pub const ECHOKE: u32 = 2048; +pub const FLUSHO: u32 = 8192; +pub const PENDIN: u32 = 16384; +pub const TOSTOP: u32 = 32768; +pub const ITOSTOP: u32 = 32768; +pub const EXTPROC: u32 = 65536; +pub const TIOCSER_TEMT: u32 = 1; +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 TIOCGLTC: u32 = 29812; +pub const TIOCSLTC: u32 = 29813; +pub const TIOCGETP: u32 = 29704; +pub const TIOCSETP: u32 = 29705; +pub const TIOCSETN: u32 = 29706; +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 = 16; +pub const TIOCM_SR: u32 = 32; +pub const TIOCM_CTS: u32 = 64; +pub const TIOCM_CAR: u32 = 256; +pub const TIOCM_CD: u32 = 256; +pub const TIOCM_RNG: u32 = 512; +pub const TIOCM_RI: u32 = 512; +pub const TIOCM_DSR: u32 = 1024; +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_Linux: u32 = 4000; +pub const __NR_syscall: u32 = 4000; +pub const __NR_exit: u32 = 4001; +pub const __NR_fork: u32 = 4002; +pub const __NR_read: u32 = 4003; +pub const __NR_write: u32 = 4004; +pub const __NR_open: u32 = 4005; +pub const __NR_close: u32 = 4006; +pub const __NR_waitpid: u32 = 4007; +pub const __NR_creat: u32 = 4008; +pub const __NR_link: u32 = 4009; +pub const __NR_unlink: u32 = 4010; +pub const __NR_execve: u32 = 4011; +pub const __NR_chdir: u32 = 4012; +pub const __NR_time: u32 = 4013; +pub const __NR_mknod: u32 = 4014; +pub const __NR_chmod: u32 = 4015; +pub const __NR_lchown: u32 = 4016; +pub const __NR_break: u32 = 4017; +pub const __NR_unused18: u32 = 4018; +pub const __NR_lseek: u32 = 4019; +pub const __NR_getpid: u32 = 4020; +pub const __NR_mount: u32 = 4021; +pub const __NR_umount: u32 = 4022; +pub const __NR_setuid: u32 = 4023; +pub const __NR_getuid: u32 = 4024; +pub const __NR_stime: u32 = 4025; +pub const __NR_ptrace: u32 = 4026; +pub const __NR_alarm: u32 = 4027; +pub const __NR_unused28: u32 = 4028; +pub const __NR_pause: u32 = 4029; +pub const __NR_utime: u32 = 4030; +pub const __NR_stty: u32 = 4031; +pub const __NR_gtty: u32 = 4032; +pub const __NR_access: u32 = 4033; +pub const __NR_nice: u32 = 4034; +pub const __NR_ftime: u32 = 4035; +pub const __NR_sync: u32 = 4036; +pub const __NR_kill: u32 = 4037; +pub const __NR_rename: u32 = 4038; +pub const __NR_mkdir: u32 = 4039; +pub const __NR_rmdir: u32 = 4040; +pub const __NR_dup: u32 = 4041; +pub const __NR_pipe: u32 = 4042; +pub const __NR_times: u32 = 4043; +pub const __NR_prof: u32 = 4044; +pub const __NR_brk: u32 = 4045; +pub const __NR_setgid: u32 = 4046; +pub const __NR_getgid: u32 = 4047; +pub const __NR_signal: u32 = 4048; +pub const __NR_geteuid: u32 = 4049; +pub const __NR_getegid: u32 = 4050; +pub const __NR_acct: u32 = 4051; +pub const __NR_umount2: u32 = 4052; +pub const __NR_lock: u32 = 4053; +pub const __NR_ioctl: u32 = 4054; +pub const __NR_fcntl: u32 = 4055; +pub const __NR_mpx: u32 = 4056; +pub const __NR_setpgid: u32 = 4057; +pub const __NR_ulimit: u32 = 4058; +pub const __NR_unused59: u32 = 4059; +pub const __NR_umask: u32 = 4060; +pub const __NR_chroot: u32 = 4061; +pub const __NR_ustat: u32 = 4062; +pub const __NR_dup2: u32 = 4063; +pub const __NR_getppid: u32 = 4064; +pub const __NR_getpgrp: u32 = 4065; +pub const __NR_setsid: u32 = 4066; +pub const __NR_sigaction: u32 = 4067; +pub const __NR_sgetmask: u32 = 4068; +pub const __NR_ssetmask: u32 = 4069; +pub const __NR_setreuid: u32 = 4070; +pub const __NR_setregid: u32 = 4071; +pub const __NR_sigsuspend: u32 = 4072; +pub const __NR_sigpending: u32 = 4073; +pub const __NR_sethostname: u32 = 4074; +pub const __NR_setrlimit: u32 = 4075; +pub const __NR_getrlimit: u32 = 4076; +pub const __NR_getrusage: u32 = 4077; +pub const __NR_gettimeofday: u32 = 4078; +pub const __NR_settimeofday: u32 = 4079; +pub const __NR_getgroups: u32 = 4080; +pub const __NR_setgroups: u32 = 4081; +pub const __NR_reserved82: u32 = 4082; +pub const __NR_symlink: u32 = 4083; +pub const __NR_unused84: u32 = 4084; +pub const __NR_readlink: u32 = 4085; +pub const __NR_uselib: u32 = 4086; +pub const __NR_swapon: u32 = 4087; +pub const __NR_reboot: u32 = 4088; +pub const __NR_readdir: u32 = 4089; +pub const __NR_mmap: u32 = 4090; +pub const __NR_munmap: u32 = 4091; +pub const __NR_truncate: u32 = 4092; +pub const __NR_ftruncate: u32 = 4093; +pub const __NR_fchmod: u32 = 4094; +pub const __NR_fchown: u32 = 4095; +pub const __NR_getpriority: u32 = 4096; +pub const __NR_setpriority: u32 = 4097; +pub const __NR_profil: u32 = 4098; +pub const __NR_statfs: u32 = 4099; +pub const __NR_fstatfs: u32 = 4100; +pub const __NR_ioperm: u32 = 4101; +pub const __NR_socketcall: u32 = 4102; +pub const __NR_syslog: u32 = 4103; +pub const __NR_setitimer: u32 = 4104; +pub const __NR_getitimer: u32 = 4105; +pub const __NR_stat: u32 = 4106; +pub const __NR_lstat: u32 = 4107; +pub const __NR_fstat: u32 = 4108; +pub const __NR_unused109: u32 = 4109; +pub const __NR_iopl: u32 = 4110; +pub const __NR_vhangup: u32 = 4111; +pub const __NR_idle: u32 = 4112; +pub const __NR_vm86: u32 = 4113; +pub const __NR_wait4: u32 = 4114; +pub const __NR_swapoff: u32 = 4115; +pub const __NR_sysinfo: u32 = 4116; +pub const __NR_ipc: u32 = 4117; +pub const __NR_fsync: u32 = 4118; +pub const __NR_sigreturn: u32 = 4119; +pub const __NR_clone: u32 = 4120; +pub const __NR_setdomainname: u32 = 4121; +pub const __NR_uname: u32 = 4122; +pub const __NR_modify_ldt: u32 = 4123; +pub const __NR_adjtimex: u32 = 4124; +pub const __NR_mprotect: u32 = 4125; +pub const __NR_sigprocmask: u32 = 4126; +pub const __NR_create_module: u32 = 4127; +pub const __NR_init_module: u32 = 4128; +pub const __NR_delete_module: u32 = 4129; +pub const __NR_get_kernel_syms: u32 = 4130; +pub const __NR_quotactl: u32 = 4131; +pub const __NR_getpgid: u32 = 4132; +pub const __NR_fchdir: u32 = 4133; +pub const __NR_bdflush: u32 = 4134; +pub const __NR_sysfs: u32 = 4135; +pub const __NR_personality: u32 = 4136; +pub const __NR_afs_syscall: u32 = 4137; +pub const __NR_setfsuid: u32 = 4138; +pub const __NR_setfsgid: u32 = 4139; +pub const __NR__llseek: u32 = 4140; +pub const __NR_getdents: u32 = 4141; +pub const __NR__newselect: u32 = 4142; +pub const __NR_flock: u32 = 4143; +pub const __NR_msync: u32 = 4144; +pub const __NR_readv: u32 = 4145; +pub const __NR_writev: u32 = 4146; +pub const __NR_cacheflush: u32 = 4147; +pub const __NR_cachectl: u32 = 4148; +pub const __NR_sysmips: u32 = 4149; +pub const __NR_unused150: u32 = 4150; +pub const __NR_getsid: u32 = 4151; +pub const __NR_fdatasync: u32 = 4152; +pub const __NR__sysctl: u32 = 4153; +pub const __NR_mlock: u32 = 4154; +pub const __NR_munlock: u32 = 4155; +pub const __NR_mlockall: u32 = 4156; +pub const __NR_munlockall: u32 = 4157; +pub const __NR_sched_setparam: u32 = 4158; +pub const __NR_sched_getparam: u32 = 4159; +pub const __NR_sched_setscheduler: u32 = 4160; +pub const __NR_sched_getscheduler: u32 = 4161; +pub const __NR_sched_yield: u32 = 4162; +pub const __NR_sched_get_priority_max: u32 = 4163; +pub const __NR_sched_get_priority_min: u32 = 4164; +pub const __NR_sched_rr_get_interval: u32 = 4165; +pub const __NR_nanosleep: u32 = 4166; +pub const __NR_mremap: u32 = 4167; +pub const __NR_accept: u32 = 4168; +pub const __NR_bind: u32 = 4169; +pub const __NR_connect: u32 = 4170; +pub const __NR_getpeername: u32 = 4171; +pub const __NR_getsockname: u32 = 4172; +pub const __NR_getsockopt: u32 = 4173; +pub const __NR_listen: u32 = 4174; +pub const __NR_recv: u32 = 4175; +pub const __NR_recvfrom: u32 = 4176; +pub const __NR_recvmsg: u32 = 4177; +pub const __NR_send: u32 = 4178; +pub const __NR_sendmsg: u32 = 4179; +pub const __NR_sendto: u32 = 4180; +pub const __NR_setsockopt: u32 = 4181; +pub const __NR_shutdown: u32 = 4182; +pub const __NR_socket: u32 = 4183; +pub const __NR_socketpair: u32 = 4184; +pub const __NR_setresuid: u32 = 4185; +pub const __NR_getresuid: u32 = 4186; +pub const __NR_query_module: u32 = 4187; +pub const __NR_poll: u32 = 4188; +pub const __NR_nfsservctl: u32 = 4189; +pub const __NR_setresgid: u32 = 4190; +pub const __NR_getresgid: u32 = 4191; +pub const __NR_prctl: u32 = 4192; +pub const __NR_rt_sigreturn: u32 = 4193; +pub const __NR_rt_sigaction: u32 = 4194; +pub const __NR_rt_sigprocmask: u32 = 4195; +pub const __NR_rt_sigpending: u32 = 4196; +pub const __NR_rt_sigtimedwait: u32 = 4197; +pub const __NR_rt_sigqueueinfo: u32 = 4198; +pub const __NR_rt_sigsuspend: u32 = 4199; +pub const __NR_pread64: u32 = 4200; +pub const __NR_pwrite64: u32 = 4201; +pub const __NR_chown: u32 = 4202; +pub const __NR_getcwd: u32 = 4203; +pub const __NR_capget: u32 = 4204; +pub const __NR_capset: u32 = 4205; +pub const __NR_sigaltstack: u32 = 4206; +pub const __NR_sendfile: u32 = 4207; +pub const __NR_getpmsg: u32 = 4208; +pub const __NR_putpmsg: u32 = 4209; +pub const __NR_mmap2: u32 = 4210; +pub const __NR_truncate64: u32 = 4211; +pub const __NR_ftruncate64: u32 = 4212; +pub const __NR_stat64: u32 = 4213; +pub const __NR_lstat64: u32 = 4214; +pub const __NR_fstat64: u32 = 4215; +pub const __NR_pivot_root: u32 = 4216; +pub const __NR_mincore: u32 = 4217; +pub const __NR_madvise: u32 = 4218; +pub const __NR_getdents64: u32 = 4219; +pub const __NR_fcntl64: u32 = 4220; +pub const __NR_reserved221: u32 = 4221; +pub const __NR_gettid: u32 = 4222; +pub const __NR_readahead: u32 = 4223; +pub const __NR_setxattr: u32 = 4224; +pub const __NR_lsetxattr: u32 = 4225; +pub const __NR_fsetxattr: u32 = 4226; +pub const __NR_getxattr: u32 = 4227; +pub const __NR_lgetxattr: u32 = 4228; +pub const __NR_fgetxattr: u32 = 4229; +pub const __NR_listxattr: u32 = 4230; +pub const __NR_llistxattr: u32 = 4231; +pub const __NR_flistxattr: u32 = 4232; +pub const __NR_removexattr: u32 = 4233; +pub const __NR_lremovexattr: u32 = 4234; +pub const __NR_fremovexattr: u32 = 4235; +pub const __NR_tkill: u32 = 4236; +pub const __NR_sendfile64: u32 = 4237; +pub const __NR_futex: u32 = 4238; +pub const __NR_sched_setaffinity: u32 = 4239; +pub const __NR_sched_getaffinity: u32 = 4240; +pub const __NR_io_setup: u32 = 4241; +pub const __NR_io_destroy: u32 = 4242; +pub const __NR_io_getevents: u32 = 4243; +pub const __NR_io_submit: u32 = 4244; +pub const __NR_io_cancel: u32 = 4245; +pub const __NR_exit_group: u32 = 4246; +pub const __NR_lookup_dcookie: u32 = 4247; +pub const __NR_epoll_create: u32 = 4248; +pub const __NR_epoll_ctl: u32 = 4249; +pub const __NR_epoll_wait: u32 = 4250; +pub const __NR_remap_file_pages: u32 = 4251; +pub const __NR_set_tid_address: u32 = 4252; +pub const __NR_restart_syscall: u32 = 4253; +pub const __NR_fadvise64: u32 = 4254; +pub const __NR_statfs64: u32 = 4255; +pub const __NR_fstatfs64: u32 = 4256; +pub const __NR_timer_create: u32 = 4257; +pub const __NR_timer_settime: u32 = 4258; +pub const __NR_timer_gettime: u32 = 4259; +pub const __NR_timer_getoverrun: u32 = 4260; +pub const __NR_timer_delete: u32 = 4261; +pub const __NR_clock_settime: u32 = 4262; +pub const __NR_clock_gettime: u32 = 4263; +pub const __NR_clock_getres: u32 = 4264; +pub const __NR_clock_nanosleep: u32 = 4265; +pub const __NR_tgkill: u32 = 4266; +pub const __NR_utimes: u32 = 4267; +pub const __NR_mbind: u32 = 4268; +pub const __NR_get_mempolicy: u32 = 4269; +pub const __NR_set_mempolicy: u32 = 4270; +pub const __NR_mq_open: u32 = 4271; +pub const __NR_mq_unlink: u32 = 4272; +pub const __NR_mq_timedsend: u32 = 4273; +pub const __NR_mq_timedreceive: u32 = 4274; +pub const __NR_mq_notify: u32 = 4275; +pub const __NR_mq_getsetattr: u32 = 4276; +pub const __NR_vserver: u32 = 4277; +pub const __NR_waitid: u32 = 4278; +pub const __NR_add_key: u32 = 4280; +pub const __NR_request_key: u32 = 4281; +pub const __NR_keyctl: u32 = 4282; +pub const __NR_set_thread_area: u32 = 4283; +pub const __NR_inotify_init: u32 = 4284; +pub const __NR_inotify_add_watch: u32 = 4285; +pub const __NR_inotify_rm_watch: u32 = 4286; +pub const __NR_migrate_pages: u32 = 4287; +pub const __NR_openat: u32 = 4288; +pub const __NR_mkdirat: u32 = 4289; +pub const __NR_mknodat: u32 = 4290; +pub const __NR_fchownat: u32 = 4291; +pub const __NR_futimesat: u32 = 4292; +pub const __NR_fstatat64: u32 = 4293; +pub const __NR_unlinkat: u32 = 4294; +pub const __NR_renameat: u32 = 4295; +pub const __NR_linkat: u32 = 4296; +pub const __NR_symlinkat: u32 = 4297; +pub const __NR_readlinkat: u32 = 4298; +pub const __NR_fchmodat: u32 = 4299; +pub const __NR_faccessat: u32 = 4300; +pub const __NR_pselect6: u32 = 4301; +pub const __NR_ppoll: u32 = 4302; +pub const __NR_unshare: u32 = 4303; +pub const __NR_splice: u32 = 4304; +pub const __NR_sync_file_range: u32 = 4305; +pub const __NR_tee: u32 = 4306; +pub const __NR_vmsplice: u32 = 4307; +pub const __NR_move_pages: u32 = 4308; +pub const __NR_set_robust_list: u32 = 4309; +pub const __NR_get_robust_list: u32 = 4310; +pub const __NR_kexec_load: u32 = 4311; +pub const __NR_getcpu: u32 = 4312; +pub const __NR_epoll_pwait: u32 = 4313; +pub const __NR_ioprio_set: u32 = 4314; +pub const __NR_ioprio_get: u32 = 4315; +pub const __NR_utimensat: u32 = 4316; +pub const __NR_signalfd: u32 = 4317; +pub const __NR_timerfd: u32 = 4318; +pub const __NR_eventfd: u32 = 4319; +pub const __NR_fallocate: u32 = 4320; +pub const __NR_timerfd_create: u32 = 4321; +pub const __NR_timerfd_gettime: u32 = 4322; +pub const __NR_timerfd_settime: u32 = 4323; +pub const __NR_signalfd4: u32 = 4324; +pub const __NR_eventfd2: u32 = 4325; +pub const __NR_epoll_create1: u32 = 4326; +pub const __NR_dup3: u32 = 4327; +pub const __NR_pipe2: u32 = 4328; +pub const __NR_inotify_init1: u32 = 4329; +pub const __NR_preadv: u32 = 4330; +pub const __NR_pwritev: u32 = 4331; +pub const __NR_rt_tgsigqueueinfo: u32 = 4332; +pub const __NR_perf_event_open: u32 = 4333; +pub const __NR_accept4: u32 = 4334; +pub const __NR_recvmmsg: u32 = 4335; +pub const __NR_fanotify_init: u32 = 4336; +pub const __NR_fanotify_mark: u32 = 4337; +pub const __NR_prlimit64: u32 = 4338; +pub const __NR_name_to_handle_at: u32 = 4339; +pub const __NR_open_by_handle_at: u32 = 4340; +pub const __NR_clock_adjtime: u32 = 4341; +pub const __NR_syncfs: u32 = 4342; +pub const __NR_sendmmsg: u32 = 4343; +pub const __NR_setns: u32 = 4344; +pub const __NR_process_vm_readv: u32 = 4345; +pub const __NR_process_vm_writev: u32 = 4346; +pub const __NR_kcmp: u32 = 4347; +pub const __NR_finit_module: u32 = 4348; +pub const __NR_sched_setattr: u32 = 4349; +pub const __NR_sched_getattr: u32 = 4350; +pub const __NR_renameat2: u32 = 4351; +pub const __NR_seccomp: u32 = 4352; +pub const __NR_getrandom: u32 = 4353; +pub const __NR_memfd_create: u32 = 4354; +pub const __NR_bpf: u32 = 4355; +pub const __NR_execveat: u32 = 4356; +pub const __NR_userfaultfd: u32 = 4357; +pub const __NR_membarrier: u32 = 4358; +pub const __NR_mlock2: u32 = 4359; +pub const __NR_copy_file_range: u32 = 4360; +pub const __NR_preadv2: u32 = 4361; +pub const __NR_pwritev2: u32 = 4362; +pub const __NR_pkey_mprotect: u32 = 4363; +pub const __NR_pkey_alloc: u32 = 4364; +pub const __NR_pkey_free: u32 = 4365; +pub const __NR_statx: u32 = 4366; +pub const __NR_rseq: u32 = 4367; +pub const __NR_io_pgetevents: u32 = 4368; +pub const __NR_semget: u32 = 4393; +pub const __NR_semctl: u32 = 4394; +pub const __NR_shmget: u32 = 4395; +pub const __NR_shmctl: u32 = 4396; +pub const __NR_shmat: u32 = 4397; +pub const __NR_shmdt: u32 = 4398; +pub const __NR_msgget: u32 = 4399; +pub const __NR_msgsnd: u32 = 4400; +pub const __NR_msgrcv: u32 = 4401; +pub const __NR_msgctl: u32 = 4402; +pub const __NR_clock_gettime64: u32 = 4403; +pub const __NR_clock_settime64: u32 = 4404; +pub const __NR_clock_adjtime64: u32 = 4405; +pub const __NR_clock_getres_time64: u32 = 4406; +pub const __NR_clock_nanosleep_time64: u32 = 4407; +pub const __NR_timer_gettime64: u32 = 4408; +pub const __NR_timer_settime64: u32 = 4409; +pub const __NR_timerfd_gettime64: u32 = 4410; +pub const __NR_timerfd_settime64: u32 = 4411; +pub const __NR_utimensat_time64: u32 = 4412; +pub const __NR_pselect6_time64: u32 = 4413; +pub const __NR_ppoll_time64: u32 = 4414; +pub const __NR_io_pgetevents_time64: u32 = 4416; +pub const __NR_recvmmsg_time64: u32 = 4417; +pub const __NR_mq_timedsend_time64: u32 = 4418; +pub const __NR_mq_timedreceive_time64: u32 = 4419; +pub const __NR_semtimedop_time64: u32 = 4420; +pub const __NR_rt_sigtimedwait_time64: u32 = 4421; +pub const __NR_futex_time64: u32 = 4422; +pub const __NR_sched_rr_get_interval_time64: u32 = 4423; +pub const __NR_pidfd_send_signal: u32 = 4424; +pub const __NR_io_uring_setup: u32 = 4425; +pub const __NR_io_uring_enter: u32 = 4426; +pub const __NR_io_uring_register: u32 = 4427; +pub const __NR_open_tree: u32 = 4428; +pub const __NR_move_mount: u32 = 4429; +pub const __NR_fsopen: u32 = 4430; +pub const __NR_fsconfig: u32 = 4431; +pub const __NR_fsmount: u32 = 4432; +pub const __NR_fspick: u32 = 4433; +pub const __NR_pidfd_open: u32 = 4434; +pub const __NR_clone3: u32 = 4435; +pub const __NR_close_range: u32 = 4436; +pub const __NR_openat2: u32 = 4437; +pub const __NR_pidfd_getfd: u32 = 4438; +pub const __NR_faccessat2: u32 = 4439; +pub const __NR_process_madvise: u32 = 4440; +pub const __NR_epoll_pwait2: u32 = 4441; +pub const __NR_mount_setattr: u32 = 4442; +pub const __NR_quotactl_fd: u32 = 4443; +pub const __NR_landlock_create_ruleset: u32 = 4444; +pub const __NR_landlock_add_rule: u32 = 4445; +pub const __NR_landlock_restrict_self: u32 = 4446; +pub const __NR_process_mrelease: u32 = 4448; +pub const __NR_futex_waitv: u32 = 4449; +pub const __NR_set_mempolicy_home_node: u32 = 4450; +pub const __NR_cachestat: u32 = 4451; +pub const __NR_fchmodat2: u32 = 4452; +pub const __NR_map_shadow_stack: u32 = 4453; +pub const __NR_futex_wake: u32 = 4454; +pub const __NR_futex_wait: u32 = 4455; +pub const __NR_futex_requeue: u32 = 4456; +pub const __NR_statmount: u32 = 4457; +pub const __NR_listmount: u32 = 4458; +pub const __NR_lsm_get_self_attr: u32 = 4459; +pub const __NR_lsm_set_self_attr: u32 = 4460; +pub const __NR_lsm_list_modules: u32 = 4461; +pub const __NR_mseal: u32 = 4462; +pub const __NR_setxattrat: u32 = 4463; +pub const __NR_getxattrat: u32 = 4464; +pub const __NR_listxattrat: u32 = 4465; +pub const __NR_removexattrat: u32 = 4466; +pub const __NR_open_tree_attr: u32 = 4467; +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 = 128; +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 = 128; +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 = 524416; +pub const TFD_CREATE_FLAGS: u32 = 524416; +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 POLLWRNORM: u32 = 4; +pub const TCSANOW: u32 = 21518; +pub const TCSADRAIN: u32 = 21519; +pub const TCSAFLUSH: u32 = 21520; +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/mips32r6/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..8d0bcc8d1bba679c1b5b526d5483d86c4341c39d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/if_arp.rs @@ -0,0 +1,2799 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 __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/mips32r6/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..b4254334fbb1daedddcfc56f804faf6b3d4df7c0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/if_ether.rs @@ -0,0 +1,178 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips32r6/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..0ea053f55fe53d627a505c1c267c783a02051942 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/if_packet.rs @@ -0,0 +1,319 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips32r6/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/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/mips32r6/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/mips32r6/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..371216ff2736e4510f8592dfa29e82f873117901 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/io_uring.rs @@ -0,0 +1,1448 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips32r6/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..5f9b56071a6d369b123c23a2c263e753fff5388f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/ioctl.rs @@ -0,0 +1,1496 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const FIONREAD: u32 = 18047; +pub const FIONBIO: u32 = 26238; +pub const FIOCLEX: u32 = 26113; +pub const FIONCLEX: u32 = 26114; +pub const FIOASYNC: u32 = 26237; +pub const FIOQSIZE: u32 = 26239; +pub const TCXONC: u32 = 21510; +pub const TCFLSH: u32 = 21511; +pub const TIOCSCTTY: u32 = 21632; +pub const TIOCSPGRP: u32 = 2147775606; +pub const TIOCOUTQ: u32 = 29810; +pub const TIOCSTI: u32 = 21618; +pub const TIOCSWINSZ: u32 = 2148037735; +pub const TIOCMGET: u32 = 29725; +pub const TIOCMBIS: u32 = 29723; +pub const TIOCMBIC: u32 = 29724; +pub const TIOCMSET: u32 = 29722; +pub const TIOCSSOFTCAR: u32 = 21634; +pub const TIOCLINUX: u32 = 21635; +pub const TIOCCONS: u32 = 2147775608; +pub const TIOCSSERIAL: u32 = 21637; +pub const TIOCPKT: u32 = 21616; +pub const TIOCNOTTY: u32 = 21617; +pub const TIOCSETD: u32 = 29697; +pub const TIOCSBRK: u32 = 21543; +pub const TIOCCBRK: u32 = 21544; +pub const TIOCSPTLCK: u32 = 2147767345; +pub const TIOCSIG: u32 = 2147767350; +pub const TIOCVHANGUP: u32 = 21559; +pub const TIOCSERCONFIG: u32 = 21640; +pub const TIOCSERGWILD: u32 = 21641; +pub const TIOCSERSWILD: u32 = 21642; +pub const TIOCSLCKTRMIOS: u32 = 21644; +pub const TIOCSERGSTRUCT: u32 = 21645; +pub const TIOCSERGETLSR: u32 = 21646; +pub const TIOCSERGETMULTI: u32 = 21647; +pub const TIOCSERSETMULTI: u32 = 21648; +pub const TIOCMIWAIT: u32 = 21649; +pub const TCGETS: u32 = 21517; +pub const TCGETA: u32 = 21505; +pub const TCSBRK: u32 = 21509; +pub const TCSBRKP: u32 = 21638; +pub const TCSETA: u32 = 21506; +pub const TCSETAF: u32 = 21508; +pub const TCSETAW: u32 = 21507; +pub const TIOCEXCL: u32 = 29709; +pub const TIOCNXCL: u32 = 29710; +pub const TIOCGDEV: u32 = 1074025522; +pub const TIOCGEXCL: u32 = 1074025536; +pub const TIOCGICOUNT: u32 = 21650; +pub const TIOCGLCKTRMIOS: u32 = 21643; +pub const TIOCGPGRP: u32 = 1074033783; +pub const TIOCGPKT: u32 = 1074025528; +pub const TIOCGPTLCK: u32 = 1074025529; +pub const TIOCGPTN: u32 = 1074025520; +pub const TIOCGPTPEER: u32 = 536892481; +pub const TIOCGSERIAL: u32 = 21636; +pub const TIOCGSID: u32 = 29718; +pub const TIOCGSOFTCAR: u32 = 21633; +pub const TIOCGWINSZ: u32 = 1074295912; +pub const TCGETS2: u32 = 1076909098; +pub const TCSETS: u32 = 21518; +pub const TCSETS2: u32 = 2150650923; +pub const TCSETSF: u32 = 21520; +pub const TCSETSF2: u32 = 2150650925; +pub const TCSETSW: u32 = 21519; +pub const TCSETSW2: u32 = 2150650924; +pub const TIOCGETD: u32 = 29696; +pub const TIOCGETP: u32 = 29704; +pub const TIOCGLTC: u32 = 29812; +pub const MTIOCGET: u32 = 1075604738; +pub const BLKSSZGET: u32 = 536875624; +pub const BLKPBSZGET: u32 = 536875643; +pub const BLKROSET: u32 = 536875613; +pub const BLKROGET: u32 = 536875614; +pub const BLKRRPART: u32 = 536875615; +pub const BLKGETSIZE: u32 = 536875616; +pub const BLKFLSBUF: u32 = 536875617; +pub const BLKRASET: u32 = 536875618; +pub const BLKRAGET: u32 = 536875619; +pub const BLKFRASET: u32 = 536875620; +pub const BLKFRAGET: u32 = 536875621; +pub const BLKSECTSET: u32 = 536875622; +pub const BLKSECTGET: u32 = 536875623; +pub const BLKPG: u32 = 536875625; +pub const BLKBSZGET: u32 = 1074008688; +pub const BLKBSZSET: u32 = 2147750513; +pub const BLKGETSIZE64: u32 = 1074008690; +pub const BLKTRACESETUP: u32 = 3225948787; +pub const BLKTRACESTART: u32 = 536875636; +pub const BLKTRACESTOP: u32 = 536875637; +pub const BLKTRACETEARDOWN: u32 = 536875638; +pub const BLKDISCARD: u32 = 536875639; +pub const BLKIOMIN: u32 = 536875640; +pub const BLKIOOPT: u32 = 536875641; +pub const BLKALIGNOFF: u32 = 536875642; +pub const BLKDISCARDZEROES: u32 = 536875644; +pub const BLKSECDISCARD: u32 = 536875645; +pub const BLKROTATIONAL: u32 = 536875646; +pub const BLKZEROOUT: u32 = 536875647; +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 = 1074833921; +pub const UFFDIO_WAKE: u32 = 1074833922; +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 = 536917761; +pub const NS_GET_PARENT: u32 = 536917762; +pub const NS_GET_NSTYPE: u32 = 536917763; +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 = 2147772028; +pub const FIOGETOWN: u32 = 1074030203; +pub const SIOCATMARK: u32 = 1074033415; +pub const SIOCGSTAMP: u32 = 35078; +pub const TIOCINQ: u32 = 18047; +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 = 536870913; +pub const FIGETBSZ: u32 = 536870914; +pub const FIFREEZE: u32 = 3221510263; +pub const FITHAW: u32 = 3221510264; +pub const FITRIM: u32 = 3222820985; +pub const FICLONE: u32 = 2147783689; +pub const FICLONERANGE: u32 = 2149618701; +pub const FIDEDUPERANGE: u32 = 3222836278; +pub const FS_IOC_GETFLAGS: u32 = 1074030081; +pub const FS_IOC_SETFLAGS: u32 = 2147771906; +pub const FS_IOC_GETVERSION: u32 = 1074034177; +pub const FS_IOC_SETVERSION: u32 = 2147776002; +pub const FS_IOC_FIEMAP: u32 = 3223348747; +pub const FS_IOC32_GETFLAGS: u32 = 1074030081; +pub const FS_IOC32_SETFLAGS: u32 = 2147771906; +pub const FS_IOC32_GETVERSION: u32 = 1074034177; +pub const FS_IOC32_SETVERSION: u32 = 2147776002; +pub const FS_IOC_FSGETXATTR: u32 = 1075599391; +pub const FS_IOC_FSSETXATTR: u32 = 2149341216; +pub const FS_IOC_GETFSLABEL: u32 = 1090556977; +pub const FS_IOC_SETFSLABEL: u32 = 2164298802; +pub const EXT4_IOC_GETVERSION: u32 = 1074030083; +pub const EXT4_IOC_SETVERSION: u32 = 2147771908; +pub const EXT4_IOC_GETVERSION_OLD: u32 = 1074034177; +pub const EXT4_IOC_SETVERSION_OLD: u32 = 2147776002; +pub const EXT4_IOC_GETRSVSZ: u32 = 1074030085; +pub const EXT4_IOC_SETRSVSZ: u32 = 2147771910; +pub const EXT4_IOC_GROUP_EXTEND: u32 = 2147771911; +pub const EXT4_IOC_MIGRATE: u32 = 536897033; +pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; +pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; +pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; +pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; +pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; +pub const EXT4_IOC_GETSTATE: u32 = 2147771945; +pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; +pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; +pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; +pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; +pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; +pub const EXT4_IOC32_GETRSVSZ: u32 = 1074030085; +pub const EXT4_IOC32_SETRSVSZ: u32 = 2147771910; +pub const EXT4_IOC32_GROUP_EXTEND: u32 = 2147771911; +pub const EXT4_IOC32_GETVERSION_OLD: u32 = 1074034177; +pub const EXT4_IOC32_SETVERSION_OLD: u32 = 2147776002; +pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 1074288191; +pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; +pub const LIRC_SET_SEND_CARRIER: u32 = 2147772691; +pub const AUTOFS_IOC_PROTOSUBVER: u32 = 1074041703; +pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; +pub const FSI_SCOM_WRITE: u32 = 3223352066; +pub const ATM_GETCIRANGE: u32 = 2148295050; +pub const DMA_BUF_SET_NAME_B: u32 = 2148033025; +pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; +pub const TUNSETPERSIST: u32 = 2147767499; +pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; +pub const CEC_RECEIVE: u32 = 3224920326; +pub const MGSL_IOCGPARAMS: u32 = 1075866881; +pub const ENI_SETMULT: u32 = 2148295015; +pub const RIO_GET_EVENT_MASK: u32 = 1074031886; +pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; +pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; +pub const CHIOMOVE: u32 = 2148819713; +pub const SONYPI_IOCGBATFLAGS: u32 = 1073837575; +pub const BTRFS_IOC_SYNC: u32 = 536908808; +pub const VIDIOC_TRY_FMT: u32 = 3234616896; +pub const LIRC_SET_REC_MODE: u32 = 2147772690; +pub const VIDIOC_DQEVENT: u32 = 1082152537; +pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 536917250; +pub const UVCIOC_CTRL_MAP: u32 = 3227022624; +pub const VHOST_SET_BACKEND_FEATURES: u32 = 2148052773; +pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 2148052832; +pub const UI_SET_KEYBIT: u32 = 2147767653; +pub const LIRC_SET_REC_TIMEOUT: u32 = 2147772696; +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 = 2148052754; +pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 2148035849; +pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3222820425; +pub const LIRC_GET_REC_MODE: u32 = 1074030850; +pub const PPGETTIME: u32 = 1074294933; +pub const BTRFS_IOC_RM_DEV: u32 = 2415957003; +pub const ATM_SETBACKEND: u32 = 2147639794; +pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; +pub const FBIO_WAITEVENT: u32 = 536888968; +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 = 536871513; +pub const NVME_IOCTL_SUBMIT_IO: u32 = 2150649410; +pub const NILFS_IOCTL_SYNC: u32 = 1074294410; +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 = 1074045957; +pub const NS_GETPSTAT: u32 = 3222036833; +pub const UI_SET_PROPBIT: u32 = 2147767662; +pub const TUNSETFILTEREBPF: u32 = 1074025697; +pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; +pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; +pub const WDIOC_SETOPTIONS: u32 = 1074026244; +pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; +pub const MGSL_IOCGTXIDLE: u32 = 536898819; +pub const ATM_ADDLECSADDR: u32 = 2148295054; +pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; +pub const FDGETPRM: u32 = 1075577348; +pub const HIDIOCAPPLICATION: u32 = 536889346; +pub const ENI_MEMDUMP: u32 = 2148295008; +pub const PTP_SYS_OFFSET2: u32 = 2202025230; +pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; +pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; +pub const PTP_PIN_GETFUNC: u32 = 3227532550; +pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; +pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; +pub const RTC_EPOCH_READ: u32 = 1074032653; +pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; +pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; +pub const ATM_GETLECSADDR: u32 = 2148295056; +pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; +pub const SONET_GETDIAG: u32 = 1074028820; +pub const ATMMPC_DATA: u32 = 536895961; +pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; +pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; +pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; +pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; +pub const UI_DEV_SETUP: u32 = 2153534723; +pub const ISST_IF_IO_CMD: u32 = 2147810818; +pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 1075342599; +pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; +pub const BLKGETNRZONES: u32 = 1074008709; +pub const VIDIOC_G_MODULATOR: u32 = 3225703990; +pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; +pub const USBDEVFS_SETINTERFACE: u32 = 1074287876; +pub const PPPIOCGCHAN: u32 = 1074033719; +pub const EVIOCGVERSION: u32 = 1074021633; +pub const VHOST_NET_SET_BACKEND: u32 = 2148052784; +pub const USBDEVFS_REAPURBNDELAY: u32 = 2147767565; +pub const RNDZAPENTCNT: u32 = 536891908; +pub const VIDIOC_G_PARM: u32 = 3234616853; +pub const TUNGETDEVNETNS: u32 = 536892643; +pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 2147772701; +pub const VHOST_SET_VRING_ERR: u32 = 2148052770; +pub const VDUSE_VQ_SETUP: u32 = 2149613844; +pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221525348; +pub const VIDIOC_S_FREQUENCY: u32 = 2150389305; +pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 2149119252; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; +pub const WDIOC_GETPRETIMEOUT: u32 = 1074026249; +pub const USBDEVFS_DROP_PRIVILEGES: u32 = 2147767582; +pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 2415957015; +pub const VHOST_VSOCK_SET_RUNNING: u32 = 2147790689; +pub const STP_SET_OPTIONS: u32 = 2148017410; +pub const FBIO_RADEON_GET_MIRROR: u32 = 1074020355; +pub const IVTVFB_IOC_DMA_FRAME: u32 = 2148292288; +pub const IPMICTL_SEND_COMMAND: u32 = 1075079437; +pub const VIDIOC_G_ENC_INDEX: u32 = 1209554508; +pub const DFL_FPGA_FME_PORT_PR: u32 = 536917632; +pub const CHIOSVOLTAG: u32 = 2150654738; +pub const ATM_SETESIF: u32 = 2148295053; +pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 2149065476; +pub const PMU_IOC_GET_MODEL: u32 = 1074020867; +pub const JSIOCGBTNMAP: u32 = 1140877876; +pub const USBDEVFS_HUB_PORTINFO: u32 = 1082152211; +pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; +pub const FDCLRPRM: u32 = 536871489; +pub const BTRFS_IOC_SCRUB: u32 = 3288372251; +pub const USBDEVFS_DISCONNECT: u32 = 536892694; +pub const TUNSETVNETBE: u32 = 2147767518; +pub const ATMTCP_REMOVE: u32 = 536895887; +pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; +pub const PPPIOCGNPMODE: u32 = 3221779532; +pub const FDGETDRVPRM: u32 = 1079509521; +pub const TUNSETVNETLE: u32 = 2147767516; +pub const PHN_SETREG: u32 = 2148036614; +pub const PPPIOCDETACH: u32 = 2147775548; +pub const MMTIMER_GETRES: u32 = 1074031873; +pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; +pub const PPGETFLAGS: u32 = 1074032794; +pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; +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 = 1074310688; +pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; +pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; +pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; +pub const MGSL_IOCGXCTRL: u32 = 536898838; +pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; +pub const SONYPI_IOCGBLUE: u32 = 1073837576; +pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; +pub const I2OHTML: u32 = 3223087369; +pub const VFIO_GET_API_VERSION: u32 = 536886116; +pub const IDT77105_GETSTATZ: u32 = 2148294963; +pub const I2OPARMSET: u32 = 3222825219; +pub const TEE_IOC_CANCEL: u32 = 1074308100; +pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; +pub const DFL_FPGA_PORT_RESET: u32 = 536917568; +pub const PPPIOCGASYNCMAP: u32 = 1074033752; +pub const EVIOCGKEYCODE_V2: u32 = 1076380932; +pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; +pub const HIDIOCSUSAGE: u32 = 2149074956; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065488; +pub const PTP_EXTTS_REQUEST: u32 = 2148547842; +pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; +pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; +pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 2162732865; +pub const JSIOCGAXES: u32 = 1073834513; +pub const HIDIOCSFLAG: u32 = 2147764239; +pub const PTP_PEROUT_REQUEST2: u32 = 2151169292; +pub const PPWDATA: u32 = 2147577990; +pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; +pub const FDGETMAXERRS: u32 = 1075053070; +pub const TUNSETQUEUE: u32 = 2147767513; +pub const PTP_ENABLE_PPS: u32 = 2147761412; +pub const SIOCSIFATMTCP: u32 = 536895872; +pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; +pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; +pub const NBD_SET_BLKSIZE: u32 = 536914689; +pub const NBD_SET_TIMEOUT: u32 = 536914697; +pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 2147790658; +pub const RIO_UNMAP_INBOUND: u32 = 2148035858; +pub const ATM_QUERYLOOP: u32 = 2148294996; +pub const DFL_FPGA_GET_API_VERSION: u32 = 536917504; +pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 536892707; +pub const FBIO_CURSOR: u32 = 3225961992; +pub const RNDCLEARPOOL: u32 = 536891910; +pub const VIDIOC_QUERYSTD: u32 = 1074288191; +pub const DMA_BUF_IOCTL_SYNC: u32 = 2148033024; +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 = 1076647434; +pub const PTP_ENABLE_PPS2: u32 = 2147761421; +pub const PCITEST_CLEAR_IRQ: u32 = 536891408; +pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 1074030864; +pub const BTRFS_IOC_DEVICES_READY: u32 = 1342215207; +pub const JSIOCGAXMAP: u32 = 1077963314; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 1074799372; +pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 2148541207; +pub const RTC_WIE_OFF: u32 = 536899600; +pub const PPGETMODE: u32 = 1074032792; +pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; +pub const PTP_SYS_OFFSET: u32 = 2202025221; +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 = 536908806; +pub const INOTIFY_IOC_SETNEXTWD: u32 = 2147764480; +pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 1074279182; +pub const TUNDETACHFILTER: u32 = 2148029654; +pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; +pub const IOC_PR_CLEAR: u32 = 2148561101; +pub const SCIF_READFROM: u32 = 3223876362; +pub const PPPIOCGDEBUG: u32 = 1074033729; +pub const BLKGETZONESZ: u32 = 1074008708; +pub const HIDIOCGUSAGES: u32 = 3491514387; +pub const SONYPI_IOCGTEMP: u32 = 1073837580; +pub const UI_SET_MSCBIT: u32 = 2147767656; +pub const APM_IOC_SUSPEND: u32 = 536887554; +pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; +pub const RTC_PLL_GET: u32 = 1075605521; +pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; +pub const USBDEVFS_DISCSIGNAL: u32 = 1074287886; +pub const LIRC_GET_MIN_TIMEOUT: u32 = 1074030856; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 1100502850; +pub const DM_TARGET_MSG: u32 = 3241737486; +pub const SONYPI_IOCGBAT1REM: u32 = 1073903107; +pub const EVIOCSFF: u32 = 2150385024; +pub const TUNSETGROUP: u32 = 2147767502; +pub const EVIOCGKEYCODE: u32 = 1074283780; +pub const KCOV_REMOTE_ENABLE: u32 = 2149081958; +pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; +pub const FDEJECT: u32 = 536871514; +pub const TUNSETOFFLOAD: u32 = 2147767504; +pub const PPPIOCCONNECT: u32 = 2147775546; +pub const ATM_ADDADDR: u32 = 2148295048; +pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; +pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; +pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; +pub const CCISS_PASSTHRU: u32 = 3226747403; +pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; +pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; +pub const ATMARPD_CTRL: u32 = 536895969; +pub const UI_ABS_SETUP: u32 = 2149340420; +pub const UI_DEV_DESTROY: u32 = 536892674; +pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; +pub const RTC_AIE_ON: u32 = 536899585; +pub const AUTOFS_IOC_EXPIRE: u32 = 1091343205; +pub const PPPIOCSDEBUG: u32 = 2147775552; +pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; +pub const PPPIOCSMRU: u32 = 2147775570; +pub const CCISS_DEREGDISK: u32 = 536887820; +pub const UI_DEV_CREATE: u32 = 536892673; +pub const FUSE_DEV_IOC_CLONE: u32 = 1074062592; +pub const BTRFS_IOC_START_SYNC: u32 = 1074304024; +pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 2148036225; +pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 1074279187; +pub const DM_TABLE_CLEAR: u32 = 3241737482; +pub const CCISS_GETINTINFO: u32 = 1074283010; +pub const PPPIOCSASYNCMAP: u32 = 2147775575; +pub const I2OEVTGET: u32 = 1080584459; +pub const NVME_IOCTL_RESET: u32 = 536890948; +pub const PPYIELD: u32 = 536899725; +pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; +pub const TUNSETCARRIER: u32 = 2147767522; +pub const DM_DEV_WAIT: u32 = 3241737480; +pub const RTC_WIE_ON: u32 = 536899599; +pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; +pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; +pub const MGSL_IOCSPARAMS: u32 = 2149608704; +pub const RTC_SET_TIME: u32 = 2149871626; +pub const VHOST_RESET_OWNER: u32 = 536915714; +pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; +pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; +pub const UDF_GETEABLOCK: u32 = 1074031681; +pub const VFIO_IOMMU_MAP_DMA: u32 = 536886129; +pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 2149602906; +pub const HIDIOCGFLAG: u32 = 1074022414; +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 = 2148577793; +pub const CCISS_GETFIRMVER: u32 = 1074020872; +pub const ND_IOCTL_ARS_START: u32 = 3223342594; +pub const PPPIOCSMRRU: u32 = 2147775547; +pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; +pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 1074050818; +pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; +pub const PPSETTIME: u32 = 2148036758; +pub const RTC_ALM_READ: u32 = 1076129800; +pub const VDUSE_SET_API_VERSION: u32 = 2148040961; +pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; +pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; +pub const USBDEVFS_CONNECT: u32 = 536892695; +pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; +pub const ATMARP_MKIP: u32 = 536895970; +pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; +pub const CCISS_GETHEARTBEAT: u32 = 1074020870; +pub const ATM_RSTADDR: u32 = 2148295047; +pub const NBD_SET_SIZE: u32 = 536914690; +pub const UDF_GETVOLIDENT: u32 = 1074031682; +pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; +pub const MGSL_IOCSTXIDLE: u32 = 536898818; +pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; +pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; +pub const PPRSTATUS: u32 = 1073836161; +pub const MGSL_IOCTXENABLE: u32 = 536898820; +pub const UDF_GETEASIZE: u32 = 1074031680; +pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; +pub const VHOST_SET_OWNER: u32 = 536915713; +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 = 2148295051; +pub const HPET_IE_ON: u32 = 536897537; +pub const PERF_EVENT_IOC_ID: u32 = 1074013191; +pub const TUNSETSNDBUF: u32 = 2147767508; +pub const PTP_PIN_SETFUNC: u32 = 2153790727; +pub const PPPIOCDISCONN: u32 = 536900665; +pub const VIDIOC_QUERYCTRL: u32 = 3225703972; +pub const PPEXCL: u32 = 536899727; +pub const PCITEST_MSI: u32 = 2147766275; +pub const FDWERRORCLR: u32 = 536871510; +pub const AUTOFS_IOC_FAIL: u32 = 536908641; +pub const USBDEVFS_IOCTL: u32 = 3222033682; +pub const VIDIOC_S_STD: u32 = 2148029976; +pub const F2FS_IOC_RESIZE_FS: u32 = 2148070672; +pub const SONET_SETDIAG: u32 = 3221512466; +pub const BTRFS_IOC_DEFRAG: u32 = 2415956994; +pub const CCISS_GETDRIVVER: u32 = 1074020873; +pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 1074293015; +pub const HPET_IRQFREQ: u32 = 2147772422; +pub const ATM_GETESI: u32 = 2148295045; +pub const CCISS_GETLUNINFO: u32 = 1074545169; +pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; +pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; +pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; +pub const UDMABUF_CREATE_LIST: u32 = 2148037955; +pub const VHOST_SET_LOG_BASE: u32 = 2148052740; +pub const ZATM_GETPOOL: u32 = 2148295009; +pub const BR2684_SETFILT: u32 = 2149343632; +pub const RNDGETPOOL: u32 = 1074287106; +pub const PPS_GETPARAMS: u32 = 1074032801; +pub const IOC_PR_RESERVE: u32 = 2148561097; +pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; +pub const RIO_CM_CHAN_CLOSE: u32 = 2147640068; +pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; +pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; +pub const PMU_IOC_GET_BACKLIGHT: u32 = 1074020865; +pub const USBDEVFS_GET_CAPABILITIES: u32 = 1074025754; +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 = 536887822; +pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; +pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; +pub const CAPI_GET_VERSION: u32 = 3222291207; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; +pub const VFIO_EEH_PE_OP: u32 = 536886137; +pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; +pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 1074328850; +pub const NBD_SET_SIZE_BLOCKS: u32 = 536914695; +pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 536916224; +pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; +pub const VIDIOC_S_AUDOUT: u32 = 2150913586; +pub const VIDIOC_S_FMT: u32 = 3234616837; +pub const PPPIOCATTACH: u32 = 2147775549; +pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052772; +pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; +pub const CCISS_BIG_PASSTHRU: u32 = 3227009554; +pub const IPMICTL_SET_MY_LUN_CMD: u32 = 1074030867; +pub const PCITEST_LEGACY_IRQ: u32 = 536891394; +pub const USBDEVFS_SUBMITURB: u32 = 1076647178; +pub const AUTOFS_IOC_READY: u32 = 536908640; +pub const BTRFS_IOC_SEND: u32 = 2152240166; +pub const VIDIOC_G_EXT_CTRLS: u32 = 3222820423; +pub const JSIOCSBTNMAP: u32 = 2214619699; +pub const PPPIOCSFLAGS: u32 = 2147775577; +pub const NVRAM_INIT: u32 = 536899648; +pub const RFKILL_IOCTL_NOINPUT: u32 = 536891905; +pub const BTRFS_IOC_BALANCE: u32 = 2415957004; +pub const FS_IOC_GETFSMAP: u32 = 3233830971; +pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; +pub const STP_POLICY_ID_GET: u32 = 1074799873; +pub const PPSETFLAGS: u32 = 2147774619; +pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; +pub const ATMTCP_CREATE: u32 = 536895886; +pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; +pub const PPPIOCGXASYNCMAP: u32 = 1075868752; +pub const VHOST_SET_VRING_CALL: u32 = 2148052769; +pub const LIRC_GET_FEATURES: u32 = 1074030848; +pub const GSMIOC_DISABLE_NET: u32 = 536889091; +pub const AUTOFS_IOC_CATATONIC: u32 = 536908642; +pub const NBD_DO_IT: u32 = 536914691; +pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 2147772703; +pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030873; +pub const EVIOCSCLOCKID: u32 = 2147763616; +pub const USBDEVFS_FREE_STREAMS: u32 = 1074287901; +pub const FSI_SCOM_RESET: u32 = 2147775235; +pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 1074020870; +pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; +pub const FDDEFPRM: u32 = 2149319235; +pub const TEE_IOC_INVOKE: u32 = 1074832387; +pub const USBDEVFS_BULK: u32 = 3222295810; +pub const SCIF_VWRITETO: u32 = 3223876365; +pub const SONYPI_IOCSBRT: u32 = 2147579392; +pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; +pub const RTC_PIE_ON: u32 = 536899589; +pub const BTRFS_IOC_SCAN_DEV: u32 = 2415956996; +pub const PPPIOCXFERUNIT: u32 = 536900686; +pub const WDIOC_GETTIMEOUT: u32 = 1074026247; +pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; +pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 2148054598; +pub const FBIO_WAITFORVSYNC: u32 = 2147763744; +pub const RTC_PIE_OFF: u32 = 536899590; +pub const EVIOCGRAB: u32 = 2147763600; +pub const PMU_IOC_SET_BACKLIGHT: u32 = 2147762690; +pub const EVIOCGREP: u32 = 1074283779; +pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 2147755019; +pub const UFFDIO_CONTINUE: u32 = 3223366151; +pub const VDUSE_GET_API_VERSION: u32 = 1074299136; +pub const RTC_RD_TIME: u32 = 1076129801; +pub const FDMSGOFF: u32 = 536871494; +pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; +pub const CAPI_GET_ERRCODE: u32 = 1073890081; +pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; +pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; +pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2147774202; +pub const RIO_DEV_ADD: u32 = 2149608727; +pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; +pub const FBIO_RADEON_SET_MIRROR: u32 = 2147762180; +pub const PCITEST_GET_IRQTYPE: u32 = 536891401; +pub const JSIOCGVERSION: u32 = 1074031105; +pub const SONYPI_IOCSBLUE: u32 = 2147579401; +pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 536883986; +pub const F2FS_IOC_GET_FEATURES: u32 = 1074066700; +pub const SCIF_REG: u32 = 3223876360; +pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 2155376264; +pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 2147754757; +pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; +pub const VHOST_SET_VRING_NUM: u32 = 2148052752; +pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; +pub const RIO_FREE_DMA: u32 = 2148035860; +pub const MGSL_IOCRXENABLE: u32 = 536898821; +pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; +pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; +pub const PPPIOCGL2TPSTATS: u32 = 1078490166; +pub const PERF_EVENT_IOC_PERIOD: u32 = 2148017156; +pub const PTP_PIN_SETFUNC2: u32 = 2153790736; +pub const CHIOEXCHANGE: u32 = 2149344002; +pub const NILFS_IOCTL_GET_SUINFO: u32 = 1075342980; +pub const CEC_DQEVENT: u32 = 3226493191; +pub const UI_SET_SWBIT: u32 = 2147767661; +pub const VHOST_VDPA_SET_CONFIG: u32 = 2148052852; +pub const TUNSETIFF: u32 = 2147767498; +pub const CHIOPOSITION: u32 = 2148295427; +pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; +pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; +pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; +pub const CAPI_CLR_FLAGS: u32 = 1074021157; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; +pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074032376; +pub const EVIOCSMASK: u32 = 2148550035; +pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; +pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; +pub const CEC_S_MODE: u32 = 2147770633; +pub const MGSL_IOCSIF: u32 = 536898826; +pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; +pub const PPSETMODE: u32 = 2147774592; +pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; +pub const VIDIOC_PREPARE_BUF: u32 = 3225704029; +pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 1078223114; +pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 2166386922; +pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; +pub const UDMABUF_CREATE: u32 = 2149086530; +pub const SONET_CLRDIAG: u32 = 3221512467; +pub const PHN_SET_REG: u32 = 2147774465; +pub const RNDADDTOENTCNT: u32 = 2147766785; +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 = 536899586; +pub const VFIO_GROUP_SET_CONTAINER: u32 = 536886120; +pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 2148016918; +pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 536886136; +pub const VFIO_IOMMU_GET_INFO: u32 = 536886128; +pub const DM_DEV_SUSPEND: u32 = 3241737478; +pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; +pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; +pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; +pub const ATMMPC_CTRL: u32 = 536895960; +pub const PPPIOCSXASYNCMAP: u32 = 2149610575; +pub const CHIOGSTATUS: u32 = 2148033288; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; +pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; +pub const CAPI_SET_FLAGS: u32 = 1074021156; +pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; +pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; +pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2147774200; +pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 536917570; +pub const VHOST_GET_FEATURES: u32 = 1074310912; +pub const LIRC_GET_REC_RESOLUTION: u32 = 1074030855; +pub const PACKET_CTRL_CMD: u32 = 3222820865; +pub const LIRC_SET_TRANSMITTER_MASK: u32 = 2147772695; +pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; +pub const JSIOCGCORR: u32 = 1076128290; +pub const VIDIOC_G_FMT: u32 = 3234616836; +pub const RTC_EPOCH_SET: u32 = 2147774478; +pub const CAPI_GET_PROFILE: u32 = 3225436937; +pub const ATM_GETLOOP: u32 = 2148294994; +pub const SCIF_LISTEN: u32 = 2147775234; +pub const NBD_CLEAR_QUE: u32 = 536914693; +pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; +pub const LIRC_GET_LENGTH: u32 = 1074030863; +pub const I8K_SET_FAN: u32 = 3221514631; +pub const FDSETMAXERRS: u32 = 2148794956; +pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 1077958144; +pub const SNAPSHOT_SET_SWAP_AREA: u32 = 2148283149; +pub const LIRC_GET_REC_TIMEOUT: u32 = 1074030884; +pub const EVIOCRMFF: u32 = 2147763585; +pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; +pub const PPRDATA: u32 = 1073836165; +pub const RIO_MPORT_GET_PROPERTIES: u32 = 1076915460; +pub const TUNSETVNETHDRSZ: u32 = 2147767512; +pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; +pub const GSMIOC_GETCONF: u32 = 1078740736; +pub const LIRC_GET_SEND_MODE: u32 = 1074030849; +pub const PPPIOCSACTIVE: u32 = 2148037702; +pub const SIOCGSTAMPNS_NEW: u32 = 1074825479; +pub const IPMICTL_RECEIVE_MSG: u32 = 3222825228; +pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 2147772693; +pub const UI_END_FF_ERASE: u32 = 2148292043; +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 = 536914698; +pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 536886124; +pub const REISERFS_IOC_UNPACK: u32 = 2147798273; +pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 2147754759; +pub const RIO_SET_EVENT_MASK: u32 = 2147773709; +pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 1074279188; +pub const VDUSE_VQ_INJECT_IRQ: u32 = 2147778839; +pub const I2OPASSTHRU: u32 = 1074293004; +pub const IOC_OPAL_SET_PW: u32 = 2183164128; +pub const FSI_SCOM_READ: u32 = 3223352065; +pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; +pub const VIDIOC_QBUF: u32 = 3225703951; +pub const VIDIOC_S_TUNER: u32 = 2153010718; +pub const TUNGETVNETHDRSZ: u32 = 1074025687; +pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; +pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; +pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; +pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; +pub const TEE_IOC_VERSION: u32 = 1074570240; +pub const VIDIOC_LOG_STATUS: u32 = 536892998; +pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1075603733; +pub const VHOST_SET_LOG_FD: u32 = 2147790599; +pub const SCIF_SEND: u32 = 3222827782; +pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; +pub const NS_ADJBUFLEV: u32 = 536895843; +pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; +pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; +pub const PHN_GETREG: u32 = 3221778437; +pub const I2OSWDL: u32 = 3223087365; +pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 536892931; +pub const JSIOCGBUTTONS: u32 = 1073834514; +pub const VFIO_IOMMU_ENABLE: u32 = 536886131; +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 = 2147790711; +pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; +pub const VIDIOC_S_CROP: u32 = 2148816444; +pub const WDIOC_GETTEMP: u32 = 1074026243; +pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 2165862628; +pub const UI_SET_LEDBIT: u32 = 2147767657; +pub const NBD_SET_SOCK: u32 = 536914688; +pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 2415957055; +pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; +pub const I2OSWUL: u32 = 3223087366; +pub const IOCTL_MEI_NOTIFY_GET: u32 = 1074022403; +pub const FDFMTTRK: u32 = 2148270664; +pub const MMTIMER_GETBITS: u32 = 536898820; +pub const VIDIOC_ENUMSTD: u32 = 3225966105; +pub const VHOST_GET_VRING_BASE: u32 = 3221794578; +pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; +pub const ATMARP_SETENTRY: u32 = 536895971; +pub const CCISS_REVALIDVOLS: u32 = 536887818; +pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; +pub const RTC_VL_READ: u32 = 1074032659; +pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; +pub const RIO_DEV_DEL: u32 = 2149608728; +pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; +pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; +pub const SONYPI_IOCSFAN: u32 = 2147579403; +pub const SPIOCSTYPE: u32 = 2147774721; +pub const IPMICTL_REGISTER_FOR_CMD: u32 = 1073899790; +pub const I8K_GET_FAN: u32 = 3221514630; +pub const TUNGETVNETBE: u32 = 1074025695; +pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; +pub const UI_END_FF_UPLOAD: u32 = 2153797065; +pub const TOSH_SMM: u32 = 3222828176; +pub const SONYPI_IOCGBAT2REM: u32 = 1073903109; +pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 1074328849; +pub const PPPIOCSNPMODE: u32 = 2148037707; +pub const USBDEVFS_CONTROL: u32 = 3222295808; +pub const HIDIOCGUSAGE: u32 = 3222816779; +pub const TUNSETTXFILTER: u32 = 2147767505; +pub const TUNGETVNETLE: u32 = 1074025693; +pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; +pub const MGSL_IOCGXSYNC: u32 = 536898836; +pub const HIDIOCGFIELDINFO: u32 = 3224913930; +pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; +pub const I2OVALIDATE: u32 = 1074030856; +pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; +pub const NILFS_IOCTL_GET_CPINFO: u32 = 1075342978; +pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; +pub const VFAT_IOCTL_READDIR_SHORT: u32 = 1108898306; +pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; +pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 1074328851; +pub const FDGETDRVSTAT: u32 = 1077150226; +pub const SYNC_IOC_MERGE: u32 = 3224387075; +pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; +pub const PPPIOCBRIDGECHAN: u32 = 2147775541; +pub const LIRC_SET_SEND_MODE: u32 = 2147772689; +pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 2148560139; +pub const ATM_GETTYPE: u32 = 2148295044; +pub const PHN_GETREGS: u32 = 3223875591; +pub const FDSETEMSGTRESH: u32 = 536871498; +pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; +pub const MGSL_IOCWAITEVENT: u32 = 3221515528; +pub const CAPI_INSTALLED: u32 = 1073890082; +pub const EVIOCGMASK: u32 = 1074808210; +pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; +pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; +pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; +pub const GSMIOC_GETFIRST: u32 = 1074022148; +pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; +pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; +pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; +pub const CAPI_GET_SERIAL: u32 = 3221504776; +pub const FDSETDRVPRM: u32 = 2153251472; +pub const IOC_OPAL_SAVE: u32 = 2165862620; +pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; +pub const TUNSETIFINDEX: u32 = 2147767514; +pub const CCISS_SETINTINFO: u32 = 2148024835; +pub const RTC_VL_CLR: u32 = 536899604; +pub const VIDIOC_REQBUFS: u32 = 3222558216; +pub const USBDEVFS_REAPURBNDELAY32: u32 = 2147767565; +pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; +pub const USBDEVFS_SETCONFIGURATION: u32 = 1074025733; +pub const CCISS_GETNODENAME: u32 = 1074807300; +pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; +pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; +pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 536886129; +pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 2150114066; +pub const LPSETTIMEOUT_NEW: u32 = 2148533775; +pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; +pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; +pub const FDRAWCMD: u32 = 536871512; +pub const SCIF_UNREG: u32 = 3222303497; +pub const PPPIOCGIDLE64: u32 = 1074820159; +pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; +pub const VIDIOC_CROPCAP: u32 = 3224131130; +pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; +pub const PHN_SET_REGS: u32 = 2147774467; +pub const ATMLEC_DATA: u32 = 536895953; +pub const PPPOEIOCDFWD: u32 = 536916225; +pub const VIDIOC_S_SELECTION: u32 = 3225441887; +pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; +pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; +pub const VIDIOC_S_CTRL: u32 = 3221771804; +pub const ZATM_SETPOOL: u32 = 2148295011; +pub const MTIOCPOS: u32 = 1074031875; +pub const PMU_IOC_SLEEP: u32 = 536887808; +pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; +pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; +pub const NILFS_IOCTL_GET_SUSTAT: u32 = 1076915845; +pub const VIDIOC_QUERYCAP: u32 = 1080579584; +pub const HPET_INFO: u32 = 1074554883; +pub const VIDIOC_AM437X_CCDC_CFG: u32 = 2147768001; +pub const DM_LIST_DEVICES: u32 = 3241737474; +pub const TUNSETOWNER: u32 = 2147767500; +pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; +pub const RNDADDENTROPY: u32 = 2148028931; +pub const USBDEVFS_RESET: u32 = 536892692; +pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 2415957006; +pub const USBDEVFS_FORBID_SUSPEND: u32 = 536892705; +pub const FDGETDRVTYP: u32 = 1074790927; +pub const PPWCONTROL: u32 = 2147577988; +pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; +pub const KCOV_DISABLE: u32 = 536896357; +pub const IOC_OPAL_ACTIVATE_LSP: u32 = 2165862623; +pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 1074835320; +pub const PPPIOCSPASS: u32 = 2148037703; +pub const RIO_CM_CHAN_CONNECT: u32 = 2148033288; +pub const I2OSWDEL: u32 = 3223087367; +pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 1074554387; +pub const IOC_OPAL_MBR_DONE: u32 = 2165338345; +pub const PPPIOCSMAXCID: u32 = 2147775569; +pub const PPSETPHASE: u32 = 2147774612; +pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 2148052853; +pub const USBDEVFS_GET_SPEED: u32 = 536892703; +pub const SONET_GETFRAMING: u32 = 1074028822; +pub const VIDIOC_QUERYBUF: u32 = 3225703945; +pub const VIDIOC_S_EDID: u32 = 3223606825; +pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 2149094441; +pub const PPS_GETCAP: u32 = 1074032803; +pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 536883983; +pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 2147772697; +pub const SCIF_GET_NODEIDS: u32 = 3222827790; +pub const NBD_DISCONNECT: u32 = 536914696; +pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; +pub const VFIO_IOMMU_DISABLE: u32 = 536886132; +pub const SNAPSHOT_CREATE_IMAGE: u32 = 2147758865; +pub const SNAPSHOT_POWER_OFF: u32 = 536883984; +pub const APM_IOC_STANDBY: u32 = 536887553; +pub const PPPIOCGUNIT: u32 = 1074033750; +pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 2147783526; +pub const SCIF_BIND: u32 = 3221779201; +pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 536893280; +pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 2148560512; +pub const IOC_OPAL_LOCK_UNLOCK: u32 = 2165862621; +pub const F2FS_IOC_SET_PIN_FILE: u32 = 2147808525; +pub const PPPIOCGRASYNCMAP: u32 = 1074033749; +pub const MMTIMER_MMAPAVAIL: u32 = 536898822; +pub const I2OPASSTHRU32: u32 = 1074293004; +pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 2147792513; +pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 1082414691; +pub const UI_SET_SNDBIT: u32 = 2147767658; +pub const VIDIOC_G_AUDOUT: u32 = 1077171761; +pub const RTC_PLL_SET: u32 = 2149347346; +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 = 2147790660; +pub const VHOST_SET_VRING_ADDR: u32 = 2150149905; +pub const VDUSE_CREATE_DEV: u32 = 2169536770; +pub const FDFLUSH: u32 = 536871499; +pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; +pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 2148054660; +pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; +pub const SCIF_CONNECT: u32 = 3221779203; +pub const BLKREPORTZONE: u32 = 3222278786; +pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; +pub const ATM_ADDPARTY: u32 = 2148033012; +pub const FDSETPRM: u32 = 2149319234; +pub const ATM_GETSTATZ: u32 = 2148294993; +pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; +pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 1106809916; +pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 2149602907; +pub const SEV_ISSUE_CMD: u32 = 3222295296; +pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; +pub const PCITEST_COPY: u32 = 2147766278; +pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; +pub const CHIOGPICKER: u32 = 1074029316; +pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; +pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; +pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2147755014; +pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; +pub const CHIOGVPARAMS: u32 = 1081107219; +pub const PTP_PEROUT_REQUEST: u32 = 2151169283; +pub const FSI_SCOM_CHECK: u32 = 1074033408; +pub const RTC_IRQP_READ: u32 = 1074032651; +pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 1075342597; +pub const HIDIOCGRDESCSIZE: u32 = 1074022401; +pub const UI_GET_VERSION: u32 = 1074025773; +pub const NILFS_IOCTL_GET_CPSTAT: u32 = 1075342979; +pub const CCISS_GETBUSTYPES: u32 = 1074020871; +pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 536886135; +pub const VIDIOC_EXPBUF: u32 = 3225441808; +pub const UI_SET_RELBIT: u32 = 2147767654; +pub const VFIO_SET_IOMMU: u32 = 536886118; +pub const VIDIOC_S_MODULATOR: u32 = 2151962167; +pub const TUNGETFILTER: u32 = 1074287835; +pub const CCISS_SETNODENAME: u32 = 2148549125; +pub const FBIO_GETCONTROL2: u32 = 1074022025; +pub const TUNSETDEBUG: u32 = 2147767497; +pub const DM_DEV_REMOVE: u32 = 3241737476; +pub const HIDIOCSUSAGES: u32 = 2417772564; +pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; +pub const FBIOGET_VBLANK: u32 = 1075856914; +pub const ATM_GETSTAT: u32 = 2148294992; +pub const VIDIOC_G_JPEGCOMP: u32 = 1082938941; +pub const TUNATTACHFILTER: u32 = 2148029653; +pub const UI_SET_ABSBIT: u32 = 2147767655; +pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; +pub const USBDEVFS_REAPURB32: u32 = 2147767564; +pub const BTRFS_IOC_TRANS_END: u32 = 536908807; +pub const CAPI_REGISTER: u32 = 2148287233; +pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; +pub const USBDEVFS_DISCARDURB: u32 = 536892683; +pub const HE_GET_REG: u32 = 2148295008; +pub const ATM_SETLOOP: u32 = 2148294995; +pub const ATMSIGD_CTRL: u32 = 536895984; +pub const CIOC_KERNEL_VERSION: u32 = 3221512970; +pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; +pub const SNAPSHOT_UNFREEZE: u32 = 536883970; +pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 536933635; +pub const PMU_IOC_HAS_ADB: u32 = 1074020868; +pub const I2OGETIOPS: u32 = 1075865856; +pub const VIDIOC_S_FBUF: u32 = 2150389259; +pub const PPRCONTROL: u32 = 1073836163; +pub const CHIOSPICKER: u32 = 2147771141; +pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 536886133; +pub const TUNGETSNDBUF: u32 = 1074025683; +pub const GSMIOC_SETCONF: u32 = 2152482561; +pub const IOC_PR_PREEMPT: u32 = 2149085387; +pub const KCOV_INIT_TRACE: u32 = 1074029313; +pub const SONYPI_IOCGBAT1CAP: u32 = 1073903106; +pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 1074812736; +pub const MTIOCTOP: u32 = 2148035841; +pub const VHOST_VDPA_SET_STATUS: u32 = 2147594098; +pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 2147790659; +pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 536886133; +pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; +pub const PPPIOCGMRU: u32 = 1074033747; +pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; +pub const PPPIOCGFLAGS: u32 = 1074033754; +pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; +pub const ATM_DELLECSADDR: u32 = 2148295055; +pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; +pub const PPPIOCGIDLE32: u32 = 1074295871; +pub const VFIO_DEVICE_RESET: u32 = 536886127; +pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; +pub const WDIOC_GETSTATUS: u32 = 1074026241; +pub const BTRFS_IOC_SET_FEATURES: u32 = 2150667321; +pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; +pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; +pub const PCITEST_READ: u32 = 2147766277; +pub const VFIO_GROUP_GET_STATUS: u32 = 536886119; +pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 1074032379; +pub const USBDEVFS_CLEAR_HALT: u32 = 1074025749; +pub const VIDIOC_DECODER_CMD: u32 = 3225966176; +pub const VIDIOC_G_AUDIO: u32 = 1077171745; +pub const CCISS_RESCANDISK: u32 = 536887824; +pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 2148560140; +pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 2165338343; +pub const USBDEVFS_REAPURB: u32 = 2147767564; +pub const DFL_FPGA_CHECK_EXTENSION: u32 = 536917505; +pub const AUTOFS_IOC_PROTOVER: u32 = 1074041699; +pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; +pub const BTRFS_IOC_GET_FEATURES: u32 = 1075352633; +pub const PCITEST_MSIX: u32 = 2147766279; +pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 2150667280; +pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; +pub const DM_GET_TARGET_VERSION: u32 = 3241737489; +pub const PPPIOCGIDLE: u32 = 1074295871; +pub const NVRAM_SETCKS: u32 = 536899649; +pub const WDIOC_GETSUPPORT: u32 = 1076385536; +pub const GSMIOC_ENABLE_NET: u32 = 2150909698; +pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 1078244353; +pub const NE_ADD_VCPU: u32 = 3221532193; +pub const EVIOCSKEYCODE_V2: u32 = 2150122756; +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 = 2149084422; +pub const I2OEVTREG: u32 = 2148296970; +pub const I2OPARMGET: u32 = 3222825220; +pub const EVIOCGID: u32 = 1074283778; +pub const BTRFS_IOC_QGROUP_CREATE: u32 = 2148570154; +pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; +pub const VIDIOC_S_PARM: u32 = 3234616854; +pub const TUNSETSTEERINGEBPF: u32 = 1074025696; +pub const ATM_GETNAMES: u32 = 2148032899; +pub const VIDIOC_QUERYMENU: u32 = 3224131109; +pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; +pub const I2OLCTGET: u32 = 3222038786; +pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; +pub const NS_SETBUFLEV: u32 = 2148295010; +pub const BLKCLOSEZONE: u32 = 2148536967; +pub const SONET_GETFRSENSE: u32 = 1074159895; +pub const UI_SET_EVBIT: u32 = 2147767652; +pub const DM_LIST_VERSIONS: u32 = 3241737485; +pub const HIDIOCGSTRING: u32 = 1090799620; +pub const PPPIOCATTCHAN: u32 = 2147775544; +pub const VDUSE_DEV_SET_CONFIG: u32 = 2148040978; +pub const TUNGETFEATURES: u32 = 1074025679; +pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 536886121; +pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 1074030865; +pub const CCISS_REGNEWDISK: u32 = 2147762701; +pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 1082414691; +pub const PHN_SETREGS: u32 = 2150133768; +pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 1074033168; +pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; +pub const TUNGETIFF: u32 = 1074025682; +pub const PTP_CLOCK_GETCAPS2: u32 = 1079000330; +pub const BTRFS_IOC_RESIZE: u32 = 2415956995; +pub const VHOST_SET_VRING_ENDIAN: u32 = 2148052755; +pub const PPS_KC_BIND: u32 = 2147774629; +pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 536933639; +pub const UI_SET_FFBIT: u32 = 2147767659; +pub const IPMICTL_GET_MY_LUN_CMD: u32 = 1074030868; +pub const CEC_ADAP_G_PHYS_ADDR: u32 = 1073897729; +pub const CEC_G_MODE: u32 = 1074028808; +pub const USBDEVFS_RESETEP: u32 = 1074025731; +pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; +pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; +pub const MGSL_IOCSXCTRL: u32 = 536898837; +pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; +pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; +pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; +pub const ISST_IF_GET_PLATFORM_INFO: u32 = 1074068992; +pub const SCIF_FENCE_MARK: u32 = 3222303503; +pub const USBDEVFS_RELEASE_PORT: u32 = 1074025753; +pub const VFIO_CHECK_EXTENSION: u32 = 536886117; +pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 1076925483; +pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; +pub const UI_SET_PHYS: u32 = 2147767660; +pub const FDWERRORGET: u32 = 1075315223; +pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; +pub const MGSL_IOCGSTATS: u32 = 536898823; +pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; +pub const SIOCGSTAMP_NEW: u32 = 1074825478; +pub const RTC_WKALM_RD: u32 = 1076391952; +pub const PHN_GET_REG: u32 = 3221516288; +pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; +pub const PHN_NOT_OH: u32 = 536899588; +pub const PPGETMODES: u32 = 1074032791; +pub const CHIOGPARAMS: u32 = 1075077894; +pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; +pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; +pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; +pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; +pub const MGSL_IOCWAITGPIO: u32 = 3222301970; +pub const PMU_IOC_CAN_SLEEP: u32 = 1074020869; +pub const KCOV_ENABLE: u32 = 536896356; +pub const BTRFS_IOC_CLONE: u32 = 2147783689; +pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; +pub const AGPIOC_ALLOCATE: u32 = 3221504262; +pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; +pub const MGSL_IOCTXABORT: u32 = 536898822; +pub const MGSL_IOCSGPIO: u32 = 2148560144; +pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; +pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; +pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; +pub const RTC_UIE_OFF: u32 = 536899588; +pub const BT_BMC_IOCTL_SMS_ATN: u32 = 536916224; +pub const NVME_IOCTL_ID: u32 = 536890944; +pub const NE_START_ENCLAVE: u32 = 3222318628; +pub const VIDIOC_STREAMON: u32 = 2147767826; +pub const FDPOLLDRVSTAT: u32 = 1077150227; +pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; +pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; +pub const VIDIOC_SUBDEV_S_STD: u32 = 2148029976; +pub const WDIOC_GETTIMELEFT: u32 = 1074026250; +pub const ATM_GETLINKRATE: u32 = 2148295041; +pub const RTC_WKALM_SET: u32 = 2150133775; +pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; +pub const ATMARP_ENCAP: u32 = 536895973; +pub const CAPI_GET_FLAGS: u32 = 1074021155; +pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; +pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; +pub const NS_GET_OWNER_UID: u32 = 536917764; +pub const VIDIOC_OVERLAY: u32 = 2147767822; +pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; +pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; +pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; +pub const ATM_GETADDR: u32 = 2148295046; +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 = 536883979; +pub const JSIOCSAXMAP: u32 = 2151705137; +pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 2147677462; +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 = 536886128; +pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; +pub const MMTIMER_GETOFFSET: u32 = 536898816; +pub const RIO_CM_CHAN_LISTEN: u32 = 2147640070; +pub const ATM_SETSC: u32 = 2147770865; +pub const F2FS_IOC_SHUTDOWN: u32 = 1074026621; +pub const NVME_IOCTL_RESCAN: u32 = 536890950; +pub const BLKOPENZONE: u32 = 2148536966; +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 = 536895968; +pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; +pub const HIDIOCGVERSION: u32 = 1074022401; +pub const VIDIOC_S_INPUT: u32 = 3221509671; +pub const VIDIOC_G_CROP: u32 = 3222558267; +pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 2147772707; +pub const EVIOCGEFFECTS: u32 = 1074021764; +pub const UVCIOC_CTRL_QUERY: u32 = 3222041889; +pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; +pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; +pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; +pub const USBDEVFS_GETDRIVER: u32 = 2164544776; +pub const IDT77105_GETSTAT: u32 = 2148294962; +pub const HIDIOCINITREPORT: u32 = 536889349; +pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; +pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; +pub const RNDGETENTCNT: u32 = 1074024960; +pub const PPPIOCNEWUNIT: u32 = 3221517374; +pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; +pub const FDRESET: u32 = 536871508; +pub const IOC_PR_REGISTER: u32 = 2149085384; +pub const HIDIOCSREPORT: u32 = 2148288520; +pub const TEE_IOC_OPEN_SESSION: u32 = 1074832386; +pub const TEE_IOC_SUPPL_RECV: u32 = 1074832390; +pub const BTRFS_IOC_BALANCE_CTL: u32 = 2147783713; +pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; +pub const HIDIOCGRAWINFO: u32 = 1074284547; +pub const PPPIOCSCOMPRESS: u32 = 2148299853; +pub const USBDEVFS_CONNECTINFO: u32 = 2148029713; +pub const BLKRESETZONE: u32 = 2148536963; +pub const CHIOINITELEM: u32 = 536896273; +pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 2148560524; +pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; +pub const RIO_MPORT_MAINT_HDID_SET: u32 = 2147642625; +pub const PPGETPHASE: u32 = 1074032793; +pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 1091065115; +pub const FDMSGON: u32 = 536871493; +pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; +pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; +pub const MEDIA_REQUEST_IOC_REINIT: u32 = 536902785; +pub const IOC_OPAL_ERASE_LR: u32 = 2165338342; +pub const FDFMTBEG: u32 = 536871495; +pub const RNDRESEEDCRNG: u32 = 536891911; +pub const ISST_IF_GET_PHY_ID: u32 = 3221552641; +pub const TUNSETNOCSUM: u32 = 2147767496; +pub const SONET_GETSTAT: u32 = 1076125968; +pub const TFD_IOC_SET_TICKS: u32 = 2148029440; +pub const PPDATADIR: u32 = 2147774608; +pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 2165338341; +pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; +pub const RIO_CM_CHAN_SEND: u32 = 2148557577; +pub const PPWCTLONIRQ: u32 = 2147578002; +pub const SONYPI_IOCGBRT: u32 = 1073837568; +pub const IOC_PR_RELEASE: u32 = 2148561098; +pub const PPCLRIRQ: u32 = 1074032787; +pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; +pub const MGSL_IOCSXSYNC: u32 = 536898835; +pub const HPET_IE_OFF: u32 = 536897538; +pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; +pub const SONET_SETFRAMING: u32 = 2147770645; +pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 2147755017; +pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; +pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; +pub const BLKFINISHZONE: u32 = 2148536968; +pub const EVIOCREVOKE: u32 = 2147763601; +pub const VFIO_DEVICE_FEATURE: u32 = 536886133; +pub const CCISS_GETPCIINFO: u32 = 1074283009; +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 = 2147767827; +pub const VDUSE_DESTROY_DEV: u32 = 2164293891; +pub const FDGETFDCSTAT: u32 = 1075839509; +pub const VIDIOC_S_PRIORITY: u32 = 2147767876; +pub const SNAPSHOT_FREEZE: u32 = 536883969; +pub const VIDIOC_ENUMINPUT: u32 = 3226490394; +pub const ZATM_GETPOOLZ: u32 = 2148295010; +pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; +pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; +pub const VIDIOC_G_STD: u32 = 1074288151; +pub const USBDEVFS_ALLOW_SUSPEND: u32 = 536892706; +pub const SONET_GETSTATZ: u32 = 1076125969; +pub const SCIF_ACCEPTREG: u32 = 3221779205; +pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; +pub const PPPIOCSRASYNCMAP: u32 = 2147775572; +pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; +pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; +pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; +pub const ATMLEC_CTRL: u32 = 536895952; +pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074032377; +pub const DM_DEV_CREATE: u32 = 3241737475; +pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; +pub const VIDIOC_G_CTRL: u32 = 3221771803; +pub const NBD_CLEAR_SOCK: u32 = 536914692; +pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 536886130; +pub const WDIOC_KEEPALIVE: u32 = 1074026245; +pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; +pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; +pub const PCITEST_BAR: u32 = 536891393; +pub const MGSL_IOCGGPIO: u32 = 1074818321; +pub const EVIOCSREP: u32 = 2148025603; +pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; +pub const HPET_DPI: u32 = 536897541; +pub const VDUSE_VQ_SETUP_KICKFD: u32 = 2148040982; +pub const ND_IOCTL_CALL: u32 = 3225439754; +pub const HIDIOCGDEVINFO: u32 = 1075595267; +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 = 1074026051; +pub const ATM_NEWBACKENDIF: u32 = 2147639795; +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 = 2150651474; +pub const DM_TABLE_LOAD: u32 = 3241737481; +pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; +pub const VIDIOC_G_OUTPUT: u32 = 1074026030; +pub const ATM_DROPPARTY: u32 = 2147770869; +pub const CHIOGELEM: u32 = 2154586896; +pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; +pub const EVIOCSKEYCODE: u32 = 2148025604; +pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; +pub const TUNSETLINK: u32 = 2147767501; +pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; +pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 536908828; +pub const PPS_SETPARAMS: u32 = 2147774626; +pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; +pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; +pub const WDIOC_SETTIMEOUT: u32 = 3221509894; +pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; +pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; +pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; +pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; +pub const VIDIOC_G_EDID: u32 = 3223606824; +pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 2149119243; +pub const RIO_MAP_INBOUND: u32 = 3223874833; +pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 2164814046; +pub const USBDEVFS_CLAIM_PORT: u32 = 1074025752; +pub const VIDIOC_S_AUDIO: u32 = 2150913570; +pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 1074816539; +pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 2150114067; +pub const BTRFS_IOC_SNAP_DESTROY: u32 = 2415957007; +pub const SNAPSHOT_FREE: u32 = 536883973; +pub const I8K_GET_SPEED: u32 = 3221514629; +pub const HIDIOCGREPORT: u32 = 2148288519; +pub const HPET_EPI: u32 = 536897540; +pub const JSIOCSCORR: u32 = 2149870113; +pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; +pub const RIO_MAP_OUTBOUND: u32 = 3223874831; +pub const ATM_SETESI: u32 = 2148295052; +pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; +pub const ATM_DELADDR: u32 = 2148295049; +pub const PPFCONTROL: u32 = 2147643534; +pub const SONYPI_IOCGFAN: u32 = 1073837578; +pub const RTC_IRQP_SET: u32 = 2147774476; +pub const PCITEST_WRITE: u32 = 2147766276; +pub const PPCLAIM: u32 = 536899723; +pub const VIDIOC_S_JPEGCOMP: u32 = 2156680766; +pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 1073899791; +pub const VHOST_SET_FEATURES: u32 = 2148052736; +pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; +pub const VIDIOC_DQBUF: u32 = 3225703953; +pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; +pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; +pub const ATMLEC_MCAST: u32 = 536895954; +pub const MMTIMER_GETFREQ: u32 = 1074031874; +pub const VIDIOC_G_SELECTION: u32 = 3225441886; +pub const RTC_ALM_SET: u32 = 2149871623; +pub const PPPOEIOCSFWD: u32 = 2147791104; +pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; +pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; +pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; +pub const FDFMTEND: u32 = 536871497; +pub const DMA_BUF_SET_NAME: u32 = 2147770881; +pub const UI_BEGIN_FF_UPLOAD: u32 = 3227538888; +pub const RTC_UIE_ON: u32 = 536899587; +pub const PPRELEASE: u32 = 536899724; +pub const VFIO_IOMMU_UNMAP_DMA: u32 = 536886130; +pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3225179842; +pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; +pub const VFAT_IOCTL_READDIR_BOTH: u32 = 1108898305; +pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; +pub const VHOST_SET_VRING_KICK: u32 = 2148052768; +pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 2415957016; +pub const BTRFS_IOC_SNAP_CREATE: u32 = 2415956993; +pub const SONYPI_IOCGBAT2CAP: u32 = 1073903108; +pub const PPNEGOT: u32 = 2147774609; +pub const NBD_PRINT_DEBUG: u32 = 536914694; +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 = 1140888607; +pub const VIDIOC_ENUM_FMT: u32 = 3225441794; +pub const VIDIOC_G_INPUT: u32 = 1074026022; +pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; +pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 1074050691; +pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; +pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 2151715884; +pub const MMTIMER_GETCOUNTER: u32 = 1074031881; +pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; +pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; +pub const RIO_CM_CHAN_BIND: u32 = 2148033285; +pub const HIDIOCGRDESC: u32 = 1342457858; +pub const MGSL_IOCGIF: u32 = 536898827; +pub const VIDIOC_S_OUTPUT: u32 = 3221509679; +pub const HIDIOCGREPORTINFO: u32 = 3222030345; +pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; +pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; +pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 2149884501; +pub const BLKGETDISKSEQ: u32 = 1074270848; +pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; +pub const ACRN_IOCTL_DESTROY_VM: u32 = 536912401; +pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 2148835923; +pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 536912434; +pub const ACRN_IOCTL_IRQFD: u32 = 2149098097; +pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; +pub const ACRN_IOCTL_INJECT_MSI: u32 = 2148573731; +pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 536912435; +pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 2148835924; +pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 2148049457; +pub const ACRN_IOCTL_SET_IRQLINE: u32 = 2148049445; +pub const ACRN_IOCTL_START_VM: u32 = 536912402; +pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 2166923798; +pub const ACRN_IOCTL_SET_MEMSEG: u32 = 2149622337; +pub const ACRN_IOCTL_PAUSE_VM: u32 = 536912403; +pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 536912437; +pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 2149622338; +pub const ACRN_IOCTL_IOEVENTFD: u32 = 2149622384; +pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; +pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; +pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; +pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2147787300; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..636ba35f465ce0d513b80980886c7c208eae329a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/landlock.rs @@ -0,0 +1,112 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips32r6/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..8865f5d656958ac7e0cbb7fcb97bd558233b648b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/loop_device.rs @@ -0,0 +1,142 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips32r6/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/mempolicy.rs new file mode 100644 index 0000000000000000000000000000000000000000..f36e463e942f1dd04be76a000231941d88b79a85 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/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 ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +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 EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; +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/mips32r6/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..3c0fd983335f8c79a710a82a2fb3145786587cd6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/net.rs @@ -0,0 +1,3514 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +pub const IOCSIZE_SHIFT: u32 = 16; +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_REUSEADDR: u32 = 4; +pub const SO_KEEPALIVE: u32 = 8; +pub const SO_DONTROUTE: u32 = 16; +pub const SO_BROADCAST: u32 = 32; +pub const SO_LINGER: u32 = 128; +pub const SO_OOBINLINE: u32 = 256; +pub const SO_REUSEPORT: u32 = 512; +pub const SO_TYPE: u32 = 4104; +pub const SO_STYLE: u32 = 4104; +pub const SO_ERROR: u32 = 4103; +pub const SO_SNDBUF: u32 = 4097; +pub const SO_RCVBUF: u32 = 4098; +pub const SO_SNDLOWAT: u32 = 4099; +pub const SO_RCVLOWAT: u32 = 4100; +pub const SO_SNDTIMEO_OLD: u32 = 4101; +pub const SO_RCVTIMEO_OLD: u32 = 4102; +pub const SO_ACCEPTCONN: u32 = 4105; +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_BSDCOMPAT: u32 = 14; +pub const SO_PASSCRED: u32 = 17; +pub const SO_PEERCRED: u32 = 18; +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_PEERSEC: u32 = 30; +pub const SO_SNDBUFFORCE: u32 = 31; +pub const SO_RCVBUFFORCE: u32 = 33; +pub const SO_PASSSEC: u32 = 34; +pub const SO_MARK: u32 = 36; +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 = 2; +pub const SOCK_DGRAM: u32 = 1; +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/mips32r6/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..edc054cf732faf67b38498024e695e54178c28f5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/netlink.rs @@ -0,0 +1,5469 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 __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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: 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 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/mips32r6/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..56851873644faac8e0811fa402dea3024f23bbd0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/prctl.rs @@ -0,0 +1,279 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips32r6/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..9b785f7d5fbfb29bf735541114439b4e56af3184 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/ptrace.rs @@ -0,0 +1,872 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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 regs: [__u64; 32usize], +pub lo: __u64, +pub hi: __u64, +pub cp0_epc: __u64, +pub cp0_badvaddr: __u64, +pub cp0_status: __u64, +pub cp0_cause: __u64, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct mips32_watch_regs { +pub watchlo: [crate::ctypes::c_uint; 8usize], +pub watchhi: [crate::ctypes::c_ushort; 8usize], +pub watch_masks: [crate::ctypes::c_ushort; 8usize], +pub num_valid: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mips64_watch_regs { +pub watchlo: [crate::ctypes::c_ulonglong; 8usize], +pub watchhi: [crate::ctypes::c_ushort; 8usize], +pub watch_masks: [crate::ctypes::c_ushort; 8usize], +pub num_valid: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct pt_watch_regs { +pub style: pt_watch_style, +pub __bindgen_anon_1: pt_watch_regs__bindgen_ty_1, +} +#[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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 FPR_BASE: u32 = 32; +pub const PC: u32 = 64; +pub const CAUSE: u32 = 65; +pub const BADVADDR: u32 = 66; +pub const MMHI: u32 = 67; +pub const MMLO: u32 = 68; +pub const FPC_CSR: u32 = 69; +pub const FPC_EIR: u32 = 70; +pub const DSP_BASE: u32 = 71; +pub const DSP_CONTROL: u32 = 77; +pub const ACX: u32 = 78; +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_OLDSETOPTIONS: u32 = 21; +pub const PTRACE_GET_THREAD_AREA: u32 = 25; +pub const PTRACE_SET_THREAD_AREA: u32 = 26; +pub const PTRACE_PEEKTEXT_3264: u32 = 192; +pub const PTRACE_PEEKDATA_3264: u32 = 193; +pub const PTRACE_POKETEXT_3264: u32 = 194; +pub const PTRACE_POKEDATA_3264: u32 = 195; +pub const PTRACE_GET_THREAD_AREA_3264: u32 = 196; +pub const PTRACE_GET_WATCH_REGS: u32 = 208; +pub const PTRACE_SET_WATCH_REGS: u32 = 209; +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 pt_watch_style { +pt_watch_style_mips32 = 0, +pt_watch_style_mips64 = 1, +} +#[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 pt_watch_regs__bindgen_ty_1 { +pub mips32: mips32_watch_regs, +pub mips64: mips64_watch_regs, +} +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/mips32r6/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..e15e4fd7a7805582c7b15381feb748090db88c94 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/system.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_daddr_t = crate::ctypes::c_long; +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_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 = 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips32r6/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..84ae198a976edfda7af57d72689561085d60015c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips32r6/xdp.rs @@ -0,0 +1,201 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_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 = 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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/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/mips64/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/mips64/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/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/mips64/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/mips64/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..014724792019b79fa6f43d705bf2574cc3bbc745 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/btrfs.rs @@ -0,0 +1,1906 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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)] +#[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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +pub const _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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/mips64/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..ae1f8a11d6277da9c4e43eaeb1cc711f2f33fc36 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/elf_uapi.rs @@ -0,0 +1,664 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..59b928fcb02b282b8fbe061e1241ae5c9866fb52 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/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 ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +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 EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..36bfe694312147d5b3ab377b99f6dc1c02777e35 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/general.rs @@ -0,0 +1,3402 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +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_daddr_t = crate::ctypes::c_long; +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_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 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 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)] +#[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; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaction { +pub sa_flags: crate::ctypes::c_uint, +pub sa_handler: __sighandler_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_size: __kernel_size_t, +pub ss_flags: crate::ctypes::c_int, +} +#[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_code: crate::ctypes::c_int, +pub si_errno: 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; 23usize], +} +#[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; 23usize], +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; 23usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sgttyb { +pub sg_ispeed: crate::ctypes::c_char, +pub sg_ospeed: crate::ctypes::c_char, +pub sg_erase: crate::ctypes::c_char, +pub sg_kill: crate::ctypes::c_char, +pub sg_flags: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tchars { +pub t_intrc: crate::ctypes::c_char, +pub t_quitc: crate::ctypes::c_char, +pub t_startc: crate::ctypes::c_char, +pub t_stopc: crate::ctypes::c_char, +pub t_eofc: crate::ctypes::c_char, +pub t_brkc: crate::ctypes::c_char, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ltchars { +pub t_suspc: crate::ctypes::c_char, +pub t_dsuspc: crate::ctypes::c_char, +pub t_rprntc: crate::ctypes::c_char, +pub t_flushc: crate::ctypes::c_char, +pub t_werasc: crate::ctypes::c_char, +pub t_lnextc: crate::ctypes::c_char, +} +#[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_char, +pub c_cc: [crate::ctypes::c_uchar; 23usize], +} +#[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_pad0: [crate::ctypes::c_uint; 3usize], +pub st_ino: crate::ctypes::c_ulong, +pub st_mode: __kernel_mode_t, +pub st_nlink: __u32, +pub st_uid: __kernel_uid32_t, +pub st_gid: __kernel_gid32_t, +pub st_rdev: crate::ctypes::c_uint, +pub st_pad1: [crate::ctypes::c_uint; 3usize], +pub st_size: crate::ctypes::c_long, +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 st_blksize: crate::ctypes::c_uint, +pub st_pad2: crate::ctypes::c_uint, +pub st_blocks: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs { +pub f_type: crate::ctypes::c_long, +pub f_bsize: crate::ctypes::c_long, +pub f_frsize: crate::ctypes::c_long, +pub f_blocks: crate::ctypes::c_long, +pub f_bfree: crate::ctypes::c_long, +pub f_files: crate::ctypes::c_long, +pub f_ffree: crate::ctypes::c_long, +pub f_bavail: crate::ctypes::c_long, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: crate::ctypes::c_long, +pub f_flags: crate::ctypes::c_long, +pub f_spare: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs64 { +pub f_type: crate::ctypes::c_long, +pub f_bsize: crate::ctypes::c_long, +pub f_frsize: crate::ctypes::c_long, +pub f_blocks: crate::ctypes::c_long, +pub f_bfree: crate::ctypes::c_long, +pub f_files: crate::ctypes::c_long, +pub f_ffree: crate::ctypes::c_long, +pub f_bavail: crate::ctypes::c_long, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: crate::ctypes::c_long, +pub f_flags: crate::ctypes::c_long, +pub f_spare: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct compat_statfs64 { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_frsize: __u32, +pub __pad: __u32, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_bavail: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 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; 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 O_DSYNC: u32 = 16; +pub const O_NONBLOCK: u32 = 128; +pub const O_CREAT: u32 = 256; +pub const O_TRUNC: u32 = 512; +pub const O_EXCL: u32 = 1024; +pub const O_NOCTTY: u32 = 2048; +pub const FASYNC: u32 = 4096; +pub const O_LARGEFILE: u32 = 8192; +pub const __O_SYNC: u32 = 16384; +pub const O_SYNC: u32 = 16400; +pub const O_DIRECT: u32 = 32768; +pub const F_GETLK: u32 = 14; +pub const F_SETLK: u32 = 6; +pub const F_SETLKW: u32 = 7; +pub const F_SETOWN: u32 = 24; +pub const F_GETOWN: u32 = 23; +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_NOATIME: u32 = 262144; +pub const O_CLOEXEC: u32 = 524288; +pub const O_PATH: u32 = 2097152; +pub const __O_TMPFILE: u32 = 4194304; +pub const O_TMPFILE: u32 = 4259840; +pub const O_NDELAY: u32 = 128; +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_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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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 = 128; +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_NONE: u32 = 0; +pub const PROT_READ: u32 = 1; +pub const PROT_WRITE: u32 = 2; +pub const PROT_EXEC: u32 = 4; +pub const PROT_SEM: u32 = 16; +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_RENAME: u32 = 32; +pub const MAP_AUTOGROW: u32 = 64; +pub const MAP_LOCAL: u32 = 128; +pub const MAP_AUTORSRV: u32 = 256; +pub const MAP_NORESERVE: u32 = 1024; +pub const MAP_ANONYMOUS: u32 = 2048; +pub const MAP_GROWSDOWN: u32 = 4096; +pub const MAP_DENYWRITE: u32 = 8192; +pub const MAP_EXECUTABLE: u32 = 16384; +pub const MAP_LOCKED: u32 = 32768; +pub const MAP_POPULATE: u32 = 65536; +pub const MAP_NONBLOCK: u32 = 131072; +pub const MAP_STACK: u32 = 262144; +pub const MAP_HUGETLB: u32 = 524288; +pub const MAP_FIXED_NOREPLACE: u32 = 1048576; +pub const MS_ASYNC: u32 = 1; +pub const MS_INVALIDATE: u32 = 2; +pub const MS_SYNC: u32 = 4; +pub const MCL_CURRENT: u32 = 1; +pub const MCL_FUTURE: u32 = 2; +pub const MCL_ONFAULT: u32 = 4; +pub const MLOCK_ONFAULT: u32 = 1; +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_MERGEABLE: u32 = 12; +pub const MADV_UNMERGEABLE: u32 = 13; +pub const MADV_HWPOISON: u32 = 100; +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_DISABLE_ACCESS: u32 = 1; +pub const PKEY_DISABLE_WRITE: u32 = 2; +pub const PKEY_ACCESS_MASK: u32 = 3; +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 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 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_NOFILE: u32 = 5; +pub const RLIMIT_AS: u32 = 6; +pub const RLIMIT_RSS: u32 = 7; +pub const RLIMIT_NPROC: u32 = 8; +pub const RLIMIT_MEMLOCK: u32 = 9; +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_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 = 128; +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 SIGIOT: u32 = 6; +pub const SIGABRT: u32 = 6; +pub const SIGEMT: u32 = 7; +pub const SIGFPE: u32 = 8; +pub const SIGKILL: u32 = 9; +pub const SIGBUS: u32 = 10; +pub const SIGSEGV: u32 = 11; +pub const SIGSYS: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGUSR1: u32 = 16; +pub const SIGUSR2: u32 = 17; +pub const SIGCHLD: u32 = 18; +pub const SIGCLD: u32 = 18; +pub const SIGPWR: u32 = 19; +pub const SIGWINCH: u32 = 20; +pub const SIGURG: u32 = 21; +pub const SIGIO: u32 = 22; +pub const SIGPOLL: u32 = 22; +pub const SIGSTOP: u32 = 23; +pub const SIGTSTP: u32 = 24; +pub const SIGCONT: u32 = 25; +pub const SIGTTIN: u32 = 26; +pub const SIGTTOU: u32 = 27; +pub const SIGVTALRM: u32 = 28; +pub const SIGPROF: u32 = 29; +pub const SIGXCPU: u32 = 30; +pub const SIGXFSZ: u32 = 31; +pub const SIGRTMIN: u32 = 32; +pub const SIGRTMAX: u32 = 128; +pub const SA_ONSTACK: u32 = 134217728; +pub const SA_RESETHAND: u32 = 2147483648; +pub const SA_RESTART: u32 = 268435456; +pub const SA_SIGINFO: u32 = 8; +pub const SA_NODEFER: u32 = 1073741824; +pub const SA_NOCLDWAIT: u32 = 65536; +pub const SA_NOCLDSTOP: u32 = 1; +pub const SA_NOMASK: u32 = 1073741824; +pub const SA_ONESHOT: u32 = 2147483648; +pub const MINSIGSTKSZ: u32 = 2048; +pub const SIGSTKSZ: u32 = 8192; +pub const SIG_BLOCK: u32 = 1; +pub const SIG_UNBLOCK: u32 = 2; +pub const SIG_SETMASK: u32 = 3; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +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 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 ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +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 EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; +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 = 23; +pub const VINTR: u32 = 0; +pub const VQUIT: u32 = 1; +pub const VERASE: u32 = 2; +pub const VKILL: u32 = 3; +pub const VMIN: u32 = 4; +pub const VTIME: u32 = 5; +pub const VEOL2: u32 = 6; +pub const VSWTC: u32 = 7; +pub const VSWTCH: u32 = 7; +pub const VSTART: u32 = 8; +pub const VSTOP: u32 = 9; +pub const VSUSP: u32 = 10; +pub const VREPRINT: u32 = 12; +pub const VDISCARD: u32 = 13; +pub const VWERASE: u32 = 14; +pub const VLNEXT: u32 = 15; +pub const VEOF: u32 = 16; +pub const VEOL: u32 = 17; +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 IEXTEN: u32 = 256; +pub const ECHOCTL: u32 = 512; +pub const ECHOPRT: u32 = 1024; +pub const ECHOKE: u32 = 2048; +pub const FLUSHO: u32 = 8192; +pub const PENDIN: u32 = 16384; +pub const TOSTOP: u32 = 32768; +pub const ITOSTOP: u32 = 32768; +pub const EXTPROC: u32 = 65536; +pub const TIOCSER_TEMT: u32 = 1; +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 TIOCGLTC: u32 = 29812; +pub const TIOCSLTC: u32 = 29813; +pub const TIOCGETP: u32 = 29704; +pub const TIOCSETP: u32 = 29705; +pub const TIOCSETN: u32 = 29706; +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 = 16; +pub const TIOCM_SR: u32 = 32; +pub const TIOCM_CTS: u32 = 64; +pub const TIOCM_CAR: u32 = 256; +pub const TIOCM_CD: u32 = 256; +pub const TIOCM_RNG: u32 = 512; +pub const TIOCM_RI: u32 = 512; +pub const TIOCM_DSR: u32 = 1024; +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_Linux: u32 = 5000; +pub const __NR_read: u32 = 5000; +pub const __NR_write: u32 = 5001; +pub const __NR_open: u32 = 5002; +pub const __NR_close: u32 = 5003; +pub const __NR_stat: u32 = 5004; +pub const __NR_fstat: u32 = 5005; +pub const __NR_lstat: u32 = 5006; +pub const __NR_poll: u32 = 5007; +pub const __NR_lseek: u32 = 5008; +pub const __NR_mmap: u32 = 5009; +pub const __NR_mprotect: u32 = 5010; +pub const __NR_munmap: u32 = 5011; +pub const __NR_brk: u32 = 5012; +pub const __NR_rt_sigaction: u32 = 5013; +pub const __NR_rt_sigprocmask: u32 = 5014; +pub const __NR_ioctl: u32 = 5015; +pub const __NR_pread64: u32 = 5016; +pub const __NR_pwrite64: u32 = 5017; +pub const __NR_readv: u32 = 5018; +pub const __NR_writev: u32 = 5019; +pub const __NR_access: u32 = 5020; +pub const __NR_pipe: u32 = 5021; +pub const __NR__newselect: u32 = 5022; +pub const __NR_sched_yield: u32 = 5023; +pub const __NR_mremap: u32 = 5024; +pub const __NR_msync: u32 = 5025; +pub const __NR_mincore: u32 = 5026; +pub const __NR_madvise: u32 = 5027; +pub const __NR_shmget: u32 = 5028; +pub const __NR_shmat: u32 = 5029; +pub const __NR_shmctl: u32 = 5030; +pub const __NR_dup: u32 = 5031; +pub const __NR_dup2: u32 = 5032; +pub const __NR_pause: u32 = 5033; +pub const __NR_nanosleep: u32 = 5034; +pub const __NR_getitimer: u32 = 5035; +pub const __NR_setitimer: u32 = 5036; +pub const __NR_alarm: u32 = 5037; +pub const __NR_getpid: u32 = 5038; +pub const __NR_sendfile: u32 = 5039; +pub const __NR_socket: u32 = 5040; +pub const __NR_connect: u32 = 5041; +pub const __NR_accept: u32 = 5042; +pub const __NR_sendto: u32 = 5043; +pub const __NR_recvfrom: u32 = 5044; +pub const __NR_sendmsg: u32 = 5045; +pub const __NR_recvmsg: u32 = 5046; +pub const __NR_shutdown: u32 = 5047; +pub const __NR_bind: u32 = 5048; +pub const __NR_listen: u32 = 5049; +pub const __NR_getsockname: u32 = 5050; +pub const __NR_getpeername: u32 = 5051; +pub const __NR_socketpair: u32 = 5052; +pub const __NR_setsockopt: u32 = 5053; +pub const __NR_getsockopt: u32 = 5054; +pub const __NR_clone: u32 = 5055; +pub const __NR_fork: u32 = 5056; +pub const __NR_execve: u32 = 5057; +pub const __NR_exit: u32 = 5058; +pub const __NR_wait4: u32 = 5059; +pub const __NR_kill: u32 = 5060; +pub const __NR_uname: u32 = 5061; +pub const __NR_semget: u32 = 5062; +pub const __NR_semop: u32 = 5063; +pub const __NR_semctl: u32 = 5064; +pub const __NR_shmdt: u32 = 5065; +pub const __NR_msgget: u32 = 5066; +pub const __NR_msgsnd: u32 = 5067; +pub const __NR_msgrcv: u32 = 5068; +pub const __NR_msgctl: u32 = 5069; +pub const __NR_fcntl: u32 = 5070; +pub const __NR_flock: u32 = 5071; +pub const __NR_fsync: u32 = 5072; +pub const __NR_fdatasync: u32 = 5073; +pub const __NR_truncate: u32 = 5074; +pub const __NR_ftruncate: u32 = 5075; +pub const __NR_getdents: u32 = 5076; +pub const __NR_getcwd: u32 = 5077; +pub const __NR_chdir: u32 = 5078; +pub const __NR_fchdir: u32 = 5079; +pub const __NR_rename: u32 = 5080; +pub const __NR_mkdir: u32 = 5081; +pub const __NR_rmdir: u32 = 5082; +pub const __NR_creat: u32 = 5083; +pub const __NR_link: u32 = 5084; +pub const __NR_unlink: u32 = 5085; +pub const __NR_symlink: u32 = 5086; +pub const __NR_readlink: u32 = 5087; +pub const __NR_chmod: u32 = 5088; +pub const __NR_fchmod: u32 = 5089; +pub const __NR_chown: u32 = 5090; +pub const __NR_fchown: u32 = 5091; +pub const __NR_lchown: u32 = 5092; +pub const __NR_umask: u32 = 5093; +pub const __NR_gettimeofday: u32 = 5094; +pub const __NR_getrlimit: u32 = 5095; +pub const __NR_getrusage: u32 = 5096; +pub const __NR_sysinfo: u32 = 5097; +pub const __NR_times: u32 = 5098; +pub const __NR_ptrace: u32 = 5099; +pub const __NR_getuid: u32 = 5100; +pub const __NR_syslog: u32 = 5101; +pub const __NR_getgid: u32 = 5102; +pub const __NR_setuid: u32 = 5103; +pub const __NR_setgid: u32 = 5104; +pub const __NR_geteuid: u32 = 5105; +pub const __NR_getegid: u32 = 5106; +pub const __NR_setpgid: u32 = 5107; +pub const __NR_getppid: u32 = 5108; +pub const __NR_getpgrp: u32 = 5109; +pub const __NR_setsid: u32 = 5110; +pub const __NR_setreuid: u32 = 5111; +pub const __NR_setregid: u32 = 5112; +pub const __NR_getgroups: u32 = 5113; +pub const __NR_setgroups: u32 = 5114; +pub const __NR_setresuid: u32 = 5115; +pub const __NR_getresuid: u32 = 5116; +pub const __NR_setresgid: u32 = 5117; +pub const __NR_getresgid: u32 = 5118; +pub const __NR_getpgid: u32 = 5119; +pub const __NR_setfsuid: u32 = 5120; +pub const __NR_setfsgid: u32 = 5121; +pub const __NR_getsid: u32 = 5122; +pub const __NR_capget: u32 = 5123; +pub const __NR_capset: u32 = 5124; +pub const __NR_rt_sigpending: u32 = 5125; +pub const __NR_rt_sigtimedwait: u32 = 5126; +pub const __NR_rt_sigqueueinfo: u32 = 5127; +pub const __NR_rt_sigsuspend: u32 = 5128; +pub const __NR_sigaltstack: u32 = 5129; +pub const __NR_utime: u32 = 5130; +pub const __NR_mknod: u32 = 5131; +pub const __NR_personality: u32 = 5132; +pub const __NR_ustat: u32 = 5133; +pub const __NR_statfs: u32 = 5134; +pub const __NR_fstatfs: u32 = 5135; +pub const __NR_sysfs: u32 = 5136; +pub const __NR_getpriority: u32 = 5137; +pub const __NR_setpriority: u32 = 5138; +pub const __NR_sched_setparam: u32 = 5139; +pub const __NR_sched_getparam: u32 = 5140; +pub const __NR_sched_setscheduler: u32 = 5141; +pub const __NR_sched_getscheduler: u32 = 5142; +pub const __NR_sched_get_priority_max: u32 = 5143; +pub const __NR_sched_get_priority_min: u32 = 5144; +pub const __NR_sched_rr_get_interval: u32 = 5145; +pub const __NR_mlock: u32 = 5146; +pub const __NR_munlock: u32 = 5147; +pub const __NR_mlockall: u32 = 5148; +pub const __NR_munlockall: u32 = 5149; +pub const __NR_vhangup: u32 = 5150; +pub const __NR_pivot_root: u32 = 5151; +pub const __NR__sysctl: u32 = 5152; +pub const __NR_prctl: u32 = 5153; +pub const __NR_adjtimex: u32 = 5154; +pub const __NR_setrlimit: u32 = 5155; +pub const __NR_chroot: u32 = 5156; +pub const __NR_sync: u32 = 5157; +pub const __NR_acct: u32 = 5158; +pub const __NR_settimeofday: u32 = 5159; +pub const __NR_mount: u32 = 5160; +pub const __NR_umount2: u32 = 5161; +pub const __NR_swapon: u32 = 5162; +pub const __NR_swapoff: u32 = 5163; +pub const __NR_reboot: u32 = 5164; +pub const __NR_sethostname: u32 = 5165; +pub const __NR_setdomainname: u32 = 5166; +pub const __NR_create_module: u32 = 5167; +pub const __NR_init_module: u32 = 5168; +pub const __NR_delete_module: u32 = 5169; +pub const __NR_get_kernel_syms: u32 = 5170; +pub const __NR_query_module: u32 = 5171; +pub const __NR_quotactl: u32 = 5172; +pub const __NR_nfsservctl: u32 = 5173; +pub const __NR_getpmsg: u32 = 5174; +pub const __NR_putpmsg: u32 = 5175; +pub const __NR_afs_syscall: u32 = 5176; +pub const __NR_reserved177: u32 = 5177; +pub const __NR_gettid: u32 = 5178; +pub const __NR_readahead: u32 = 5179; +pub const __NR_setxattr: u32 = 5180; +pub const __NR_lsetxattr: u32 = 5181; +pub const __NR_fsetxattr: u32 = 5182; +pub const __NR_getxattr: u32 = 5183; +pub const __NR_lgetxattr: u32 = 5184; +pub const __NR_fgetxattr: u32 = 5185; +pub const __NR_listxattr: u32 = 5186; +pub const __NR_llistxattr: u32 = 5187; +pub const __NR_flistxattr: u32 = 5188; +pub const __NR_removexattr: u32 = 5189; +pub const __NR_lremovexattr: u32 = 5190; +pub const __NR_fremovexattr: u32 = 5191; +pub const __NR_tkill: u32 = 5192; +pub const __NR_reserved193: u32 = 5193; +pub const __NR_futex: u32 = 5194; +pub const __NR_sched_setaffinity: u32 = 5195; +pub const __NR_sched_getaffinity: u32 = 5196; +pub const __NR_cacheflush: u32 = 5197; +pub const __NR_cachectl: u32 = 5198; +pub const __NR_sysmips: u32 = 5199; +pub const __NR_io_setup: u32 = 5200; +pub const __NR_io_destroy: u32 = 5201; +pub const __NR_io_getevents: u32 = 5202; +pub const __NR_io_submit: u32 = 5203; +pub const __NR_io_cancel: u32 = 5204; +pub const __NR_exit_group: u32 = 5205; +pub const __NR_lookup_dcookie: u32 = 5206; +pub const __NR_epoll_create: u32 = 5207; +pub const __NR_epoll_ctl: u32 = 5208; +pub const __NR_epoll_wait: u32 = 5209; +pub const __NR_remap_file_pages: u32 = 5210; +pub const __NR_rt_sigreturn: u32 = 5211; +pub const __NR_set_tid_address: u32 = 5212; +pub const __NR_restart_syscall: u32 = 5213; +pub const __NR_semtimedop: u32 = 5214; +pub const __NR_fadvise64: u32 = 5215; +pub const __NR_timer_create: u32 = 5216; +pub const __NR_timer_settime: u32 = 5217; +pub const __NR_timer_gettime: u32 = 5218; +pub const __NR_timer_getoverrun: u32 = 5219; +pub const __NR_timer_delete: u32 = 5220; +pub const __NR_clock_settime: u32 = 5221; +pub const __NR_clock_gettime: u32 = 5222; +pub const __NR_clock_getres: u32 = 5223; +pub const __NR_clock_nanosleep: u32 = 5224; +pub const __NR_tgkill: u32 = 5225; +pub const __NR_utimes: u32 = 5226; +pub const __NR_mbind: u32 = 5227; +pub const __NR_get_mempolicy: u32 = 5228; +pub const __NR_set_mempolicy: u32 = 5229; +pub const __NR_mq_open: u32 = 5230; +pub const __NR_mq_unlink: u32 = 5231; +pub const __NR_mq_timedsend: u32 = 5232; +pub const __NR_mq_timedreceive: u32 = 5233; +pub const __NR_mq_notify: u32 = 5234; +pub const __NR_mq_getsetattr: u32 = 5235; +pub const __NR_vserver: u32 = 5236; +pub const __NR_waitid: u32 = 5237; +pub const __NR_add_key: u32 = 5239; +pub const __NR_request_key: u32 = 5240; +pub const __NR_keyctl: u32 = 5241; +pub const __NR_set_thread_area: u32 = 5242; +pub const __NR_inotify_init: u32 = 5243; +pub const __NR_inotify_add_watch: u32 = 5244; +pub const __NR_inotify_rm_watch: u32 = 5245; +pub const __NR_migrate_pages: u32 = 5246; +pub const __NR_openat: u32 = 5247; +pub const __NR_mkdirat: u32 = 5248; +pub const __NR_mknodat: u32 = 5249; +pub const __NR_fchownat: u32 = 5250; +pub const __NR_futimesat: u32 = 5251; +pub const __NR_newfstatat: u32 = 5252; +pub const __NR_unlinkat: u32 = 5253; +pub const __NR_renameat: u32 = 5254; +pub const __NR_linkat: u32 = 5255; +pub const __NR_symlinkat: u32 = 5256; +pub const __NR_readlinkat: u32 = 5257; +pub const __NR_fchmodat: u32 = 5258; +pub const __NR_faccessat: u32 = 5259; +pub const __NR_pselect6: u32 = 5260; +pub const __NR_ppoll: u32 = 5261; +pub const __NR_unshare: u32 = 5262; +pub const __NR_splice: u32 = 5263; +pub const __NR_sync_file_range: u32 = 5264; +pub const __NR_tee: u32 = 5265; +pub const __NR_vmsplice: u32 = 5266; +pub const __NR_move_pages: u32 = 5267; +pub const __NR_set_robust_list: u32 = 5268; +pub const __NR_get_robust_list: u32 = 5269; +pub const __NR_kexec_load: u32 = 5270; +pub const __NR_getcpu: u32 = 5271; +pub const __NR_epoll_pwait: u32 = 5272; +pub const __NR_ioprio_set: u32 = 5273; +pub const __NR_ioprio_get: u32 = 5274; +pub const __NR_utimensat: u32 = 5275; +pub const __NR_signalfd: u32 = 5276; +pub const __NR_timerfd: u32 = 5277; +pub const __NR_eventfd: u32 = 5278; +pub const __NR_fallocate: u32 = 5279; +pub const __NR_timerfd_create: u32 = 5280; +pub const __NR_timerfd_gettime: u32 = 5281; +pub const __NR_timerfd_settime: u32 = 5282; +pub const __NR_signalfd4: u32 = 5283; +pub const __NR_eventfd2: u32 = 5284; +pub const __NR_epoll_create1: u32 = 5285; +pub const __NR_dup3: u32 = 5286; +pub const __NR_pipe2: u32 = 5287; +pub const __NR_inotify_init1: u32 = 5288; +pub const __NR_preadv: u32 = 5289; +pub const __NR_pwritev: u32 = 5290; +pub const __NR_rt_tgsigqueueinfo: u32 = 5291; +pub const __NR_perf_event_open: u32 = 5292; +pub const __NR_accept4: u32 = 5293; +pub const __NR_recvmmsg: u32 = 5294; +pub const __NR_fanotify_init: u32 = 5295; +pub const __NR_fanotify_mark: u32 = 5296; +pub const __NR_prlimit64: u32 = 5297; +pub const __NR_name_to_handle_at: u32 = 5298; +pub const __NR_open_by_handle_at: u32 = 5299; +pub const __NR_clock_adjtime: u32 = 5300; +pub const __NR_syncfs: u32 = 5301; +pub const __NR_sendmmsg: u32 = 5302; +pub const __NR_setns: u32 = 5303; +pub const __NR_process_vm_readv: u32 = 5304; +pub const __NR_process_vm_writev: u32 = 5305; +pub const __NR_kcmp: u32 = 5306; +pub const __NR_finit_module: u32 = 5307; +pub const __NR_getdents64: u32 = 5308; +pub const __NR_sched_setattr: u32 = 5309; +pub const __NR_sched_getattr: u32 = 5310; +pub const __NR_renameat2: u32 = 5311; +pub const __NR_seccomp: u32 = 5312; +pub const __NR_getrandom: u32 = 5313; +pub const __NR_memfd_create: u32 = 5314; +pub const __NR_bpf: u32 = 5315; +pub const __NR_execveat: u32 = 5316; +pub const __NR_userfaultfd: u32 = 5317; +pub const __NR_membarrier: u32 = 5318; +pub const __NR_mlock2: u32 = 5319; +pub const __NR_copy_file_range: u32 = 5320; +pub const __NR_preadv2: u32 = 5321; +pub const __NR_pwritev2: u32 = 5322; +pub const __NR_pkey_mprotect: u32 = 5323; +pub const __NR_pkey_alloc: u32 = 5324; +pub const __NR_pkey_free: u32 = 5325; +pub const __NR_statx: u32 = 5326; +pub const __NR_rseq: u32 = 5327; +pub const __NR_io_pgetevents: u32 = 5328; +pub const __NR_pidfd_send_signal: u32 = 5424; +pub const __NR_io_uring_setup: u32 = 5425; +pub const __NR_io_uring_enter: u32 = 5426; +pub const __NR_io_uring_register: u32 = 5427; +pub const __NR_open_tree: u32 = 5428; +pub const __NR_move_mount: u32 = 5429; +pub const __NR_fsopen: u32 = 5430; +pub const __NR_fsconfig: u32 = 5431; +pub const __NR_fsmount: u32 = 5432; +pub const __NR_fspick: u32 = 5433; +pub const __NR_pidfd_open: u32 = 5434; +pub const __NR_clone3: u32 = 5435; +pub const __NR_close_range: u32 = 5436; +pub const __NR_openat2: u32 = 5437; +pub const __NR_pidfd_getfd: u32 = 5438; +pub const __NR_faccessat2: u32 = 5439; +pub const __NR_process_madvise: u32 = 5440; +pub const __NR_epoll_pwait2: u32 = 5441; +pub const __NR_mount_setattr: u32 = 5442; +pub const __NR_quotactl_fd: u32 = 5443; +pub const __NR_landlock_create_ruleset: u32 = 5444; +pub const __NR_landlock_add_rule: u32 = 5445; +pub const __NR_landlock_restrict_self: u32 = 5446; +pub const __NR_process_mrelease: u32 = 5448; +pub const __NR_futex_waitv: u32 = 5449; +pub const __NR_set_mempolicy_home_node: u32 = 5450; +pub const __NR_cachestat: u32 = 5451; +pub const __NR_fchmodat2: u32 = 5452; +pub const __NR_map_shadow_stack: u32 = 5453; +pub const __NR_futex_wake: u32 = 5454; +pub const __NR_futex_wait: u32 = 5455; +pub const __NR_futex_requeue: u32 = 5456; +pub const __NR_statmount: u32 = 5457; +pub const __NR_listmount: u32 = 5458; +pub const __NR_lsm_get_self_attr: u32 = 5459; +pub const __NR_lsm_set_self_attr: u32 = 5460; +pub const __NR_lsm_list_modules: u32 = 5461; +pub const __NR_mseal: u32 = 5462; +pub const __NR_setxattrat: u32 = 5463; +pub const __NR_getxattrat: u32 = 5464; +pub const __NR_listxattrat: u32 = 5465; +pub const __NR_removexattrat: u32 = 5466; +pub const __NR_open_tree_attr: u32 = 5467; +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 = 128; +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 = 128; +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 = 524416; +pub const TFD_CREATE_FLAGS: u32 = 524416; +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 POLLWRNORM: u32 = 4; +pub const TCSANOW: u32 = 21518; +pub const TCSADRAIN: u32 = 21519; +pub const TCSAFLUSH: u32 = 21520; +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/mips64/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..bf63f077ee1ff6c6a9f58243cb02a6bd6089abc1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/if_arp.rs @@ -0,0 +1,2801 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 __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/mips64/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..dfe86c158434de3ee5c5a052d3fdd440ec43cd7f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/if_ether.rs @@ -0,0 +1,180 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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, 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..c22d3d0ca641e5f5a6420cc8976891405fdb7cab --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/if_packet.rs @@ -0,0 +1,321 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/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/mips64/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/mips64/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..6e6948924d0dd92136126059c18b93275e5b70ce --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/io_uring.rs @@ -0,0 +1,1450 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..10d7f8010e37da3172309739916cf743deb15b88 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/ioctl.rs @@ -0,0 +1,1496 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const FIONREAD: u32 = 18047; +pub const FIONBIO: u32 = 26238; +pub const FIOCLEX: u32 = 26113; +pub const FIONCLEX: u32 = 26114; +pub const FIOASYNC: u32 = 26237; +pub const FIOQSIZE: u32 = 26239; +pub const TCXONC: u32 = 21510; +pub const TCFLSH: u32 = 21511; +pub const TIOCSCTTY: u32 = 21632; +pub const TIOCSPGRP: u32 = 2147775606; +pub const TIOCOUTQ: u32 = 29810; +pub const TIOCSTI: u32 = 21618; +pub const TIOCSWINSZ: u32 = 2148037735; +pub const TIOCMGET: u32 = 29725; +pub const TIOCMBIS: u32 = 29723; +pub const TIOCMBIC: u32 = 29724; +pub const TIOCMSET: u32 = 29722; +pub const TIOCSSOFTCAR: u32 = 21634; +pub const TIOCLINUX: u32 = 21635; +pub const TIOCCONS: u32 = 2147775608; +pub const TIOCSSERIAL: u32 = 21637; +pub const TIOCPKT: u32 = 21616; +pub const TIOCNOTTY: u32 = 21617; +pub const TIOCSETD: u32 = 29697; +pub const TIOCSBRK: u32 = 21543; +pub const TIOCCBRK: u32 = 21544; +pub const TIOCSPTLCK: u32 = 2147767345; +pub const TIOCSIG: u32 = 2147767350; +pub const TIOCVHANGUP: u32 = 21559; +pub const TIOCSERCONFIG: u32 = 21640; +pub const TIOCSERGWILD: u32 = 21641; +pub const TIOCSERSWILD: u32 = 21642; +pub const TIOCSLCKTRMIOS: u32 = 21644; +pub const TIOCSERGSTRUCT: u32 = 21645; +pub const TIOCSERGETLSR: u32 = 21646; +pub const TIOCSERGETMULTI: u32 = 21647; +pub const TIOCSERSETMULTI: u32 = 21648; +pub const TIOCMIWAIT: u32 = 21649; +pub const TCGETS: u32 = 21517; +pub const TCGETA: u32 = 21505; +pub const TCSBRK: u32 = 21509; +pub const TCSBRKP: u32 = 21638; +pub const TCSETA: u32 = 21506; +pub const TCSETAF: u32 = 21508; +pub const TCSETAW: u32 = 21507; +pub const TIOCEXCL: u32 = 29709; +pub const TIOCNXCL: u32 = 29710; +pub const TIOCGDEV: u32 = 1074025522; +pub const TIOCGEXCL: u32 = 1074025536; +pub const TIOCGICOUNT: u32 = 21650; +pub const TIOCGLCKTRMIOS: u32 = 21643; +pub const TIOCGPGRP: u32 = 1074033783; +pub const TIOCGPKT: u32 = 1074025528; +pub const TIOCGPTLCK: u32 = 1074025529; +pub const TIOCGPTN: u32 = 1074025520; +pub const TIOCGPTPEER: u32 = 536892481; +pub const TIOCGSERIAL: u32 = 21636; +pub const TIOCGSID: u32 = 29718; +pub const TIOCGSOFTCAR: u32 = 21633; +pub const TIOCGWINSZ: u32 = 1074295912; +pub const TCGETS2: u32 = 1076909098; +pub const TCSETS: u32 = 21518; +pub const TCSETS2: u32 = 2150650923; +pub const TCSETSF: u32 = 21520; +pub const TCSETSF2: u32 = 2150650925; +pub const TCSETSW: u32 = 21519; +pub const TCSETSW2: u32 = 2150650924; +pub const TIOCGETD: u32 = 29696; +pub const TIOCGETP: u32 = 29704; +pub const TIOCGLTC: u32 = 29812; +pub const MTIOCGET: u32 = 1077439746; +pub const BLKSSZGET: u32 = 536875624; +pub const BLKPBSZGET: u32 = 536875643; +pub const BLKROSET: u32 = 536875613; +pub const BLKROGET: u32 = 536875614; +pub const BLKRRPART: u32 = 536875615; +pub const BLKGETSIZE: u32 = 536875616; +pub const BLKFLSBUF: u32 = 536875617; +pub const BLKRASET: u32 = 536875618; +pub const BLKRAGET: u32 = 536875619; +pub const BLKFRASET: u32 = 536875620; +pub const BLKFRAGET: u32 = 536875621; +pub const BLKSECTSET: u32 = 536875622; +pub const BLKSECTGET: u32 = 536875623; +pub const BLKPG: u32 = 536875625; +pub const BLKBSZGET: u32 = 1074270832; +pub const BLKBSZSET: u32 = 2148012657; +pub const BLKGETSIZE64: u32 = 1074270834; +pub const BLKTRACESETUP: u32 = 3225948787; +pub const BLKTRACESTART: u32 = 536875636; +pub const BLKTRACESTOP: u32 = 536875637; +pub const BLKTRACETEARDOWN: u32 = 536875638; +pub const BLKDISCARD: u32 = 536875639; +pub const BLKIOMIN: u32 = 536875640; +pub const BLKIOOPT: u32 = 536875641; +pub const BLKALIGNOFF: u32 = 536875642; +pub const BLKDISCARDZEROES: u32 = 536875644; +pub const BLKSECDISCARD: u32 = 536875645; +pub const BLKROTATIONAL: u32 = 536875646; +pub const BLKZEROOUT: u32 = 536875647; +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 = 1074833921; +pub const UFFDIO_WAKE: u32 = 1074833922; +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 = 536917761; +pub const NS_GET_PARENT: u32 = 536917762; +pub const NS_GET_NSTYPE: u32 = 536917763; +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 = 2147772028; +pub const FIOGETOWN: u32 = 1074030203; +pub const SIOCATMARK: u32 = 1074033415; +pub const SIOCGSTAMP: u32 = 35078; +pub const TIOCINQ: u32 = 18047; +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 = 536870913; +pub const FIGETBSZ: u32 = 536870914; +pub const FIFREEZE: u32 = 3221510263; +pub const FITHAW: u32 = 3221510264; +pub const FITRIM: u32 = 3222820985; +pub const FICLONE: u32 = 2147783689; +pub const FICLONERANGE: u32 = 2149618701; +pub const FIDEDUPERANGE: u32 = 3222836278; +pub const FS_IOC_GETFLAGS: u32 = 1074292225; +pub const FS_IOC_SETFLAGS: u32 = 2148034050; +pub const FS_IOC_GETVERSION: u32 = 1074296321; +pub const FS_IOC_SETVERSION: u32 = 2148038146; +pub const FS_IOC_FIEMAP: u32 = 3223348747; +pub const FS_IOC32_GETFLAGS: u32 = 1074030081; +pub const FS_IOC32_SETFLAGS: u32 = 2147771906; +pub const FS_IOC32_GETVERSION: u32 = 1074034177; +pub const FS_IOC32_SETVERSION: u32 = 2147776002; +pub const FS_IOC_FSGETXATTR: u32 = 1075599391; +pub const FS_IOC_FSSETXATTR: u32 = 2149341216; +pub const FS_IOC_GETFSLABEL: u32 = 1090556977; +pub const FS_IOC_SETFSLABEL: u32 = 2164298802; +pub const EXT4_IOC_GETVERSION: u32 = 1074292227; +pub const EXT4_IOC_SETVERSION: u32 = 2148034052; +pub const EXT4_IOC_GETVERSION_OLD: u32 = 1074296321; +pub const EXT4_IOC_SETVERSION_OLD: u32 = 2148038146; +pub const EXT4_IOC_GETRSVSZ: u32 = 1074292229; +pub const EXT4_IOC_SETRSVSZ: u32 = 2148034054; +pub const EXT4_IOC_GROUP_EXTEND: u32 = 2148034055; +pub const EXT4_IOC_MIGRATE: u32 = 536897033; +pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; +pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; +pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; +pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; +pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; +pub const EXT4_IOC_GETSTATE: u32 = 2147771945; +pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; +pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; +pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; +pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; +pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; +pub const EXT4_IOC32_GETRSVSZ: u32 = 1074030085; +pub const EXT4_IOC32_SETRSVSZ: u32 = 2147771910; +pub const EXT4_IOC32_GROUP_EXTEND: u32 = 2147771911; +pub const EXT4_IOC32_GETVERSION_OLD: u32 = 1074034177; +pub const EXT4_IOC32_SETVERSION_OLD: u32 = 2147776002; +pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 1074288191; +pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; +pub const LIRC_SET_SEND_CARRIER: u32 = 2147772691; +pub const AUTOFS_IOC_PROTOSUBVER: u32 = 1074041703; +pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; +pub const FSI_SCOM_WRITE: u32 = 3223352066; +pub const ATM_GETCIRANGE: u32 = 2148557194; +pub const DMA_BUF_SET_NAME_B: u32 = 2148033025; +pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; +pub const TUNSETPERSIST: u32 = 2147767499; +pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; +pub const CEC_RECEIVE: u32 = 3224920326; +pub const MGSL_IOCGPARAMS: u32 = 1076915457; +pub const ENI_SETMULT: u32 = 2148557159; +pub const RIO_GET_EVENT_MASK: u32 = 1074031886; +pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; +pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; +pub const CHIOMOVE: u32 = 2148819713; +pub const SONYPI_IOCGBATFLAGS: u32 = 1073837575; +pub const BTRFS_IOC_SYNC: u32 = 536908808; +pub const VIDIOC_TRY_FMT: u32 = 3234879040; +pub const LIRC_SET_REC_MODE: u32 = 2147772690; +pub const VIDIOC_DQEVENT: u32 = 1082676825; +pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 536917250; +pub const UVCIOC_CTRL_MAP: u32 = 3227546912; +pub const VHOST_SET_BACKEND_FEATURES: u32 = 2148052773; +pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 2148052832; +pub const UI_SET_KEYBIT: u32 = 2147767653; +pub const LIRC_SET_REC_TIMEOUT: u32 = 2147772696; +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 = 2148052754; +pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 2148035849; +pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; +pub const LIRC_GET_REC_MODE: u32 = 1074030850; +pub const PPGETTIME: u32 = 1074819221; +pub const BTRFS_IOC_RM_DEV: u32 = 2415957003; +pub const ATM_SETBACKEND: u32 = 2147639794; +pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; +pub const FBIO_WAITEVENT: u32 = 536888968; +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 = 536871513; +pub const NVME_IOCTL_SUBMIT_IO: u32 = 2150649410; +pub const NILFS_IOCTL_SYNC: u32 = 1074294410; +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 = 1074045957; +pub const NS_GETPSTAT: u32 = 3222298977; +pub const UI_SET_PROPBIT: u32 = 2147767662; +pub const TUNSETFILTEREBPF: u32 = 1074025697; +pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; +pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; +pub const WDIOC_SETOPTIONS: u32 = 1074026244; +pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; +pub const MGSL_IOCGTXIDLE: u32 = 536898819; +pub const ATM_ADDLECSADDR: u32 = 2148557198; +pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; +pub const FDGETPRM: u32 = 1075839492; +pub const HIDIOCAPPLICATION: u32 = 536889346; +pub const ENI_MEMDUMP: u32 = 2148557152; +pub const PTP_SYS_OFFSET2: u32 = 2202025230; +pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; +pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; +pub const PTP_PIN_GETFUNC: u32 = 3227532550; +pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; +pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; +pub const RTC_EPOCH_READ: u32 = 1074294797; +pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; +pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; +pub const ATM_GETLECSADDR: u32 = 2148557200; +pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; +pub const SONET_GETDIAG: u32 = 1074028820; +pub const ATMMPC_DATA: u32 = 536895961; +pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; +pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; +pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; +pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; +pub const UI_DEV_SETUP: u32 = 2153534723; +pub const ISST_IF_IO_CMD: u32 = 2148072962; +pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 1075342599; +pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; +pub const BLKGETNRZONES: u32 = 1074008709; +pub const VIDIOC_G_MODULATOR: u32 = 3225703990; +pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; +pub const USBDEVFS_SETINTERFACE: u32 = 1074287876; +pub const PPPIOCGCHAN: u32 = 1074033719; +pub const EVIOCGVERSION: u32 = 1074021633; +pub const VHOST_NET_SET_BACKEND: u32 = 2148052784; +pub const USBDEVFS_REAPURBNDELAY: u32 = 2148029709; +pub const RNDZAPENTCNT: u32 = 536891908; +pub const VIDIOC_G_PARM: u32 = 3234616853; +pub const TUNGETDEVNETNS: u32 = 536892643; +pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 2147772701; +pub const VHOST_SET_VRING_ERR: u32 = 2148052770; +pub const VDUSE_VQ_SETUP: u32 = 2149613844; +pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; +pub const VIDIOC_S_FREQUENCY: u32 = 2150389305; +pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 2149119252; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; +pub const WDIOC_GETPRETIMEOUT: u32 = 1074026249; +pub const USBDEVFS_DROP_PRIVILEGES: u32 = 2147767582; +pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 2415957015; +pub const VHOST_VSOCK_SET_RUNNING: u32 = 2147790689; +pub const STP_SET_OPTIONS: u32 = 2148017410; +pub const FBIO_RADEON_GET_MIRROR: u32 = 1074282499; +pub const IVTVFB_IOC_DMA_FRAME: u32 = 2149078720; +pub const IPMICTL_SEND_COMMAND: u32 = 1076390157; +pub const VIDIOC_G_ENC_INDEX: u32 = 1209554508; +pub const DFL_FPGA_FME_PORT_PR: u32 = 536917632; +pub const CHIOSVOLTAG: u32 = 2150654738; +pub const ATM_SETESIF: u32 = 2148557197; +pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 2149065476; +pub const PMU_IOC_GET_MODEL: u32 = 1074283011; +pub const JSIOCGBTNMAP: u32 = 1140877876; +pub const USBDEVFS_HUB_PORTINFO: u32 = 1082152211; +pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; +pub const FDCLRPRM: u32 = 536871489; +pub const BTRFS_IOC_SCRUB: u32 = 3288372251; +pub const USBDEVFS_DISCONNECT: u32 = 536892694; +pub const TUNSETVNETBE: u32 = 2147767518; +pub const ATMTCP_REMOVE: u32 = 536895887; +pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; +pub const PPPIOCGNPMODE: u32 = 3221779532; +pub const FDGETDRVPRM: u32 = 1082130961; +pub const TUNSETVNETLE: u32 = 2147767516; +pub const PHN_SETREG: u32 = 2148036614; +pub const PPPIOCDETACH: u32 = 2147775548; +pub const MMTIMER_GETRES: u32 = 1074294017; +pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; +pub const PPGETFLAGS: u32 = 1074032794; +pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; +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 = 1074310688; +pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; +pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; +pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; +pub const MGSL_IOCGXCTRL: u32 = 536898838; +pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; +pub const SONYPI_IOCGBLUE: u32 = 1073837576; +pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; +pub const I2OHTML: u32 = 3224398089; +pub const VFIO_GET_API_VERSION: u32 = 536886116; +pub const IDT77105_GETSTATZ: u32 = 2148557107; +pub const I2OPARMSET: u32 = 3223873795; +pub const TEE_IOC_CANCEL: u32 = 1074308100; +pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; +pub const DFL_FPGA_PORT_RESET: u32 = 536917568; +pub const PPPIOCGASYNCMAP: u32 = 1074033752; +pub const EVIOCGKEYCODE_V2: u32 = 1076380932; +pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; +pub const HIDIOCSUSAGE: u32 = 2149074956; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065488; +pub const PTP_EXTTS_REQUEST: u32 = 2148547842; +pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; +pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; +pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 2162732865; +pub const JSIOCGAXES: u32 = 1073834513; +pub const HIDIOCSFLAG: u32 = 2147764239; +pub const PTP_PEROUT_REQUEST2: u32 = 2151169292; +pub const PPWDATA: u32 = 2147577990; +pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; +pub const FDGETMAXERRS: u32 = 1075053070; +pub const TUNSETQUEUE: u32 = 2147767513; +pub const PTP_ENABLE_PPS: u32 = 2147761412; +pub const SIOCSIFATMTCP: u32 = 536895872; +pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; +pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; +pub const NBD_SET_BLKSIZE: u32 = 536914689; +pub const NBD_SET_TIMEOUT: u32 = 536914697; +pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 2147790658; +pub const RIO_UNMAP_INBOUND: u32 = 2148035858; +pub const ATM_QUERYLOOP: u32 = 2148557140; +pub const DFL_FPGA_GET_API_VERSION: u32 = 536917504; +pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 536892707; +pub const FBIO_CURSOR: u32 = 3228059144; +pub const RNDCLEARPOOL: u32 = 536891910; +pub const VIDIOC_QUERYSTD: u32 = 1074288191; +pub const DMA_BUF_IOCTL_SYNC: u32 = 2148033024; +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 = 1076909578; +pub const PTP_ENABLE_PPS2: u32 = 2147761421; +pub const PCITEST_CLEAR_IRQ: u32 = 536891408; +pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 1074030864; +pub const BTRFS_IOC_DEVICES_READY: u32 = 1342215207; +pub const JSIOCGAXMAP: u32 = 1077963314; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 1074799372; +pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 2148541207; +pub const RTC_WIE_OFF: u32 = 536899600; +pub const PPGETMODE: u32 = 1074032792; +pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; +pub const PTP_SYS_OFFSET: u32 = 2202025221; +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 = 536908806; +pub const INOTIFY_IOC_SETNEXTWD: u32 = 2147764480; +pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 1074279182; +pub const TUNDETACHFILTER: u32 = 2148553942; +pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; +pub const IOC_PR_CLEAR: u32 = 2148561101; +pub const SCIF_READFROM: u32 = 3223876362; +pub const PPPIOCGDEBUG: u32 = 1074033729; +pub const BLKGETZONESZ: u32 = 1074008708; +pub const HIDIOCGUSAGES: u32 = 3491514387; +pub const SONYPI_IOCGTEMP: u32 = 1073837580; +pub const UI_SET_MSCBIT: u32 = 2147767656; +pub const APM_IOC_SUSPEND: u32 = 536887554; +pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; +pub const RTC_PLL_GET: u32 = 1075867665; +pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; +pub const USBDEVFS_DISCSIGNAL: u32 = 1074812174; +pub const LIRC_GET_MIN_TIMEOUT: u32 = 1074030856; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 1100502850; +pub const DM_TARGET_MSG: u32 = 3241737486; +pub const SONYPI_IOCGBAT1REM: u32 = 1073903107; +pub const EVIOCSFF: u32 = 2150647168; +pub const TUNSETGROUP: u32 = 2147767502; +pub const EVIOCGKEYCODE: u32 = 1074283780; +pub const KCOV_REMOTE_ENABLE: u32 = 2149081958; +pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; +pub const FDEJECT: u32 = 536871514; +pub const TUNSETOFFLOAD: u32 = 2147767504; +pub const PPPIOCCONNECT: u32 = 2147775546; +pub const ATM_ADDADDR: u32 = 2148557192; +pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; +pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; +pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; +pub const CCISS_PASSTHRU: u32 = 3227009547; +pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; +pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; +pub const ATMARPD_CTRL: u32 = 536895969; +pub const UI_ABS_SETUP: u32 = 2149340420; +pub const UI_DEV_DESTROY: u32 = 536892674; +pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; +pub const RTC_AIE_ON: u32 = 536899585; +pub const AUTOFS_IOC_EXPIRE: u32 = 1091343205; +pub const PPPIOCSDEBUG: u32 = 2147775552; +pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; +pub const PPPIOCSMRU: u32 = 2147775570; +pub const CCISS_DEREGDISK: u32 = 536887820; +pub const UI_DEV_CREATE: u32 = 536892673; +pub const FUSE_DEV_IOC_CLONE: u32 = 1074062592; +pub const BTRFS_IOC_START_SYNC: u32 = 1074304024; +pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 2148036225; +pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 1074279187; +pub const DM_TABLE_CLEAR: u32 = 3241737482; +pub const CCISS_GETINTINFO: u32 = 1074283010; +pub const PPPIOCSASYNCMAP: u32 = 2147775575; +pub const I2OEVTGET: u32 = 1080584459; +pub const NVME_IOCTL_RESET: u32 = 536890948; +pub const PPYIELD: u32 = 536899725; +pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; +pub const TUNSETCARRIER: u32 = 2147767522; +pub const DM_DEV_WAIT: u32 = 3241737480; +pub const RTC_WIE_ON: u32 = 536899599; +pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; +pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; +pub const MGSL_IOCSPARAMS: u32 = 2150657280; +pub const RTC_SET_TIME: u32 = 2149871626; +pub const VHOST_RESET_OWNER: u32 = 536915714; +pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; +pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; +pub const UDF_GETEABLOCK: u32 = 1074293825; +pub const VFIO_IOMMU_MAP_DMA: u32 = 536886129; +pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 2149602906; +pub const HIDIOCGFLAG: u32 = 1074022414; +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 = 2148577793; +pub const CCISS_GETFIRMVER: u32 = 1074020872; +pub const ND_IOCTL_ARS_START: u32 = 3223342594; +pub const PPPIOCSMRRU: u32 = 2147775547; +pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; +pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 1074050818; +pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; +pub const PPSETTIME: u32 = 2148561046; +pub const RTC_ALM_READ: u32 = 1076129800; +pub const VDUSE_SET_API_VERSION: u32 = 2148040961; +pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; +pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; +pub const USBDEVFS_CONNECT: u32 = 536892695; +pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; +pub const ATMARP_MKIP: u32 = 536895970; +pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; +pub const CCISS_GETHEARTBEAT: u32 = 1074020870; +pub const ATM_RSTADDR: u32 = 2148557191; +pub const NBD_SET_SIZE: u32 = 536914690; +pub const UDF_GETVOLIDENT: u32 = 1074293826; +pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; +pub const MGSL_IOCSTXIDLE: u32 = 536898818; +pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; +pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; +pub const PPRSTATUS: u32 = 1073836161; +pub const MGSL_IOCTXENABLE: u32 = 536898820; +pub const UDF_GETEASIZE: u32 = 1074031680; +pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; +pub const VHOST_SET_OWNER: u32 = 536915713; +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 = 2148557195; +pub const HPET_IE_ON: u32 = 536897537; +pub const PERF_EVENT_IOC_ID: u32 = 1074275335; +pub const TUNSETSNDBUF: u32 = 2147767508; +pub const PTP_PIN_SETFUNC: u32 = 2153790727; +pub const PPPIOCDISCONN: u32 = 536900665; +pub const VIDIOC_QUERYCTRL: u32 = 3225703972; +pub const PPEXCL: u32 = 536899727; +pub const PCITEST_MSI: u32 = 2147766275; +pub const FDWERRORCLR: u32 = 536871510; +pub const AUTOFS_IOC_FAIL: u32 = 536908641; +pub const USBDEVFS_IOCTL: u32 = 3222295826; +pub const VIDIOC_S_STD: u32 = 2148029976; +pub const F2FS_IOC_RESIZE_FS: u32 = 2148070672; +pub const SONET_SETDIAG: u32 = 3221512466; +pub const BTRFS_IOC_DEFRAG: u32 = 2415956994; +pub const CCISS_GETDRIVVER: u32 = 1074020873; +pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 1074293015; +pub const HPET_IRQFREQ: u32 = 2148034566; +pub const ATM_GETESI: u32 = 2148557189; +pub const CCISS_GETLUNINFO: u32 = 1074545169; +pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; +pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; +pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; +pub const UDMABUF_CREATE_LIST: u32 = 2148037955; +pub const VHOST_SET_LOG_BASE: u32 = 2148052740; +pub const ZATM_GETPOOL: u32 = 2148557153; +pub const BR2684_SETFILT: u32 = 2149343632; +pub const RNDGETPOOL: u32 = 1074287106; +pub const PPS_GETPARAMS: u32 = 1074294945; +pub const IOC_PR_RESERVE: u32 = 2148561097; +pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; +pub const RIO_CM_CHAN_CLOSE: u32 = 2147640068; +pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; +pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; +pub const PMU_IOC_GET_BACKLIGHT: u32 = 1074283009; +pub const USBDEVFS_GET_CAPABILITIES: u32 = 1074025754; +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 = 536887822; +pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; +pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; +pub const CAPI_GET_VERSION: u32 = 3222291207; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; +pub const VFIO_EEH_PE_OP: u32 = 536886137; +pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; +pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 1074328850; +pub const NBD_SET_SIZE_BLOCKS: u32 = 536914695; +pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 536916224; +pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; +pub const VIDIOC_S_AUDOUT: u32 = 2150913586; +pub const VIDIOC_S_FMT: u32 = 3234878981; +pub const PPPIOCATTACH: u32 = 2147775549; +pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052772; +pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; +pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; +pub const IPMICTL_SET_MY_LUN_CMD: u32 = 1074030867; +pub const PCITEST_LEGACY_IRQ: u32 = 536891394; +pub const USBDEVFS_SUBMITURB: u32 = 1077433610; +pub const AUTOFS_IOC_READY: u32 = 536908640; +pub const BTRFS_IOC_SEND: u32 = 2152240166; +pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; +pub const JSIOCSBTNMAP: u32 = 2214619699; +pub const PPPIOCSFLAGS: u32 = 2147775577; +pub const NVRAM_INIT: u32 = 536899648; +pub const RFKILL_IOCTL_NOINPUT: u32 = 536891905; +pub const BTRFS_IOC_BALANCE: u32 = 2415957004; +pub const FS_IOC_GETFSMAP: u32 = 3233830971; +pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; +pub const STP_POLICY_ID_GET: u32 = 1074799873; +pub const PPSETFLAGS: u32 = 2147774619; +pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; +pub const ATMTCP_CREATE: u32 = 536895886; +pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; +pub const PPPIOCGXASYNCMAP: u32 = 1075868752; +pub const VHOST_SET_VRING_CALL: u32 = 2148052769; +pub const LIRC_GET_FEATURES: u32 = 1074030848; +pub const GSMIOC_DISABLE_NET: u32 = 536889091; +pub const AUTOFS_IOC_CATATONIC: u32 = 536908642; +pub const NBD_DO_IT: u32 = 536914691; +pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 2147772703; +pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030873; +pub const EVIOCSCLOCKID: u32 = 2147763616; +pub const USBDEVFS_FREE_STREAMS: u32 = 1074287901; +pub const FSI_SCOM_RESET: u32 = 2147775235; +pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 1074283014; +pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; +pub const FDDEFPRM: u32 = 2149581379; +pub const TEE_IOC_INVOKE: u32 = 1074832387; +pub const USBDEVFS_BULK: u32 = 3222820098; +pub const SCIF_VWRITETO: u32 = 3223876365; +pub const SONYPI_IOCSBRT: u32 = 2147579392; +pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; +pub const RTC_PIE_ON: u32 = 536899589; +pub const BTRFS_IOC_SCAN_DEV: u32 = 2415956996; +pub const PPPIOCXFERUNIT: u32 = 536900686; +pub const WDIOC_GETTIMEOUT: u32 = 1074026247; +pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; +pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 2148054598; +pub const FBIO_WAITFORVSYNC: u32 = 2147763744; +pub const RTC_PIE_OFF: u32 = 536899590; +pub const EVIOCGRAB: u32 = 2147763600; +pub const PMU_IOC_SET_BACKLIGHT: u32 = 2148024834; +pub const EVIOCGREP: u32 = 1074283779; +pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 2148017163; +pub const UFFDIO_CONTINUE: u32 = 3223366151; +pub const VDUSE_GET_API_VERSION: u32 = 1074299136; +pub const RTC_RD_TIME: u32 = 1076129801; +pub const FDMSGOFF: u32 = 536871494; +pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; +pub const CAPI_GET_ERRCODE: u32 = 1073890081; +pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; +pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; +pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2148036346; +pub const RIO_DEV_ADD: u32 = 2149608727; +pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; +pub const FBIO_RADEON_SET_MIRROR: u32 = 2148024324; +pub const PCITEST_GET_IRQTYPE: u32 = 536891401; +pub const JSIOCGVERSION: u32 = 1074031105; +pub const SONYPI_IOCSBLUE: u32 = 2147579401; +pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 536883986; +pub const F2FS_IOC_GET_FEATURES: u32 = 1074066700; +pub const SCIF_REG: u32 = 3223876360; +pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 2155376264; +pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 2147754757; +pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; +pub const VHOST_SET_VRING_NUM: u32 = 2148052752; +pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; +pub const RIO_FREE_DMA: u32 = 2148035860; +pub const MGSL_IOCRXENABLE: u32 = 536898821; +pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; +pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; +pub const PPPIOCGL2TPSTATS: u32 = 1078490166; +pub const PERF_EVENT_IOC_PERIOD: u32 = 2148017156; +pub const PTP_PIN_SETFUNC2: u32 = 2153790736; +pub const CHIOEXCHANGE: u32 = 2149344002; +pub const NILFS_IOCTL_GET_SUINFO: u32 = 1075342980; +pub const CEC_DQEVENT: u32 = 3226493191; +pub const UI_SET_SWBIT: u32 = 2147767661; +pub const VHOST_VDPA_SET_CONFIG: u32 = 2148052852; +pub const TUNSETIFF: u32 = 2147767498; +pub const CHIOPOSITION: u32 = 2148295427; +pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; +pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; +pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; +pub const CAPI_CLR_FLAGS: u32 = 1074021157; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; +pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074294520; +pub const EVIOCSMASK: u32 = 2148550035; +pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; +pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; +pub const CEC_S_MODE: u32 = 2147770633; +pub const MGSL_IOCSIF: u32 = 536898826; +pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; +pub const PPSETMODE: u32 = 2147774592; +pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; +pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; +pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 1078223114; +pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 2166386922; +pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; +pub const UDMABUF_CREATE: u32 = 2149086530; +pub const SONET_CLRDIAG: u32 = 3221512467; +pub const PHN_SET_REG: u32 = 2148036609; +pub const RNDADDTOENTCNT: u32 = 2147766785; +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 = 536899586; +pub const VFIO_GROUP_SET_CONTAINER: u32 = 536886120; +pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 2148016918; +pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 536886136; +pub const VFIO_IOMMU_GET_INFO: u32 = 536886128; +pub const DM_DEV_SUSPEND: u32 = 3241737478; +pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; +pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; +pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; +pub const ATMMPC_CTRL: u32 = 536895960; +pub const PPPIOCSXASYNCMAP: u32 = 2149610575; +pub const CHIOGSTATUS: u32 = 2148557576; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; +pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; +pub const CAPI_SET_FLAGS: u32 = 1074021156; +pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; +pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; +pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2148036344; +pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 536917570; +pub const VHOST_GET_FEATURES: u32 = 1074310912; +pub const LIRC_GET_REC_RESOLUTION: u32 = 1074030855; +pub const PACKET_CTRL_CMD: u32 = 3222820865; +pub const LIRC_SET_TRANSMITTER_MASK: u32 = 2147772695; +pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; +pub const JSIOCGCORR: u32 = 1076128290; +pub const VIDIOC_G_FMT: u32 = 3234878980; +pub const RTC_EPOCH_SET: u32 = 2148036622; +pub const CAPI_GET_PROFILE: u32 = 3225436937; +pub const ATM_GETLOOP: u32 = 2148557138; +pub const SCIF_LISTEN: u32 = 2147775234; +pub const NBD_CLEAR_QUE: u32 = 536914693; +pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; +pub const LIRC_GET_LENGTH: u32 = 1074030863; +pub const I8K_SET_FAN: u32 = 3221776775; +pub const FDSETMAXERRS: u32 = 2148794956; +pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 1077958144; +pub const SNAPSHOT_SET_SWAP_AREA: u32 = 2148283149; +pub const LIRC_GET_REC_TIMEOUT: u32 = 1074030884; +pub const EVIOCRMFF: u32 = 2147763585; +pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; +pub const PPRDATA: u32 = 1073836165; +pub const RIO_MPORT_GET_PROPERTIES: u32 = 1076915460; +pub const TUNSETVNETHDRSZ: u32 = 2147767512; +pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; +pub const GSMIOC_GETCONF: u32 = 1078740736; +pub const LIRC_GET_SEND_MODE: u32 = 1074030849; +pub const PPPIOCSACTIVE: u32 = 2148561990; +pub const SIOCGSTAMPNS_NEW: u32 = 1074825479; +pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; +pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 2147772693; +pub const UI_END_FF_ERASE: u32 = 2148292043; +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 = 536914698; +pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 536886124; +pub const REISERFS_IOC_UNPACK: u32 = 2148060417; +pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 2147754759; +pub const RIO_SET_EVENT_MASK: u32 = 2147773709; +pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 1074279188; +pub const VDUSE_VQ_INJECT_IRQ: u32 = 2147778839; +pub const I2OPASSTHRU: u32 = 1074817292; +pub const IOC_OPAL_SET_PW: u32 = 2183164128; +pub const FSI_SCOM_READ: u32 = 3223352065; +pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; +pub const VIDIOC_QBUF: u32 = 3227014671; +pub const VIDIOC_S_TUNER: u32 = 2153010718; +pub const TUNGETVNETHDRSZ: u32 = 1074025687; +pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; +pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; +pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; +pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; +pub const TEE_IOC_VERSION: u32 = 1074570240; +pub const VIDIOC_LOG_STATUS: u32 = 536892998; +pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1076914453; +pub const VHOST_SET_LOG_FD: u32 = 2147790599; +pub const SCIF_SEND: u32 = 3222827782; +pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; +pub const NS_ADJBUFLEV: u32 = 536895843; +pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; +pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; +pub const PHN_GETREG: u32 = 3221778437; +pub const I2OSWDL: u32 = 3224398085; +pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 536892931; +pub const JSIOCGBUTTONS: u32 = 1073834514; +pub const VFIO_IOMMU_ENABLE: u32 = 536886131; +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 = 2147790711; +pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; +pub const VIDIOC_S_CROP: u32 = 2148816444; +pub const WDIOC_GETTEMP: u32 = 1074026243; +pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 2165862628; +pub const UI_SET_LEDBIT: u32 = 2147767657; +pub const NBD_SET_SOCK: u32 = 536914688; +pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 2415957055; +pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; +pub const I2OSWUL: u32 = 3224398086; +pub const IOCTL_MEI_NOTIFY_GET: u32 = 1074022403; +pub const FDFMTTRK: u32 = 2148270664; +pub const MMTIMER_GETBITS: u32 = 536898820; +pub const VIDIOC_ENUMSTD: u32 = 3225966105; +pub const VHOST_GET_VRING_BASE: u32 = 3221794578; +pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; +pub const ATMARP_SETENTRY: u32 = 536895971; +pub const CCISS_REVALIDVOLS: u32 = 536887818; +pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; +pub const RTC_VL_READ: u32 = 1074032659; +pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; +pub const RIO_DEV_DEL: u32 = 2149608728; +pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; +pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; +pub const SONYPI_IOCSFAN: u32 = 2147579403; +pub const SPIOCSTYPE: u32 = 2148036865; +pub const IPMICTL_REGISTER_FOR_CMD: u32 = 1073899790; +pub const I8K_GET_FAN: u32 = 3221776774; +pub const TUNGETVNETBE: u32 = 1074025695; +pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; +pub const UI_END_FF_UPLOAD: u32 = 2154321353; +pub const TOSH_SMM: u32 = 3222828176; +pub const SONYPI_IOCGBAT2REM: u32 = 1073903109; +pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 1074328849; +pub const PPPIOCSNPMODE: u32 = 2148037707; +pub const USBDEVFS_CONTROL: u32 = 3222820096; +pub const HIDIOCGUSAGE: u32 = 3222816779; +pub const TUNSETTXFILTER: u32 = 2147767505; +pub const TUNGETVNETLE: u32 = 1074025693; +pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; +pub const MGSL_IOCGXSYNC: u32 = 536898836; +pub const HIDIOCGFIELDINFO: u32 = 3224913930; +pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; +pub const I2OVALIDATE: u32 = 1074030856; +pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; +pub const NILFS_IOCTL_GET_CPINFO: u32 = 1075342978; +pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; +pub const VFAT_IOCTL_READDIR_SHORT: u32 = 1110471170; +pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; +pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 1074328851; +pub const FDGETDRVSTAT: u32 = 1078985234; +pub const SYNC_IOC_MERGE: u32 = 3224387075; +pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; +pub const PPPIOCBRIDGECHAN: u32 = 2147775541; +pub const LIRC_SET_SEND_MODE: u32 = 2147772689; +pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 2148560139; +pub const ATM_GETTYPE: u32 = 2148557188; +pub const PHN_GETREGS: u32 = 3223875591; +pub const FDSETEMSGTRESH: u32 = 536871498; +pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; +pub const MGSL_IOCWAITEVENT: u32 = 3221515528; +pub const CAPI_INSTALLED: u32 = 1073890082; +pub const EVIOCGMASK: u32 = 1074808210; +pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; +pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; +pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; +pub const GSMIOC_GETFIRST: u32 = 1074022148; +pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; +pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; +pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; +pub const CAPI_GET_SERIAL: u32 = 3221504776; +pub const FDSETDRVPRM: u32 = 2155872912; +pub const IOC_OPAL_SAVE: u32 = 2165862620; +pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; +pub const TUNSETIFINDEX: u32 = 2147767514; +pub const CCISS_SETINTINFO: u32 = 2148024835; +pub const RTC_VL_CLR: u32 = 536899604; +pub const VIDIOC_REQBUFS: u32 = 3222558216; +pub const USBDEVFS_REAPURBNDELAY32: u32 = 2147767565; +pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; +pub const USBDEVFS_SETCONFIGURATION: u32 = 1074025733; +pub const CCISS_GETNODENAME: u32 = 1074807300; +pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; +pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; +pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 536886129; +pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 2150114066; +pub const LPSETTIMEOUT_NEW: u32 = 2148533775; +pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; +pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; +pub const FDRAWCMD: u32 = 536871512; +pub const SCIF_UNREG: u32 = 3222303497; +pub const PPPIOCGIDLE64: u32 = 1074820159; +pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; +pub const VIDIOC_CROPCAP: u32 = 3224131130; +pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; +pub const PHN_SET_REGS: u32 = 2148036611; +pub const ATMLEC_DATA: u32 = 536895953; +pub const PPPOEIOCDFWD: u32 = 536916225; +pub const VIDIOC_S_SELECTION: u32 = 3225441887; +pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; +pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; +pub const VIDIOC_S_CTRL: u32 = 3221771804; +pub const ZATM_SETPOOL: u32 = 2148557155; +pub const MTIOCPOS: u32 = 1074294019; +pub const PMU_IOC_SLEEP: u32 = 536887808; +pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; +pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; +pub const NILFS_IOCTL_GET_SUSTAT: u32 = 1076915845; +pub const VIDIOC_QUERYCAP: u32 = 1080579584; +pub const HPET_INFO: u32 = 1075341315; +pub const VIDIOC_AM437X_CCDC_CFG: u32 = 2148030145; +pub const DM_LIST_DEVICES: u32 = 3241737474; +pub const TUNSETOWNER: u32 = 2147767500; +pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; +pub const RNDADDENTROPY: u32 = 2148028931; +pub const USBDEVFS_RESET: u32 = 536892692; +pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 2415957006; +pub const USBDEVFS_FORBID_SUSPEND: u32 = 536892705; +pub const FDGETDRVTYP: u32 = 1074790927; +pub const PPWCONTROL: u32 = 2147577988; +pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; +pub const KCOV_DISABLE: u32 = 536896357; +pub const IOC_OPAL_ACTIVATE_LSP: u32 = 2165862623; +pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 1074835320; +pub const PPPIOCSPASS: u32 = 2148561991; +pub const RIO_CM_CHAN_CONNECT: u32 = 2148033288; +pub const I2OSWDEL: u32 = 3224398087; +pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 1074554387; +pub const IOC_OPAL_MBR_DONE: u32 = 2165338345; +pub const PPPIOCSMAXCID: u32 = 2147775569; +pub const PPSETPHASE: u32 = 2147774612; +pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 2148052853; +pub const USBDEVFS_GET_SPEED: u32 = 536892703; +pub const SONET_GETFRAMING: u32 = 1074028822; +pub const VIDIOC_QUERYBUF: u32 = 3227014665; +pub const VIDIOC_S_EDID: u32 = 3223868969; +pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 2149094441; +pub const PPS_GETCAP: u32 = 1074294947; +pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 536883983; +pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 2147772697; +pub const SCIF_GET_NODEIDS: u32 = 3222827790; +pub const NBD_DISCONNECT: u32 = 536914696; +pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; +pub const VFIO_IOMMU_DISABLE: u32 = 536886132; +pub const SNAPSHOT_CREATE_IMAGE: u32 = 2147758865; +pub const SNAPSHOT_POWER_OFF: u32 = 536883984; +pub const APM_IOC_STANDBY: u32 = 536887553; +pub const PPPIOCGUNIT: u32 = 1074033750; +pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 2147783526; +pub const SCIF_BIND: u32 = 3221779201; +pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 536893280; +pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 2148560512; +pub const IOC_OPAL_LOCK_UNLOCK: u32 = 2165862621; +pub const F2FS_IOC_SET_PIN_FILE: u32 = 2147808525; +pub const PPPIOCGRASYNCMAP: u32 = 1074033749; +pub const MMTIMER_MMAPAVAIL: u32 = 536898822; +pub const I2OPASSTHRU32: u32 = 1074293004; +pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 2147792513; +pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 1082414691; +pub const UI_SET_SNDBIT: u32 = 2147767658; +pub const VIDIOC_G_AUDOUT: u32 = 1077171761; +pub const RTC_PLL_SET: u32 = 2149609490; +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 = 2147790660; +pub const VHOST_SET_VRING_ADDR: u32 = 2150149905; +pub const VDUSE_CREATE_DEV: u32 = 2169536770; +pub const FDFLUSH: u32 = 536871499; +pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; +pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 2148054660; +pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; +pub const SCIF_CONNECT: u32 = 3221779203; +pub const BLKREPORTZONE: u32 = 3222278786; +pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; +pub const ATM_ADDPARTY: u32 = 2148557300; +pub const FDSETPRM: u32 = 2149581378; +pub const ATM_GETSTATZ: u32 = 2148557137; +pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; +pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 1106809916; +pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 2149602907; +pub const SEV_ISSUE_CMD: u32 = 3222295296; +pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; +pub const PCITEST_COPY: u32 = 2148028422; +pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; +pub const CHIOGPICKER: u32 = 1074029316; +pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; +pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; +pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2148017158; +pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; +pub const CHIOGVPARAMS: u32 = 1081107219; +pub const PTP_PEROUT_REQUEST: u32 = 2151169283; +pub const FSI_SCOM_CHECK: u32 = 1074033408; +pub const RTC_IRQP_READ: u32 = 1074294795; +pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 1075342597; +pub const HIDIOCGRDESCSIZE: u32 = 1074022401; +pub const UI_GET_VERSION: u32 = 1074025773; +pub const NILFS_IOCTL_GET_CPSTAT: u32 = 1075342979; +pub const CCISS_GETBUSTYPES: u32 = 1074020871; +pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 536886135; +pub const VIDIOC_EXPBUF: u32 = 3225441808; +pub const UI_SET_RELBIT: u32 = 2147767654; +pub const VFIO_SET_IOMMU: u32 = 536886118; +pub const VIDIOC_S_MODULATOR: u32 = 2151962167; +pub const TUNGETFILTER: u32 = 1074812123; +pub const CCISS_SETNODENAME: u32 = 2148549125; +pub const FBIO_GETCONTROL2: u32 = 1074284169; +pub const TUNSETDEBUG: u32 = 2147767497; +pub const DM_DEV_REMOVE: u32 = 3241737476; +pub const HIDIOCSUSAGES: u32 = 2417772564; +pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; +pub const FBIOGET_VBLANK: u32 = 1075856914; +pub const ATM_GETSTAT: u32 = 2148557136; +pub const VIDIOC_G_JPEGCOMP: u32 = 1082938941; +pub const TUNATTACHFILTER: u32 = 2148553941; +pub const UI_SET_ABSBIT: u32 = 2147767655; +pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; +pub const USBDEVFS_REAPURB32: u32 = 2147767564; +pub const BTRFS_IOC_TRANS_END: u32 = 536908807; +pub const CAPI_REGISTER: u32 = 2148287233; +pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; +pub const USBDEVFS_DISCARDURB: u32 = 536892683; +pub const HE_GET_REG: u32 = 2148557152; +pub const ATM_SETLOOP: u32 = 2148557139; +pub const ATMSIGD_CTRL: u32 = 536895984; +pub const CIOC_KERNEL_VERSION: u32 = 3221775114; +pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; +pub const SNAPSHOT_UNFREEZE: u32 = 536883970; +pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 536933635; +pub const PMU_IOC_HAS_ADB: u32 = 1074283012; +pub const I2OGETIOPS: u32 = 1075865856; +pub const VIDIOC_S_FBUF: u32 = 2150651403; +pub const PPRCONTROL: u32 = 1073836163; +pub const CHIOSPICKER: u32 = 2147771141; +pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 536886133; +pub const TUNGETSNDBUF: u32 = 1074025683; +pub const GSMIOC_SETCONF: u32 = 2152482561; +pub const IOC_PR_PREEMPT: u32 = 2149085387; +pub const KCOV_INIT_TRACE: u32 = 1074291457; +pub const SONYPI_IOCGBAT1CAP: u32 = 1073903106; +pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 1074812736; +pub const MTIOCTOP: u32 = 2148035841; +pub const VHOST_VDPA_SET_STATUS: u32 = 2147594098; +pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 2147790659; +pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 536886133; +pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; +pub const PPPIOCGMRU: u32 = 1074033747; +pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; +pub const PPPIOCGFLAGS: u32 = 1074033754; +pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; +pub const ATM_DELLECSADDR: u32 = 2148557199; +pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; +pub const PPPIOCGIDLE32: u32 = 1074295871; +pub const VFIO_DEVICE_RESET: u32 = 536886127; +pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; +pub const WDIOC_GETSTATUS: u32 = 1074026241; +pub const BTRFS_IOC_SET_FEATURES: u32 = 2150667321; +pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; +pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; +pub const PCITEST_READ: u32 = 2148028421; +pub const VFIO_GROUP_GET_STATUS: u32 = 536886119; +pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 1074294523; +pub const USBDEVFS_CLEAR_HALT: u32 = 1074025749; +pub const VIDIOC_DECODER_CMD: u32 = 3225966176; +pub const VIDIOC_G_AUDIO: u32 = 1077171745; +pub const CCISS_RESCANDISK: u32 = 536887824; +pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 2148560140; +pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 2165338343; +pub const USBDEVFS_REAPURB: u32 = 2148029708; +pub const DFL_FPGA_CHECK_EXTENSION: u32 = 536917505; +pub const AUTOFS_IOC_PROTOVER: u32 = 1074041699; +pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; +pub const BTRFS_IOC_GET_FEATURES: u32 = 1075352633; +pub const PCITEST_MSIX: u32 = 2147766279; +pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 2150667280; +pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; +pub const DM_GET_TARGET_VERSION: u32 = 3241737489; +pub const PPPIOCGIDLE: u32 = 1074820159; +pub const NVRAM_SETCKS: u32 = 536899649; +pub const WDIOC_GETSUPPORT: u32 = 1076385536; +pub const GSMIOC_ENABLE_NET: u32 = 2150909698; +pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 1078244353; +pub const NE_ADD_VCPU: u32 = 3221532193; +pub const EVIOCSKEYCODE_V2: u32 = 2150122756; +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 = 2149084422; +pub const I2OEVTREG: u32 = 2148296970; +pub const I2OPARMGET: u32 = 3223873796; +pub const EVIOCGID: u32 = 1074283778; +pub const BTRFS_IOC_QGROUP_CREATE: u32 = 2148570154; +pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; +pub const VIDIOC_S_PARM: u32 = 3234616854; +pub const TUNSETSTEERINGEBPF: u32 = 1074025696; +pub const ATM_GETNAMES: u32 = 2148557187; +pub const VIDIOC_QUERYMENU: u32 = 3224131109; +pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; +pub const I2OLCTGET: u32 = 3222825218; +pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; +pub const NS_SETBUFLEV: u32 = 2148557154; +pub const BLKCLOSEZONE: u32 = 2148536967; +pub const SONET_GETFRSENSE: u32 = 1074159895; +pub const UI_SET_EVBIT: u32 = 2147767652; +pub const DM_LIST_VERSIONS: u32 = 3241737485; +pub const HIDIOCGSTRING: u32 = 1090799620; +pub const PPPIOCATTCHAN: u32 = 2147775544; +pub const VDUSE_DEV_SET_CONFIG: u32 = 2148040978; +pub const TUNGETFEATURES: u32 = 1074025679; +pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 536886121; +pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 1074030865; +pub const CCISS_REGNEWDISK: u32 = 2147762701; +pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 1082414691; +pub const PHN_SETREGS: u32 = 2150133768; +pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 1074033168; +pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; +pub const TUNGETIFF: u32 = 1074025682; +pub const PTP_CLOCK_GETCAPS2: u32 = 1079000330; +pub const BTRFS_IOC_RESIZE: u32 = 2415956995; +pub const VHOST_SET_VRING_ENDIAN: u32 = 2148052755; +pub const PPS_KC_BIND: u32 = 2148036773; +pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 536933639; +pub const UI_SET_FFBIT: u32 = 2147767659; +pub const IPMICTL_GET_MY_LUN_CMD: u32 = 1074030868; +pub const CEC_ADAP_G_PHYS_ADDR: u32 = 1073897729; +pub const CEC_G_MODE: u32 = 1074028808; +pub const USBDEVFS_RESETEP: u32 = 1074025731; +pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; +pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; +pub const MGSL_IOCSXCTRL: u32 = 536898837; +pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; +pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; +pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; +pub const ISST_IF_GET_PLATFORM_INFO: u32 = 1074331136; +pub const SCIF_FENCE_MARK: u32 = 3222303503; +pub const USBDEVFS_RELEASE_PORT: u32 = 1074025753; +pub const VFIO_CHECK_EXTENSION: u32 = 536886117; +pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 1076925483; +pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; +pub const UI_SET_PHYS: u32 = 2148029804; +pub const FDWERRORGET: u32 = 1076363799; +pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; +pub const MGSL_IOCGSTATS: u32 = 536898823; +pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; +pub const SIOCGSTAMP_NEW: u32 = 1074825478; +pub const RTC_WKALM_RD: u32 = 1076391952; +pub const PHN_GET_REG: u32 = 3221778432; +pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; +pub const PHN_NOT_OH: u32 = 536899588; +pub const PPGETMODES: u32 = 1074032791; +pub const CHIOGPARAMS: u32 = 1075077894; +pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; +pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; +pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; +pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; +pub const MGSL_IOCWAITGPIO: u32 = 3222301970; +pub const PMU_IOC_CAN_SLEEP: u32 = 1074283013; +pub const KCOV_ENABLE: u32 = 536896356; +pub const BTRFS_IOC_CLONE: u32 = 2147783689; +pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; +pub const AGPIOC_ALLOCATE: u32 = 3221766406; +pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; +pub const MGSL_IOCTXABORT: u32 = 536898822; +pub const MGSL_IOCSGPIO: u32 = 2148560144; +pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; +pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; +pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; +pub const RTC_UIE_OFF: u32 = 536899588; +pub const BT_BMC_IOCTL_SMS_ATN: u32 = 536916224; +pub const NVME_IOCTL_ID: u32 = 536890944; +pub const NE_START_ENCLAVE: u32 = 3222318628; +pub const VIDIOC_STREAMON: u32 = 2147767826; +pub const FDPOLLDRVSTAT: u32 = 1078985235; +pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; +pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; +pub const VIDIOC_SUBDEV_S_STD: u32 = 2148029976; +pub const WDIOC_GETTIMELEFT: u32 = 1074026250; +pub const ATM_GETLINKRATE: u32 = 2148557185; +pub const RTC_WKALM_SET: u32 = 2150133775; +pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; +pub const ATMARP_ENCAP: u32 = 536895973; +pub const CAPI_GET_FLAGS: u32 = 1074021155; +pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; +pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; +pub const NS_GET_OWNER_UID: u32 = 536917764; +pub const VIDIOC_OVERLAY: u32 = 2147767822; +pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; +pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; +pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; +pub const ATM_GETADDR: u32 = 2148557190; +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 = 536883979; +pub const JSIOCSAXMAP: u32 = 2151705137; +pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 2147677462; +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 = 536886128; +pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; +pub const MMTIMER_GETOFFSET: u32 = 536898816; +pub const RIO_CM_CHAN_LISTEN: u32 = 2147640070; +pub const ATM_SETSC: u32 = 2147770865; +pub const F2FS_IOC_SHUTDOWN: u32 = 1074026621; +pub const NVME_IOCTL_RESCAN: u32 = 536890950; +pub const BLKOPENZONE: u32 = 2148536966; +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 = 536895968; +pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; +pub const HIDIOCGVERSION: u32 = 1074022401; +pub const VIDIOC_S_INPUT: u32 = 3221509671; +pub const VIDIOC_G_CROP: u32 = 3222558267; +pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 2147772707; +pub const EVIOCGEFFECTS: u32 = 1074021764; +pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; +pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; +pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; +pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; +pub const USBDEVFS_GETDRIVER: u32 = 2164544776; +pub const IDT77105_GETSTAT: u32 = 2148557106; +pub const HIDIOCINITREPORT: u32 = 536889349; +pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; +pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; +pub const RNDGETENTCNT: u32 = 1074024960; +pub const PPPIOCNEWUNIT: u32 = 3221517374; +pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; +pub const FDRESET: u32 = 536871508; +pub const IOC_PR_REGISTER: u32 = 2149085384; +pub const HIDIOCSREPORT: u32 = 2148288520; +pub const TEE_IOC_OPEN_SESSION: u32 = 1074832386; +pub const TEE_IOC_SUPPL_RECV: u32 = 1074832390; +pub const BTRFS_IOC_BALANCE_CTL: u32 = 2147783713; +pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; +pub const HIDIOCGRAWINFO: u32 = 1074284547; +pub const PPPIOCSCOMPRESS: u32 = 2148561997; +pub const USBDEVFS_CONNECTINFO: u32 = 2148029713; +pub const BLKRESETZONE: u32 = 2148536963; +pub const CHIOINITELEM: u32 = 536896273; +pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 2148560524; +pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; +pub const RIO_MPORT_MAINT_HDID_SET: u32 = 2147642625; +pub const PPGETPHASE: u32 = 1074032793; +pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 1091065115; +pub const FDMSGON: u32 = 536871493; +pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; +pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; +pub const MEDIA_REQUEST_IOC_REINIT: u32 = 536902785; +pub const IOC_OPAL_ERASE_LR: u32 = 2165338342; +pub const FDFMTBEG: u32 = 536871495; +pub const RNDRESEEDCRNG: u32 = 536891911; +pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; +pub const TUNSETNOCSUM: u32 = 2147767496; +pub const SONET_GETSTAT: u32 = 1076125968; +pub const TFD_IOC_SET_TICKS: u32 = 2148029440; +pub const PPDATADIR: u32 = 2147774608; +pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 2165338341; +pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; +pub const RIO_CM_CHAN_SEND: u32 = 2148557577; +pub const PPWCTLONIRQ: u32 = 2147578002; +pub const SONYPI_IOCGBRT: u32 = 1073837568; +pub const IOC_PR_RELEASE: u32 = 2148561098; +pub const PPCLRIRQ: u32 = 1074032787; +pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; +pub const MGSL_IOCSXSYNC: u32 = 536898835; +pub const HPET_IE_OFF: u32 = 536897538; +pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; +pub const SONET_SETFRAMING: u32 = 2147770645; +pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 2147755017; +pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; +pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; +pub const BLKFINISHZONE: u32 = 2148536968; +pub const EVIOCREVOKE: u32 = 2147763601; +pub const VFIO_DEVICE_FEATURE: u32 = 536886133; +pub const CCISS_GETPCIINFO: u32 = 1074283009; +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 = 2147767827; +pub const VDUSE_DESTROY_DEV: u32 = 2164293891; +pub const FDGETFDCSTAT: u32 = 1076363797; +pub const VIDIOC_S_PRIORITY: u32 = 2147767876; +pub const SNAPSHOT_FREEZE: u32 = 536883969; +pub const VIDIOC_ENUMINPUT: u32 = 3226490394; +pub const ZATM_GETPOOLZ: u32 = 2148557154; +pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; +pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; +pub const VIDIOC_G_STD: u32 = 1074288151; +pub const USBDEVFS_ALLOW_SUSPEND: u32 = 536892706; +pub const SONET_GETSTATZ: u32 = 1076125969; +pub const SCIF_ACCEPTREG: u32 = 3221779205; +pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; +pub const PPPIOCSRASYNCMAP: u32 = 2147775572; +pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; +pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; +pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; +pub const ATMLEC_CTRL: u32 = 536895952; +pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074294521; +pub const DM_DEV_CREATE: u32 = 3241737475; +pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; +pub const VIDIOC_G_CTRL: u32 = 3221771803; +pub const NBD_CLEAR_SOCK: u32 = 536914692; +pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 536886130; +pub const WDIOC_KEEPALIVE: u32 = 1074026245; +pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; +pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; +pub const PCITEST_BAR: u32 = 536891393; +pub const MGSL_IOCGGPIO: u32 = 1074818321; +pub const EVIOCSREP: u32 = 2148025603; +pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; +pub const HPET_DPI: u32 = 536897541; +pub const VDUSE_VQ_SETUP_KICKFD: u32 = 2148040982; +pub const ND_IOCTL_CALL: u32 = 3225439754; +pub const HIDIOCGDEVINFO: u32 = 1075595267; +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 = 1074026051; +pub const ATM_NEWBACKENDIF: u32 = 2147639795; +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 = 2150651474; +pub const DM_TABLE_LOAD: u32 = 3241737481; +pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; +pub const VIDIOC_G_OUTPUT: u32 = 1074026030; +pub const ATM_DROPPARTY: u32 = 2147770869; +pub const CHIOGELEM: u32 = 2154586896; +pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; +pub const EVIOCSKEYCODE: u32 = 2148025604; +pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; +pub const TUNSETLINK: u32 = 2147767501; +pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; +pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 536908828; +pub const PPS_SETPARAMS: u32 = 2148036770; +pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; +pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; +pub const WDIOC_SETTIMEOUT: u32 = 3221509894; +pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; +pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; +pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; +pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; +pub const VIDIOC_G_EDID: u32 = 3223868968; +pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 2149119243; +pub const RIO_MAP_INBOUND: u32 = 3223874833; +pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 2164814046; +pub const USBDEVFS_CLAIM_PORT: u32 = 1074025752; +pub const VIDIOC_S_AUDIO: u32 = 2150913570; +pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 1074816539; +pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 2150114067; +pub const BTRFS_IOC_SNAP_DESTROY: u32 = 2415957007; +pub const SNAPSHOT_FREE: u32 = 536883973; +pub const I8K_GET_SPEED: u32 = 3221776773; +pub const HIDIOCGREPORT: u32 = 2148288519; +pub const HPET_EPI: u32 = 536897540; +pub const JSIOCSCORR: u32 = 2149870113; +pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; +pub const RIO_MAP_OUTBOUND: u32 = 3223874831; +pub const ATM_SETESI: u32 = 2148557196; +pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; +pub const ATM_DELADDR: u32 = 2148557193; +pub const PPFCONTROL: u32 = 2147643534; +pub const SONYPI_IOCGFAN: u32 = 1073837578; +pub const RTC_IRQP_SET: u32 = 2148036620; +pub const PCITEST_WRITE: u32 = 2148028420; +pub const PPCLAIM: u32 = 536899723; +pub const VIDIOC_S_JPEGCOMP: u32 = 2156680766; +pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 1073899791; +pub const VHOST_SET_FEATURES: u32 = 2148052736; +pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; +pub const VIDIOC_DQBUF: u32 = 3227014673; +pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; +pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; +pub const ATMLEC_MCAST: u32 = 536895954; +pub const MMTIMER_GETFREQ: u32 = 1074294018; +pub const VIDIOC_G_SELECTION: u32 = 3225441886; +pub const RTC_ALM_SET: u32 = 2149871623; +pub const PPPOEIOCSFWD: u32 = 2148053248; +pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; +pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; +pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; +pub const FDFMTEND: u32 = 536871497; +pub const DMA_BUF_SET_NAME: u32 = 2148033025; +pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; +pub const RTC_UIE_ON: u32 = 536899587; +pub const PPRELEASE: u32 = 536899724; +pub const VFIO_IOMMU_UNMAP_DMA: u32 = 536886130; +pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; +pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; +pub const VFAT_IOCTL_READDIR_BOTH: u32 = 1110471169; +pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; +pub const VHOST_SET_VRING_KICK: u32 = 2148052768; +pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 2415957016; +pub const BTRFS_IOC_SNAP_CREATE: u32 = 2415956993; +pub const SONYPI_IOCGBAT2CAP: u32 = 1073903108; +pub const PPNEGOT: u32 = 2147774609; +pub const NBD_PRINT_DEBUG: u32 = 536914694; +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 = 1140888607; +pub const VIDIOC_ENUM_FMT: u32 = 3225441794; +pub const VIDIOC_G_INPUT: u32 = 1074026022; +pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; +pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 1074050691; +pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; +pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 2151715884; +pub const MMTIMER_GETCOUNTER: u32 = 1074294025; +pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; +pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; +pub const RIO_CM_CHAN_BIND: u32 = 2148033285; +pub const HIDIOCGRDESC: u32 = 1342457858; +pub const MGSL_IOCGIF: u32 = 536898827; +pub const VIDIOC_S_OUTPUT: u32 = 3221509679; +pub const HIDIOCGREPORTINFO: u32 = 3222030345; +pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; +pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; +pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 2149884501; +pub const BLKGETDISKSEQ: u32 = 1074270848; +pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; +pub const ACRN_IOCTL_DESTROY_VM: u32 = 536912401; +pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 2148835923; +pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 536912434; +pub const ACRN_IOCTL_IRQFD: u32 = 2149098097; +pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; +pub const ACRN_IOCTL_INJECT_MSI: u32 = 2148573731; +pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 536912435; +pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 2148835924; +pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 2148049457; +pub const ACRN_IOCTL_SET_IRQLINE: u32 = 2148049445; +pub const ACRN_IOCTL_START_VM: u32 = 536912402; +pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 2166923798; +pub const ACRN_IOCTL_SET_MEMSEG: u32 = 2149622337; +pub const ACRN_IOCTL_PAUSE_VM: u32 = 536912403; +pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 536912437; +pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 2149622338; +pub const ACRN_IOCTL_IOEVENTFD: u32 = 2149622384; +pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; +pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; +pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; +pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2148049444; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..f45cdeb8f1eded8af92767fca52fcbfb59ced8b3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/landlock.rs @@ -0,0 +1,114 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..42803b9d276362cffff6a1ddc74fd0a7354234b6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/loop_device.rs @@ -0,0 +1,144 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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_long; +pub type __u64 = crate::ctypes::c_ulong; +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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/mempolicy.rs new file mode 100644 index 0000000000000000000000000000000000000000..f36e463e942f1dd04be76a000231941d88b79a85 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/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 ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +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 EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; +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/mips64/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..59f779f765c39af49f052669a8a1e35e324985de --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/net.rs @@ -0,0 +1,3522 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +pub const IOCSIZE_SHIFT: u32 = 16; +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_REUSEADDR: u32 = 4; +pub const SO_KEEPALIVE: u32 = 8; +pub const SO_DONTROUTE: u32 = 16; +pub const SO_BROADCAST: u32 = 32; +pub const SO_LINGER: u32 = 128; +pub const SO_OOBINLINE: u32 = 256; +pub const SO_REUSEPORT: u32 = 512; +pub const SO_TYPE: u32 = 4104; +pub const SO_STYLE: u32 = 4104; +pub const SO_ERROR: u32 = 4103; +pub const SO_SNDBUF: u32 = 4097; +pub const SO_RCVBUF: u32 = 4098; +pub const SO_SNDLOWAT: u32 = 4099; +pub const SO_RCVLOWAT: u32 = 4100; +pub const SO_SNDTIMEO_OLD: u32 = 4101; +pub const SO_RCVTIMEO_OLD: u32 = 4102; +pub const SO_ACCEPTCONN: u32 = 4105; +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_BSDCOMPAT: u32 = 14; +pub const SO_PASSCRED: u32 = 17; +pub const SO_PEERCRED: u32 = 18; +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_PEERSEC: u32 = 30; +pub const SO_SNDBUFFORCE: u32 = 31; +pub const SO_RCVBUFFORCE: u32 = 33; +pub const SO_PASSSEC: u32 = 34; +pub const SO_MARK: u32 = 36; +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 = 4102; +pub const SO_SNDTIMEO: u32 = 4101; +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 = 2; +pub const SOCK_DGRAM: u32 = 1; +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/mips64/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..574c37c578a34acbdcd46e873b5f6952ba263cac --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/netlink.rs @@ -0,0 +1,5471 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: 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 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/mips64/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..4b18308219a336fa2e5c7b3dd3e0250417aef95c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/prctl.rs @@ -0,0 +1,281 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..fdca98f2f0189164ac1b00a47b9433e57d04cb44 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/ptrace.rs @@ -0,0 +1,874 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 pt_regs { +pub regs: [__u64; 32usize], +pub lo: __u64, +pub hi: __u64, +pub cp0_epc: __u64, +pub cp0_badvaddr: __u64, +pub cp0_status: __u64, +pub cp0_cause: __u64, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct mips32_watch_regs { +pub watchlo: [crate::ctypes::c_uint; 8usize], +pub watchhi: [crate::ctypes::c_ushort; 8usize], +pub watch_masks: [crate::ctypes::c_ushort; 8usize], +pub num_valid: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mips64_watch_regs { +pub watchlo: [crate::ctypes::c_ulonglong; 8usize], +pub watchhi: [crate::ctypes::c_ushort; 8usize], +pub watch_masks: [crate::ctypes::c_ushort; 8usize], +pub num_valid: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct pt_watch_regs { +pub style: pt_watch_style, +pub __bindgen_anon_1: pt_watch_regs__bindgen_ty_1, +} +#[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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 FPR_BASE: u32 = 32; +pub const PC: u32 = 64; +pub const CAUSE: u32 = 65; +pub const BADVADDR: u32 = 66; +pub const MMHI: u32 = 67; +pub const MMLO: u32 = 68; +pub const FPC_CSR: u32 = 69; +pub const FPC_EIR: u32 = 70; +pub const DSP_BASE: u32 = 71; +pub const DSP_CONTROL: u32 = 77; +pub const ACX: u32 = 78; +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_OLDSETOPTIONS: u32 = 21; +pub const PTRACE_GET_THREAD_AREA: u32 = 25; +pub const PTRACE_SET_THREAD_AREA: u32 = 26; +pub const PTRACE_PEEKTEXT_3264: u32 = 192; +pub const PTRACE_PEEKDATA_3264: u32 = 193; +pub const PTRACE_POKETEXT_3264: u32 = 194; +pub const PTRACE_POKEDATA_3264: u32 = 195; +pub const PTRACE_GET_THREAD_AREA_3264: u32 = 196; +pub const PTRACE_GET_WATCH_REGS: u32 = 208; +pub const PTRACE_SET_WATCH_REGS: u32 = 209; +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 pt_watch_style { +pt_watch_style_mips32 = 0, +pt_watch_style_mips64 = 1, +} +#[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 pt_watch_regs__bindgen_ty_1 { +pub mips32: mips32_watch_regs, +pub mips64: mips64_watch_regs, +} +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/mips64/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..8015f0b31e7667157af57bdc1af33f20878d777c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/system.rs @@ -0,0 +1,142 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..5762a4db71de7d934229083a4932b26c89b14948 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64/xdp.rs @@ -0,0 +1,203 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64r6/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/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/mips64r6/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/mips64r6/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/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/mips64r6/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/mips64r6/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..014724792019b79fa6f43d705bf2574cc3bbc745 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/btrfs.rs @@ -0,0 +1,1906 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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)] +#[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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +pub const _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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/mips64r6/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..ae1f8a11d6277da9c4e43eaeb1cc711f2f33fc36 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/elf_uapi.rs @@ -0,0 +1,664 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64r6/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..59b928fcb02b282b8fbe061e1241ae5c9866fb52 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/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 ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +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 EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..36bfe694312147d5b3ab377b99f6dc1c02777e35 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/general.rs @@ -0,0 +1,3402 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +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_daddr_t = crate::ctypes::c_long; +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_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 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 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)] +#[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; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaction { +pub sa_flags: crate::ctypes::c_uint, +pub sa_handler: __sighandler_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_size: __kernel_size_t, +pub ss_flags: crate::ctypes::c_int, +} +#[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_code: crate::ctypes::c_int, +pub si_errno: 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; 23usize], +} +#[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; 23usize], +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; 23usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sgttyb { +pub sg_ispeed: crate::ctypes::c_char, +pub sg_ospeed: crate::ctypes::c_char, +pub sg_erase: crate::ctypes::c_char, +pub sg_kill: crate::ctypes::c_char, +pub sg_flags: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tchars { +pub t_intrc: crate::ctypes::c_char, +pub t_quitc: crate::ctypes::c_char, +pub t_startc: crate::ctypes::c_char, +pub t_stopc: crate::ctypes::c_char, +pub t_eofc: crate::ctypes::c_char, +pub t_brkc: crate::ctypes::c_char, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ltchars { +pub t_suspc: crate::ctypes::c_char, +pub t_dsuspc: crate::ctypes::c_char, +pub t_rprntc: crate::ctypes::c_char, +pub t_flushc: crate::ctypes::c_char, +pub t_werasc: crate::ctypes::c_char, +pub t_lnextc: crate::ctypes::c_char, +} +#[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_char, +pub c_cc: [crate::ctypes::c_uchar; 23usize], +} +#[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_pad0: [crate::ctypes::c_uint; 3usize], +pub st_ino: crate::ctypes::c_ulong, +pub st_mode: __kernel_mode_t, +pub st_nlink: __u32, +pub st_uid: __kernel_uid32_t, +pub st_gid: __kernel_gid32_t, +pub st_rdev: crate::ctypes::c_uint, +pub st_pad1: [crate::ctypes::c_uint; 3usize], +pub st_size: crate::ctypes::c_long, +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 st_blksize: crate::ctypes::c_uint, +pub st_pad2: crate::ctypes::c_uint, +pub st_blocks: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs { +pub f_type: crate::ctypes::c_long, +pub f_bsize: crate::ctypes::c_long, +pub f_frsize: crate::ctypes::c_long, +pub f_blocks: crate::ctypes::c_long, +pub f_bfree: crate::ctypes::c_long, +pub f_files: crate::ctypes::c_long, +pub f_ffree: crate::ctypes::c_long, +pub f_bavail: crate::ctypes::c_long, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: crate::ctypes::c_long, +pub f_flags: crate::ctypes::c_long, +pub f_spare: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs64 { +pub f_type: crate::ctypes::c_long, +pub f_bsize: crate::ctypes::c_long, +pub f_frsize: crate::ctypes::c_long, +pub f_blocks: crate::ctypes::c_long, +pub f_bfree: crate::ctypes::c_long, +pub f_files: crate::ctypes::c_long, +pub f_ffree: crate::ctypes::c_long, +pub f_bavail: crate::ctypes::c_long, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: crate::ctypes::c_long, +pub f_flags: crate::ctypes::c_long, +pub f_spare: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct compat_statfs64 { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_frsize: __u32, +pub __pad: __u32, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_bavail: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 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; 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 O_DSYNC: u32 = 16; +pub const O_NONBLOCK: u32 = 128; +pub const O_CREAT: u32 = 256; +pub const O_TRUNC: u32 = 512; +pub const O_EXCL: u32 = 1024; +pub const O_NOCTTY: u32 = 2048; +pub const FASYNC: u32 = 4096; +pub const O_LARGEFILE: u32 = 8192; +pub const __O_SYNC: u32 = 16384; +pub const O_SYNC: u32 = 16400; +pub const O_DIRECT: u32 = 32768; +pub const F_GETLK: u32 = 14; +pub const F_SETLK: u32 = 6; +pub const F_SETLKW: u32 = 7; +pub const F_SETOWN: u32 = 24; +pub const F_GETOWN: u32 = 23; +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_NOATIME: u32 = 262144; +pub const O_CLOEXEC: u32 = 524288; +pub const O_PATH: u32 = 2097152; +pub const __O_TMPFILE: u32 = 4194304; +pub const O_TMPFILE: u32 = 4259840; +pub const O_NDELAY: u32 = 128; +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_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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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 = 128; +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_NONE: u32 = 0; +pub const PROT_READ: u32 = 1; +pub const PROT_WRITE: u32 = 2; +pub const PROT_EXEC: u32 = 4; +pub const PROT_SEM: u32 = 16; +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_RENAME: u32 = 32; +pub const MAP_AUTOGROW: u32 = 64; +pub const MAP_LOCAL: u32 = 128; +pub const MAP_AUTORSRV: u32 = 256; +pub const MAP_NORESERVE: u32 = 1024; +pub const MAP_ANONYMOUS: u32 = 2048; +pub const MAP_GROWSDOWN: u32 = 4096; +pub const MAP_DENYWRITE: u32 = 8192; +pub const MAP_EXECUTABLE: u32 = 16384; +pub const MAP_LOCKED: u32 = 32768; +pub const MAP_POPULATE: u32 = 65536; +pub const MAP_NONBLOCK: u32 = 131072; +pub const MAP_STACK: u32 = 262144; +pub const MAP_HUGETLB: u32 = 524288; +pub const MAP_FIXED_NOREPLACE: u32 = 1048576; +pub const MS_ASYNC: u32 = 1; +pub const MS_INVALIDATE: u32 = 2; +pub const MS_SYNC: u32 = 4; +pub const MCL_CURRENT: u32 = 1; +pub const MCL_FUTURE: u32 = 2; +pub const MCL_ONFAULT: u32 = 4; +pub const MLOCK_ONFAULT: u32 = 1; +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_MERGEABLE: u32 = 12; +pub const MADV_UNMERGEABLE: u32 = 13; +pub const MADV_HWPOISON: u32 = 100; +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_DISABLE_ACCESS: u32 = 1; +pub const PKEY_DISABLE_WRITE: u32 = 2; +pub const PKEY_ACCESS_MASK: u32 = 3; +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 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 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_NOFILE: u32 = 5; +pub const RLIMIT_AS: u32 = 6; +pub const RLIMIT_RSS: u32 = 7; +pub const RLIMIT_NPROC: u32 = 8; +pub const RLIMIT_MEMLOCK: u32 = 9; +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_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 = 128; +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 SIGIOT: u32 = 6; +pub const SIGABRT: u32 = 6; +pub const SIGEMT: u32 = 7; +pub const SIGFPE: u32 = 8; +pub const SIGKILL: u32 = 9; +pub const SIGBUS: u32 = 10; +pub const SIGSEGV: u32 = 11; +pub const SIGSYS: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGUSR1: u32 = 16; +pub const SIGUSR2: u32 = 17; +pub const SIGCHLD: u32 = 18; +pub const SIGCLD: u32 = 18; +pub const SIGPWR: u32 = 19; +pub const SIGWINCH: u32 = 20; +pub const SIGURG: u32 = 21; +pub const SIGIO: u32 = 22; +pub const SIGPOLL: u32 = 22; +pub const SIGSTOP: u32 = 23; +pub const SIGTSTP: u32 = 24; +pub const SIGCONT: u32 = 25; +pub const SIGTTIN: u32 = 26; +pub const SIGTTOU: u32 = 27; +pub const SIGVTALRM: u32 = 28; +pub const SIGPROF: u32 = 29; +pub const SIGXCPU: u32 = 30; +pub const SIGXFSZ: u32 = 31; +pub const SIGRTMIN: u32 = 32; +pub const SIGRTMAX: u32 = 128; +pub const SA_ONSTACK: u32 = 134217728; +pub const SA_RESETHAND: u32 = 2147483648; +pub const SA_RESTART: u32 = 268435456; +pub const SA_SIGINFO: u32 = 8; +pub const SA_NODEFER: u32 = 1073741824; +pub const SA_NOCLDWAIT: u32 = 65536; +pub const SA_NOCLDSTOP: u32 = 1; +pub const SA_NOMASK: u32 = 1073741824; +pub const SA_ONESHOT: u32 = 2147483648; +pub const MINSIGSTKSZ: u32 = 2048; +pub const SIGSTKSZ: u32 = 8192; +pub const SIG_BLOCK: u32 = 1; +pub const SIG_UNBLOCK: u32 = 2; +pub const SIG_SETMASK: u32 = 3; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +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 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 ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +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 EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; +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 = 23; +pub const VINTR: u32 = 0; +pub const VQUIT: u32 = 1; +pub const VERASE: u32 = 2; +pub const VKILL: u32 = 3; +pub const VMIN: u32 = 4; +pub const VTIME: u32 = 5; +pub const VEOL2: u32 = 6; +pub const VSWTC: u32 = 7; +pub const VSWTCH: u32 = 7; +pub const VSTART: u32 = 8; +pub const VSTOP: u32 = 9; +pub const VSUSP: u32 = 10; +pub const VREPRINT: u32 = 12; +pub const VDISCARD: u32 = 13; +pub const VWERASE: u32 = 14; +pub const VLNEXT: u32 = 15; +pub const VEOF: u32 = 16; +pub const VEOL: u32 = 17; +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 IEXTEN: u32 = 256; +pub const ECHOCTL: u32 = 512; +pub const ECHOPRT: u32 = 1024; +pub const ECHOKE: u32 = 2048; +pub const FLUSHO: u32 = 8192; +pub const PENDIN: u32 = 16384; +pub const TOSTOP: u32 = 32768; +pub const ITOSTOP: u32 = 32768; +pub const EXTPROC: u32 = 65536; +pub const TIOCSER_TEMT: u32 = 1; +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 TIOCGLTC: u32 = 29812; +pub const TIOCSLTC: u32 = 29813; +pub const TIOCGETP: u32 = 29704; +pub const TIOCSETP: u32 = 29705; +pub const TIOCSETN: u32 = 29706; +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 = 16; +pub const TIOCM_SR: u32 = 32; +pub const TIOCM_CTS: u32 = 64; +pub const TIOCM_CAR: u32 = 256; +pub const TIOCM_CD: u32 = 256; +pub const TIOCM_RNG: u32 = 512; +pub const TIOCM_RI: u32 = 512; +pub const TIOCM_DSR: u32 = 1024; +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_Linux: u32 = 5000; +pub const __NR_read: u32 = 5000; +pub const __NR_write: u32 = 5001; +pub const __NR_open: u32 = 5002; +pub const __NR_close: u32 = 5003; +pub const __NR_stat: u32 = 5004; +pub const __NR_fstat: u32 = 5005; +pub const __NR_lstat: u32 = 5006; +pub const __NR_poll: u32 = 5007; +pub const __NR_lseek: u32 = 5008; +pub const __NR_mmap: u32 = 5009; +pub const __NR_mprotect: u32 = 5010; +pub const __NR_munmap: u32 = 5011; +pub const __NR_brk: u32 = 5012; +pub const __NR_rt_sigaction: u32 = 5013; +pub const __NR_rt_sigprocmask: u32 = 5014; +pub const __NR_ioctl: u32 = 5015; +pub const __NR_pread64: u32 = 5016; +pub const __NR_pwrite64: u32 = 5017; +pub const __NR_readv: u32 = 5018; +pub const __NR_writev: u32 = 5019; +pub const __NR_access: u32 = 5020; +pub const __NR_pipe: u32 = 5021; +pub const __NR__newselect: u32 = 5022; +pub const __NR_sched_yield: u32 = 5023; +pub const __NR_mremap: u32 = 5024; +pub const __NR_msync: u32 = 5025; +pub const __NR_mincore: u32 = 5026; +pub const __NR_madvise: u32 = 5027; +pub const __NR_shmget: u32 = 5028; +pub const __NR_shmat: u32 = 5029; +pub const __NR_shmctl: u32 = 5030; +pub const __NR_dup: u32 = 5031; +pub const __NR_dup2: u32 = 5032; +pub const __NR_pause: u32 = 5033; +pub const __NR_nanosleep: u32 = 5034; +pub const __NR_getitimer: u32 = 5035; +pub const __NR_setitimer: u32 = 5036; +pub const __NR_alarm: u32 = 5037; +pub const __NR_getpid: u32 = 5038; +pub const __NR_sendfile: u32 = 5039; +pub const __NR_socket: u32 = 5040; +pub const __NR_connect: u32 = 5041; +pub const __NR_accept: u32 = 5042; +pub const __NR_sendto: u32 = 5043; +pub const __NR_recvfrom: u32 = 5044; +pub const __NR_sendmsg: u32 = 5045; +pub const __NR_recvmsg: u32 = 5046; +pub const __NR_shutdown: u32 = 5047; +pub const __NR_bind: u32 = 5048; +pub const __NR_listen: u32 = 5049; +pub const __NR_getsockname: u32 = 5050; +pub const __NR_getpeername: u32 = 5051; +pub const __NR_socketpair: u32 = 5052; +pub const __NR_setsockopt: u32 = 5053; +pub const __NR_getsockopt: u32 = 5054; +pub const __NR_clone: u32 = 5055; +pub const __NR_fork: u32 = 5056; +pub const __NR_execve: u32 = 5057; +pub const __NR_exit: u32 = 5058; +pub const __NR_wait4: u32 = 5059; +pub const __NR_kill: u32 = 5060; +pub const __NR_uname: u32 = 5061; +pub const __NR_semget: u32 = 5062; +pub const __NR_semop: u32 = 5063; +pub const __NR_semctl: u32 = 5064; +pub const __NR_shmdt: u32 = 5065; +pub const __NR_msgget: u32 = 5066; +pub const __NR_msgsnd: u32 = 5067; +pub const __NR_msgrcv: u32 = 5068; +pub const __NR_msgctl: u32 = 5069; +pub const __NR_fcntl: u32 = 5070; +pub const __NR_flock: u32 = 5071; +pub const __NR_fsync: u32 = 5072; +pub const __NR_fdatasync: u32 = 5073; +pub const __NR_truncate: u32 = 5074; +pub const __NR_ftruncate: u32 = 5075; +pub const __NR_getdents: u32 = 5076; +pub const __NR_getcwd: u32 = 5077; +pub const __NR_chdir: u32 = 5078; +pub const __NR_fchdir: u32 = 5079; +pub const __NR_rename: u32 = 5080; +pub const __NR_mkdir: u32 = 5081; +pub const __NR_rmdir: u32 = 5082; +pub const __NR_creat: u32 = 5083; +pub const __NR_link: u32 = 5084; +pub const __NR_unlink: u32 = 5085; +pub const __NR_symlink: u32 = 5086; +pub const __NR_readlink: u32 = 5087; +pub const __NR_chmod: u32 = 5088; +pub const __NR_fchmod: u32 = 5089; +pub const __NR_chown: u32 = 5090; +pub const __NR_fchown: u32 = 5091; +pub const __NR_lchown: u32 = 5092; +pub const __NR_umask: u32 = 5093; +pub const __NR_gettimeofday: u32 = 5094; +pub const __NR_getrlimit: u32 = 5095; +pub const __NR_getrusage: u32 = 5096; +pub const __NR_sysinfo: u32 = 5097; +pub const __NR_times: u32 = 5098; +pub const __NR_ptrace: u32 = 5099; +pub const __NR_getuid: u32 = 5100; +pub const __NR_syslog: u32 = 5101; +pub const __NR_getgid: u32 = 5102; +pub const __NR_setuid: u32 = 5103; +pub const __NR_setgid: u32 = 5104; +pub const __NR_geteuid: u32 = 5105; +pub const __NR_getegid: u32 = 5106; +pub const __NR_setpgid: u32 = 5107; +pub const __NR_getppid: u32 = 5108; +pub const __NR_getpgrp: u32 = 5109; +pub const __NR_setsid: u32 = 5110; +pub const __NR_setreuid: u32 = 5111; +pub const __NR_setregid: u32 = 5112; +pub const __NR_getgroups: u32 = 5113; +pub const __NR_setgroups: u32 = 5114; +pub const __NR_setresuid: u32 = 5115; +pub const __NR_getresuid: u32 = 5116; +pub const __NR_setresgid: u32 = 5117; +pub const __NR_getresgid: u32 = 5118; +pub const __NR_getpgid: u32 = 5119; +pub const __NR_setfsuid: u32 = 5120; +pub const __NR_setfsgid: u32 = 5121; +pub const __NR_getsid: u32 = 5122; +pub const __NR_capget: u32 = 5123; +pub const __NR_capset: u32 = 5124; +pub const __NR_rt_sigpending: u32 = 5125; +pub const __NR_rt_sigtimedwait: u32 = 5126; +pub const __NR_rt_sigqueueinfo: u32 = 5127; +pub const __NR_rt_sigsuspend: u32 = 5128; +pub const __NR_sigaltstack: u32 = 5129; +pub const __NR_utime: u32 = 5130; +pub const __NR_mknod: u32 = 5131; +pub const __NR_personality: u32 = 5132; +pub const __NR_ustat: u32 = 5133; +pub const __NR_statfs: u32 = 5134; +pub const __NR_fstatfs: u32 = 5135; +pub const __NR_sysfs: u32 = 5136; +pub const __NR_getpriority: u32 = 5137; +pub const __NR_setpriority: u32 = 5138; +pub const __NR_sched_setparam: u32 = 5139; +pub const __NR_sched_getparam: u32 = 5140; +pub const __NR_sched_setscheduler: u32 = 5141; +pub const __NR_sched_getscheduler: u32 = 5142; +pub const __NR_sched_get_priority_max: u32 = 5143; +pub const __NR_sched_get_priority_min: u32 = 5144; +pub const __NR_sched_rr_get_interval: u32 = 5145; +pub const __NR_mlock: u32 = 5146; +pub const __NR_munlock: u32 = 5147; +pub const __NR_mlockall: u32 = 5148; +pub const __NR_munlockall: u32 = 5149; +pub const __NR_vhangup: u32 = 5150; +pub const __NR_pivot_root: u32 = 5151; +pub const __NR__sysctl: u32 = 5152; +pub const __NR_prctl: u32 = 5153; +pub const __NR_adjtimex: u32 = 5154; +pub const __NR_setrlimit: u32 = 5155; +pub const __NR_chroot: u32 = 5156; +pub const __NR_sync: u32 = 5157; +pub const __NR_acct: u32 = 5158; +pub const __NR_settimeofday: u32 = 5159; +pub const __NR_mount: u32 = 5160; +pub const __NR_umount2: u32 = 5161; +pub const __NR_swapon: u32 = 5162; +pub const __NR_swapoff: u32 = 5163; +pub const __NR_reboot: u32 = 5164; +pub const __NR_sethostname: u32 = 5165; +pub const __NR_setdomainname: u32 = 5166; +pub const __NR_create_module: u32 = 5167; +pub const __NR_init_module: u32 = 5168; +pub const __NR_delete_module: u32 = 5169; +pub const __NR_get_kernel_syms: u32 = 5170; +pub const __NR_query_module: u32 = 5171; +pub const __NR_quotactl: u32 = 5172; +pub const __NR_nfsservctl: u32 = 5173; +pub const __NR_getpmsg: u32 = 5174; +pub const __NR_putpmsg: u32 = 5175; +pub const __NR_afs_syscall: u32 = 5176; +pub const __NR_reserved177: u32 = 5177; +pub const __NR_gettid: u32 = 5178; +pub const __NR_readahead: u32 = 5179; +pub const __NR_setxattr: u32 = 5180; +pub const __NR_lsetxattr: u32 = 5181; +pub const __NR_fsetxattr: u32 = 5182; +pub const __NR_getxattr: u32 = 5183; +pub const __NR_lgetxattr: u32 = 5184; +pub const __NR_fgetxattr: u32 = 5185; +pub const __NR_listxattr: u32 = 5186; +pub const __NR_llistxattr: u32 = 5187; +pub const __NR_flistxattr: u32 = 5188; +pub const __NR_removexattr: u32 = 5189; +pub const __NR_lremovexattr: u32 = 5190; +pub const __NR_fremovexattr: u32 = 5191; +pub const __NR_tkill: u32 = 5192; +pub const __NR_reserved193: u32 = 5193; +pub const __NR_futex: u32 = 5194; +pub const __NR_sched_setaffinity: u32 = 5195; +pub const __NR_sched_getaffinity: u32 = 5196; +pub const __NR_cacheflush: u32 = 5197; +pub const __NR_cachectl: u32 = 5198; +pub const __NR_sysmips: u32 = 5199; +pub const __NR_io_setup: u32 = 5200; +pub const __NR_io_destroy: u32 = 5201; +pub const __NR_io_getevents: u32 = 5202; +pub const __NR_io_submit: u32 = 5203; +pub const __NR_io_cancel: u32 = 5204; +pub const __NR_exit_group: u32 = 5205; +pub const __NR_lookup_dcookie: u32 = 5206; +pub const __NR_epoll_create: u32 = 5207; +pub const __NR_epoll_ctl: u32 = 5208; +pub const __NR_epoll_wait: u32 = 5209; +pub const __NR_remap_file_pages: u32 = 5210; +pub const __NR_rt_sigreturn: u32 = 5211; +pub const __NR_set_tid_address: u32 = 5212; +pub const __NR_restart_syscall: u32 = 5213; +pub const __NR_semtimedop: u32 = 5214; +pub const __NR_fadvise64: u32 = 5215; +pub const __NR_timer_create: u32 = 5216; +pub const __NR_timer_settime: u32 = 5217; +pub const __NR_timer_gettime: u32 = 5218; +pub const __NR_timer_getoverrun: u32 = 5219; +pub const __NR_timer_delete: u32 = 5220; +pub const __NR_clock_settime: u32 = 5221; +pub const __NR_clock_gettime: u32 = 5222; +pub const __NR_clock_getres: u32 = 5223; +pub const __NR_clock_nanosleep: u32 = 5224; +pub const __NR_tgkill: u32 = 5225; +pub const __NR_utimes: u32 = 5226; +pub const __NR_mbind: u32 = 5227; +pub const __NR_get_mempolicy: u32 = 5228; +pub const __NR_set_mempolicy: u32 = 5229; +pub const __NR_mq_open: u32 = 5230; +pub const __NR_mq_unlink: u32 = 5231; +pub const __NR_mq_timedsend: u32 = 5232; +pub const __NR_mq_timedreceive: u32 = 5233; +pub const __NR_mq_notify: u32 = 5234; +pub const __NR_mq_getsetattr: u32 = 5235; +pub const __NR_vserver: u32 = 5236; +pub const __NR_waitid: u32 = 5237; +pub const __NR_add_key: u32 = 5239; +pub const __NR_request_key: u32 = 5240; +pub const __NR_keyctl: u32 = 5241; +pub const __NR_set_thread_area: u32 = 5242; +pub const __NR_inotify_init: u32 = 5243; +pub const __NR_inotify_add_watch: u32 = 5244; +pub const __NR_inotify_rm_watch: u32 = 5245; +pub const __NR_migrate_pages: u32 = 5246; +pub const __NR_openat: u32 = 5247; +pub const __NR_mkdirat: u32 = 5248; +pub const __NR_mknodat: u32 = 5249; +pub const __NR_fchownat: u32 = 5250; +pub const __NR_futimesat: u32 = 5251; +pub const __NR_newfstatat: u32 = 5252; +pub const __NR_unlinkat: u32 = 5253; +pub const __NR_renameat: u32 = 5254; +pub const __NR_linkat: u32 = 5255; +pub const __NR_symlinkat: u32 = 5256; +pub const __NR_readlinkat: u32 = 5257; +pub const __NR_fchmodat: u32 = 5258; +pub const __NR_faccessat: u32 = 5259; +pub const __NR_pselect6: u32 = 5260; +pub const __NR_ppoll: u32 = 5261; +pub const __NR_unshare: u32 = 5262; +pub const __NR_splice: u32 = 5263; +pub const __NR_sync_file_range: u32 = 5264; +pub const __NR_tee: u32 = 5265; +pub const __NR_vmsplice: u32 = 5266; +pub const __NR_move_pages: u32 = 5267; +pub const __NR_set_robust_list: u32 = 5268; +pub const __NR_get_robust_list: u32 = 5269; +pub const __NR_kexec_load: u32 = 5270; +pub const __NR_getcpu: u32 = 5271; +pub const __NR_epoll_pwait: u32 = 5272; +pub const __NR_ioprio_set: u32 = 5273; +pub const __NR_ioprio_get: u32 = 5274; +pub const __NR_utimensat: u32 = 5275; +pub const __NR_signalfd: u32 = 5276; +pub const __NR_timerfd: u32 = 5277; +pub const __NR_eventfd: u32 = 5278; +pub const __NR_fallocate: u32 = 5279; +pub const __NR_timerfd_create: u32 = 5280; +pub const __NR_timerfd_gettime: u32 = 5281; +pub const __NR_timerfd_settime: u32 = 5282; +pub const __NR_signalfd4: u32 = 5283; +pub const __NR_eventfd2: u32 = 5284; +pub const __NR_epoll_create1: u32 = 5285; +pub const __NR_dup3: u32 = 5286; +pub const __NR_pipe2: u32 = 5287; +pub const __NR_inotify_init1: u32 = 5288; +pub const __NR_preadv: u32 = 5289; +pub const __NR_pwritev: u32 = 5290; +pub const __NR_rt_tgsigqueueinfo: u32 = 5291; +pub const __NR_perf_event_open: u32 = 5292; +pub const __NR_accept4: u32 = 5293; +pub const __NR_recvmmsg: u32 = 5294; +pub const __NR_fanotify_init: u32 = 5295; +pub const __NR_fanotify_mark: u32 = 5296; +pub const __NR_prlimit64: u32 = 5297; +pub const __NR_name_to_handle_at: u32 = 5298; +pub const __NR_open_by_handle_at: u32 = 5299; +pub const __NR_clock_adjtime: u32 = 5300; +pub const __NR_syncfs: u32 = 5301; +pub const __NR_sendmmsg: u32 = 5302; +pub const __NR_setns: u32 = 5303; +pub const __NR_process_vm_readv: u32 = 5304; +pub const __NR_process_vm_writev: u32 = 5305; +pub const __NR_kcmp: u32 = 5306; +pub const __NR_finit_module: u32 = 5307; +pub const __NR_getdents64: u32 = 5308; +pub const __NR_sched_setattr: u32 = 5309; +pub const __NR_sched_getattr: u32 = 5310; +pub const __NR_renameat2: u32 = 5311; +pub const __NR_seccomp: u32 = 5312; +pub const __NR_getrandom: u32 = 5313; +pub const __NR_memfd_create: u32 = 5314; +pub const __NR_bpf: u32 = 5315; +pub const __NR_execveat: u32 = 5316; +pub const __NR_userfaultfd: u32 = 5317; +pub const __NR_membarrier: u32 = 5318; +pub const __NR_mlock2: u32 = 5319; +pub const __NR_copy_file_range: u32 = 5320; +pub const __NR_preadv2: u32 = 5321; +pub const __NR_pwritev2: u32 = 5322; +pub const __NR_pkey_mprotect: u32 = 5323; +pub const __NR_pkey_alloc: u32 = 5324; +pub const __NR_pkey_free: u32 = 5325; +pub const __NR_statx: u32 = 5326; +pub const __NR_rseq: u32 = 5327; +pub const __NR_io_pgetevents: u32 = 5328; +pub const __NR_pidfd_send_signal: u32 = 5424; +pub const __NR_io_uring_setup: u32 = 5425; +pub const __NR_io_uring_enter: u32 = 5426; +pub const __NR_io_uring_register: u32 = 5427; +pub const __NR_open_tree: u32 = 5428; +pub const __NR_move_mount: u32 = 5429; +pub const __NR_fsopen: u32 = 5430; +pub const __NR_fsconfig: u32 = 5431; +pub const __NR_fsmount: u32 = 5432; +pub const __NR_fspick: u32 = 5433; +pub const __NR_pidfd_open: u32 = 5434; +pub const __NR_clone3: u32 = 5435; +pub const __NR_close_range: u32 = 5436; +pub const __NR_openat2: u32 = 5437; +pub const __NR_pidfd_getfd: u32 = 5438; +pub const __NR_faccessat2: u32 = 5439; +pub const __NR_process_madvise: u32 = 5440; +pub const __NR_epoll_pwait2: u32 = 5441; +pub const __NR_mount_setattr: u32 = 5442; +pub const __NR_quotactl_fd: u32 = 5443; +pub const __NR_landlock_create_ruleset: u32 = 5444; +pub const __NR_landlock_add_rule: u32 = 5445; +pub const __NR_landlock_restrict_self: u32 = 5446; +pub const __NR_process_mrelease: u32 = 5448; +pub const __NR_futex_waitv: u32 = 5449; +pub const __NR_set_mempolicy_home_node: u32 = 5450; +pub const __NR_cachestat: u32 = 5451; +pub const __NR_fchmodat2: u32 = 5452; +pub const __NR_map_shadow_stack: u32 = 5453; +pub const __NR_futex_wake: u32 = 5454; +pub const __NR_futex_wait: u32 = 5455; +pub const __NR_futex_requeue: u32 = 5456; +pub const __NR_statmount: u32 = 5457; +pub const __NR_listmount: u32 = 5458; +pub const __NR_lsm_get_self_attr: u32 = 5459; +pub const __NR_lsm_set_self_attr: u32 = 5460; +pub const __NR_lsm_list_modules: u32 = 5461; +pub const __NR_mseal: u32 = 5462; +pub const __NR_setxattrat: u32 = 5463; +pub const __NR_getxattrat: u32 = 5464; +pub const __NR_listxattrat: u32 = 5465; +pub const __NR_removexattrat: u32 = 5466; +pub const __NR_open_tree_attr: u32 = 5467; +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 = 128; +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 = 128; +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 = 524416; +pub const TFD_CREATE_FLAGS: u32 = 524416; +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 POLLWRNORM: u32 = 4; +pub const TCSANOW: u32 = 21518; +pub const TCSADRAIN: u32 = 21519; +pub const TCSAFLUSH: u32 = 21520; +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/mips64r6/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..bf63f077ee1ff6c6a9f58243cb02a6bd6089abc1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/if_arp.rs @@ -0,0 +1,2801 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 __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/mips64r6/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..dfe86c158434de3ee5c5a052d3fdd440ec43cd7f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/if_ether.rs @@ -0,0 +1,180 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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, 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64r6/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..c22d3d0ca641e5f5a6420cc8976891405fdb7cab --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/if_packet.rs @@ -0,0 +1,321 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64r6/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/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/mips64r6/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/mips64r6/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..6e6948924d0dd92136126059c18b93275e5b70ce --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/io_uring.rs @@ -0,0 +1,1450 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64r6/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..10d7f8010e37da3172309739916cf743deb15b88 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/ioctl.rs @@ -0,0 +1,1496 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const FIONREAD: u32 = 18047; +pub const FIONBIO: u32 = 26238; +pub const FIOCLEX: u32 = 26113; +pub const FIONCLEX: u32 = 26114; +pub const FIOASYNC: u32 = 26237; +pub const FIOQSIZE: u32 = 26239; +pub const TCXONC: u32 = 21510; +pub const TCFLSH: u32 = 21511; +pub const TIOCSCTTY: u32 = 21632; +pub const TIOCSPGRP: u32 = 2147775606; +pub const TIOCOUTQ: u32 = 29810; +pub const TIOCSTI: u32 = 21618; +pub const TIOCSWINSZ: u32 = 2148037735; +pub const TIOCMGET: u32 = 29725; +pub const TIOCMBIS: u32 = 29723; +pub const TIOCMBIC: u32 = 29724; +pub const TIOCMSET: u32 = 29722; +pub const TIOCSSOFTCAR: u32 = 21634; +pub const TIOCLINUX: u32 = 21635; +pub const TIOCCONS: u32 = 2147775608; +pub const TIOCSSERIAL: u32 = 21637; +pub const TIOCPKT: u32 = 21616; +pub const TIOCNOTTY: u32 = 21617; +pub const TIOCSETD: u32 = 29697; +pub const TIOCSBRK: u32 = 21543; +pub const TIOCCBRK: u32 = 21544; +pub const TIOCSPTLCK: u32 = 2147767345; +pub const TIOCSIG: u32 = 2147767350; +pub const TIOCVHANGUP: u32 = 21559; +pub const TIOCSERCONFIG: u32 = 21640; +pub const TIOCSERGWILD: u32 = 21641; +pub const TIOCSERSWILD: u32 = 21642; +pub const TIOCSLCKTRMIOS: u32 = 21644; +pub const TIOCSERGSTRUCT: u32 = 21645; +pub const TIOCSERGETLSR: u32 = 21646; +pub const TIOCSERGETMULTI: u32 = 21647; +pub const TIOCSERSETMULTI: u32 = 21648; +pub const TIOCMIWAIT: u32 = 21649; +pub const TCGETS: u32 = 21517; +pub const TCGETA: u32 = 21505; +pub const TCSBRK: u32 = 21509; +pub const TCSBRKP: u32 = 21638; +pub const TCSETA: u32 = 21506; +pub const TCSETAF: u32 = 21508; +pub const TCSETAW: u32 = 21507; +pub const TIOCEXCL: u32 = 29709; +pub const TIOCNXCL: u32 = 29710; +pub const TIOCGDEV: u32 = 1074025522; +pub const TIOCGEXCL: u32 = 1074025536; +pub const TIOCGICOUNT: u32 = 21650; +pub const TIOCGLCKTRMIOS: u32 = 21643; +pub const TIOCGPGRP: u32 = 1074033783; +pub const TIOCGPKT: u32 = 1074025528; +pub const TIOCGPTLCK: u32 = 1074025529; +pub const TIOCGPTN: u32 = 1074025520; +pub const TIOCGPTPEER: u32 = 536892481; +pub const TIOCGSERIAL: u32 = 21636; +pub const TIOCGSID: u32 = 29718; +pub const TIOCGSOFTCAR: u32 = 21633; +pub const TIOCGWINSZ: u32 = 1074295912; +pub const TCGETS2: u32 = 1076909098; +pub const TCSETS: u32 = 21518; +pub const TCSETS2: u32 = 2150650923; +pub const TCSETSF: u32 = 21520; +pub const TCSETSF2: u32 = 2150650925; +pub const TCSETSW: u32 = 21519; +pub const TCSETSW2: u32 = 2150650924; +pub const TIOCGETD: u32 = 29696; +pub const TIOCGETP: u32 = 29704; +pub const TIOCGLTC: u32 = 29812; +pub const MTIOCGET: u32 = 1077439746; +pub const BLKSSZGET: u32 = 536875624; +pub const BLKPBSZGET: u32 = 536875643; +pub const BLKROSET: u32 = 536875613; +pub const BLKROGET: u32 = 536875614; +pub const BLKRRPART: u32 = 536875615; +pub const BLKGETSIZE: u32 = 536875616; +pub const BLKFLSBUF: u32 = 536875617; +pub const BLKRASET: u32 = 536875618; +pub const BLKRAGET: u32 = 536875619; +pub const BLKFRASET: u32 = 536875620; +pub const BLKFRAGET: u32 = 536875621; +pub const BLKSECTSET: u32 = 536875622; +pub const BLKSECTGET: u32 = 536875623; +pub const BLKPG: u32 = 536875625; +pub const BLKBSZGET: u32 = 1074270832; +pub const BLKBSZSET: u32 = 2148012657; +pub const BLKGETSIZE64: u32 = 1074270834; +pub const BLKTRACESETUP: u32 = 3225948787; +pub const BLKTRACESTART: u32 = 536875636; +pub const BLKTRACESTOP: u32 = 536875637; +pub const BLKTRACETEARDOWN: u32 = 536875638; +pub const BLKDISCARD: u32 = 536875639; +pub const BLKIOMIN: u32 = 536875640; +pub const BLKIOOPT: u32 = 536875641; +pub const BLKALIGNOFF: u32 = 536875642; +pub const BLKDISCARDZEROES: u32 = 536875644; +pub const BLKSECDISCARD: u32 = 536875645; +pub const BLKROTATIONAL: u32 = 536875646; +pub const BLKZEROOUT: u32 = 536875647; +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 = 1074833921; +pub const UFFDIO_WAKE: u32 = 1074833922; +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 = 536917761; +pub const NS_GET_PARENT: u32 = 536917762; +pub const NS_GET_NSTYPE: u32 = 536917763; +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 = 2147772028; +pub const FIOGETOWN: u32 = 1074030203; +pub const SIOCATMARK: u32 = 1074033415; +pub const SIOCGSTAMP: u32 = 35078; +pub const TIOCINQ: u32 = 18047; +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 = 536870913; +pub const FIGETBSZ: u32 = 536870914; +pub const FIFREEZE: u32 = 3221510263; +pub const FITHAW: u32 = 3221510264; +pub const FITRIM: u32 = 3222820985; +pub const FICLONE: u32 = 2147783689; +pub const FICLONERANGE: u32 = 2149618701; +pub const FIDEDUPERANGE: u32 = 3222836278; +pub const FS_IOC_GETFLAGS: u32 = 1074292225; +pub const FS_IOC_SETFLAGS: u32 = 2148034050; +pub const FS_IOC_GETVERSION: u32 = 1074296321; +pub const FS_IOC_SETVERSION: u32 = 2148038146; +pub const FS_IOC_FIEMAP: u32 = 3223348747; +pub const FS_IOC32_GETFLAGS: u32 = 1074030081; +pub const FS_IOC32_SETFLAGS: u32 = 2147771906; +pub const FS_IOC32_GETVERSION: u32 = 1074034177; +pub const FS_IOC32_SETVERSION: u32 = 2147776002; +pub const FS_IOC_FSGETXATTR: u32 = 1075599391; +pub const FS_IOC_FSSETXATTR: u32 = 2149341216; +pub const FS_IOC_GETFSLABEL: u32 = 1090556977; +pub const FS_IOC_SETFSLABEL: u32 = 2164298802; +pub const EXT4_IOC_GETVERSION: u32 = 1074292227; +pub const EXT4_IOC_SETVERSION: u32 = 2148034052; +pub const EXT4_IOC_GETVERSION_OLD: u32 = 1074296321; +pub const EXT4_IOC_SETVERSION_OLD: u32 = 2148038146; +pub const EXT4_IOC_GETRSVSZ: u32 = 1074292229; +pub const EXT4_IOC_SETRSVSZ: u32 = 2148034054; +pub const EXT4_IOC_GROUP_EXTEND: u32 = 2148034055; +pub const EXT4_IOC_MIGRATE: u32 = 536897033; +pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; +pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; +pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; +pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; +pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; +pub const EXT4_IOC_GETSTATE: u32 = 2147771945; +pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; +pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; +pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; +pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; +pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; +pub const EXT4_IOC32_GETRSVSZ: u32 = 1074030085; +pub const EXT4_IOC32_SETRSVSZ: u32 = 2147771910; +pub const EXT4_IOC32_GROUP_EXTEND: u32 = 2147771911; +pub const EXT4_IOC32_GETVERSION_OLD: u32 = 1074034177; +pub const EXT4_IOC32_SETVERSION_OLD: u32 = 2147776002; +pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 1074288191; +pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; +pub const LIRC_SET_SEND_CARRIER: u32 = 2147772691; +pub const AUTOFS_IOC_PROTOSUBVER: u32 = 1074041703; +pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; +pub const FSI_SCOM_WRITE: u32 = 3223352066; +pub const ATM_GETCIRANGE: u32 = 2148557194; +pub const DMA_BUF_SET_NAME_B: u32 = 2148033025; +pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; +pub const TUNSETPERSIST: u32 = 2147767499; +pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; +pub const CEC_RECEIVE: u32 = 3224920326; +pub const MGSL_IOCGPARAMS: u32 = 1076915457; +pub const ENI_SETMULT: u32 = 2148557159; +pub const RIO_GET_EVENT_MASK: u32 = 1074031886; +pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; +pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; +pub const CHIOMOVE: u32 = 2148819713; +pub const SONYPI_IOCGBATFLAGS: u32 = 1073837575; +pub const BTRFS_IOC_SYNC: u32 = 536908808; +pub const VIDIOC_TRY_FMT: u32 = 3234879040; +pub const LIRC_SET_REC_MODE: u32 = 2147772690; +pub const VIDIOC_DQEVENT: u32 = 1082676825; +pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 536917250; +pub const UVCIOC_CTRL_MAP: u32 = 3227546912; +pub const VHOST_SET_BACKEND_FEATURES: u32 = 2148052773; +pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 2148052832; +pub const UI_SET_KEYBIT: u32 = 2147767653; +pub const LIRC_SET_REC_TIMEOUT: u32 = 2147772696; +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 = 2148052754; +pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 2148035849; +pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; +pub const LIRC_GET_REC_MODE: u32 = 1074030850; +pub const PPGETTIME: u32 = 1074819221; +pub const BTRFS_IOC_RM_DEV: u32 = 2415957003; +pub const ATM_SETBACKEND: u32 = 2147639794; +pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; +pub const FBIO_WAITEVENT: u32 = 536888968; +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 = 536871513; +pub const NVME_IOCTL_SUBMIT_IO: u32 = 2150649410; +pub const NILFS_IOCTL_SYNC: u32 = 1074294410; +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 = 1074045957; +pub const NS_GETPSTAT: u32 = 3222298977; +pub const UI_SET_PROPBIT: u32 = 2147767662; +pub const TUNSETFILTEREBPF: u32 = 1074025697; +pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; +pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; +pub const WDIOC_SETOPTIONS: u32 = 1074026244; +pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; +pub const MGSL_IOCGTXIDLE: u32 = 536898819; +pub const ATM_ADDLECSADDR: u32 = 2148557198; +pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; +pub const FDGETPRM: u32 = 1075839492; +pub const HIDIOCAPPLICATION: u32 = 536889346; +pub const ENI_MEMDUMP: u32 = 2148557152; +pub const PTP_SYS_OFFSET2: u32 = 2202025230; +pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; +pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; +pub const PTP_PIN_GETFUNC: u32 = 3227532550; +pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; +pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; +pub const RTC_EPOCH_READ: u32 = 1074294797; +pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; +pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; +pub const ATM_GETLECSADDR: u32 = 2148557200; +pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; +pub const SONET_GETDIAG: u32 = 1074028820; +pub const ATMMPC_DATA: u32 = 536895961; +pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; +pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; +pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; +pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; +pub const UI_DEV_SETUP: u32 = 2153534723; +pub const ISST_IF_IO_CMD: u32 = 2148072962; +pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 1075342599; +pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; +pub const BLKGETNRZONES: u32 = 1074008709; +pub const VIDIOC_G_MODULATOR: u32 = 3225703990; +pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; +pub const USBDEVFS_SETINTERFACE: u32 = 1074287876; +pub const PPPIOCGCHAN: u32 = 1074033719; +pub const EVIOCGVERSION: u32 = 1074021633; +pub const VHOST_NET_SET_BACKEND: u32 = 2148052784; +pub const USBDEVFS_REAPURBNDELAY: u32 = 2148029709; +pub const RNDZAPENTCNT: u32 = 536891908; +pub const VIDIOC_G_PARM: u32 = 3234616853; +pub const TUNGETDEVNETNS: u32 = 536892643; +pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 2147772701; +pub const VHOST_SET_VRING_ERR: u32 = 2148052770; +pub const VDUSE_VQ_SETUP: u32 = 2149613844; +pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; +pub const VIDIOC_S_FREQUENCY: u32 = 2150389305; +pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 2149119252; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; +pub const WDIOC_GETPRETIMEOUT: u32 = 1074026249; +pub const USBDEVFS_DROP_PRIVILEGES: u32 = 2147767582; +pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 2415957015; +pub const VHOST_VSOCK_SET_RUNNING: u32 = 2147790689; +pub const STP_SET_OPTIONS: u32 = 2148017410; +pub const FBIO_RADEON_GET_MIRROR: u32 = 1074282499; +pub const IVTVFB_IOC_DMA_FRAME: u32 = 2149078720; +pub const IPMICTL_SEND_COMMAND: u32 = 1076390157; +pub const VIDIOC_G_ENC_INDEX: u32 = 1209554508; +pub const DFL_FPGA_FME_PORT_PR: u32 = 536917632; +pub const CHIOSVOLTAG: u32 = 2150654738; +pub const ATM_SETESIF: u32 = 2148557197; +pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 2149065476; +pub const PMU_IOC_GET_MODEL: u32 = 1074283011; +pub const JSIOCGBTNMAP: u32 = 1140877876; +pub const USBDEVFS_HUB_PORTINFO: u32 = 1082152211; +pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; +pub const FDCLRPRM: u32 = 536871489; +pub const BTRFS_IOC_SCRUB: u32 = 3288372251; +pub const USBDEVFS_DISCONNECT: u32 = 536892694; +pub const TUNSETVNETBE: u32 = 2147767518; +pub const ATMTCP_REMOVE: u32 = 536895887; +pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; +pub const PPPIOCGNPMODE: u32 = 3221779532; +pub const FDGETDRVPRM: u32 = 1082130961; +pub const TUNSETVNETLE: u32 = 2147767516; +pub const PHN_SETREG: u32 = 2148036614; +pub const PPPIOCDETACH: u32 = 2147775548; +pub const MMTIMER_GETRES: u32 = 1074294017; +pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; +pub const PPGETFLAGS: u32 = 1074032794; +pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; +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 = 1074310688; +pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; +pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; +pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; +pub const MGSL_IOCGXCTRL: u32 = 536898838; +pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; +pub const SONYPI_IOCGBLUE: u32 = 1073837576; +pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; +pub const I2OHTML: u32 = 3224398089; +pub const VFIO_GET_API_VERSION: u32 = 536886116; +pub const IDT77105_GETSTATZ: u32 = 2148557107; +pub const I2OPARMSET: u32 = 3223873795; +pub const TEE_IOC_CANCEL: u32 = 1074308100; +pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; +pub const DFL_FPGA_PORT_RESET: u32 = 536917568; +pub const PPPIOCGASYNCMAP: u32 = 1074033752; +pub const EVIOCGKEYCODE_V2: u32 = 1076380932; +pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; +pub const HIDIOCSUSAGE: u32 = 2149074956; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065488; +pub const PTP_EXTTS_REQUEST: u32 = 2148547842; +pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; +pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; +pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 2162732865; +pub const JSIOCGAXES: u32 = 1073834513; +pub const HIDIOCSFLAG: u32 = 2147764239; +pub const PTP_PEROUT_REQUEST2: u32 = 2151169292; +pub const PPWDATA: u32 = 2147577990; +pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; +pub const FDGETMAXERRS: u32 = 1075053070; +pub const TUNSETQUEUE: u32 = 2147767513; +pub const PTP_ENABLE_PPS: u32 = 2147761412; +pub const SIOCSIFATMTCP: u32 = 536895872; +pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; +pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; +pub const NBD_SET_BLKSIZE: u32 = 536914689; +pub const NBD_SET_TIMEOUT: u32 = 536914697; +pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 2147790658; +pub const RIO_UNMAP_INBOUND: u32 = 2148035858; +pub const ATM_QUERYLOOP: u32 = 2148557140; +pub const DFL_FPGA_GET_API_VERSION: u32 = 536917504; +pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 536892707; +pub const FBIO_CURSOR: u32 = 3228059144; +pub const RNDCLEARPOOL: u32 = 536891910; +pub const VIDIOC_QUERYSTD: u32 = 1074288191; +pub const DMA_BUF_IOCTL_SYNC: u32 = 2148033024; +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 = 1076909578; +pub const PTP_ENABLE_PPS2: u32 = 2147761421; +pub const PCITEST_CLEAR_IRQ: u32 = 536891408; +pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 1074030864; +pub const BTRFS_IOC_DEVICES_READY: u32 = 1342215207; +pub const JSIOCGAXMAP: u32 = 1077963314; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 1074799372; +pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 2148541207; +pub const RTC_WIE_OFF: u32 = 536899600; +pub const PPGETMODE: u32 = 1074032792; +pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; +pub const PTP_SYS_OFFSET: u32 = 2202025221; +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 = 536908806; +pub const INOTIFY_IOC_SETNEXTWD: u32 = 2147764480; +pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 1074279182; +pub const TUNDETACHFILTER: u32 = 2148553942; +pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; +pub const IOC_PR_CLEAR: u32 = 2148561101; +pub const SCIF_READFROM: u32 = 3223876362; +pub const PPPIOCGDEBUG: u32 = 1074033729; +pub const BLKGETZONESZ: u32 = 1074008708; +pub const HIDIOCGUSAGES: u32 = 3491514387; +pub const SONYPI_IOCGTEMP: u32 = 1073837580; +pub const UI_SET_MSCBIT: u32 = 2147767656; +pub const APM_IOC_SUSPEND: u32 = 536887554; +pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; +pub const RTC_PLL_GET: u32 = 1075867665; +pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; +pub const USBDEVFS_DISCSIGNAL: u32 = 1074812174; +pub const LIRC_GET_MIN_TIMEOUT: u32 = 1074030856; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 1100502850; +pub const DM_TARGET_MSG: u32 = 3241737486; +pub const SONYPI_IOCGBAT1REM: u32 = 1073903107; +pub const EVIOCSFF: u32 = 2150647168; +pub const TUNSETGROUP: u32 = 2147767502; +pub const EVIOCGKEYCODE: u32 = 1074283780; +pub const KCOV_REMOTE_ENABLE: u32 = 2149081958; +pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; +pub const FDEJECT: u32 = 536871514; +pub const TUNSETOFFLOAD: u32 = 2147767504; +pub const PPPIOCCONNECT: u32 = 2147775546; +pub const ATM_ADDADDR: u32 = 2148557192; +pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; +pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; +pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; +pub const CCISS_PASSTHRU: u32 = 3227009547; +pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; +pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; +pub const ATMARPD_CTRL: u32 = 536895969; +pub const UI_ABS_SETUP: u32 = 2149340420; +pub const UI_DEV_DESTROY: u32 = 536892674; +pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; +pub const RTC_AIE_ON: u32 = 536899585; +pub const AUTOFS_IOC_EXPIRE: u32 = 1091343205; +pub const PPPIOCSDEBUG: u32 = 2147775552; +pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; +pub const PPPIOCSMRU: u32 = 2147775570; +pub const CCISS_DEREGDISK: u32 = 536887820; +pub const UI_DEV_CREATE: u32 = 536892673; +pub const FUSE_DEV_IOC_CLONE: u32 = 1074062592; +pub const BTRFS_IOC_START_SYNC: u32 = 1074304024; +pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 2148036225; +pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 1074279187; +pub const DM_TABLE_CLEAR: u32 = 3241737482; +pub const CCISS_GETINTINFO: u32 = 1074283010; +pub const PPPIOCSASYNCMAP: u32 = 2147775575; +pub const I2OEVTGET: u32 = 1080584459; +pub const NVME_IOCTL_RESET: u32 = 536890948; +pub const PPYIELD: u32 = 536899725; +pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; +pub const TUNSETCARRIER: u32 = 2147767522; +pub const DM_DEV_WAIT: u32 = 3241737480; +pub const RTC_WIE_ON: u32 = 536899599; +pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; +pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; +pub const MGSL_IOCSPARAMS: u32 = 2150657280; +pub const RTC_SET_TIME: u32 = 2149871626; +pub const VHOST_RESET_OWNER: u32 = 536915714; +pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; +pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; +pub const UDF_GETEABLOCK: u32 = 1074293825; +pub const VFIO_IOMMU_MAP_DMA: u32 = 536886129; +pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 2149602906; +pub const HIDIOCGFLAG: u32 = 1074022414; +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 = 2148577793; +pub const CCISS_GETFIRMVER: u32 = 1074020872; +pub const ND_IOCTL_ARS_START: u32 = 3223342594; +pub const PPPIOCSMRRU: u32 = 2147775547; +pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; +pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 1074050818; +pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; +pub const PPSETTIME: u32 = 2148561046; +pub const RTC_ALM_READ: u32 = 1076129800; +pub const VDUSE_SET_API_VERSION: u32 = 2148040961; +pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; +pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; +pub const USBDEVFS_CONNECT: u32 = 536892695; +pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; +pub const ATMARP_MKIP: u32 = 536895970; +pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; +pub const CCISS_GETHEARTBEAT: u32 = 1074020870; +pub const ATM_RSTADDR: u32 = 2148557191; +pub const NBD_SET_SIZE: u32 = 536914690; +pub const UDF_GETVOLIDENT: u32 = 1074293826; +pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; +pub const MGSL_IOCSTXIDLE: u32 = 536898818; +pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; +pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; +pub const PPRSTATUS: u32 = 1073836161; +pub const MGSL_IOCTXENABLE: u32 = 536898820; +pub const UDF_GETEASIZE: u32 = 1074031680; +pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; +pub const VHOST_SET_OWNER: u32 = 536915713; +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 = 2148557195; +pub const HPET_IE_ON: u32 = 536897537; +pub const PERF_EVENT_IOC_ID: u32 = 1074275335; +pub const TUNSETSNDBUF: u32 = 2147767508; +pub const PTP_PIN_SETFUNC: u32 = 2153790727; +pub const PPPIOCDISCONN: u32 = 536900665; +pub const VIDIOC_QUERYCTRL: u32 = 3225703972; +pub const PPEXCL: u32 = 536899727; +pub const PCITEST_MSI: u32 = 2147766275; +pub const FDWERRORCLR: u32 = 536871510; +pub const AUTOFS_IOC_FAIL: u32 = 536908641; +pub const USBDEVFS_IOCTL: u32 = 3222295826; +pub const VIDIOC_S_STD: u32 = 2148029976; +pub const F2FS_IOC_RESIZE_FS: u32 = 2148070672; +pub const SONET_SETDIAG: u32 = 3221512466; +pub const BTRFS_IOC_DEFRAG: u32 = 2415956994; +pub const CCISS_GETDRIVVER: u32 = 1074020873; +pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 1074293015; +pub const HPET_IRQFREQ: u32 = 2148034566; +pub const ATM_GETESI: u32 = 2148557189; +pub const CCISS_GETLUNINFO: u32 = 1074545169; +pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; +pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; +pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; +pub const UDMABUF_CREATE_LIST: u32 = 2148037955; +pub const VHOST_SET_LOG_BASE: u32 = 2148052740; +pub const ZATM_GETPOOL: u32 = 2148557153; +pub const BR2684_SETFILT: u32 = 2149343632; +pub const RNDGETPOOL: u32 = 1074287106; +pub const PPS_GETPARAMS: u32 = 1074294945; +pub const IOC_PR_RESERVE: u32 = 2148561097; +pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; +pub const RIO_CM_CHAN_CLOSE: u32 = 2147640068; +pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; +pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; +pub const PMU_IOC_GET_BACKLIGHT: u32 = 1074283009; +pub const USBDEVFS_GET_CAPABILITIES: u32 = 1074025754; +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 = 536887822; +pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; +pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; +pub const CAPI_GET_VERSION: u32 = 3222291207; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; +pub const VFIO_EEH_PE_OP: u32 = 536886137; +pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; +pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 1074328850; +pub const NBD_SET_SIZE_BLOCKS: u32 = 536914695; +pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 536916224; +pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; +pub const VIDIOC_S_AUDOUT: u32 = 2150913586; +pub const VIDIOC_S_FMT: u32 = 3234878981; +pub const PPPIOCATTACH: u32 = 2147775549; +pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052772; +pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; +pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; +pub const IPMICTL_SET_MY_LUN_CMD: u32 = 1074030867; +pub const PCITEST_LEGACY_IRQ: u32 = 536891394; +pub const USBDEVFS_SUBMITURB: u32 = 1077433610; +pub const AUTOFS_IOC_READY: u32 = 536908640; +pub const BTRFS_IOC_SEND: u32 = 2152240166; +pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; +pub const JSIOCSBTNMAP: u32 = 2214619699; +pub const PPPIOCSFLAGS: u32 = 2147775577; +pub const NVRAM_INIT: u32 = 536899648; +pub const RFKILL_IOCTL_NOINPUT: u32 = 536891905; +pub const BTRFS_IOC_BALANCE: u32 = 2415957004; +pub const FS_IOC_GETFSMAP: u32 = 3233830971; +pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; +pub const STP_POLICY_ID_GET: u32 = 1074799873; +pub const PPSETFLAGS: u32 = 2147774619; +pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; +pub const ATMTCP_CREATE: u32 = 536895886; +pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; +pub const PPPIOCGXASYNCMAP: u32 = 1075868752; +pub const VHOST_SET_VRING_CALL: u32 = 2148052769; +pub const LIRC_GET_FEATURES: u32 = 1074030848; +pub const GSMIOC_DISABLE_NET: u32 = 536889091; +pub const AUTOFS_IOC_CATATONIC: u32 = 536908642; +pub const NBD_DO_IT: u32 = 536914691; +pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 2147772703; +pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030873; +pub const EVIOCSCLOCKID: u32 = 2147763616; +pub const USBDEVFS_FREE_STREAMS: u32 = 1074287901; +pub const FSI_SCOM_RESET: u32 = 2147775235; +pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 1074283014; +pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; +pub const FDDEFPRM: u32 = 2149581379; +pub const TEE_IOC_INVOKE: u32 = 1074832387; +pub const USBDEVFS_BULK: u32 = 3222820098; +pub const SCIF_VWRITETO: u32 = 3223876365; +pub const SONYPI_IOCSBRT: u32 = 2147579392; +pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; +pub const RTC_PIE_ON: u32 = 536899589; +pub const BTRFS_IOC_SCAN_DEV: u32 = 2415956996; +pub const PPPIOCXFERUNIT: u32 = 536900686; +pub const WDIOC_GETTIMEOUT: u32 = 1074026247; +pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; +pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 2148054598; +pub const FBIO_WAITFORVSYNC: u32 = 2147763744; +pub const RTC_PIE_OFF: u32 = 536899590; +pub const EVIOCGRAB: u32 = 2147763600; +pub const PMU_IOC_SET_BACKLIGHT: u32 = 2148024834; +pub const EVIOCGREP: u32 = 1074283779; +pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 2148017163; +pub const UFFDIO_CONTINUE: u32 = 3223366151; +pub const VDUSE_GET_API_VERSION: u32 = 1074299136; +pub const RTC_RD_TIME: u32 = 1076129801; +pub const FDMSGOFF: u32 = 536871494; +pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; +pub const CAPI_GET_ERRCODE: u32 = 1073890081; +pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; +pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; +pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2148036346; +pub const RIO_DEV_ADD: u32 = 2149608727; +pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; +pub const FBIO_RADEON_SET_MIRROR: u32 = 2148024324; +pub const PCITEST_GET_IRQTYPE: u32 = 536891401; +pub const JSIOCGVERSION: u32 = 1074031105; +pub const SONYPI_IOCSBLUE: u32 = 2147579401; +pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 536883986; +pub const F2FS_IOC_GET_FEATURES: u32 = 1074066700; +pub const SCIF_REG: u32 = 3223876360; +pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 2155376264; +pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 2147754757; +pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; +pub const VHOST_SET_VRING_NUM: u32 = 2148052752; +pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; +pub const RIO_FREE_DMA: u32 = 2148035860; +pub const MGSL_IOCRXENABLE: u32 = 536898821; +pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; +pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; +pub const PPPIOCGL2TPSTATS: u32 = 1078490166; +pub const PERF_EVENT_IOC_PERIOD: u32 = 2148017156; +pub const PTP_PIN_SETFUNC2: u32 = 2153790736; +pub const CHIOEXCHANGE: u32 = 2149344002; +pub const NILFS_IOCTL_GET_SUINFO: u32 = 1075342980; +pub const CEC_DQEVENT: u32 = 3226493191; +pub const UI_SET_SWBIT: u32 = 2147767661; +pub const VHOST_VDPA_SET_CONFIG: u32 = 2148052852; +pub const TUNSETIFF: u32 = 2147767498; +pub const CHIOPOSITION: u32 = 2148295427; +pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; +pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; +pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; +pub const CAPI_CLR_FLAGS: u32 = 1074021157; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; +pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074294520; +pub const EVIOCSMASK: u32 = 2148550035; +pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; +pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; +pub const CEC_S_MODE: u32 = 2147770633; +pub const MGSL_IOCSIF: u32 = 536898826; +pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; +pub const PPSETMODE: u32 = 2147774592; +pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; +pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; +pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 1078223114; +pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 2166386922; +pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; +pub const UDMABUF_CREATE: u32 = 2149086530; +pub const SONET_CLRDIAG: u32 = 3221512467; +pub const PHN_SET_REG: u32 = 2148036609; +pub const RNDADDTOENTCNT: u32 = 2147766785; +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 = 536899586; +pub const VFIO_GROUP_SET_CONTAINER: u32 = 536886120; +pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 2148016918; +pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 536886136; +pub const VFIO_IOMMU_GET_INFO: u32 = 536886128; +pub const DM_DEV_SUSPEND: u32 = 3241737478; +pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; +pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; +pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; +pub const ATMMPC_CTRL: u32 = 536895960; +pub const PPPIOCSXASYNCMAP: u32 = 2149610575; +pub const CHIOGSTATUS: u32 = 2148557576; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; +pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; +pub const CAPI_SET_FLAGS: u32 = 1074021156; +pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; +pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; +pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2148036344; +pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 536917570; +pub const VHOST_GET_FEATURES: u32 = 1074310912; +pub const LIRC_GET_REC_RESOLUTION: u32 = 1074030855; +pub const PACKET_CTRL_CMD: u32 = 3222820865; +pub const LIRC_SET_TRANSMITTER_MASK: u32 = 2147772695; +pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; +pub const JSIOCGCORR: u32 = 1076128290; +pub const VIDIOC_G_FMT: u32 = 3234878980; +pub const RTC_EPOCH_SET: u32 = 2148036622; +pub const CAPI_GET_PROFILE: u32 = 3225436937; +pub const ATM_GETLOOP: u32 = 2148557138; +pub const SCIF_LISTEN: u32 = 2147775234; +pub const NBD_CLEAR_QUE: u32 = 536914693; +pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; +pub const LIRC_GET_LENGTH: u32 = 1074030863; +pub const I8K_SET_FAN: u32 = 3221776775; +pub const FDSETMAXERRS: u32 = 2148794956; +pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 1077958144; +pub const SNAPSHOT_SET_SWAP_AREA: u32 = 2148283149; +pub const LIRC_GET_REC_TIMEOUT: u32 = 1074030884; +pub const EVIOCRMFF: u32 = 2147763585; +pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; +pub const PPRDATA: u32 = 1073836165; +pub const RIO_MPORT_GET_PROPERTIES: u32 = 1076915460; +pub const TUNSETVNETHDRSZ: u32 = 2147767512; +pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; +pub const GSMIOC_GETCONF: u32 = 1078740736; +pub const LIRC_GET_SEND_MODE: u32 = 1074030849; +pub const PPPIOCSACTIVE: u32 = 2148561990; +pub const SIOCGSTAMPNS_NEW: u32 = 1074825479; +pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; +pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 2147772693; +pub const UI_END_FF_ERASE: u32 = 2148292043; +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 = 536914698; +pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 536886124; +pub const REISERFS_IOC_UNPACK: u32 = 2148060417; +pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 2147754759; +pub const RIO_SET_EVENT_MASK: u32 = 2147773709; +pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 1074279188; +pub const VDUSE_VQ_INJECT_IRQ: u32 = 2147778839; +pub const I2OPASSTHRU: u32 = 1074817292; +pub const IOC_OPAL_SET_PW: u32 = 2183164128; +pub const FSI_SCOM_READ: u32 = 3223352065; +pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; +pub const VIDIOC_QBUF: u32 = 3227014671; +pub const VIDIOC_S_TUNER: u32 = 2153010718; +pub const TUNGETVNETHDRSZ: u32 = 1074025687; +pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; +pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; +pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; +pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; +pub const TEE_IOC_VERSION: u32 = 1074570240; +pub const VIDIOC_LOG_STATUS: u32 = 536892998; +pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1076914453; +pub const VHOST_SET_LOG_FD: u32 = 2147790599; +pub const SCIF_SEND: u32 = 3222827782; +pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; +pub const NS_ADJBUFLEV: u32 = 536895843; +pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; +pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; +pub const PHN_GETREG: u32 = 3221778437; +pub const I2OSWDL: u32 = 3224398085; +pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 536892931; +pub const JSIOCGBUTTONS: u32 = 1073834514; +pub const VFIO_IOMMU_ENABLE: u32 = 536886131; +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 = 2147790711; +pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; +pub const VIDIOC_S_CROP: u32 = 2148816444; +pub const WDIOC_GETTEMP: u32 = 1074026243; +pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 2165862628; +pub const UI_SET_LEDBIT: u32 = 2147767657; +pub const NBD_SET_SOCK: u32 = 536914688; +pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 2415957055; +pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; +pub const I2OSWUL: u32 = 3224398086; +pub const IOCTL_MEI_NOTIFY_GET: u32 = 1074022403; +pub const FDFMTTRK: u32 = 2148270664; +pub const MMTIMER_GETBITS: u32 = 536898820; +pub const VIDIOC_ENUMSTD: u32 = 3225966105; +pub const VHOST_GET_VRING_BASE: u32 = 3221794578; +pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; +pub const ATMARP_SETENTRY: u32 = 536895971; +pub const CCISS_REVALIDVOLS: u32 = 536887818; +pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; +pub const RTC_VL_READ: u32 = 1074032659; +pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; +pub const RIO_DEV_DEL: u32 = 2149608728; +pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; +pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; +pub const SONYPI_IOCSFAN: u32 = 2147579403; +pub const SPIOCSTYPE: u32 = 2148036865; +pub const IPMICTL_REGISTER_FOR_CMD: u32 = 1073899790; +pub const I8K_GET_FAN: u32 = 3221776774; +pub const TUNGETVNETBE: u32 = 1074025695; +pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; +pub const UI_END_FF_UPLOAD: u32 = 2154321353; +pub const TOSH_SMM: u32 = 3222828176; +pub const SONYPI_IOCGBAT2REM: u32 = 1073903109; +pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 1074328849; +pub const PPPIOCSNPMODE: u32 = 2148037707; +pub const USBDEVFS_CONTROL: u32 = 3222820096; +pub const HIDIOCGUSAGE: u32 = 3222816779; +pub const TUNSETTXFILTER: u32 = 2147767505; +pub const TUNGETVNETLE: u32 = 1074025693; +pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; +pub const MGSL_IOCGXSYNC: u32 = 536898836; +pub const HIDIOCGFIELDINFO: u32 = 3224913930; +pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; +pub const I2OVALIDATE: u32 = 1074030856; +pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; +pub const NILFS_IOCTL_GET_CPINFO: u32 = 1075342978; +pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; +pub const VFAT_IOCTL_READDIR_SHORT: u32 = 1110471170; +pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; +pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 1074328851; +pub const FDGETDRVSTAT: u32 = 1078985234; +pub const SYNC_IOC_MERGE: u32 = 3224387075; +pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; +pub const PPPIOCBRIDGECHAN: u32 = 2147775541; +pub const LIRC_SET_SEND_MODE: u32 = 2147772689; +pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 2148560139; +pub const ATM_GETTYPE: u32 = 2148557188; +pub const PHN_GETREGS: u32 = 3223875591; +pub const FDSETEMSGTRESH: u32 = 536871498; +pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; +pub const MGSL_IOCWAITEVENT: u32 = 3221515528; +pub const CAPI_INSTALLED: u32 = 1073890082; +pub const EVIOCGMASK: u32 = 1074808210; +pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; +pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; +pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; +pub const GSMIOC_GETFIRST: u32 = 1074022148; +pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; +pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; +pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; +pub const CAPI_GET_SERIAL: u32 = 3221504776; +pub const FDSETDRVPRM: u32 = 2155872912; +pub const IOC_OPAL_SAVE: u32 = 2165862620; +pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; +pub const TUNSETIFINDEX: u32 = 2147767514; +pub const CCISS_SETINTINFO: u32 = 2148024835; +pub const RTC_VL_CLR: u32 = 536899604; +pub const VIDIOC_REQBUFS: u32 = 3222558216; +pub const USBDEVFS_REAPURBNDELAY32: u32 = 2147767565; +pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; +pub const USBDEVFS_SETCONFIGURATION: u32 = 1074025733; +pub const CCISS_GETNODENAME: u32 = 1074807300; +pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; +pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; +pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 536886129; +pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 2150114066; +pub const LPSETTIMEOUT_NEW: u32 = 2148533775; +pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; +pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; +pub const FDRAWCMD: u32 = 536871512; +pub const SCIF_UNREG: u32 = 3222303497; +pub const PPPIOCGIDLE64: u32 = 1074820159; +pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; +pub const VIDIOC_CROPCAP: u32 = 3224131130; +pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; +pub const PHN_SET_REGS: u32 = 2148036611; +pub const ATMLEC_DATA: u32 = 536895953; +pub const PPPOEIOCDFWD: u32 = 536916225; +pub const VIDIOC_S_SELECTION: u32 = 3225441887; +pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; +pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; +pub const VIDIOC_S_CTRL: u32 = 3221771804; +pub const ZATM_SETPOOL: u32 = 2148557155; +pub const MTIOCPOS: u32 = 1074294019; +pub const PMU_IOC_SLEEP: u32 = 536887808; +pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; +pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; +pub const NILFS_IOCTL_GET_SUSTAT: u32 = 1076915845; +pub const VIDIOC_QUERYCAP: u32 = 1080579584; +pub const HPET_INFO: u32 = 1075341315; +pub const VIDIOC_AM437X_CCDC_CFG: u32 = 2148030145; +pub const DM_LIST_DEVICES: u32 = 3241737474; +pub const TUNSETOWNER: u32 = 2147767500; +pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; +pub const RNDADDENTROPY: u32 = 2148028931; +pub const USBDEVFS_RESET: u32 = 536892692; +pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 2415957006; +pub const USBDEVFS_FORBID_SUSPEND: u32 = 536892705; +pub const FDGETDRVTYP: u32 = 1074790927; +pub const PPWCONTROL: u32 = 2147577988; +pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; +pub const KCOV_DISABLE: u32 = 536896357; +pub const IOC_OPAL_ACTIVATE_LSP: u32 = 2165862623; +pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 1074835320; +pub const PPPIOCSPASS: u32 = 2148561991; +pub const RIO_CM_CHAN_CONNECT: u32 = 2148033288; +pub const I2OSWDEL: u32 = 3224398087; +pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 1074554387; +pub const IOC_OPAL_MBR_DONE: u32 = 2165338345; +pub const PPPIOCSMAXCID: u32 = 2147775569; +pub const PPSETPHASE: u32 = 2147774612; +pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 2148052853; +pub const USBDEVFS_GET_SPEED: u32 = 536892703; +pub const SONET_GETFRAMING: u32 = 1074028822; +pub const VIDIOC_QUERYBUF: u32 = 3227014665; +pub const VIDIOC_S_EDID: u32 = 3223868969; +pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 2149094441; +pub const PPS_GETCAP: u32 = 1074294947; +pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 536883983; +pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 2147772697; +pub const SCIF_GET_NODEIDS: u32 = 3222827790; +pub const NBD_DISCONNECT: u32 = 536914696; +pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; +pub const VFIO_IOMMU_DISABLE: u32 = 536886132; +pub const SNAPSHOT_CREATE_IMAGE: u32 = 2147758865; +pub const SNAPSHOT_POWER_OFF: u32 = 536883984; +pub const APM_IOC_STANDBY: u32 = 536887553; +pub const PPPIOCGUNIT: u32 = 1074033750; +pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 2147783526; +pub const SCIF_BIND: u32 = 3221779201; +pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 536893280; +pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 2148560512; +pub const IOC_OPAL_LOCK_UNLOCK: u32 = 2165862621; +pub const F2FS_IOC_SET_PIN_FILE: u32 = 2147808525; +pub const PPPIOCGRASYNCMAP: u32 = 1074033749; +pub const MMTIMER_MMAPAVAIL: u32 = 536898822; +pub const I2OPASSTHRU32: u32 = 1074293004; +pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 2147792513; +pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 1082414691; +pub const UI_SET_SNDBIT: u32 = 2147767658; +pub const VIDIOC_G_AUDOUT: u32 = 1077171761; +pub const RTC_PLL_SET: u32 = 2149609490; +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 = 2147790660; +pub const VHOST_SET_VRING_ADDR: u32 = 2150149905; +pub const VDUSE_CREATE_DEV: u32 = 2169536770; +pub const FDFLUSH: u32 = 536871499; +pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; +pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 2148054660; +pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; +pub const SCIF_CONNECT: u32 = 3221779203; +pub const BLKREPORTZONE: u32 = 3222278786; +pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; +pub const ATM_ADDPARTY: u32 = 2148557300; +pub const FDSETPRM: u32 = 2149581378; +pub const ATM_GETSTATZ: u32 = 2148557137; +pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; +pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 1106809916; +pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 2149602907; +pub const SEV_ISSUE_CMD: u32 = 3222295296; +pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; +pub const PCITEST_COPY: u32 = 2148028422; +pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; +pub const CHIOGPICKER: u32 = 1074029316; +pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; +pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; +pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2148017158; +pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; +pub const CHIOGVPARAMS: u32 = 1081107219; +pub const PTP_PEROUT_REQUEST: u32 = 2151169283; +pub const FSI_SCOM_CHECK: u32 = 1074033408; +pub const RTC_IRQP_READ: u32 = 1074294795; +pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 1075342597; +pub const HIDIOCGRDESCSIZE: u32 = 1074022401; +pub const UI_GET_VERSION: u32 = 1074025773; +pub const NILFS_IOCTL_GET_CPSTAT: u32 = 1075342979; +pub const CCISS_GETBUSTYPES: u32 = 1074020871; +pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 536886135; +pub const VIDIOC_EXPBUF: u32 = 3225441808; +pub const UI_SET_RELBIT: u32 = 2147767654; +pub const VFIO_SET_IOMMU: u32 = 536886118; +pub const VIDIOC_S_MODULATOR: u32 = 2151962167; +pub const TUNGETFILTER: u32 = 1074812123; +pub const CCISS_SETNODENAME: u32 = 2148549125; +pub const FBIO_GETCONTROL2: u32 = 1074284169; +pub const TUNSETDEBUG: u32 = 2147767497; +pub const DM_DEV_REMOVE: u32 = 3241737476; +pub const HIDIOCSUSAGES: u32 = 2417772564; +pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; +pub const FBIOGET_VBLANK: u32 = 1075856914; +pub const ATM_GETSTAT: u32 = 2148557136; +pub const VIDIOC_G_JPEGCOMP: u32 = 1082938941; +pub const TUNATTACHFILTER: u32 = 2148553941; +pub const UI_SET_ABSBIT: u32 = 2147767655; +pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; +pub const USBDEVFS_REAPURB32: u32 = 2147767564; +pub const BTRFS_IOC_TRANS_END: u32 = 536908807; +pub const CAPI_REGISTER: u32 = 2148287233; +pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; +pub const USBDEVFS_DISCARDURB: u32 = 536892683; +pub const HE_GET_REG: u32 = 2148557152; +pub const ATM_SETLOOP: u32 = 2148557139; +pub const ATMSIGD_CTRL: u32 = 536895984; +pub const CIOC_KERNEL_VERSION: u32 = 3221775114; +pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; +pub const SNAPSHOT_UNFREEZE: u32 = 536883970; +pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 536933635; +pub const PMU_IOC_HAS_ADB: u32 = 1074283012; +pub const I2OGETIOPS: u32 = 1075865856; +pub const VIDIOC_S_FBUF: u32 = 2150651403; +pub const PPRCONTROL: u32 = 1073836163; +pub const CHIOSPICKER: u32 = 2147771141; +pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 536886133; +pub const TUNGETSNDBUF: u32 = 1074025683; +pub const GSMIOC_SETCONF: u32 = 2152482561; +pub const IOC_PR_PREEMPT: u32 = 2149085387; +pub const KCOV_INIT_TRACE: u32 = 1074291457; +pub const SONYPI_IOCGBAT1CAP: u32 = 1073903106; +pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 1074812736; +pub const MTIOCTOP: u32 = 2148035841; +pub const VHOST_VDPA_SET_STATUS: u32 = 2147594098; +pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 2147790659; +pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 536886133; +pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; +pub const PPPIOCGMRU: u32 = 1074033747; +pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; +pub const PPPIOCGFLAGS: u32 = 1074033754; +pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; +pub const ATM_DELLECSADDR: u32 = 2148557199; +pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; +pub const PPPIOCGIDLE32: u32 = 1074295871; +pub const VFIO_DEVICE_RESET: u32 = 536886127; +pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; +pub const WDIOC_GETSTATUS: u32 = 1074026241; +pub const BTRFS_IOC_SET_FEATURES: u32 = 2150667321; +pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; +pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; +pub const PCITEST_READ: u32 = 2148028421; +pub const VFIO_GROUP_GET_STATUS: u32 = 536886119; +pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 1074294523; +pub const USBDEVFS_CLEAR_HALT: u32 = 1074025749; +pub const VIDIOC_DECODER_CMD: u32 = 3225966176; +pub const VIDIOC_G_AUDIO: u32 = 1077171745; +pub const CCISS_RESCANDISK: u32 = 536887824; +pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 2148560140; +pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 2165338343; +pub const USBDEVFS_REAPURB: u32 = 2148029708; +pub const DFL_FPGA_CHECK_EXTENSION: u32 = 536917505; +pub const AUTOFS_IOC_PROTOVER: u32 = 1074041699; +pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; +pub const BTRFS_IOC_GET_FEATURES: u32 = 1075352633; +pub const PCITEST_MSIX: u32 = 2147766279; +pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 2150667280; +pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; +pub const DM_GET_TARGET_VERSION: u32 = 3241737489; +pub const PPPIOCGIDLE: u32 = 1074820159; +pub const NVRAM_SETCKS: u32 = 536899649; +pub const WDIOC_GETSUPPORT: u32 = 1076385536; +pub const GSMIOC_ENABLE_NET: u32 = 2150909698; +pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 1078244353; +pub const NE_ADD_VCPU: u32 = 3221532193; +pub const EVIOCSKEYCODE_V2: u32 = 2150122756; +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 = 2149084422; +pub const I2OEVTREG: u32 = 2148296970; +pub const I2OPARMGET: u32 = 3223873796; +pub const EVIOCGID: u32 = 1074283778; +pub const BTRFS_IOC_QGROUP_CREATE: u32 = 2148570154; +pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; +pub const VIDIOC_S_PARM: u32 = 3234616854; +pub const TUNSETSTEERINGEBPF: u32 = 1074025696; +pub const ATM_GETNAMES: u32 = 2148557187; +pub const VIDIOC_QUERYMENU: u32 = 3224131109; +pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; +pub const I2OLCTGET: u32 = 3222825218; +pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; +pub const NS_SETBUFLEV: u32 = 2148557154; +pub const BLKCLOSEZONE: u32 = 2148536967; +pub const SONET_GETFRSENSE: u32 = 1074159895; +pub const UI_SET_EVBIT: u32 = 2147767652; +pub const DM_LIST_VERSIONS: u32 = 3241737485; +pub const HIDIOCGSTRING: u32 = 1090799620; +pub const PPPIOCATTCHAN: u32 = 2147775544; +pub const VDUSE_DEV_SET_CONFIG: u32 = 2148040978; +pub const TUNGETFEATURES: u32 = 1074025679; +pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 536886121; +pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 1074030865; +pub const CCISS_REGNEWDISK: u32 = 2147762701; +pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 1082414691; +pub const PHN_SETREGS: u32 = 2150133768; +pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 1074033168; +pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; +pub const TUNGETIFF: u32 = 1074025682; +pub const PTP_CLOCK_GETCAPS2: u32 = 1079000330; +pub const BTRFS_IOC_RESIZE: u32 = 2415956995; +pub const VHOST_SET_VRING_ENDIAN: u32 = 2148052755; +pub const PPS_KC_BIND: u32 = 2148036773; +pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 536933639; +pub const UI_SET_FFBIT: u32 = 2147767659; +pub const IPMICTL_GET_MY_LUN_CMD: u32 = 1074030868; +pub const CEC_ADAP_G_PHYS_ADDR: u32 = 1073897729; +pub const CEC_G_MODE: u32 = 1074028808; +pub const USBDEVFS_RESETEP: u32 = 1074025731; +pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; +pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; +pub const MGSL_IOCSXCTRL: u32 = 536898837; +pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; +pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; +pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; +pub const ISST_IF_GET_PLATFORM_INFO: u32 = 1074331136; +pub const SCIF_FENCE_MARK: u32 = 3222303503; +pub const USBDEVFS_RELEASE_PORT: u32 = 1074025753; +pub const VFIO_CHECK_EXTENSION: u32 = 536886117; +pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 1076925483; +pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; +pub const UI_SET_PHYS: u32 = 2148029804; +pub const FDWERRORGET: u32 = 1076363799; +pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; +pub const MGSL_IOCGSTATS: u32 = 536898823; +pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; +pub const SIOCGSTAMP_NEW: u32 = 1074825478; +pub const RTC_WKALM_RD: u32 = 1076391952; +pub const PHN_GET_REG: u32 = 3221778432; +pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; +pub const PHN_NOT_OH: u32 = 536899588; +pub const PPGETMODES: u32 = 1074032791; +pub const CHIOGPARAMS: u32 = 1075077894; +pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; +pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; +pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; +pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; +pub const MGSL_IOCWAITGPIO: u32 = 3222301970; +pub const PMU_IOC_CAN_SLEEP: u32 = 1074283013; +pub const KCOV_ENABLE: u32 = 536896356; +pub const BTRFS_IOC_CLONE: u32 = 2147783689; +pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; +pub const AGPIOC_ALLOCATE: u32 = 3221766406; +pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; +pub const MGSL_IOCTXABORT: u32 = 536898822; +pub const MGSL_IOCSGPIO: u32 = 2148560144; +pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; +pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; +pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; +pub const RTC_UIE_OFF: u32 = 536899588; +pub const BT_BMC_IOCTL_SMS_ATN: u32 = 536916224; +pub const NVME_IOCTL_ID: u32 = 536890944; +pub const NE_START_ENCLAVE: u32 = 3222318628; +pub const VIDIOC_STREAMON: u32 = 2147767826; +pub const FDPOLLDRVSTAT: u32 = 1078985235; +pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; +pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; +pub const VIDIOC_SUBDEV_S_STD: u32 = 2148029976; +pub const WDIOC_GETTIMELEFT: u32 = 1074026250; +pub const ATM_GETLINKRATE: u32 = 2148557185; +pub const RTC_WKALM_SET: u32 = 2150133775; +pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; +pub const ATMARP_ENCAP: u32 = 536895973; +pub const CAPI_GET_FLAGS: u32 = 1074021155; +pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; +pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; +pub const NS_GET_OWNER_UID: u32 = 536917764; +pub const VIDIOC_OVERLAY: u32 = 2147767822; +pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; +pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; +pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; +pub const ATM_GETADDR: u32 = 2148557190; +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 = 536883979; +pub const JSIOCSAXMAP: u32 = 2151705137; +pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 2147677462; +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 = 536886128; +pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; +pub const MMTIMER_GETOFFSET: u32 = 536898816; +pub const RIO_CM_CHAN_LISTEN: u32 = 2147640070; +pub const ATM_SETSC: u32 = 2147770865; +pub const F2FS_IOC_SHUTDOWN: u32 = 1074026621; +pub const NVME_IOCTL_RESCAN: u32 = 536890950; +pub const BLKOPENZONE: u32 = 2148536966; +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 = 536895968; +pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; +pub const HIDIOCGVERSION: u32 = 1074022401; +pub const VIDIOC_S_INPUT: u32 = 3221509671; +pub const VIDIOC_G_CROP: u32 = 3222558267; +pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 2147772707; +pub const EVIOCGEFFECTS: u32 = 1074021764; +pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; +pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; +pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; +pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; +pub const USBDEVFS_GETDRIVER: u32 = 2164544776; +pub const IDT77105_GETSTAT: u32 = 2148557106; +pub const HIDIOCINITREPORT: u32 = 536889349; +pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; +pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; +pub const RNDGETENTCNT: u32 = 1074024960; +pub const PPPIOCNEWUNIT: u32 = 3221517374; +pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; +pub const FDRESET: u32 = 536871508; +pub const IOC_PR_REGISTER: u32 = 2149085384; +pub const HIDIOCSREPORT: u32 = 2148288520; +pub const TEE_IOC_OPEN_SESSION: u32 = 1074832386; +pub const TEE_IOC_SUPPL_RECV: u32 = 1074832390; +pub const BTRFS_IOC_BALANCE_CTL: u32 = 2147783713; +pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; +pub const HIDIOCGRAWINFO: u32 = 1074284547; +pub const PPPIOCSCOMPRESS: u32 = 2148561997; +pub const USBDEVFS_CONNECTINFO: u32 = 2148029713; +pub const BLKRESETZONE: u32 = 2148536963; +pub const CHIOINITELEM: u32 = 536896273; +pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 2148560524; +pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; +pub const RIO_MPORT_MAINT_HDID_SET: u32 = 2147642625; +pub const PPGETPHASE: u32 = 1074032793; +pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 1091065115; +pub const FDMSGON: u32 = 536871493; +pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; +pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; +pub const MEDIA_REQUEST_IOC_REINIT: u32 = 536902785; +pub const IOC_OPAL_ERASE_LR: u32 = 2165338342; +pub const FDFMTBEG: u32 = 536871495; +pub const RNDRESEEDCRNG: u32 = 536891911; +pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; +pub const TUNSETNOCSUM: u32 = 2147767496; +pub const SONET_GETSTAT: u32 = 1076125968; +pub const TFD_IOC_SET_TICKS: u32 = 2148029440; +pub const PPDATADIR: u32 = 2147774608; +pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 2165338341; +pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; +pub const RIO_CM_CHAN_SEND: u32 = 2148557577; +pub const PPWCTLONIRQ: u32 = 2147578002; +pub const SONYPI_IOCGBRT: u32 = 1073837568; +pub const IOC_PR_RELEASE: u32 = 2148561098; +pub const PPCLRIRQ: u32 = 1074032787; +pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; +pub const MGSL_IOCSXSYNC: u32 = 536898835; +pub const HPET_IE_OFF: u32 = 536897538; +pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; +pub const SONET_SETFRAMING: u32 = 2147770645; +pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 2147755017; +pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; +pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; +pub const BLKFINISHZONE: u32 = 2148536968; +pub const EVIOCREVOKE: u32 = 2147763601; +pub const VFIO_DEVICE_FEATURE: u32 = 536886133; +pub const CCISS_GETPCIINFO: u32 = 1074283009; +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 = 2147767827; +pub const VDUSE_DESTROY_DEV: u32 = 2164293891; +pub const FDGETFDCSTAT: u32 = 1076363797; +pub const VIDIOC_S_PRIORITY: u32 = 2147767876; +pub const SNAPSHOT_FREEZE: u32 = 536883969; +pub const VIDIOC_ENUMINPUT: u32 = 3226490394; +pub const ZATM_GETPOOLZ: u32 = 2148557154; +pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; +pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; +pub const VIDIOC_G_STD: u32 = 1074288151; +pub const USBDEVFS_ALLOW_SUSPEND: u32 = 536892706; +pub const SONET_GETSTATZ: u32 = 1076125969; +pub const SCIF_ACCEPTREG: u32 = 3221779205; +pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; +pub const PPPIOCSRASYNCMAP: u32 = 2147775572; +pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; +pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; +pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; +pub const ATMLEC_CTRL: u32 = 536895952; +pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074294521; +pub const DM_DEV_CREATE: u32 = 3241737475; +pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; +pub const VIDIOC_G_CTRL: u32 = 3221771803; +pub const NBD_CLEAR_SOCK: u32 = 536914692; +pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 536886130; +pub const WDIOC_KEEPALIVE: u32 = 1074026245; +pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; +pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; +pub const PCITEST_BAR: u32 = 536891393; +pub const MGSL_IOCGGPIO: u32 = 1074818321; +pub const EVIOCSREP: u32 = 2148025603; +pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; +pub const HPET_DPI: u32 = 536897541; +pub const VDUSE_VQ_SETUP_KICKFD: u32 = 2148040982; +pub const ND_IOCTL_CALL: u32 = 3225439754; +pub const HIDIOCGDEVINFO: u32 = 1075595267; +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 = 1074026051; +pub const ATM_NEWBACKENDIF: u32 = 2147639795; +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 = 2150651474; +pub const DM_TABLE_LOAD: u32 = 3241737481; +pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; +pub const VIDIOC_G_OUTPUT: u32 = 1074026030; +pub const ATM_DROPPARTY: u32 = 2147770869; +pub const CHIOGELEM: u32 = 2154586896; +pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; +pub const EVIOCSKEYCODE: u32 = 2148025604; +pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; +pub const TUNSETLINK: u32 = 2147767501; +pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; +pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 536908828; +pub const PPS_SETPARAMS: u32 = 2148036770; +pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; +pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; +pub const WDIOC_SETTIMEOUT: u32 = 3221509894; +pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; +pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; +pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; +pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; +pub const VIDIOC_G_EDID: u32 = 3223868968; +pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 2149119243; +pub const RIO_MAP_INBOUND: u32 = 3223874833; +pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 2164814046; +pub const USBDEVFS_CLAIM_PORT: u32 = 1074025752; +pub const VIDIOC_S_AUDIO: u32 = 2150913570; +pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 1074816539; +pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 2150114067; +pub const BTRFS_IOC_SNAP_DESTROY: u32 = 2415957007; +pub const SNAPSHOT_FREE: u32 = 536883973; +pub const I8K_GET_SPEED: u32 = 3221776773; +pub const HIDIOCGREPORT: u32 = 2148288519; +pub const HPET_EPI: u32 = 536897540; +pub const JSIOCSCORR: u32 = 2149870113; +pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; +pub const RIO_MAP_OUTBOUND: u32 = 3223874831; +pub const ATM_SETESI: u32 = 2148557196; +pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; +pub const ATM_DELADDR: u32 = 2148557193; +pub const PPFCONTROL: u32 = 2147643534; +pub const SONYPI_IOCGFAN: u32 = 1073837578; +pub const RTC_IRQP_SET: u32 = 2148036620; +pub const PCITEST_WRITE: u32 = 2148028420; +pub const PPCLAIM: u32 = 536899723; +pub const VIDIOC_S_JPEGCOMP: u32 = 2156680766; +pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 1073899791; +pub const VHOST_SET_FEATURES: u32 = 2148052736; +pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; +pub const VIDIOC_DQBUF: u32 = 3227014673; +pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; +pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; +pub const ATMLEC_MCAST: u32 = 536895954; +pub const MMTIMER_GETFREQ: u32 = 1074294018; +pub const VIDIOC_G_SELECTION: u32 = 3225441886; +pub const RTC_ALM_SET: u32 = 2149871623; +pub const PPPOEIOCSFWD: u32 = 2148053248; +pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; +pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; +pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; +pub const FDFMTEND: u32 = 536871497; +pub const DMA_BUF_SET_NAME: u32 = 2148033025; +pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; +pub const RTC_UIE_ON: u32 = 536899587; +pub const PPRELEASE: u32 = 536899724; +pub const VFIO_IOMMU_UNMAP_DMA: u32 = 536886130; +pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; +pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; +pub const VFAT_IOCTL_READDIR_BOTH: u32 = 1110471169; +pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; +pub const VHOST_SET_VRING_KICK: u32 = 2148052768; +pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 2415957016; +pub const BTRFS_IOC_SNAP_CREATE: u32 = 2415956993; +pub const SONYPI_IOCGBAT2CAP: u32 = 1073903108; +pub const PPNEGOT: u32 = 2147774609; +pub const NBD_PRINT_DEBUG: u32 = 536914694; +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 = 1140888607; +pub const VIDIOC_ENUM_FMT: u32 = 3225441794; +pub const VIDIOC_G_INPUT: u32 = 1074026022; +pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; +pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 1074050691; +pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; +pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 2151715884; +pub const MMTIMER_GETCOUNTER: u32 = 1074294025; +pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; +pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; +pub const RIO_CM_CHAN_BIND: u32 = 2148033285; +pub const HIDIOCGRDESC: u32 = 1342457858; +pub const MGSL_IOCGIF: u32 = 536898827; +pub const VIDIOC_S_OUTPUT: u32 = 3221509679; +pub const HIDIOCGREPORTINFO: u32 = 3222030345; +pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; +pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; +pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 2149884501; +pub const BLKGETDISKSEQ: u32 = 1074270848; +pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; +pub const ACRN_IOCTL_DESTROY_VM: u32 = 536912401; +pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 2148835923; +pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 536912434; +pub const ACRN_IOCTL_IRQFD: u32 = 2149098097; +pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; +pub const ACRN_IOCTL_INJECT_MSI: u32 = 2148573731; +pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 536912435; +pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 2148835924; +pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 2148049457; +pub const ACRN_IOCTL_SET_IRQLINE: u32 = 2148049445; +pub const ACRN_IOCTL_START_VM: u32 = 536912402; +pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 2166923798; +pub const ACRN_IOCTL_SET_MEMSEG: u32 = 2149622337; +pub const ACRN_IOCTL_PAUSE_VM: u32 = 536912403; +pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 536912437; +pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 2149622338; +pub const ACRN_IOCTL_IOEVENTFD: u32 = 2149622384; +pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; +pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; +pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; +pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2148049444; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..f45cdeb8f1eded8af92767fca52fcbfb59ced8b3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/landlock.rs @@ -0,0 +1,114 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64r6/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..42803b9d276362cffff6a1ddc74fd0a7354234b6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/loop_device.rs @@ -0,0 +1,144 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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_long; +pub type __u64 = crate::ctypes::c_ulong; +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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64r6/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/mempolicy.rs new file mode 100644 index 0000000000000000000000000000000000000000..f36e463e942f1dd04be76a000231941d88b79a85 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/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 ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +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 EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; +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/mips64r6/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..59f779f765c39af49f052669a8a1e35e324985de --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/net.rs @@ -0,0 +1,3522 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +pub const IOCSIZE_SHIFT: u32 = 16; +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_REUSEADDR: u32 = 4; +pub const SO_KEEPALIVE: u32 = 8; +pub const SO_DONTROUTE: u32 = 16; +pub const SO_BROADCAST: u32 = 32; +pub const SO_LINGER: u32 = 128; +pub const SO_OOBINLINE: u32 = 256; +pub const SO_REUSEPORT: u32 = 512; +pub const SO_TYPE: u32 = 4104; +pub const SO_STYLE: u32 = 4104; +pub const SO_ERROR: u32 = 4103; +pub const SO_SNDBUF: u32 = 4097; +pub const SO_RCVBUF: u32 = 4098; +pub const SO_SNDLOWAT: u32 = 4099; +pub const SO_RCVLOWAT: u32 = 4100; +pub const SO_SNDTIMEO_OLD: u32 = 4101; +pub const SO_RCVTIMEO_OLD: u32 = 4102; +pub const SO_ACCEPTCONN: u32 = 4105; +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_BSDCOMPAT: u32 = 14; +pub const SO_PASSCRED: u32 = 17; +pub const SO_PEERCRED: u32 = 18; +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_PEERSEC: u32 = 30; +pub const SO_SNDBUFFORCE: u32 = 31; +pub const SO_RCVBUFFORCE: u32 = 33; +pub const SO_PASSSEC: u32 = 34; +pub const SO_MARK: u32 = 36; +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 = 4102; +pub const SO_SNDTIMEO: u32 = 4101; +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 = 2; +pub const SOCK_DGRAM: u32 = 1; +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/mips64r6/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..574c37c578a34acbdcd46e873b5f6952ba263cac --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/netlink.rs @@ -0,0 +1,5471 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: 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 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/mips64r6/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..4b18308219a336fa2e5c7b3dd3e0250417aef95c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/prctl.rs @@ -0,0 +1,281 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64r6/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..fdca98f2f0189164ac1b00a47b9433e57d04cb44 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/ptrace.rs @@ -0,0 +1,874 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 pt_regs { +pub regs: [__u64; 32usize], +pub lo: __u64, +pub hi: __u64, +pub cp0_epc: __u64, +pub cp0_badvaddr: __u64, +pub cp0_status: __u64, +pub cp0_cause: __u64, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct mips32_watch_regs { +pub watchlo: [crate::ctypes::c_uint; 8usize], +pub watchhi: [crate::ctypes::c_ushort; 8usize], +pub watch_masks: [crate::ctypes::c_ushort; 8usize], +pub num_valid: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mips64_watch_regs { +pub watchlo: [crate::ctypes::c_ulonglong; 8usize], +pub watchhi: [crate::ctypes::c_ushort; 8usize], +pub watch_masks: [crate::ctypes::c_ushort; 8usize], +pub num_valid: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct pt_watch_regs { +pub style: pt_watch_style, +pub __bindgen_anon_1: pt_watch_regs__bindgen_ty_1, +} +#[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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 FPR_BASE: u32 = 32; +pub const PC: u32 = 64; +pub const CAUSE: u32 = 65; +pub const BADVADDR: u32 = 66; +pub const MMHI: u32 = 67; +pub const MMLO: u32 = 68; +pub const FPC_CSR: u32 = 69; +pub const FPC_EIR: u32 = 70; +pub const DSP_BASE: u32 = 71; +pub const DSP_CONTROL: u32 = 77; +pub const ACX: u32 = 78; +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_OLDSETOPTIONS: u32 = 21; +pub const PTRACE_GET_THREAD_AREA: u32 = 25; +pub const PTRACE_SET_THREAD_AREA: u32 = 26; +pub const PTRACE_PEEKTEXT_3264: u32 = 192; +pub const PTRACE_PEEKDATA_3264: u32 = 193; +pub const PTRACE_POKETEXT_3264: u32 = 194; +pub const PTRACE_POKEDATA_3264: u32 = 195; +pub const PTRACE_GET_THREAD_AREA_3264: u32 = 196; +pub const PTRACE_GET_WATCH_REGS: u32 = 208; +pub const PTRACE_SET_WATCH_REGS: u32 = 209; +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 pt_watch_style { +pt_watch_style_mips32 = 0, +pt_watch_style_mips64 = 1, +} +#[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 pt_watch_regs__bindgen_ty_1 { +pub mips32: mips32_watch_regs, +pub mips64: mips64_watch_regs, +} +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/mips64r6/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..8015f0b31e7667157af57bdc1af33f20878d777c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/system.rs @@ -0,0 +1,142 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64r6/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..5762a4db71de7d934229083a4932b26c89b14948 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/mips64r6/xdp.rs @@ -0,0 +1,203 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/powerpc/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/auxvec.rs new file mode 100644 index 0000000000000000000000000000000000000000..f00be257c6986a863a842115fe2666402e730990 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/auxvec.rs @@ -0,0 +1,44 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const AT_DCACHEBSIZE: u32 = 19; +pub const AT_ICACHEBSIZE: u32 = 20; +pub const AT_UCACHEBSIZE: u32 = 21; +pub const AT_IGNOREPPC: u32 = 22; +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_L1I_CACHESIZE: u32 = 40; +pub const AT_L1I_CACHEGEOMETRY: u32 = 41; +pub const AT_L1D_CACHESIZE: u32 = 42; +pub const AT_L1D_CACHEGEOMETRY: u32 = 43; +pub const AT_L2_CACHESIZE: u32 = 44; +pub const AT_L2_CACHEGEOMETRY: u32 = 45; +pub const AT_L3_CACHESIZE: u32 = 46; +pub const AT_L3_CACHEGEOMETRY: u32 = 47; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 15; +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/powerpc/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/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/powerpc/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/powerpc/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..e0ea20de119077f125771881f1e5575d697e5da6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/btrfs.rs @@ -0,0 +1,1900 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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/powerpc/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..1ff79f3ff0c32d80024333384c5a5846f08a4350 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/elf_uapi.rs @@ -0,0 +1,658 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/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/powerpc/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/powerpc/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..2170711309385b9a8193bf91783fdb7dd0e352d2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/general.rs @@ -0,0 +1,3395 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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 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 = __u32; +pub type termios2 = termios; +#[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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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(Debug, Copy, Clone)] +pub struct sigset_t { +pub sig: [crate::ctypes::c_ulong; 2usize], +} +#[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: __sigrestore_t, +} +#[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 sig_dbg_op { +pub dbg_type: crate::ctypes::c_int, +pub dbg_value: crate::ctypes::c_ulong, +} +#[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_cc: [cc_t; 19usize], +pub c_line: cc_t, +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_cc: [cc_t; 19usize], +pub c_line: cc_t, +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sgttyb { +pub sg_ispeed: crate::ctypes::c_char, +pub sg_ospeed: crate::ctypes::c_char, +pub sg_erase: crate::ctypes::c_char, +pub sg_kill: crate::ctypes::c_char, +pub sg_flags: crate::ctypes::c_short, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tchars { +pub t_intrc: crate::ctypes::c_char, +pub t_quitc: crate::ctypes::c_char, +pub t_startc: crate::ctypes::c_char, +pub t_stopc: crate::ctypes::c_char, +pub t_eofc: crate::ctypes::c_char, +pub t_brkc: crate::ctypes::c_char, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ltchars { +pub t_suspc: crate::ctypes::c_char, +pub t_dsuspc: crate::ctypes::c_char, +pub t_rprntc: crate::ctypes::c_char, +pub t_flushc: crate::ctypes::c_char, +pub t_werasc: crate::ctypes::c_char, +pub t_lnextc: crate::ctypes::c_char, +} +#[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; 10usize], +} +#[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: __kernel_ino_t, +pub st_mode: __kernel_mode_t, +pub st_nlink: crate::ctypes::c_ushort, +pub st_uid: __kernel_uid32_t, +pub st_gid: __kernel_gid32_t, +pub st_rdev: crate::ctypes::c_ulong, +pub st_size: crate::ctypes::c_long, +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 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 __pad2: crate::ctypes::c_ushort, +pub st_size: crate::ctypes::c_longlong, +pub st_blksize: crate::ctypes::c_int, +pub st_blocks: crate::ctypes::c_longlong, +pub st_atime: crate::ctypes::c_int, +pub st_atime_nsec: crate::ctypes::c_uint, +pub st_mtime: crate::ctypes::c_int, +pub st_mtime_nsec: crate::ctypes::c_uint, +pub st_ctime: crate::ctypes::c_int, +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_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_LARGEFILE: u32 = 65536; +pub const O_DIRECT: 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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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 PROT_SAO: u32 = 16; +pub const MAP_RENAME: u32 = 32; +pub const MAP_NORESERVE: u32 = 64; +pub const MAP_LOCKED: u32 = 128; +pub const MAP_GROWSDOWN: u32 = 256; +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 PKEY_DISABLE_EXECUTE: u32 = 4; +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 = 64; +pub const _NSIG_BPW: u32 = 32; +pub const _NSIG_WORDS: u32 = 2; +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_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 SIG_DBG_SINGLE_STEPPING: u32 = 1; +pub const SIG_DBG_BRANCH_TRACING: 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 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 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 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 VMIN: u32 = 5; +pub const VEOL: u32 = 6; +pub const VTIME: u32 = 7; +pub const VEOL2: u32 = 8; +pub const VSWTC: u32 = 9; +pub const VWERASE: u32 = 10; +pub const VREPRINT: u32 = 11; +pub const VSUSP: u32 = 12; +pub const VSTART: u32 = 13; +pub const VSTOP: u32 = 14; +pub const VLNEXT: u32 = 15; +pub const VDISCARD: u32 = 16; +pub const IXON: u32 = 512; +pub const IXOFF: u32 = 1024; +pub const IUCLC: u32 = 4096; +pub const IMAXBEL: u32 = 8192; +pub const IUTF8: u32 = 16384; +pub const ONLCR: u32 = 2; +pub const OLCUC: u32 = 4; +pub const NLDLY: u32 = 768; +pub const NL0: u32 = 0; +pub const NL1: u32 = 256; +pub const NL2: u32 = 512; +pub const NL3: u32 = 768; +pub const TABDLY: u32 = 3072; +pub const TAB0: u32 = 0; +pub const TAB1: u32 = 1024; +pub const TAB2: u32 = 2048; +pub const TAB3: u32 = 3072; +pub const XTABS: u32 = 3072; +pub const CRDLY: u32 = 12288; +pub const CR0: u32 = 0; +pub const CR1: u32 = 4096; +pub const CR2: u32 = 8192; +pub const CR3: u32 = 12288; +pub const FFDLY: u32 = 16384; +pub const FF0: u32 = 0; +pub const FF1: u32 = 16384; +pub const BSDLY: u32 = 32768; +pub const BS0: u32 = 0; +pub const BS1: u32 = 32768; +pub const VTDLY: u32 = 65536; +pub const VT0: u32 = 0; +pub const VT1: u32 = 65536; +pub const CBAUD: u32 = 255; +pub const CBAUDEX: u32 = 0; +pub const BOTHER: u32 = 31; +pub const B57600: u32 = 16; +pub const B115200: u32 = 17; +pub const B230400: u32 = 18; +pub const B460800: u32 = 19; +pub const B500000: u32 = 20; +pub const B576000: u32 = 21; +pub const B921600: u32 = 22; +pub const B1000000: u32 = 23; +pub const B1152000: u32 = 24; +pub const B1500000: u32 = 25; +pub const B2000000: u32 = 26; +pub const B2500000: u32 = 27; +pub const B3000000: u32 = 28; +pub const B3500000: u32 = 29; +pub const B4000000: u32 = 30; +pub const CSIZE: u32 = 768; +pub const CS5: u32 = 0; +pub const CS6: u32 = 256; +pub const CS7: u32 = 512; +pub const CS8: u32 = 768; +pub const CSTOPB: u32 = 1024; +pub const CREAD: u32 = 2048; +pub const PARENB: u32 = 4096; +pub const PARODD: u32 = 8192; +pub const HUPCL: u32 = 16384; +pub const CLOCAL: u32 = 32768; +pub const CIBAUD: u32 = 16711680; +pub const ISIG: u32 = 128; +pub const ICANON: u32 = 256; +pub const XCASE: u32 = 16384; +pub const ECHO: u32 = 8; +pub const ECHOE: u32 = 2; +pub const ECHOK: u32 = 4; +pub const ECHONL: u32 = 16; +pub const NOFLSH: u32 = 2147483648; +pub const TOSTOP: u32 = 4194304; +pub const ECHOCTL: u32 = 64; +pub const ECHOPRT: u32 = 32; +pub const ECHOKE: u32 = 1; +pub const FLUSHO: u32 = 8388608; +pub const PENDIN: u32 = 536870912; +pub const IEXTEN: u32 = 1024; +pub const EXTPROC: u32 = 268435456; +pub const TCSANOW: u32 = 0; +pub const TCSADRAIN: u32 = 1; +pub const TCSAFLUSH: u32 = 2; +pub const NCC: u32 = 10; +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 _VMIN: u32 = 5; +pub const _VEOL: u32 = 6; +pub const _VTIME: u32 = 7; +pub const _VEOL2: u32 = 8; +pub const _VSWTC: u32 = 9; +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_waitpid: 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_time: u32 = 13; +pub const __NR_mknod: u32 = 14; +pub const __NR_chmod: u32 = 15; +pub const __NR_lchown: u32 = 16; +pub const __NR_break: u32 = 17; +pub const __NR_oldstat: u32 = 18; +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_setuid: u32 = 23; +pub const __NR_getuid: u32 = 24; +pub const __NR_stime: u32 = 25; +pub const __NR_ptrace: u32 = 26; +pub const __NR_alarm: u32 = 27; +pub const __NR_oldfstat: u32 = 28; +pub const __NR_pause: u32 = 29; +pub const __NR_utime: u32 = 30; +pub const __NR_stty: u32 = 31; +pub const __NR_gtty: u32 = 32; +pub const __NR_access: u32 = 33; +pub const __NR_nice: u32 = 34; +pub const __NR_ftime: u32 = 35; +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_prof: u32 = 44; +pub const __NR_brk: 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_umount2: u32 = 52; +pub const __NR_lock: u32 = 53; +pub const __NR_ioctl: u32 = 54; +pub const __NR_fcntl: u32 = 55; +pub const __NR_mpx: u32 = 56; +pub const __NR_setpgid: u32 = 57; +pub const __NR_ulimit: u32 = 58; +pub const __NR_oldolduname: u32 = 59; +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_sgetmask: u32 = 68; +pub const __NR_ssetmask: u32 = 69; +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_getrlimit: u32 = 76; +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_select: u32 = 82; +pub const __NR_symlink: u32 = 83; +pub const __NR_oldlstat: u32 = 84; +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_fchown: u32 = 95; +pub const __NR_getpriority: u32 = 96; +pub const __NR_setpriority: u32 = 97; +pub const __NR_profil: u32 = 98; +pub const __NR_statfs: u32 = 99; +pub const __NR_fstatfs: u32 = 100; +pub const __NR_ioperm: u32 = 101; +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_olduname: u32 = 109; +pub const __NR_iopl: u32 = 110; +pub const __NR_vhangup: u32 = 111; +pub const __NR_idle: u32 = 112; +pub const __NR_vm86: u32 = 113; +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_modify_ldt: u32 = 123; +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_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_query_module: u32 = 166; +pub const __NR_poll: u32 = 167; +pub const __NR_nfsservctl: u32 = 168; +pub const __NR_setresgid: u32 = 169; +pub const __NR_getresgid: u32 = 170; +pub const __NR_prctl: u32 = 171; +pub const __NR_rt_sigreturn: u32 = 172; +pub const __NR_rt_sigaction: u32 = 173; +pub const __NR_rt_sigprocmask: u32 = 174; +pub const __NR_rt_sigpending: u32 = 175; +pub const __NR_rt_sigtimedwait: u32 = 176; +pub const __NR_rt_sigqueueinfo: u32 = 177; +pub const __NR_rt_sigsuspend: u32 = 178; +pub const __NR_pread64: u32 = 179; +pub const __NR_pwrite64: u32 = 180; +pub const __NR_chown: u32 = 181; +pub const __NR_getcwd: u32 = 182; +pub const __NR_capget: u32 = 183; +pub const __NR_capset: u32 = 184; +pub const __NR_sigaltstack: u32 = 185; +pub const __NR_sendfile: u32 = 186; +pub const __NR_getpmsg: u32 = 187; +pub const __NR_putpmsg: u32 = 188; +pub const __NR_vfork: u32 = 189; +pub const __NR_ugetrlimit: u32 = 190; +pub const __NR_readahead: 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_pciconfig_read: u32 = 198; +pub const __NR_pciconfig_write: u32 = 199; +pub const __NR_pciconfig_iobase: u32 = 200; +pub const __NR_multiplexer: u32 = 201; +pub const __NR_getdents64: u32 = 202; +pub const __NR_pivot_root: u32 = 203; +pub const __NR_fcntl64: u32 = 204; +pub const __NR_madvise: u32 = 205; +pub const __NR_mincore: u32 = 206; +pub const __NR_gettid: u32 = 207; +pub const __NR_tkill: u32 = 208; +pub const __NR_setxattr: u32 = 209; +pub const __NR_lsetxattr: u32 = 210; +pub const __NR_fsetxattr: u32 = 211; +pub const __NR_getxattr: u32 = 212; +pub const __NR_lgetxattr: u32 = 213; +pub const __NR_fgetxattr: u32 = 214; +pub const __NR_listxattr: u32 = 215; +pub const __NR_llistxattr: u32 = 216; +pub const __NR_flistxattr: u32 = 217; +pub const __NR_removexattr: u32 = 218; +pub const __NR_lremovexattr: u32 = 219; +pub const __NR_fremovexattr: u32 = 220; +pub const __NR_futex: u32 = 221; +pub const __NR_sched_setaffinity: u32 = 222; +pub const __NR_sched_getaffinity: u32 = 223; +pub const __NR_tuxcall: u32 = 225; +pub const __NR_sendfile64: u32 = 226; +pub const __NR_io_setup: u32 = 227; +pub const __NR_io_destroy: u32 = 228; +pub const __NR_io_getevents: u32 = 229; +pub const __NR_io_submit: u32 = 230; +pub const __NR_io_cancel: u32 = 231; +pub const __NR_set_tid_address: u32 = 232; +pub const __NR_fadvise64: u32 = 233; +pub const __NR_exit_group: u32 = 234; +pub const __NR_lookup_dcookie: u32 = 235; +pub const __NR_epoll_create: u32 = 236; +pub const __NR_epoll_ctl: u32 = 237; +pub const __NR_epoll_wait: u32 = 238; +pub const __NR_remap_file_pages: u32 = 239; +pub const __NR_timer_create: u32 = 240; +pub const __NR_timer_settime: u32 = 241; +pub const __NR_timer_gettime: u32 = 242; +pub const __NR_timer_getoverrun: u32 = 243; +pub const __NR_timer_delete: u32 = 244; +pub const __NR_clock_settime: u32 = 245; +pub const __NR_clock_gettime: u32 = 246; +pub const __NR_clock_getres: u32 = 247; +pub const __NR_clock_nanosleep: u32 = 248; +pub const __NR_swapcontext: u32 = 249; +pub const __NR_tgkill: u32 = 250; +pub const __NR_utimes: u32 = 251; +pub const __NR_statfs64: u32 = 252; +pub const __NR_fstatfs64: u32 = 253; +pub const __NR_fadvise64_64: u32 = 254; +pub const __NR_rtas: u32 = 255; +pub const __NR_sys_debug_setcontext: u32 = 256; +pub const __NR_migrate_pages: u32 = 258; +pub const __NR_mbind: u32 = 259; +pub const __NR_get_mempolicy: u32 = 260; +pub const __NR_set_mempolicy: u32 = 261; +pub const __NR_mq_open: u32 = 262; +pub const __NR_mq_unlink: u32 = 263; +pub const __NR_mq_timedsend: u32 = 264; +pub const __NR_mq_timedreceive: u32 = 265; +pub const __NR_mq_notify: u32 = 266; +pub const __NR_mq_getsetattr: u32 = 267; +pub const __NR_kexec_load: u32 = 268; +pub const __NR_add_key: u32 = 269; +pub const __NR_request_key: u32 = 270; +pub const __NR_keyctl: u32 = 271; +pub const __NR_waitid: u32 = 272; +pub const __NR_ioprio_set: u32 = 273; +pub const __NR_ioprio_get: u32 = 274; +pub const __NR_inotify_init: u32 = 275; +pub const __NR_inotify_add_watch: u32 = 276; +pub const __NR_inotify_rm_watch: u32 = 277; +pub const __NR_spu_run: u32 = 278; +pub const __NR_spu_create: u32 = 279; +pub const __NR_pselect6: u32 = 280; +pub const __NR_ppoll: u32 = 281; +pub const __NR_unshare: u32 = 282; +pub const __NR_splice: u32 = 283; +pub const __NR_tee: u32 = 284; +pub const __NR_vmsplice: u32 = 285; +pub const __NR_openat: u32 = 286; +pub const __NR_mkdirat: u32 = 287; +pub const __NR_mknodat: u32 = 288; +pub const __NR_fchownat: u32 = 289; +pub const __NR_futimesat: u32 = 290; +pub const __NR_fstatat64: u32 = 291; +pub const __NR_unlinkat: u32 = 292; +pub const __NR_renameat: u32 = 293; +pub const __NR_linkat: u32 = 294; +pub const __NR_symlinkat: u32 = 295; +pub const __NR_readlinkat: u32 = 296; +pub const __NR_fchmodat: u32 = 297; +pub const __NR_faccessat: u32 = 298; +pub const __NR_get_robust_list: u32 = 299; +pub const __NR_set_robust_list: u32 = 300; +pub const __NR_move_pages: u32 = 301; +pub const __NR_getcpu: u32 = 302; +pub const __NR_epoll_pwait: u32 = 303; +pub const __NR_utimensat: u32 = 304; +pub const __NR_signalfd: u32 = 305; +pub const __NR_timerfd_create: u32 = 306; +pub const __NR_eventfd: u32 = 307; +pub const __NR_sync_file_range2: u32 = 308; +pub const __NR_fallocate: u32 = 309; +pub const __NR_subpage_prot: u32 = 310; +pub const __NR_timerfd_settime: u32 = 311; +pub const __NR_timerfd_gettime: u32 = 312; +pub const __NR_signalfd4: u32 = 313; +pub const __NR_eventfd2: u32 = 314; +pub const __NR_epoll_create1: u32 = 315; +pub const __NR_dup3: u32 = 316; +pub const __NR_pipe2: u32 = 317; +pub const __NR_inotify_init1: u32 = 318; +pub const __NR_perf_event_open: u32 = 319; +pub const __NR_preadv: u32 = 320; +pub const __NR_pwritev: u32 = 321; +pub const __NR_rt_tgsigqueueinfo: u32 = 322; +pub const __NR_fanotify_init: u32 = 323; +pub const __NR_fanotify_mark: u32 = 324; +pub const __NR_prlimit64: u32 = 325; +pub const __NR_socket: u32 = 326; +pub const __NR_bind: u32 = 327; +pub const __NR_connect: u32 = 328; +pub const __NR_listen: u32 = 329; +pub const __NR_accept: u32 = 330; +pub const __NR_getsockname: u32 = 331; +pub const __NR_getpeername: u32 = 332; +pub const __NR_socketpair: u32 = 333; +pub const __NR_send: u32 = 334; +pub const __NR_sendto: u32 = 335; +pub const __NR_recv: u32 = 336; +pub const __NR_recvfrom: u32 = 337; +pub const __NR_shutdown: u32 = 338; +pub const __NR_setsockopt: u32 = 339; +pub const __NR_getsockopt: u32 = 340; +pub const __NR_sendmsg: u32 = 341; +pub const __NR_recvmsg: u32 = 342; +pub const __NR_recvmmsg: u32 = 343; +pub const __NR_accept4: u32 = 344; +pub const __NR_name_to_handle_at: u32 = 345; +pub const __NR_open_by_handle_at: u32 = 346; +pub const __NR_clock_adjtime: u32 = 347; +pub const __NR_syncfs: u32 = 348; +pub const __NR_sendmmsg: u32 = 349; +pub const __NR_setns: u32 = 350; +pub const __NR_process_vm_readv: u32 = 351; +pub const __NR_process_vm_writev: u32 = 352; +pub const __NR_finit_module: u32 = 353; +pub const __NR_kcmp: u32 = 354; +pub const __NR_sched_setattr: u32 = 355; +pub const __NR_sched_getattr: u32 = 356; +pub const __NR_renameat2: u32 = 357; +pub const __NR_seccomp: u32 = 358; +pub const __NR_getrandom: u32 = 359; +pub const __NR_memfd_create: u32 = 360; +pub const __NR_bpf: u32 = 361; +pub const __NR_execveat: u32 = 362; +pub const __NR_switch_endian: u32 = 363; +pub const __NR_userfaultfd: u32 = 364; +pub const __NR_membarrier: u32 = 365; +pub const __NR_mlock2: u32 = 378; +pub const __NR_copy_file_range: u32 = 379; +pub const __NR_preadv2: u32 = 380; +pub const __NR_pwritev2: u32 = 381; +pub const __NR_kexec_file_load: u32 = 382; +pub const __NR_statx: u32 = 383; +pub const __NR_pkey_alloc: u32 = 384; +pub const __NR_pkey_free: u32 = 385; +pub const __NR_pkey_mprotect: u32 = 386; +pub const __NR_rseq: u32 = 387; +pub const __NR_io_pgetevents: u32 = 388; +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_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 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; 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/powerpc/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..86b498349f989fc7e9323a9e42b661f6f2c9f75e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/if_arp.rs @@ -0,0 +1,2795 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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 __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/powerpc/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..da698c46acd221a4f0e0f84955083ff5022df341 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/if_ether.rs @@ -0,0 +1,174 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..5fd6357e922f3b95b043605f1272a9847c294aab --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/if_packet.rs @@ -0,0 +1,315 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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 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/powerpc/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/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/powerpc/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/powerpc/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..d05ee5376ca06ac9e22b6dfac6e40c7739e28185 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/io_uring.rs @@ -0,0 +1,1444 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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/powerpc/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..46617f6682d9d0296fecdaffe1123a13864d44cb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/ioctl.rs @@ -0,0 +1,1501 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const FIONREAD: u32 = 1074030207; +pub const FIONBIO: u32 = 2147772030; +pub const FIOCLEX: u32 = 536897025; +pub const FIONCLEX: u32 = 536897026; +pub const FIOASYNC: u32 = 2147772029; +pub const FIOQSIZE: u32 = 1074292352; +pub const TCXONC: u32 = 536900638; +pub const TCFLSH: u32 = 536900639; +pub const TIOCSCTTY: u32 = 21518; +pub const TIOCSPGRP: u32 = 2147775606; +pub const TIOCOUTQ: u32 = 1074033779; +pub const TIOCSTI: u32 = 21522; +pub const TIOCSWINSZ: u32 = 2148037735; +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 = 2147767345; +pub const TIOCSIG: u32 = 2147767350; +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 = 1076655123; +pub const TCGETA: u32 = 1075082263; +pub const TCSBRK: u32 = 536900637; +pub const TCSBRKP: u32 = 21541; +pub const TCSETA: u32 = 2148824088; +pub const TCSETAF: u32 = 2148824092; +pub const TCSETAW: u32 = 2148824089; +pub const TIOCEXCL: u32 = 21516; +pub const TIOCNXCL: u32 = 21517; +pub const TIOCGDEV: u32 = 1074025522; +pub const TIOCGEXCL: u32 = 1074025536; +pub const TIOCGICOUNT: u32 = 21597; +pub const TIOCGLCKTRMIOS: u32 = 21590; +pub const TIOCGPGRP: u32 = 1074033783; +pub const TIOCGPKT: u32 = 1074025528; +pub const TIOCGPTLCK: u32 = 1074025529; +pub const TIOCGPTN: u32 = 1074025520; +pub const TIOCGPTPEER: u32 = 536892481; +pub const TIOCGRS485: u32 = 21550; +pub const TIOCGSERIAL: u32 = 21534; +pub const TIOCGSID: u32 = 21545; +pub const TIOCGSOFTCAR: u32 = 21529; +pub const TIOCGWINSZ: u32 = 1074295912; +pub const TCSETS: u32 = 2150396948; +pub const TCSETSF: u32 = 2150396950; +pub const TCSETSW: u32 = 2150396949; +pub const TIOCGETC: u32 = 1074164754; +pub const TIOCGETD: u32 = 21540; +pub const TIOCGETP: u32 = 1074164744; +pub const TIOCGLTC: u32 = 1074164852; +pub const MTIOCGET: u32 = 1075604738; +pub const BLKSSZGET: u32 = 536875624; +pub const BLKPBSZGET: u32 = 536875643; +pub const BLKROSET: u32 = 536875613; +pub const BLKROGET: u32 = 536875614; +pub const BLKRRPART: u32 = 536875615; +pub const BLKGETSIZE: u32 = 536875616; +pub const BLKFLSBUF: u32 = 536875617; +pub const BLKRASET: u32 = 536875618; +pub const BLKRAGET: u32 = 536875619; +pub const BLKFRASET: u32 = 536875620; +pub const BLKFRAGET: u32 = 536875621; +pub const BLKSECTSET: u32 = 536875622; +pub const BLKSECTGET: u32 = 536875623; +pub const BLKPG: u32 = 536875625; +pub const BLKBSZGET: u32 = 1074008688; +pub const BLKBSZSET: u32 = 2147750513; +pub const BLKGETSIZE64: u32 = 1074008690; +pub const BLKTRACESETUP: u32 = 3225948787; +pub const BLKTRACESTART: u32 = 536875636; +pub const BLKTRACESTOP: u32 = 536875637; +pub const BLKTRACETEARDOWN: u32 = 536875638; +pub const BLKDISCARD: u32 = 536875639; +pub const BLKIOMIN: u32 = 536875640; +pub const BLKIOOPT: u32 = 536875641; +pub const BLKALIGNOFF: u32 = 536875642; +pub const BLKDISCARDZEROES: u32 = 536875644; +pub const BLKSECDISCARD: u32 = 536875645; +pub const BLKROTATIONAL: u32 = 536875646; +pub const BLKZEROOUT: u32 = 536875647; +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 = 1074833921; +pub const UFFDIO_WAKE: u32 = 1074833922; +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 = 536917761; +pub const NS_GET_PARENT: u32 = 536917762; +pub const NS_GET_NSTYPE: u32 = 536917763; +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 = 1074030207; +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 = 536870913; +pub const FIGETBSZ: u32 = 536870914; +pub const FIFREEZE: u32 = 3221510263; +pub const FITHAW: u32 = 3221510264; +pub const FITRIM: u32 = 3222820985; +pub const FICLONE: u32 = 2147783689; +pub const FICLONERANGE: u32 = 2149618701; +pub const FIDEDUPERANGE: u32 = 3222836278; +pub const FS_IOC_GETFLAGS: u32 = 1074030081; +pub const FS_IOC_SETFLAGS: u32 = 2147771906; +pub const FS_IOC_GETVERSION: u32 = 1074034177; +pub const FS_IOC_SETVERSION: u32 = 2147776002; +pub const FS_IOC_FIEMAP: u32 = 3223348747; +pub const FS_IOC32_GETFLAGS: u32 = 1074030081; +pub const FS_IOC32_SETFLAGS: u32 = 2147771906; +pub const FS_IOC32_GETVERSION: u32 = 1074034177; +pub const FS_IOC32_SETVERSION: u32 = 2147776002; +pub const FS_IOC_FSGETXATTR: u32 = 1075599391; +pub const FS_IOC_FSSETXATTR: u32 = 2149341216; +pub const FS_IOC_GETFSLABEL: u32 = 1090556977; +pub const FS_IOC_SETFSLABEL: u32 = 2164298802; +pub const EXT4_IOC_GETVERSION: u32 = 1074030083; +pub const EXT4_IOC_SETVERSION: u32 = 2147771908; +pub const EXT4_IOC_GETVERSION_OLD: u32 = 1074034177; +pub const EXT4_IOC_SETVERSION_OLD: u32 = 2147776002; +pub const EXT4_IOC_GETRSVSZ: u32 = 1074030085; +pub const EXT4_IOC_SETRSVSZ: u32 = 2147771910; +pub const EXT4_IOC_GROUP_EXTEND: u32 = 2147771911; +pub const EXT4_IOC_MIGRATE: u32 = 536897033; +pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; +pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; +pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; +pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; +pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; +pub const EXT4_IOC_GETSTATE: u32 = 2147771945; +pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; +pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; +pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; +pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; +pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; +pub const EXT4_IOC32_GETRSVSZ: u32 = 1074030085; +pub const EXT4_IOC32_SETRSVSZ: u32 = 2147771910; +pub const EXT4_IOC32_GROUP_EXTEND: u32 = 2147771911; +pub const EXT4_IOC32_GETVERSION_OLD: u32 = 1074034177; +pub const EXT4_IOC32_SETVERSION_OLD: u32 = 2147776002; +pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 1074288191; +pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; +pub const LIRC_SET_SEND_CARRIER: u32 = 2147772691; +pub const AUTOFS_IOC_PROTOSUBVER: u32 = 1074041703; +pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; +pub const FSI_SCOM_WRITE: u32 = 3223352066; +pub const ATM_GETCIRANGE: u32 = 2148295050; +pub const DMA_BUF_SET_NAME_B: u32 = 2148033025; +pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; +pub const TUNSETPERSIST: u32 = 2147767499; +pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; +pub const CEC_RECEIVE: u32 = 3224920326; +pub const MGSL_IOCGPARAMS: u32 = 1075866881; +pub const ENI_SETMULT: u32 = 2148295015; +pub const RIO_GET_EVENT_MASK: u32 = 1074031886; +pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; +pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; +pub const CHIOMOVE: u32 = 2148819713; +pub const SONYPI_IOCGBATFLAGS: u32 = 1073837575; +pub const BTRFS_IOC_SYNC: u32 = 536908808; +pub const VIDIOC_TRY_FMT: u32 = 3234616896; +pub const LIRC_SET_REC_MODE: u32 = 2147772690; +pub const VIDIOC_DQEVENT: u32 = 1082152537; +pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 536917250; +pub const UVCIOC_CTRL_MAP: u32 = 3227022624; +pub const VHOST_SET_BACKEND_FEATURES: u32 = 2148052773; +pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 2148052832; +pub const UI_SET_KEYBIT: u32 = 2147767653; +pub const LIRC_SET_REC_TIMEOUT: u32 = 2147772696; +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 = 2148052754; +pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 2148035849; +pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3222820425; +pub const LIRC_GET_REC_MODE: u32 = 1074030850; +pub const PPGETTIME: u32 = 1074294933; +pub const BTRFS_IOC_RM_DEV: u32 = 2415957003; +pub const ATM_SETBACKEND: u32 = 2147639794; +pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; +pub const FBIO_WAITEVENT: u32 = 536888968; +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 = 536871513; +pub const NVME_IOCTL_SUBMIT_IO: u32 = 2150649410; +pub const NILFS_IOCTL_SYNC: u32 = 1074294410; +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 = 1074045957; +pub const NS_GETPSTAT: u32 = 3222036833; +pub const UI_SET_PROPBIT: u32 = 2147767662; +pub const TUNSETFILTEREBPF: u32 = 1074025697; +pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; +pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; +pub const WDIOC_SETOPTIONS: u32 = 1074026244; +pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; +pub const MGSL_IOCGTXIDLE: u32 = 536898819; +pub const ATM_ADDLECSADDR: u32 = 2148295054; +pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; +pub const FDGETPRM: u32 = 1075577348; +pub const HIDIOCAPPLICATION: u32 = 536889346; +pub const ENI_MEMDUMP: u32 = 2148295008; +pub const PTP_SYS_OFFSET2: u32 = 2202025230; +pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; +pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; +pub const PTP_PIN_GETFUNC: u32 = 3227532550; +pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; +pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; +pub const RTC_EPOCH_READ: u32 = 1074032653; +pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; +pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; +pub const ATM_GETLECSADDR: u32 = 2148295056; +pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; +pub const SONET_GETDIAG: u32 = 1074028820; +pub const ATMMPC_DATA: u32 = 536895961; +pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; +pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; +pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; +pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; +pub const UI_DEV_SETUP: u32 = 2153534723; +pub const ISST_IF_IO_CMD: u32 = 2147810818; +pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 1075342599; +pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; +pub const BLKGETNRZONES: u32 = 1074008709; +pub const VIDIOC_G_MODULATOR: u32 = 3225703990; +pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; +pub const USBDEVFS_SETINTERFACE: u32 = 1074287876; +pub const PPPIOCGCHAN: u32 = 1074033719; +pub const EVIOCGVERSION: u32 = 1074021633; +pub const VHOST_NET_SET_BACKEND: u32 = 2148052784; +pub const USBDEVFS_REAPURBNDELAY: u32 = 2147767565; +pub const RNDZAPENTCNT: u32 = 536891908; +pub const VIDIOC_G_PARM: u32 = 3234616853; +pub const TUNGETDEVNETNS: u32 = 536892643; +pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 2147772701; +pub const VHOST_SET_VRING_ERR: u32 = 2148052770; +pub const VDUSE_VQ_SETUP: u32 = 2149613844; +pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221525348; +pub const VIDIOC_S_FREQUENCY: u32 = 2150389305; +pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 2149119252; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; +pub const WDIOC_GETPRETIMEOUT: u32 = 1074026249; +pub const USBDEVFS_DROP_PRIVILEGES: u32 = 2147767582; +pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 2415957015; +pub const VHOST_VSOCK_SET_RUNNING: u32 = 2147790689; +pub const STP_SET_OPTIONS: u32 = 2148017410; +pub const FBIO_RADEON_GET_MIRROR: u32 = 1074020355; +pub const IVTVFB_IOC_DMA_FRAME: u32 = 2148292288; +pub const IPMICTL_SEND_COMMAND: u32 = 1075079437; +pub const VIDIOC_G_ENC_INDEX: u32 = 1209554508; +pub const DFL_FPGA_FME_PORT_PR: u32 = 536917632; +pub const CHIOSVOLTAG: u32 = 2150654738; +pub const ATM_SETESIF: u32 = 2148295053; +pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 2149065476; +pub const PMU_IOC_GET_MODEL: u32 = 1074020867; +pub const JSIOCGBTNMAP: u32 = 1140877876; +pub const USBDEVFS_HUB_PORTINFO: u32 = 1082152211; +pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; +pub const FDCLRPRM: u32 = 536871489; +pub const BTRFS_IOC_SCRUB: u32 = 3288372251; +pub const USBDEVFS_DISCONNECT: u32 = 536892694; +pub const TUNSETVNETBE: u32 = 2147767518; +pub const ATMTCP_REMOVE: u32 = 536895887; +pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; +pub const PPPIOCGNPMODE: u32 = 3221779532; +pub const FDGETDRVPRM: u32 = 1079509521; +pub const TUNSETVNETLE: u32 = 2147767516; +pub const PHN_SETREG: u32 = 2148036614; +pub const PPPIOCDETACH: u32 = 2147775548; +pub const MMTIMER_GETRES: u32 = 1074031873; +pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; +pub const PPGETFLAGS: u32 = 1074032794; +pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; +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 = 1074310688; +pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; +pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; +pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; +pub const MGSL_IOCGXCTRL: u32 = 536898838; +pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; +pub const SONYPI_IOCGBLUE: u32 = 1073837576; +pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; +pub const I2OHTML: u32 = 3223087369; +pub const VFIO_GET_API_VERSION: u32 = 536886116; +pub const IDT77105_GETSTATZ: u32 = 2148294963; +pub const I2OPARMSET: u32 = 3222825219; +pub const TEE_IOC_CANCEL: u32 = 1074308100; +pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; +pub const DFL_FPGA_PORT_RESET: u32 = 536917568; +pub const PPPIOCGASYNCMAP: u32 = 1074033752; +pub const EVIOCGKEYCODE_V2: u32 = 1076380932; +pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; +pub const HIDIOCSUSAGE: u32 = 2149074956; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065488; +pub const PTP_EXTTS_REQUEST: u32 = 2148547842; +pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; +pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; +pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 2162732865; +pub const JSIOCGAXES: u32 = 1073834513; +pub const HIDIOCSFLAG: u32 = 2147764239; +pub const PTP_PEROUT_REQUEST2: u32 = 2151169292; +pub const PPWDATA: u32 = 2147577990; +pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; +pub const FDGETMAXERRS: u32 = 1075053070; +pub const TUNSETQUEUE: u32 = 2147767513; +pub const PTP_ENABLE_PPS: u32 = 2147761412; +pub const SIOCSIFATMTCP: u32 = 536895872; +pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; +pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; +pub const NBD_SET_BLKSIZE: u32 = 536914689; +pub const NBD_SET_TIMEOUT: u32 = 536914697; +pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 2147790658; +pub const RIO_UNMAP_INBOUND: u32 = 2148035858; +pub const ATM_QUERYLOOP: u32 = 2148294996; +pub const DFL_FPGA_GET_API_VERSION: u32 = 536917504; +pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 536892707; +pub const FBIO_CURSOR: u32 = 3225961992; +pub const RNDCLEARPOOL: u32 = 536891910; +pub const VIDIOC_QUERYSTD: u32 = 1074288191; +pub const DMA_BUF_IOCTL_SYNC: u32 = 2148033024; +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 = 1076647434; +pub const PTP_ENABLE_PPS2: u32 = 2147761421; +pub const PCITEST_CLEAR_IRQ: u32 = 536891408; +pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 1074030864; +pub const BTRFS_IOC_DEVICES_READY: u32 = 1342215207; +pub const JSIOCGAXMAP: u32 = 1077963314; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 1074799372; +pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 2148541207; +pub const RTC_WIE_OFF: u32 = 536899600; +pub const PPGETMODE: u32 = 1074032792; +pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; +pub const PTP_SYS_OFFSET: u32 = 2202025221; +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 = 536908806; +pub const INOTIFY_IOC_SETNEXTWD: u32 = 2147764480; +pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 1074279182; +pub const TUNDETACHFILTER: u32 = 2148029654; +pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; +pub const IOC_PR_CLEAR: u32 = 2148561101; +pub const SCIF_READFROM: u32 = 3223876362; +pub const PPPIOCGDEBUG: u32 = 1074033729; +pub const BLKGETZONESZ: u32 = 1074008708; +pub const HIDIOCGUSAGES: u32 = 3491514387; +pub const SONYPI_IOCGTEMP: u32 = 1073837580; +pub const UI_SET_MSCBIT: u32 = 2147767656; +pub const APM_IOC_SUSPEND: u32 = 536887554; +pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; +pub const RTC_PLL_GET: u32 = 1075605521; +pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; +pub const USBDEVFS_DISCSIGNAL: u32 = 1074287886; +pub const LIRC_GET_MIN_TIMEOUT: u32 = 1074030856; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 1100502850; +pub const DM_TARGET_MSG: u32 = 3241737486; +pub const SONYPI_IOCGBAT1REM: u32 = 1073903107; +pub const EVIOCSFF: u32 = 2150385024; +pub const TUNSETGROUP: u32 = 2147767502; +pub const EVIOCGKEYCODE: u32 = 1074283780; +pub const KCOV_REMOTE_ENABLE: u32 = 2149081958; +pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; +pub const FDEJECT: u32 = 536871514; +pub const TUNSETOFFLOAD: u32 = 2147767504; +pub const PPPIOCCONNECT: u32 = 2147775546; +pub const ATM_ADDADDR: u32 = 2148295048; +pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; +pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; +pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; +pub const CCISS_PASSTHRU: u32 = 3226747403; +pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; +pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; +pub const ATMARPD_CTRL: u32 = 536895969; +pub const UI_ABS_SETUP: u32 = 2149340420; +pub const UI_DEV_DESTROY: u32 = 536892674; +pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; +pub const RTC_AIE_ON: u32 = 536899585; +pub const AUTOFS_IOC_EXPIRE: u32 = 1091343205; +pub const PPPIOCSDEBUG: u32 = 2147775552; +pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; +pub const PPPIOCSMRU: u32 = 2147775570; +pub const CCISS_DEREGDISK: u32 = 536887820; +pub const UI_DEV_CREATE: u32 = 536892673; +pub const FUSE_DEV_IOC_CLONE: u32 = 1074062592; +pub const BTRFS_IOC_START_SYNC: u32 = 1074304024; +pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 2148036225; +pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 1074279187; +pub const DM_TABLE_CLEAR: u32 = 3241737482; +pub const CCISS_GETINTINFO: u32 = 1074283010; +pub const PPPIOCSASYNCMAP: u32 = 2147775575; +pub const I2OEVTGET: u32 = 1080584459; +pub const NVME_IOCTL_RESET: u32 = 536890948; +pub const PPYIELD: u32 = 536899725; +pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; +pub const TUNSETCARRIER: u32 = 2147767522; +pub const DM_DEV_WAIT: u32 = 3241737480; +pub const RTC_WIE_ON: u32 = 536899599; +pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; +pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; +pub const MGSL_IOCSPARAMS: u32 = 2149608704; +pub const RTC_SET_TIME: u32 = 2149871626; +pub const VHOST_RESET_OWNER: u32 = 536915714; +pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; +pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; +pub const UDF_GETEABLOCK: u32 = 1074031681; +pub const VFIO_IOMMU_MAP_DMA: u32 = 536886129; +pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 2149602906; +pub const HIDIOCGFLAG: u32 = 1074022414; +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 = 2148577793; +pub const CCISS_GETFIRMVER: u32 = 1074020872; +pub const ND_IOCTL_ARS_START: u32 = 3223342594; +pub const PPPIOCSMRRU: u32 = 2147775547; +pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; +pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 1074050818; +pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; +pub const PPSETTIME: u32 = 2148036758; +pub const RTC_ALM_READ: u32 = 1076129800; +pub const VDUSE_SET_API_VERSION: u32 = 2148040961; +pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; +pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; +pub const USBDEVFS_CONNECT: u32 = 536892695; +pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; +pub const ATMARP_MKIP: u32 = 536895970; +pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; +pub const CCISS_GETHEARTBEAT: u32 = 1074020870; +pub const ATM_RSTADDR: u32 = 2148295047; +pub const NBD_SET_SIZE: u32 = 536914690; +pub const UDF_GETVOLIDENT: u32 = 1074031682; +pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; +pub const MGSL_IOCSTXIDLE: u32 = 536898818; +pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; +pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; +pub const PPRSTATUS: u32 = 1073836161; +pub const MGSL_IOCTXENABLE: u32 = 536898820; +pub const UDF_GETEASIZE: u32 = 1074031680; +pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; +pub const VHOST_SET_OWNER: u32 = 536915713; +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 = 2148295051; +pub const HPET_IE_ON: u32 = 536897537; +pub const PERF_EVENT_IOC_ID: u32 = 1074013191; +pub const TUNSETSNDBUF: u32 = 2147767508; +pub const PTP_PIN_SETFUNC: u32 = 2153790727; +pub const PPPIOCDISCONN: u32 = 536900665; +pub const VIDIOC_QUERYCTRL: u32 = 3225703972; +pub const PPEXCL: u32 = 536899727; +pub const PCITEST_MSI: u32 = 2147766275; +pub const FDWERRORCLR: u32 = 536871510; +pub const AUTOFS_IOC_FAIL: u32 = 536908641; +pub const USBDEVFS_IOCTL: u32 = 3222033682; +pub const VIDIOC_S_STD: u32 = 2148029976; +pub const F2FS_IOC_RESIZE_FS: u32 = 2148070672; +pub const SONET_SETDIAG: u32 = 3221512466; +pub const BTRFS_IOC_DEFRAG: u32 = 2415956994; +pub const CCISS_GETDRIVVER: u32 = 1074020873; +pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 1074293015; +pub const HPET_IRQFREQ: u32 = 2147772422; +pub const ATM_GETESI: u32 = 2148295045; +pub const CCISS_GETLUNINFO: u32 = 1074545169; +pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; +pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; +pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; +pub const UDMABUF_CREATE_LIST: u32 = 2148037955; +pub const VHOST_SET_LOG_BASE: u32 = 2148052740; +pub const ZATM_GETPOOL: u32 = 2148295009; +pub const BR2684_SETFILT: u32 = 2149343632; +pub const RNDGETPOOL: u32 = 1074287106; +pub const PPS_GETPARAMS: u32 = 1074032801; +pub const IOC_PR_RESERVE: u32 = 2148561097; +pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; +pub const RIO_CM_CHAN_CLOSE: u32 = 2147640068; +pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; +pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; +pub const PMU_IOC_GET_BACKLIGHT: u32 = 1074020865; +pub const USBDEVFS_GET_CAPABILITIES: u32 = 1074025754; +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 = 536887822; +pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; +pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; +pub const CAPI_GET_VERSION: u32 = 3222291207; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; +pub const VFIO_EEH_PE_OP: u32 = 536886137; +pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; +pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 1074328850; +pub const NBD_SET_SIZE_BLOCKS: u32 = 536914695; +pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 536916224; +pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; +pub const VIDIOC_S_AUDOUT: u32 = 2150913586; +pub const VIDIOC_S_FMT: u32 = 3234616837; +pub const PPPIOCATTACH: u32 = 2147775549; +pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052772; +pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; +pub const CCISS_BIG_PASSTHRU: u32 = 3227009554; +pub const IPMICTL_SET_MY_LUN_CMD: u32 = 1074030867; +pub const PCITEST_LEGACY_IRQ: u32 = 536891394; +pub const USBDEVFS_SUBMITURB: u32 = 1076647178; +pub const AUTOFS_IOC_READY: u32 = 536908640; +pub const BTRFS_IOC_SEND: u32 = 2152240166; +pub const VIDIOC_G_EXT_CTRLS: u32 = 3222820423; +pub const JSIOCSBTNMAP: u32 = 2214619699; +pub const PPPIOCSFLAGS: u32 = 2147775577; +pub const NVRAM_INIT: u32 = 536899648; +pub const RFKILL_IOCTL_NOINPUT: u32 = 536891905; +pub const BTRFS_IOC_BALANCE: u32 = 2415957004; +pub const FS_IOC_GETFSMAP: u32 = 3233830971; +pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; +pub const STP_POLICY_ID_GET: u32 = 1074799873; +pub const PPSETFLAGS: u32 = 2147774619; +pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; +pub const ATMTCP_CREATE: u32 = 536895886; +pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; +pub const PPPIOCGXASYNCMAP: u32 = 1075868752; +pub const VHOST_SET_VRING_CALL: u32 = 2148052769; +pub const LIRC_GET_FEATURES: u32 = 1074030848; +pub const GSMIOC_DISABLE_NET: u32 = 536889091; +pub const AUTOFS_IOC_CATATONIC: u32 = 536908642; +pub const NBD_DO_IT: u32 = 536914691; +pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 2147772703; +pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030873; +pub const EVIOCSCLOCKID: u32 = 2147763616; +pub const USBDEVFS_FREE_STREAMS: u32 = 1074287901; +pub const FSI_SCOM_RESET: u32 = 2147775235; +pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 1074020870; +pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; +pub const FDDEFPRM: u32 = 2149319235; +pub const TEE_IOC_INVOKE: u32 = 1074832387; +pub const USBDEVFS_BULK: u32 = 3222295810; +pub const SCIF_VWRITETO: u32 = 3223876365; +pub const SONYPI_IOCSBRT: u32 = 2147579392; +pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; +pub const RTC_PIE_ON: u32 = 536899589; +pub const BTRFS_IOC_SCAN_DEV: u32 = 2415956996; +pub const PPPIOCXFERUNIT: u32 = 536900686; +pub const WDIOC_GETTIMEOUT: u32 = 1074026247; +pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; +pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 2148054598; +pub const FBIO_WAITFORVSYNC: u32 = 2147763744; +pub const RTC_PIE_OFF: u32 = 536899590; +pub const EVIOCGRAB: u32 = 2147763600; +pub const PMU_IOC_SET_BACKLIGHT: u32 = 2147762690; +pub const EVIOCGREP: u32 = 1074283779; +pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 2147755019; +pub const UFFDIO_CONTINUE: u32 = 3223366151; +pub const VDUSE_GET_API_VERSION: u32 = 1074299136; +pub const RTC_RD_TIME: u32 = 1076129801; +pub const FDMSGOFF: u32 = 536871494; +pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; +pub const CAPI_GET_ERRCODE: u32 = 1073890081; +pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; +pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; +pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2147774202; +pub const RIO_DEV_ADD: u32 = 2149608727; +pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; +pub const FBIO_RADEON_SET_MIRROR: u32 = 2147762180; +pub const PCITEST_GET_IRQTYPE: u32 = 536891401; +pub const JSIOCGVERSION: u32 = 1074031105; +pub const SONYPI_IOCSBLUE: u32 = 2147579401; +pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 536883986; +pub const F2FS_IOC_GET_FEATURES: u32 = 1074066700; +pub const SCIF_REG: u32 = 3223876360; +pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 2155376264; +pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 2147754757; +pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; +pub const VHOST_SET_VRING_NUM: u32 = 2148052752; +pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; +pub const RIO_FREE_DMA: u32 = 2148035860; +pub const MGSL_IOCRXENABLE: u32 = 536898821; +pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; +pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; +pub const PPPIOCGL2TPSTATS: u32 = 1078490166; +pub const PERF_EVENT_IOC_PERIOD: u32 = 2148017156; +pub const PTP_PIN_SETFUNC2: u32 = 2153790736; +pub const CHIOEXCHANGE: u32 = 2149344002; +pub const NILFS_IOCTL_GET_SUINFO: u32 = 1075342980; +pub const CEC_DQEVENT: u32 = 3226493191; +pub const UI_SET_SWBIT: u32 = 2147767661; +pub const VHOST_VDPA_SET_CONFIG: u32 = 2148052852; +pub const TUNSETIFF: u32 = 2147767498; +pub const CHIOPOSITION: u32 = 2148295427; +pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; +pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; +pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; +pub const CAPI_CLR_FLAGS: u32 = 1074021157; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; +pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074032376; +pub const EVIOCSMASK: u32 = 2148550035; +pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; +pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; +pub const CEC_S_MODE: u32 = 2147770633; +pub const MGSL_IOCSIF: u32 = 536898826; +pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; +pub const PPSETMODE: u32 = 2147774592; +pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; +pub const VIDIOC_PREPARE_BUF: u32 = 3225704029; +pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 1078223114; +pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 2166386922; +pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; +pub const UDMABUF_CREATE: u32 = 2149086530; +pub const SONET_CLRDIAG: u32 = 3221512467; +pub const PHN_SET_REG: u32 = 2147774465; +pub const RNDADDTOENTCNT: u32 = 2147766785; +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 = 536899586; +pub const VFIO_GROUP_SET_CONTAINER: u32 = 536886120; +pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 2148016918; +pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 536886136; +pub const VFIO_IOMMU_GET_INFO: u32 = 536886128; +pub const DM_DEV_SUSPEND: u32 = 3241737478; +pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; +pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; +pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; +pub const ATMMPC_CTRL: u32 = 536895960; +pub const PPPIOCSXASYNCMAP: u32 = 2149610575; +pub const CHIOGSTATUS: u32 = 2148033288; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; +pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; +pub const CAPI_SET_FLAGS: u32 = 1074021156; +pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; +pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; +pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2147774200; +pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 536917570; +pub const VHOST_GET_FEATURES: u32 = 1074310912; +pub const LIRC_GET_REC_RESOLUTION: u32 = 1074030855; +pub const PACKET_CTRL_CMD: u32 = 3222820865; +pub const LIRC_SET_TRANSMITTER_MASK: u32 = 2147772695; +pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; +pub const JSIOCGCORR: u32 = 1076128290; +pub const VIDIOC_G_FMT: u32 = 3234616836; +pub const RTC_EPOCH_SET: u32 = 2147774478; +pub const CAPI_GET_PROFILE: u32 = 3225436937; +pub const ATM_GETLOOP: u32 = 2148294994; +pub const SCIF_LISTEN: u32 = 2147775234; +pub const NBD_CLEAR_QUE: u32 = 536914693; +pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; +pub const LIRC_GET_LENGTH: u32 = 1074030863; +pub const I8K_SET_FAN: u32 = 3221514631; +pub const FDSETMAXERRS: u32 = 2148794956; +pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 1077958144; +pub const SNAPSHOT_SET_SWAP_AREA: u32 = 2148283149; +pub const LIRC_GET_REC_TIMEOUT: u32 = 1074030884; +pub const EVIOCRMFF: u32 = 2147763585; +pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; +pub const PPRDATA: u32 = 1073836165; +pub const RIO_MPORT_GET_PROPERTIES: u32 = 1076915460; +pub const TUNSETVNETHDRSZ: u32 = 2147767512; +pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; +pub const GSMIOC_GETCONF: u32 = 1078740736; +pub const LIRC_GET_SEND_MODE: u32 = 1074030849; +pub const PPPIOCSACTIVE: u32 = 2148037702; +pub const SIOCGSTAMPNS_NEW: u32 = 1074825479; +pub const IPMICTL_RECEIVE_MSG: u32 = 3222825228; +pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 2147772693; +pub const UI_END_FF_ERASE: u32 = 2148292043; +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 = 536914698; +pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 536886124; +pub const REISERFS_IOC_UNPACK: u32 = 2147798273; +pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 2147754759; +pub const RIO_SET_EVENT_MASK: u32 = 2147773709; +pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 1074279188; +pub const VDUSE_VQ_INJECT_IRQ: u32 = 2147778839; +pub const I2OPASSTHRU: u32 = 1074293004; +pub const IOC_OPAL_SET_PW: u32 = 2183164128; +pub const FSI_SCOM_READ: u32 = 3223352065; +pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; +pub const VIDIOC_QBUF: u32 = 3225703951; +pub const VIDIOC_S_TUNER: u32 = 2153010718; +pub const TUNGETVNETHDRSZ: u32 = 1074025687; +pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; +pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; +pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; +pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; +pub const TEE_IOC_VERSION: u32 = 1074570240; +pub const VIDIOC_LOG_STATUS: u32 = 536892998; +pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1075603733; +pub const VHOST_SET_LOG_FD: u32 = 2147790599; +pub const SCIF_SEND: u32 = 3222827782; +pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; +pub const NS_ADJBUFLEV: u32 = 536895843; +pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; +pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; +pub const PHN_GETREG: u32 = 3221778437; +pub const I2OSWDL: u32 = 3223087365; +pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 536892931; +pub const JSIOCGBUTTONS: u32 = 1073834514; +pub const VFIO_IOMMU_ENABLE: u32 = 536886131; +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 = 2147790711; +pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; +pub const VIDIOC_S_CROP: u32 = 2148816444; +pub const WDIOC_GETTEMP: u32 = 1074026243; +pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 2165862628; +pub const UI_SET_LEDBIT: u32 = 2147767657; +pub const NBD_SET_SOCK: u32 = 536914688; +pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 2415957055; +pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; +pub const I2OSWUL: u32 = 3223087366; +pub const IOCTL_MEI_NOTIFY_GET: u32 = 1074022403; +pub const FDFMTTRK: u32 = 2148270664; +pub const MMTIMER_GETBITS: u32 = 536898820; +pub const VIDIOC_ENUMSTD: u32 = 3225966105; +pub const VHOST_GET_VRING_BASE: u32 = 3221794578; +pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; +pub const ATMARP_SETENTRY: u32 = 536895971; +pub const CCISS_REVALIDVOLS: u32 = 536887818; +pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; +pub const RTC_VL_READ: u32 = 1074032659; +pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; +pub const RIO_DEV_DEL: u32 = 2149608728; +pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; +pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; +pub const SONYPI_IOCSFAN: u32 = 2147579403; +pub const SPIOCSTYPE: u32 = 2147774721; +pub const IPMICTL_REGISTER_FOR_CMD: u32 = 1073899790; +pub const I8K_GET_FAN: u32 = 3221514630; +pub const TUNGETVNETBE: u32 = 1074025695; +pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; +pub const UI_END_FF_UPLOAD: u32 = 2153797065; +pub const TOSH_SMM: u32 = 3222828176; +pub const SONYPI_IOCGBAT2REM: u32 = 1073903109; +pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 1074328849; +pub const PPPIOCSNPMODE: u32 = 2148037707; +pub const USBDEVFS_CONTROL: u32 = 3222295808; +pub const HIDIOCGUSAGE: u32 = 3222816779; +pub const TUNSETTXFILTER: u32 = 2147767505; +pub const TUNGETVNETLE: u32 = 1074025693; +pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; +pub const MGSL_IOCGXSYNC: u32 = 536898836; +pub const HIDIOCGFIELDINFO: u32 = 3224913930; +pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; +pub const I2OVALIDATE: u32 = 1074030856; +pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; +pub const NILFS_IOCTL_GET_CPINFO: u32 = 1075342978; +pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; +pub const VFAT_IOCTL_READDIR_SHORT: u32 = 1108898306; +pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; +pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 1074328851; +pub const FDGETDRVSTAT: u32 = 1077150226; +pub const SYNC_IOC_MERGE: u32 = 3224387075; +pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; +pub const PPPIOCBRIDGECHAN: u32 = 2147775541; +pub const LIRC_SET_SEND_MODE: u32 = 2147772689; +pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 2148560139; +pub const ATM_GETTYPE: u32 = 2148295044; +pub const PHN_GETREGS: u32 = 3223875591; +pub const FDSETEMSGTRESH: u32 = 536871498; +pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; +pub const MGSL_IOCWAITEVENT: u32 = 3221515528; +pub const CAPI_INSTALLED: u32 = 1073890082; +pub const EVIOCGMASK: u32 = 1074808210; +pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; +pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; +pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; +pub const GSMIOC_GETFIRST: u32 = 1074022148; +pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; +pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; +pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; +pub const CAPI_GET_SERIAL: u32 = 3221504776; +pub const FDSETDRVPRM: u32 = 2153251472; +pub const IOC_OPAL_SAVE: u32 = 2165862620; +pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; +pub const TUNSETIFINDEX: u32 = 2147767514; +pub const CCISS_SETINTINFO: u32 = 2148024835; +pub const RTC_VL_CLR: u32 = 536899604; +pub const VIDIOC_REQBUFS: u32 = 3222558216; +pub const USBDEVFS_REAPURBNDELAY32: u32 = 2147767565; +pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; +pub const USBDEVFS_SETCONFIGURATION: u32 = 1074025733; +pub const CCISS_GETNODENAME: u32 = 1074807300; +pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; +pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; +pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 536886129; +pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 2150114066; +pub const LPSETTIMEOUT_NEW: u32 = 2148533775; +pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; +pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; +pub const FDRAWCMD: u32 = 536871512; +pub const SCIF_UNREG: u32 = 3222303497; +pub const PPPIOCGIDLE64: u32 = 1074820159; +pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; +pub const VIDIOC_CROPCAP: u32 = 3224131130; +pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; +pub const PHN_SET_REGS: u32 = 2147774467; +pub const ATMLEC_DATA: u32 = 536895953; +pub const PPPOEIOCDFWD: u32 = 536916225; +pub const VIDIOC_S_SELECTION: u32 = 3225441887; +pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; +pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; +pub const VIDIOC_S_CTRL: u32 = 3221771804; +pub const ZATM_SETPOOL: u32 = 2148295011; +pub const MTIOCPOS: u32 = 1074031875; +pub const PMU_IOC_SLEEP: u32 = 536887808; +pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; +pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; +pub const NILFS_IOCTL_GET_SUSTAT: u32 = 1076915845; +pub const VIDIOC_QUERYCAP: u32 = 1080579584; +pub const HPET_INFO: u32 = 1074554883; +pub const VIDIOC_AM437X_CCDC_CFG: u32 = 2147768001; +pub const DM_LIST_DEVICES: u32 = 3241737474; +pub const TUNSETOWNER: u32 = 2147767500; +pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; +pub const RNDADDENTROPY: u32 = 2148028931; +pub const USBDEVFS_RESET: u32 = 536892692; +pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 2415957006; +pub const USBDEVFS_FORBID_SUSPEND: u32 = 536892705; +pub const FDGETDRVTYP: u32 = 1074790927; +pub const PPWCONTROL: u32 = 2147577988; +pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; +pub const KCOV_DISABLE: u32 = 536896357; +pub const IOC_OPAL_ACTIVATE_LSP: u32 = 2165862623; +pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 1074835320; +pub const PPPIOCSPASS: u32 = 2148037703; +pub const RIO_CM_CHAN_CONNECT: u32 = 2148033288; +pub const I2OSWDEL: u32 = 3223087367; +pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 1074554387; +pub const IOC_OPAL_MBR_DONE: u32 = 2165338345; +pub const PPPIOCSMAXCID: u32 = 2147775569; +pub const PPSETPHASE: u32 = 2147774612; +pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 2148052853; +pub const USBDEVFS_GET_SPEED: u32 = 536892703; +pub const SONET_GETFRAMING: u32 = 1074028822; +pub const VIDIOC_QUERYBUF: u32 = 3225703945; +pub const VIDIOC_S_EDID: u32 = 3223606825; +pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 2149094441; +pub const PPS_GETCAP: u32 = 1074032803; +pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 536883983; +pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 2147772697; +pub const SCIF_GET_NODEIDS: u32 = 3222827790; +pub const NBD_DISCONNECT: u32 = 536914696; +pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; +pub const VFIO_IOMMU_DISABLE: u32 = 536886132; +pub const SNAPSHOT_CREATE_IMAGE: u32 = 2147758865; +pub const SNAPSHOT_POWER_OFF: u32 = 536883984; +pub const APM_IOC_STANDBY: u32 = 536887553; +pub const PPPIOCGUNIT: u32 = 1074033750; +pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 2147783526; +pub const SCIF_BIND: u32 = 3221779201; +pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 536893280; +pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 2148560512; +pub const IOC_OPAL_LOCK_UNLOCK: u32 = 2165862621; +pub const F2FS_IOC_SET_PIN_FILE: u32 = 2147808525; +pub const PPPIOCGRASYNCMAP: u32 = 1074033749; +pub const MMTIMER_MMAPAVAIL: u32 = 536898822; +pub const I2OPASSTHRU32: u32 = 1074293004; +pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 2147792513; +pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 1082414691; +pub const UI_SET_SNDBIT: u32 = 2147767658; +pub const VIDIOC_G_AUDOUT: u32 = 1077171761; +pub const RTC_PLL_SET: u32 = 2149347346; +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 = 2147790660; +pub const VHOST_SET_VRING_ADDR: u32 = 2150149905; +pub const VDUSE_CREATE_DEV: u32 = 2169536770; +pub const FDFLUSH: u32 = 536871499; +pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; +pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 2148054660; +pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; +pub const SCIF_CONNECT: u32 = 3221779203; +pub const BLKREPORTZONE: u32 = 3222278786; +pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; +pub const ATM_ADDPARTY: u32 = 2148033012; +pub const FDSETPRM: u32 = 2149319234; +pub const ATM_GETSTATZ: u32 = 2148294993; +pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; +pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 1106809916; +pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 2149602907; +pub const SEV_ISSUE_CMD: u32 = 3222295296; +pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; +pub const PCITEST_COPY: u32 = 2147766278; +pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; +pub const CHIOGPICKER: u32 = 1074029316; +pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; +pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; +pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2147755014; +pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; +pub const CHIOGVPARAMS: u32 = 1081107219; +pub const PTP_PEROUT_REQUEST: u32 = 2151169283; +pub const FSI_SCOM_CHECK: u32 = 1074033408; +pub const RTC_IRQP_READ: u32 = 1074032651; +pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 1075342597; +pub const HIDIOCGRDESCSIZE: u32 = 1074022401; +pub const UI_GET_VERSION: u32 = 1074025773; +pub const NILFS_IOCTL_GET_CPSTAT: u32 = 1075342979; +pub const CCISS_GETBUSTYPES: u32 = 1074020871; +pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 536886135; +pub const VIDIOC_EXPBUF: u32 = 3225441808; +pub const UI_SET_RELBIT: u32 = 2147767654; +pub const VFIO_SET_IOMMU: u32 = 536886118; +pub const VIDIOC_S_MODULATOR: u32 = 2151962167; +pub const TUNGETFILTER: u32 = 1074287835; +pub const CCISS_SETNODENAME: u32 = 2148549125; +pub const FBIO_GETCONTROL2: u32 = 1074022025; +pub const TUNSETDEBUG: u32 = 2147767497; +pub const DM_DEV_REMOVE: u32 = 3241737476; +pub const HIDIOCSUSAGES: u32 = 2417772564; +pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; +pub const FBIOGET_VBLANK: u32 = 1075856914; +pub const ATM_GETSTAT: u32 = 2148294992; +pub const VIDIOC_G_JPEGCOMP: u32 = 1082938941; +pub const TUNATTACHFILTER: u32 = 2148029653; +pub const UI_SET_ABSBIT: u32 = 2147767655; +pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; +pub const USBDEVFS_REAPURB32: u32 = 2147767564; +pub const BTRFS_IOC_TRANS_END: u32 = 536908807; +pub const CAPI_REGISTER: u32 = 2148287233; +pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; +pub const USBDEVFS_DISCARDURB: u32 = 536892683; +pub const HE_GET_REG: u32 = 2148295008; +pub const ATM_SETLOOP: u32 = 2148294995; +pub const ATMSIGD_CTRL: u32 = 536895984; +pub const CIOC_KERNEL_VERSION: u32 = 3221512970; +pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; +pub const SNAPSHOT_UNFREEZE: u32 = 536883970; +pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 536933635; +pub const PMU_IOC_HAS_ADB: u32 = 1074020868; +pub const I2OGETIOPS: u32 = 1075865856; +pub const VIDIOC_S_FBUF: u32 = 2150389259; +pub const PPRCONTROL: u32 = 1073836163; +pub const CHIOSPICKER: u32 = 2147771141; +pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 536886133; +pub const TUNGETSNDBUF: u32 = 1074025683; +pub const GSMIOC_SETCONF: u32 = 2152482561; +pub const IOC_PR_PREEMPT: u32 = 2149085387; +pub const KCOV_INIT_TRACE: u32 = 1074029313; +pub const SONYPI_IOCGBAT1CAP: u32 = 1073903106; +pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 1074812736; +pub const MTIOCTOP: u32 = 2148035841; +pub const VHOST_VDPA_SET_STATUS: u32 = 2147594098; +pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 2147790659; +pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 536886133; +pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; +pub const PPPIOCGMRU: u32 = 1074033747; +pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; +pub const PPPIOCGFLAGS: u32 = 1074033754; +pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; +pub const ATM_DELLECSADDR: u32 = 2148295055; +pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; +pub const PPPIOCGIDLE32: u32 = 1074295871; +pub const VFIO_DEVICE_RESET: u32 = 536886127; +pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; +pub const WDIOC_GETSTATUS: u32 = 1074026241; +pub const BTRFS_IOC_SET_FEATURES: u32 = 2150667321; +pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; +pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; +pub const PCITEST_READ: u32 = 2147766277; +pub const VFIO_GROUP_GET_STATUS: u32 = 536886119; +pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 1074032379; +pub const USBDEVFS_CLEAR_HALT: u32 = 1074025749; +pub const VIDIOC_DECODER_CMD: u32 = 3225966176; +pub const VIDIOC_G_AUDIO: u32 = 1077171745; +pub const CCISS_RESCANDISK: u32 = 536887824; +pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 2148560140; +pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 2165338343; +pub const USBDEVFS_REAPURB: u32 = 2147767564; +pub const DFL_FPGA_CHECK_EXTENSION: u32 = 536917505; +pub const AUTOFS_IOC_PROTOVER: u32 = 1074041699; +pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; +pub const BTRFS_IOC_GET_FEATURES: u32 = 1075352633; +pub const PCITEST_MSIX: u32 = 2147766279; +pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 2150667280; +pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; +pub const DM_GET_TARGET_VERSION: u32 = 3241737489; +pub const PPPIOCGIDLE: u32 = 1074295871; +pub const NVRAM_SETCKS: u32 = 536899649; +pub const WDIOC_GETSUPPORT: u32 = 1076385536; +pub const GSMIOC_ENABLE_NET: u32 = 2150909698; +pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 1078244353; +pub const NE_ADD_VCPU: u32 = 3221532193; +pub const EVIOCSKEYCODE_V2: u32 = 2150122756; +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 = 2149084422; +pub const I2OEVTREG: u32 = 2148296970; +pub const I2OPARMGET: u32 = 3222825220; +pub const EVIOCGID: u32 = 1074283778; +pub const BTRFS_IOC_QGROUP_CREATE: u32 = 2148570154; +pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; +pub const VIDIOC_S_PARM: u32 = 3234616854; +pub const TUNSETSTEERINGEBPF: u32 = 1074025696; +pub const ATM_GETNAMES: u32 = 2148032899; +pub const VIDIOC_QUERYMENU: u32 = 3224131109; +pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; +pub const I2OLCTGET: u32 = 3222038786; +pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; +pub const NS_SETBUFLEV: u32 = 2148295010; +pub const BLKCLOSEZONE: u32 = 2148536967; +pub const SONET_GETFRSENSE: u32 = 1074159895; +pub const UI_SET_EVBIT: u32 = 2147767652; +pub const DM_LIST_VERSIONS: u32 = 3241737485; +pub const HIDIOCGSTRING: u32 = 1090799620; +pub const PPPIOCATTCHAN: u32 = 2147775544; +pub const VDUSE_DEV_SET_CONFIG: u32 = 2148040978; +pub const TUNGETFEATURES: u32 = 1074025679; +pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 536886121; +pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 1074030865; +pub const CCISS_REGNEWDISK: u32 = 2147762701; +pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 1082414691; +pub const PHN_SETREGS: u32 = 2150133768; +pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 1074033168; +pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; +pub const TUNGETIFF: u32 = 1074025682; +pub const PTP_CLOCK_GETCAPS2: u32 = 1079000330; +pub const BTRFS_IOC_RESIZE: u32 = 2415956995; +pub const VHOST_SET_VRING_ENDIAN: u32 = 2148052755; +pub const PPS_KC_BIND: u32 = 2147774629; +pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 536933639; +pub const UI_SET_FFBIT: u32 = 2147767659; +pub const IPMICTL_GET_MY_LUN_CMD: u32 = 1074030868; +pub const CEC_ADAP_G_PHYS_ADDR: u32 = 1073897729; +pub const CEC_G_MODE: u32 = 1074028808; +pub const USBDEVFS_RESETEP: u32 = 1074025731; +pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; +pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; +pub const MGSL_IOCSXCTRL: u32 = 536898837; +pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; +pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; +pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; +pub const ISST_IF_GET_PLATFORM_INFO: u32 = 1074068992; +pub const SCIF_FENCE_MARK: u32 = 3222303503; +pub const USBDEVFS_RELEASE_PORT: u32 = 1074025753; +pub const VFIO_CHECK_EXTENSION: u32 = 536886117; +pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 1076925483; +pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; +pub const UI_SET_PHYS: u32 = 2147767660; +pub const FDWERRORGET: u32 = 1075315223; +pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; +pub const MGSL_IOCGSTATS: u32 = 536898823; +pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; +pub const SIOCGSTAMP_NEW: u32 = 1074825478; +pub const RTC_WKALM_RD: u32 = 1076391952; +pub const PHN_GET_REG: u32 = 3221516288; +pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; +pub const PHN_NOT_OH: u32 = 536899588; +pub const PPGETMODES: u32 = 1074032791; +pub const CHIOGPARAMS: u32 = 1075077894; +pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; +pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; +pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; +pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; +pub const MGSL_IOCWAITGPIO: u32 = 3222301970; +pub const PMU_IOC_CAN_SLEEP: u32 = 1074020869; +pub const KCOV_ENABLE: u32 = 536896356; +pub const BTRFS_IOC_CLONE: u32 = 2147783689; +pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; +pub const AGPIOC_ALLOCATE: u32 = 3221504262; +pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; +pub const MGSL_IOCTXABORT: u32 = 536898822; +pub const MGSL_IOCSGPIO: u32 = 2148560144; +pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; +pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; +pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; +pub const RTC_UIE_OFF: u32 = 536899588; +pub const BT_BMC_IOCTL_SMS_ATN: u32 = 536916224; +pub const NVME_IOCTL_ID: u32 = 536890944; +pub const NE_START_ENCLAVE: u32 = 3222318628; +pub const VIDIOC_STREAMON: u32 = 2147767826; +pub const FDPOLLDRVSTAT: u32 = 1077150227; +pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; +pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; +pub const VIDIOC_SUBDEV_S_STD: u32 = 2148029976; +pub const WDIOC_GETTIMELEFT: u32 = 1074026250; +pub const ATM_GETLINKRATE: u32 = 2148295041; +pub const RTC_WKALM_SET: u32 = 2150133775; +pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; +pub const ATMARP_ENCAP: u32 = 536895973; +pub const CAPI_GET_FLAGS: u32 = 1074021155; +pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; +pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; +pub const NS_GET_OWNER_UID: u32 = 536917764; +pub const VIDIOC_OVERLAY: u32 = 2147767822; +pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; +pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; +pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; +pub const ATM_GETADDR: u32 = 2148295046; +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 = 536883979; +pub const JSIOCSAXMAP: u32 = 2151705137; +pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 2147677462; +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 = 536886128; +pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; +pub const MMTIMER_GETOFFSET: u32 = 536898816; +pub const RIO_CM_CHAN_LISTEN: u32 = 2147640070; +pub const ATM_SETSC: u32 = 2147770865; +pub const F2FS_IOC_SHUTDOWN: u32 = 1074026621; +pub const NVME_IOCTL_RESCAN: u32 = 536890950; +pub const BLKOPENZONE: u32 = 2148536966; +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 = 536895968; +pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; +pub const HIDIOCGVERSION: u32 = 1074022401; +pub const VIDIOC_S_INPUT: u32 = 3221509671; +pub const VIDIOC_G_CROP: u32 = 3222558267; +pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 2147772707; +pub const EVIOCGEFFECTS: u32 = 1074021764; +pub const UVCIOC_CTRL_QUERY: u32 = 3222041889; +pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; +pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; +pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; +pub const USBDEVFS_GETDRIVER: u32 = 2164544776; +pub const IDT77105_GETSTAT: u32 = 2148294962; +pub const HIDIOCINITREPORT: u32 = 536889349; +pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; +pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; +pub const RNDGETENTCNT: u32 = 1074024960; +pub const PPPIOCNEWUNIT: u32 = 3221517374; +pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; +pub const FDRESET: u32 = 536871508; +pub const IOC_PR_REGISTER: u32 = 2149085384; +pub const HIDIOCSREPORT: u32 = 2148288520; +pub const TEE_IOC_OPEN_SESSION: u32 = 1074832386; +pub const TEE_IOC_SUPPL_RECV: u32 = 1074832390; +pub const BTRFS_IOC_BALANCE_CTL: u32 = 2147783713; +pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; +pub const HIDIOCGRAWINFO: u32 = 1074284547; +pub const PPPIOCSCOMPRESS: u32 = 2148299853; +pub const USBDEVFS_CONNECTINFO: u32 = 2148029713; +pub const BLKRESETZONE: u32 = 2148536963; +pub const CHIOINITELEM: u32 = 536896273; +pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 2148560524; +pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; +pub const RIO_MPORT_MAINT_HDID_SET: u32 = 2147642625; +pub const PPGETPHASE: u32 = 1074032793; +pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 1091065115; +pub const FDMSGON: u32 = 536871493; +pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; +pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; +pub const MEDIA_REQUEST_IOC_REINIT: u32 = 536902785; +pub const IOC_OPAL_ERASE_LR: u32 = 2165338342; +pub const FDFMTBEG: u32 = 536871495; +pub const RNDRESEEDCRNG: u32 = 536891911; +pub const ISST_IF_GET_PHY_ID: u32 = 3221552641; +pub const TUNSETNOCSUM: u32 = 2147767496; +pub const SONET_GETSTAT: u32 = 1076125968; +pub const TFD_IOC_SET_TICKS: u32 = 2148029440; +pub const PPDATADIR: u32 = 2147774608; +pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 2165338341; +pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; +pub const RIO_CM_CHAN_SEND: u32 = 2148557577; +pub const PPWCTLONIRQ: u32 = 2147578002; +pub const SONYPI_IOCGBRT: u32 = 1073837568; +pub const IOC_PR_RELEASE: u32 = 2148561098; +pub const PPCLRIRQ: u32 = 1074032787; +pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; +pub const MGSL_IOCSXSYNC: u32 = 536898835; +pub const HPET_IE_OFF: u32 = 536897538; +pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; +pub const SONET_SETFRAMING: u32 = 2147770645; +pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 2147755017; +pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; +pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; +pub const BLKFINISHZONE: u32 = 2148536968; +pub const EVIOCREVOKE: u32 = 2147763601; +pub const VFIO_DEVICE_FEATURE: u32 = 536886133; +pub const CCISS_GETPCIINFO: u32 = 1074283009; +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 = 2147767827; +pub const VDUSE_DESTROY_DEV: u32 = 2164293891; +pub const FDGETFDCSTAT: u32 = 1075839509; +pub const VIDIOC_S_PRIORITY: u32 = 2147767876; +pub const SNAPSHOT_FREEZE: u32 = 536883969; +pub const VIDIOC_ENUMINPUT: u32 = 3226490394; +pub const ZATM_GETPOOLZ: u32 = 2148295010; +pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; +pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; +pub const VIDIOC_G_STD: u32 = 1074288151; +pub const USBDEVFS_ALLOW_SUSPEND: u32 = 536892706; +pub const SONET_GETSTATZ: u32 = 1076125969; +pub const SCIF_ACCEPTREG: u32 = 3221779205; +pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; +pub const PPPIOCSRASYNCMAP: u32 = 2147775572; +pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; +pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; +pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; +pub const ATMLEC_CTRL: u32 = 536895952; +pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074032377; +pub const DM_DEV_CREATE: u32 = 3241737475; +pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; +pub const VIDIOC_G_CTRL: u32 = 3221771803; +pub const NBD_CLEAR_SOCK: u32 = 536914692; +pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 536886130; +pub const WDIOC_KEEPALIVE: u32 = 1074026245; +pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; +pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; +pub const PCITEST_BAR: u32 = 536891393; +pub const MGSL_IOCGGPIO: u32 = 1074818321; +pub const EVIOCSREP: u32 = 2148025603; +pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; +pub const HPET_DPI: u32 = 536897541; +pub const VDUSE_VQ_SETUP_KICKFD: u32 = 2148040982; +pub const ND_IOCTL_CALL: u32 = 3225439754; +pub const HIDIOCGDEVINFO: u32 = 1075595267; +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 = 1074026051; +pub const ATM_NEWBACKENDIF: u32 = 2147639795; +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 = 2150651474; +pub const DM_TABLE_LOAD: u32 = 3241737481; +pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; +pub const VIDIOC_G_OUTPUT: u32 = 1074026030; +pub const ATM_DROPPARTY: u32 = 2147770869; +pub const CHIOGELEM: u32 = 2154586896; +pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; +pub const EVIOCSKEYCODE: u32 = 2148025604; +pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; +pub const TUNSETLINK: u32 = 2147767501; +pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; +pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 536908828; +pub const PPS_SETPARAMS: u32 = 2147774626; +pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; +pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; +pub const WDIOC_SETTIMEOUT: u32 = 3221509894; +pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; +pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; +pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; +pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; +pub const VIDIOC_G_EDID: u32 = 3223606824; +pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 2149119243; +pub const RIO_MAP_INBOUND: u32 = 3223874833; +pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 2164814046; +pub const USBDEVFS_CLAIM_PORT: u32 = 1074025752; +pub const VIDIOC_S_AUDIO: u32 = 2150913570; +pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 1074816539; +pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 2150114067; +pub const BTRFS_IOC_SNAP_DESTROY: u32 = 2415957007; +pub const SNAPSHOT_FREE: u32 = 536883973; +pub const I8K_GET_SPEED: u32 = 3221514629; +pub const HIDIOCGREPORT: u32 = 2148288519; +pub const HPET_EPI: u32 = 536897540; +pub const JSIOCSCORR: u32 = 2149870113; +pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; +pub const RIO_MAP_OUTBOUND: u32 = 3223874831; +pub const ATM_SETESI: u32 = 2148295052; +pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; +pub const ATM_DELADDR: u32 = 2148295049; +pub const PPFCONTROL: u32 = 2147643534; +pub const SONYPI_IOCGFAN: u32 = 1073837578; +pub const RTC_IRQP_SET: u32 = 2147774476; +pub const PCITEST_WRITE: u32 = 2147766276; +pub const PPCLAIM: u32 = 536899723; +pub const VIDIOC_S_JPEGCOMP: u32 = 2156680766; +pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 1073899791; +pub const VHOST_SET_FEATURES: u32 = 2148052736; +pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; +pub const VIDIOC_DQBUF: u32 = 3225703953; +pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; +pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; +pub const ATMLEC_MCAST: u32 = 536895954; +pub const MMTIMER_GETFREQ: u32 = 1074031874; +pub const VIDIOC_G_SELECTION: u32 = 3225441886; +pub const RTC_ALM_SET: u32 = 2149871623; +pub const PPPOEIOCSFWD: u32 = 2147791104; +pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; +pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; +pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; +pub const FDFMTEND: u32 = 536871497; +pub const DMA_BUF_SET_NAME: u32 = 2147770881; +pub const UI_BEGIN_FF_UPLOAD: u32 = 3227538888; +pub const RTC_UIE_ON: u32 = 536899587; +pub const PPRELEASE: u32 = 536899724; +pub const VFIO_IOMMU_UNMAP_DMA: u32 = 536886130; +pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3225179842; +pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; +pub const VFAT_IOCTL_READDIR_BOTH: u32 = 1108898305; +pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; +pub const VHOST_SET_VRING_KICK: u32 = 2148052768; +pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 2415957016; +pub const BTRFS_IOC_SNAP_CREATE: u32 = 2415956993; +pub const SONYPI_IOCGBAT2CAP: u32 = 1073903108; +pub const PPNEGOT: u32 = 2147774609; +pub const NBD_PRINT_DEBUG: u32 = 536914694; +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 = 1140888607; +pub const VIDIOC_ENUM_FMT: u32 = 3225441794; +pub const VIDIOC_G_INPUT: u32 = 1074026022; +pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; +pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 1074050691; +pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; +pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 2151715884; +pub const MMTIMER_GETCOUNTER: u32 = 1074031881; +pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; +pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; +pub const RIO_CM_CHAN_BIND: u32 = 2148033285; +pub const HIDIOCGRDESC: u32 = 1342457858; +pub const MGSL_IOCGIF: u32 = 536898827; +pub const VIDIOC_S_OUTPUT: u32 = 3221509679; +pub const HIDIOCGREPORTINFO: u32 = 3222030345; +pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; +pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; +pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 2149884501; +pub const BLKGETDISKSEQ: u32 = 1074270848; +pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; +pub const ACRN_IOCTL_DESTROY_VM: u32 = 536912401; +pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 2148835923; +pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 536912434; +pub const ACRN_IOCTL_IRQFD: u32 = 2149098097; +pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; +pub const ACRN_IOCTL_INJECT_MSI: u32 = 2148573731; +pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 536912435; +pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 2148835924; +pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 2148049457; +pub const ACRN_IOCTL_SET_IRQLINE: u32 = 2148049445; +pub const ACRN_IOCTL_START_VM: u32 = 536912402; +pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 2166923798; +pub const ACRN_IOCTL_SET_MEMSEG: u32 = 2149622337; +pub const ACRN_IOCTL_PAUSE_VM: u32 = 536912403; +pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 536912437; +pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 2149622338; +pub const ACRN_IOCTL_IOEVENTFD: u32 = 2149622384; +pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; +pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; +pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; +pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2147787300; +pub const TCGETS2: u32 = 1076655123; +pub const TCSETS2: u32 = 2150396948; +pub const TCSETSF2: u32 = 2150396950; +pub const TCSETSW2: u32 = 2150396949; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..3260bd820b58158913cebf6551d24d451bc5f89f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/landlock.rs @@ -0,0 +1,108 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..d6181eaf36876063c9f0ac73657e584ec4ece280 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/loop_device.rs @@ -0,0 +1,138 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/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/powerpc/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/powerpc/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..d3cb60285229ab3956d86537be3900008e05c6cd --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/net.rs @@ -0,0 +1,3489 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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 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 SO_RCVLOWAT: u32 = 16; +pub const SO_SNDLOWAT: u32 = 17; +pub const SO_RCVTIMEO_OLD: u32 = 18; +pub const SO_SNDTIMEO_OLD: u32 = 19; +pub const SO_PASSCRED: u32 = 20; +pub const SO_PEERCRED: u32 = 21; +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_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 = 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/powerpc/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..28e9c2b52393501ddc9363cb0293e114a0aa60f0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/netlink.rs @@ -0,0 +1,5465 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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 __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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..ff2292b27751ca1acfe19c6fff50f205dbb2a94a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/prctl.rs @@ -0,0 +1,275 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..fbf1a6809a1390d8db5589032d308152b3626c0e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/ptrace.rs @@ -0,0 +1,932 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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 gpr: [crate::ctypes::c_ulong; 32usize], +pub nip: crate::ctypes::c_ulong, +pub msr: crate::ctypes::c_ulong, +pub orig_gpr3: crate::ctypes::c_ulong, +pub ctr: crate::ctypes::c_ulong, +pub link: crate::ctypes::c_ulong, +pub xer: crate::ctypes::c_ulong, +pub ccr: crate::ctypes::c_ulong, +pub mq: crate::ctypes::c_ulong, +pub trap: crate::ctypes::c_ulong, +pub dar: crate::ctypes::c_ulong, +pub dsisr: crate::ctypes::c_ulong, +pub result: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ppc_debug_info { +pub version: __u32, +pub num_instruction_bps: __u32, +pub num_data_bps: __u32, +pub num_condition_regs: __u32, +pub data_bp_alignment: __u32, +pub sizeof_condition: __u32, +pub features: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ppc_hw_breakpoint { +pub version: __u32, +pub trigger_type: __u32, +pub addr_mode: __u32, +pub condition_mode: __u32, +pub addr: __u64, +pub addr2: __u64, +pub condition_value: __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 PT_R0: u32 = 0; +pub const PT_R1: u32 = 1; +pub const PT_R2: u32 = 2; +pub const PT_R3: u32 = 3; +pub const PT_R4: u32 = 4; +pub const PT_R5: u32 = 5; +pub const PT_R6: u32 = 6; +pub const PT_R7: u32 = 7; +pub const PT_R8: u32 = 8; +pub const PT_R9: u32 = 9; +pub const PT_R10: u32 = 10; +pub const PT_R11: u32 = 11; +pub const PT_R12: u32 = 12; +pub const PT_R13: u32 = 13; +pub const PT_R14: u32 = 14; +pub const PT_R15: u32 = 15; +pub const PT_R16: u32 = 16; +pub const PT_R17: u32 = 17; +pub const PT_R18: u32 = 18; +pub const PT_R19: u32 = 19; +pub const PT_R20: u32 = 20; +pub const PT_R21: u32 = 21; +pub const PT_R22: u32 = 22; +pub const PT_R23: u32 = 23; +pub const PT_R24: u32 = 24; +pub const PT_R25: u32 = 25; +pub const PT_R26: u32 = 26; +pub const PT_R27: u32 = 27; +pub const PT_R28: u32 = 28; +pub const PT_R29: u32 = 29; +pub const PT_R30: u32 = 30; +pub const PT_R31: u32 = 31; +pub const PT_NIP: u32 = 32; +pub const PT_MSR: u32 = 33; +pub const PT_ORIG_R3: u32 = 34; +pub const PT_CTR: u32 = 35; +pub const PT_LNK: u32 = 36; +pub const PT_XER: u32 = 37; +pub const PT_CCR: u32 = 38; +pub const PT_MQ: u32 = 39; +pub const PT_TRAP: u32 = 40; +pub const PT_DAR: u32 = 41; +pub const PT_DSISR: u32 = 42; +pub const PT_RESULT: u32 = 43; +pub const PT_DSCR: u32 = 44; +pub const PT_REGS_COUNT: u32 = 44; +pub const PT_FPR0: u32 = 48; +pub const PT_FPR31: u32 = 110; +pub const PT_FPSCR: u32 = 113; +pub const PTRACE_GETVRREGS: u32 = 18; +pub const PTRACE_SETVRREGS: u32 = 19; +pub const PTRACE_GETEVRREGS: u32 = 20; +pub const PTRACE_SETEVRREGS: u32 = 21; +pub const PTRACE_GETVSRREGS: u32 = 27; +pub const PTRACE_SETVSRREGS: u32 = 28; +pub const PTRACE_SYSEMU: u32 = 29; +pub const PTRACE_SYSEMU_SINGLESTEP: u32 = 30; +pub const PTRACE_GET_DEBUGREG: u32 = 25; +pub const PTRACE_SET_DEBUGREG: u32 = 26; +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_GETREGS64: u32 = 22; +pub const PTRACE_SETREGS64: u32 = 23; +pub const PPC_PTRACE_PEEKTEXT_3264: u32 = 149; +pub const PPC_PTRACE_PEEKDATA_3264: u32 = 148; +pub const PPC_PTRACE_POKETEXT_3264: u32 = 147; +pub const PPC_PTRACE_POKEDATA_3264: u32 = 146; +pub const PPC_PTRACE_PEEKUSR_3264: u32 = 145; +pub const PPC_PTRACE_POKEUSR_3264: u32 = 144; +pub const PTRACE_SINGLEBLOCK: u32 = 256; +pub const PPC_PTRACE_GETHWDBGINFO: u32 = 137; +pub const PPC_PTRACE_SETHWDEBUG: u32 = 136; +pub const PPC_PTRACE_DELHWDEBUG: u32 = 135; +pub const PPC_DEBUG_FEATURE_INSN_BP_RANGE: u32 = 1; +pub const PPC_DEBUG_FEATURE_INSN_BP_MASK: u32 = 2; +pub const PPC_DEBUG_FEATURE_DATA_BP_RANGE: u32 = 4; +pub const PPC_DEBUG_FEATURE_DATA_BP_MASK: u32 = 8; +pub const PPC_DEBUG_FEATURE_DATA_BP_DAWR: u32 = 16; +pub const PPC_DEBUG_FEATURE_DATA_BP_ARCH_31: u32 = 32; +pub const PPC_BREAKPOINT_TRIGGER_EXECUTE: u32 = 1; +pub const PPC_BREAKPOINT_TRIGGER_READ: u32 = 2; +pub const PPC_BREAKPOINT_TRIGGER_WRITE: u32 = 4; +pub const PPC_BREAKPOINT_TRIGGER_RW: u32 = 6; +pub const PPC_BREAKPOINT_MODE_EXACT: u32 = 0; +pub const PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE: u32 = 1; +pub const PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE: u32 = 2; +pub const PPC_BREAKPOINT_MODE_MASK: u32 = 3; +pub const PPC_BREAKPOINT_CONDITION_MODE: u32 = 3; +pub const PPC_BREAKPOINT_CONDITION_NONE: u32 = 0; +pub const PPC_BREAKPOINT_CONDITION_AND: u32 = 1; +pub const PPC_BREAKPOINT_CONDITION_EXACT: u32 = 1; +pub const PPC_BREAKPOINT_CONDITION_OR: u32 = 2; +pub const PPC_BREAKPOINT_CONDITION_AND_OR: u32 = 3; +pub const PPC_BREAKPOINT_CONDITION_BE_ALL: u32 = 16711680; +pub const PPC_BREAKPOINT_CONDITION_BE_SHIFT: u32 = 16; +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/powerpc/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..863dc97089337a31cac82301aae9c973b11d699d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/system.rs @@ -0,0 +1,106 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..fef2154ffa5a73f734ae0549f97a91cfc2a75b44 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc/xdp.rs @@ -0,0 +1,197 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_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 = 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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc64/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/auxvec.rs new file mode 100644 index 0000000000000000000000000000000000000000..f00be257c6986a863a842115fe2666402e730990 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/auxvec.rs @@ -0,0 +1,44 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const AT_DCACHEBSIZE: u32 = 19; +pub const AT_ICACHEBSIZE: u32 = 20; +pub const AT_UCACHEBSIZE: u32 = 21; +pub const AT_IGNOREPPC: u32 = 22; +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_L1I_CACHESIZE: u32 = 40; +pub const AT_L1I_CACHEGEOMETRY: u32 = 41; +pub const AT_L1D_CACHESIZE: u32 = 42; +pub const AT_L1D_CACHEGEOMETRY: u32 = 43; +pub const AT_L2_CACHESIZE: u32 = 44; +pub const AT_L2_CACHEGEOMETRY: u32 = 45; +pub const AT_L3_CACHESIZE: u32 = 46; +pub const AT_L3_CACHEGEOMETRY: u32 = 47; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 15; +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/powerpc64/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/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/powerpc64/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/powerpc64/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..2f98fd2c2addafea8055af6a43183b8b3a99abf6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/btrfs.rs @@ -0,0 +1,1902 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_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_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_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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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/powerpc64/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..b9b2d143a6a240d36e7bf2f962425dc5eaa3f9ab --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_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_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_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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc64/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/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/powerpc64/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/powerpc64/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..b1d4da0040828c75f410a910a64164c1299fbe83 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/general.rs @@ -0,0 +1,3344 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +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_dev_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_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_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; +pub type termios2 = termios; +#[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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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 old_sigaction { +pub sa_handler: __sighandler_t, +pub sa_mask: old_sigset_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_restorer: __sigrestore_t, +} +#[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_cc: [cc_t; 19usize], +pub c_line: cc_t, +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_cc: [cc_t; 19usize], +pub c_line: cc_t, +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sgttyb { +pub sg_ispeed: crate::ctypes::c_char, +pub sg_ospeed: crate::ctypes::c_char, +pub sg_erase: crate::ctypes::c_char, +pub sg_kill: crate::ctypes::c_char, +pub sg_flags: crate::ctypes::c_short, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tchars { +pub t_intrc: crate::ctypes::c_char, +pub t_quitc: crate::ctypes::c_char, +pub t_startc: crate::ctypes::c_char, +pub t_stopc: crate::ctypes::c_char, +pub t_eofc: crate::ctypes::c_char, +pub t_brkc: crate::ctypes::c_char, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ltchars { +pub t_suspc: crate::ctypes::c_char, +pub t_dsuspc: crate::ctypes::c_char, +pub t_rprntc: crate::ctypes::c_char, +pub t_flushc: crate::ctypes::c_char, +pub t_werasc: crate::ctypes::c_char, +pub t_lnextc: crate::ctypes::c_char, +} +#[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; 10usize], +} +#[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: __kernel_ino_t, +pub st_nlink: crate::ctypes::c_ulong, +pub st_mode: __kernel_mode_t, +pub st_uid: __kernel_uid32_t, +pub st_gid: __kernel_gid32_t, +pub st_rdev: crate::ctypes::c_ulong, +pub st_size: crate::ctypes::c_long, +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, +pub __unused6: crate::ctypes::c_ulong, +} +#[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 __pad2: crate::ctypes::c_ushort, +pub st_size: crate::ctypes::c_longlong, +pub st_blksize: crate::ctypes::c_int, +pub st_blocks: crate::ctypes::c_longlong, +pub st_atime: crate::ctypes::c_int, +pub st_atime_nsec: crate::ctypes::c_uint, +pub st_mtime: crate::ctypes::c_int, +pub st_mtime_nsec: crate::ctypes::c_uint, +pub st_ctime: crate::ctypes::c_int, +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: __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_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_LARGEFILE: u32 = 65536; +pub const O_DIRECT: 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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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 PROT_SAO: u32 = 16; +pub const MAP_RENAME: u32 = 32; +pub const MAP_NORESERVE: u32 = 64; +pub const MAP_LOCKED: u32 = 128; +pub const MAP_GROWSDOWN: u32 = 256; +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 PKEY_DISABLE_EXECUTE: u32 = 4; +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 = 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_RESTORER: u32 = 67108864; +pub const MINSIGSTKSZ: u32 = 8192; +pub const SIGSTKSZ: u32 = 32768; +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 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 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 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 VMIN: u32 = 5; +pub const VEOL: u32 = 6; +pub const VTIME: u32 = 7; +pub const VEOL2: u32 = 8; +pub const VSWTC: u32 = 9; +pub const VWERASE: u32 = 10; +pub const VREPRINT: u32 = 11; +pub const VSUSP: u32 = 12; +pub const VSTART: u32 = 13; +pub const VSTOP: u32 = 14; +pub const VLNEXT: u32 = 15; +pub const VDISCARD: u32 = 16; +pub const IXON: u32 = 512; +pub const IXOFF: u32 = 1024; +pub const IUCLC: u32 = 4096; +pub const IMAXBEL: u32 = 8192; +pub const IUTF8: u32 = 16384; +pub const ONLCR: u32 = 2; +pub const OLCUC: u32 = 4; +pub const NLDLY: u32 = 768; +pub const NL0: u32 = 0; +pub const NL1: u32 = 256; +pub const NL2: u32 = 512; +pub const NL3: u32 = 768; +pub const TABDLY: u32 = 3072; +pub const TAB0: u32 = 0; +pub const TAB1: u32 = 1024; +pub const TAB2: u32 = 2048; +pub const TAB3: u32 = 3072; +pub const XTABS: u32 = 3072; +pub const CRDLY: u32 = 12288; +pub const CR0: u32 = 0; +pub const CR1: u32 = 4096; +pub const CR2: u32 = 8192; +pub const CR3: u32 = 12288; +pub const FFDLY: u32 = 16384; +pub const FF0: u32 = 0; +pub const FF1: u32 = 16384; +pub const BSDLY: u32 = 32768; +pub const BS0: u32 = 0; +pub const BS1: u32 = 32768; +pub const VTDLY: u32 = 65536; +pub const VT0: u32 = 0; +pub const VT1: u32 = 65536; +pub const CBAUD: u32 = 255; +pub const CBAUDEX: u32 = 0; +pub const BOTHER: u32 = 31; +pub const B57600: u32 = 16; +pub const B115200: u32 = 17; +pub const B230400: u32 = 18; +pub const B460800: u32 = 19; +pub const B500000: u32 = 20; +pub const B576000: u32 = 21; +pub const B921600: u32 = 22; +pub const B1000000: u32 = 23; +pub const B1152000: u32 = 24; +pub const B1500000: u32 = 25; +pub const B2000000: u32 = 26; +pub const B2500000: u32 = 27; +pub const B3000000: u32 = 28; +pub const B3500000: u32 = 29; +pub const B4000000: u32 = 30; +pub const CSIZE: u32 = 768; +pub const CS5: u32 = 0; +pub const CS6: u32 = 256; +pub const CS7: u32 = 512; +pub const CS8: u32 = 768; +pub const CSTOPB: u32 = 1024; +pub const CREAD: u32 = 2048; +pub const PARENB: u32 = 4096; +pub const PARODD: u32 = 8192; +pub const HUPCL: u32 = 16384; +pub const CLOCAL: u32 = 32768; +pub const CIBAUD: u32 = 16711680; +pub const ISIG: u32 = 128; +pub const ICANON: u32 = 256; +pub const XCASE: u32 = 16384; +pub const ECHO: u32 = 8; +pub const ECHOE: u32 = 2; +pub const ECHOK: u32 = 4; +pub const ECHONL: u32 = 16; +pub const NOFLSH: u32 = 2147483648; +pub const TOSTOP: u32 = 4194304; +pub const ECHOCTL: u32 = 64; +pub const ECHOPRT: u32 = 32; +pub const ECHOKE: u32 = 1; +pub const FLUSHO: u32 = 8388608; +pub const PENDIN: u32 = 536870912; +pub const IEXTEN: u32 = 1024; +pub const EXTPROC: u32 = 268435456; +pub const TCSANOW: u32 = 0; +pub const TCSADRAIN: u32 = 1; +pub const TCSAFLUSH: u32 = 2; +pub const NCC: u32 = 10; +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 _VMIN: u32 = 5; +pub const _VEOL: u32 = 6; +pub const _VTIME: u32 = 7; +pub const _VEOL2: u32 = 8; +pub const _VSWTC: u32 = 9; +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_waitpid: 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_time: u32 = 13; +pub const __NR_mknod: u32 = 14; +pub const __NR_chmod: u32 = 15; +pub const __NR_lchown: u32 = 16; +pub const __NR_break: u32 = 17; +pub const __NR_oldstat: u32 = 18; +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_setuid: u32 = 23; +pub const __NR_getuid: u32 = 24; +pub const __NR_stime: u32 = 25; +pub const __NR_ptrace: u32 = 26; +pub const __NR_alarm: u32 = 27; +pub const __NR_oldfstat: u32 = 28; +pub const __NR_pause: u32 = 29; +pub const __NR_utime: u32 = 30; +pub const __NR_stty: u32 = 31; +pub const __NR_gtty: u32 = 32; +pub const __NR_access: u32 = 33; +pub const __NR_nice: u32 = 34; +pub const __NR_ftime: u32 = 35; +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_prof: u32 = 44; +pub const __NR_brk: 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_umount2: u32 = 52; +pub const __NR_lock: u32 = 53; +pub const __NR_ioctl: u32 = 54; +pub const __NR_fcntl: u32 = 55; +pub const __NR_mpx: u32 = 56; +pub const __NR_setpgid: u32 = 57; +pub const __NR_ulimit: u32 = 58; +pub const __NR_oldolduname: u32 = 59; +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_sgetmask: u32 = 68; +pub const __NR_ssetmask: u32 = 69; +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_getrlimit: u32 = 76; +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_select: u32 = 82; +pub const __NR_symlink: u32 = 83; +pub const __NR_oldlstat: u32 = 84; +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_fchown: u32 = 95; +pub const __NR_getpriority: u32 = 96; +pub const __NR_setpriority: u32 = 97; +pub const __NR_profil: u32 = 98; +pub const __NR_statfs: u32 = 99; +pub const __NR_fstatfs: u32 = 100; +pub const __NR_ioperm: u32 = 101; +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_olduname: u32 = 109; +pub const __NR_iopl: u32 = 110; +pub const __NR_vhangup: u32 = 111; +pub const __NR_idle: u32 = 112; +pub const __NR_vm86: u32 = 113; +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_modify_ldt: u32 = 123; +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_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_query_module: u32 = 166; +pub const __NR_poll: u32 = 167; +pub const __NR_nfsservctl: u32 = 168; +pub const __NR_setresgid: u32 = 169; +pub const __NR_getresgid: u32 = 170; +pub const __NR_prctl: u32 = 171; +pub const __NR_rt_sigreturn: u32 = 172; +pub const __NR_rt_sigaction: u32 = 173; +pub const __NR_rt_sigprocmask: u32 = 174; +pub const __NR_rt_sigpending: u32 = 175; +pub const __NR_rt_sigtimedwait: u32 = 176; +pub const __NR_rt_sigqueueinfo: u32 = 177; +pub const __NR_rt_sigsuspend: u32 = 178; +pub const __NR_pread64: u32 = 179; +pub const __NR_pwrite64: u32 = 180; +pub const __NR_chown: u32 = 181; +pub const __NR_getcwd: u32 = 182; +pub const __NR_capget: u32 = 183; +pub const __NR_capset: u32 = 184; +pub const __NR_sigaltstack: u32 = 185; +pub const __NR_sendfile: u32 = 186; +pub const __NR_getpmsg: u32 = 187; +pub const __NR_putpmsg: u32 = 188; +pub const __NR_vfork: u32 = 189; +pub const __NR_ugetrlimit: u32 = 190; +pub const __NR_readahead: u32 = 191; +pub const __NR_pciconfig_read: u32 = 198; +pub const __NR_pciconfig_write: u32 = 199; +pub const __NR_pciconfig_iobase: u32 = 200; +pub const __NR_multiplexer: u32 = 201; +pub const __NR_getdents64: u32 = 202; +pub const __NR_pivot_root: u32 = 203; +pub const __NR_madvise: u32 = 205; +pub const __NR_mincore: u32 = 206; +pub const __NR_gettid: u32 = 207; +pub const __NR_tkill: u32 = 208; +pub const __NR_setxattr: u32 = 209; +pub const __NR_lsetxattr: u32 = 210; +pub const __NR_fsetxattr: u32 = 211; +pub const __NR_getxattr: u32 = 212; +pub const __NR_lgetxattr: u32 = 213; +pub const __NR_fgetxattr: u32 = 214; +pub const __NR_listxattr: u32 = 215; +pub const __NR_llistxattr: u32 = 216; +pub const __NR_flistxattr: u32 = 217; +pub const __NR_removexattr: u32 = 218; +pub const __NR_lremovexattr: u32 = 219; +pub const __NR_fremovexattr: u32 = 220; +pub const __NR_futex: u32 = 221; +pub const __NR_sched_setaffinity: u32 = 222; +pub const __NR_sched_getaffinity: u32 = 223; +pub const __NR_tuxcall: u32 = 225; +pub const __NR_io_setup: u32 = 227; +pub const __NR_io_destroy: u32 = 228; +pub const __NR_io_getevents: u32 = 229; +pub const __NR_io_submit: u32 = 230; +pub const __NR_io_cancel: u32 = 231; +pub const __NR_set_tid_address: u32 = 232; +pub const __NR_fadvise64: u32 = 233; +pub const __NR_exit_group: u32 = 234; +pub const __NR_lookup_dcookie: u32 = 235; +pub const __NR_epoll_create: u32 = 236; +pub const __NR_epoll_ctl: u32 = 237; +pub const __NR_epoll_wait: u32 = 238; +pub const __NR_remap_file_pages: u32 = 239; +pub const __NR_timer_create: u32 = 240; +pub const __NR_timer_settime: u32 = 241; +pub const __NR_timer_gettime: u32 = 242; +pub const __NR_timer_getoverrun: u32 = 243; +pub const __NR_timer_delete: u32 = 244; +pub const __NR_clock_settime: u32 = 245; +pub const __NR_clock_gettime: u32 = 246; +pub const __NR_clock_getres: u32 = 247; +pub const __NR_clock_nanosleep: u32 = 248; +pub const __NR_swapcontext: u32 = 249; +pub const __NR_tgkill: u32 = 250; +pub const __NR_utimes: u32 = 251; +pub const __NR_statfs64: u32 = 252; +pub const __NR_fstatfs64: u32 = 253; +pub const __NR_rtas: u32 = 255; +pub const __NR_sys_debug_setcontext: u32 = 256; +pub const __NR_migrate_pages: u32 = 258; +pub const __NR_mbind: u32 = 259; +pub const __NR_get_mempolicy: u32 = 260; +pub const __NR_set_mempolicy: u32 = 261; +pub const __NR_mq_open: u32 = 262; +pub const __NR_mq_unlink: u32 = 263; +pub const __NR_mq_timedsend: u32 = 264; +pub const __NR_mq_timedreceive: u32 = 265; +pub const __NR_mq_notify: u32 = 266; +pub const __NR_mq_getsetattr: u32 = 267; +pub const __NR_kexec_load: u32 = 268; +pub const __NR_add_key: u32 = 269; +pub const __NR_request_key: u32 = 270; +pub const __NR_keyctl: u32 = 271; +pub const __NR_waitid: u32 = 272; +pub const __NR_ioprio_set: u32 = 273; +pub const __NR_ioprio_get: u32 = 274; +pub const __NR_inotify_init: u32 = 275; +pub const __NR_inotify_add_watch: u32 = 276; +pub const __NR_inotify_rm_watch: u32 = 277; +pub const __NR_spu_run: u32 = 278; +pub const __NR_spu_create: u32 = 279; +pub const __NR_pselect6: u32 = 280; +pub const __NR_ppoll: u32 = 281; +pub const __NR_unshare: u32 = 282; +pub const __NR_splice: u32 = 283; +pub const __NR_tee: u32 = 284; +pub const __NR_vmsplice: u32 = 285; +pub const __NR_openat: u32 = 286; +pub const __NR_mkdirat: u32 = 287; +pub const __NR_mknodat: u32 = 288; +pub const __NR_fchownat: u32 = 289; +pub const __NR_futimesat: u32 = 290; +pub const __NR_newfstatat: u32 = 291; +pub const __NR_unlinkat: u32 = 292; +pub const __NR_renameat: u32 = 293; +pub const __NR_linkat: u32 = 294; +pub const __NR_symlinkat: u32 = 295; +pub const __NR_readlinkat: u32 = 296; +pub const __NR_fchmodat: u32 = 297; +pub const __NR_faccessat: u32 = 298; +pub const __NR_get_robust_list: u32 = 299; +pub const __NR_set_robust_list: u32 = 300; +pub const __NR_move_pages: u32 = 301; +pub const __NR_getcpu: u32 = 302; +pub const __NR_epoll_pwait: u32 = 303; +pub const __NR_utimensat: u32 = 304; +pub const __NR_signalfd: u32 = 305; +pub const __NR_timerfd_create: u32 = 306; +pub const __NR_eventfd: u32 = 307; +pub const __NR_sync_file_range2: u32 = 308; +pub const __NR_fallocate: u32 = 309; +pub const __NR_subpage_prot: u32 = 310; +pub const __NR_timerfd_settime: u32 = 311; +pub const __NR_timerfd_gettime: u32 = 312; +pub const __NR_signalfd4: u32 = 313; +pub const __NR_eventfd2: u32 = 314; +pub const __NR_epoll_create1: u32 = 315; +pub const __NR_dup3: u32 = 316; +pub const __NR_pipe2: u32 = 317; +pub const __NR_inotify_init1: u32 = 318; +pub const __NR_perf_event_open: u32 = 319; +pub const __NR_preadv: u32 = 320; +pub const __NR_pwritev: u32 = 321; +pub const __NR_rt_tgsigqueueinfo: u32 = 322; +pub const __NR_fanotify_init: u32 = 323; +pub const __NR_fanotify_mark: u32 = 324; +pub const __NR_prlimit64: u32 = 325; +pub const __NR_socket: u32 = 326; +pub const __NR_bind: u32 = 327; +pub const __NR_connect: u32 = 328; +pub const __NR_listen: u32 = 329; +pub const __NR_accept: u32 = 330; +pub const __NR_getsockname: u32 = 331; +pub const __NR_getpeername: u32 = 332; +pub const __NR_socketpair: u32 = 333; +pub const __NR_send: u32 = 334; +pub const __NR_sendto: u32 = 335; +pub const __NR_recv: u32 = 336; +pub const __NR_recvfrom: u32 = 337; +pub const __NR_shutdown: u32 = 338; +pub const __NR_setsockopt: u32 = 339; +pub const __NR_getsockopt: u32 = 340; +pub const __NR_sendmsg: u32 = 341; +pub const __NR_recvmsg: u32 = 342; +pub const __NR_recvmmsg: u32 = 343; +pub const __NR_accept4: u32 = 344; +pub const __NR_name_to_handle_at: u32 = 345; +pub const __NR_open_by_handle_at: u32 = 346; +pub const __NR_clock_adjtime: u32 = 347; +pub const __NR_syncfs: u32 = 348; +pub const __NR_sendmmsg: u32 = 349; +pub const __NR_setns: u32 = 350; +pub const __NR_process_vm_readv: u32 = 351; +pub const __NR_process_vm_writev: u32 = 352; +pub const __NR_finit_module: u32 = 353; +pub const __NR_kcmp: u32 = 354; +pub const __NR_sched_setattr: u32 = 355; +pub const __NR_sched_getattr: u32 = 356; +pub const __NR_renameat2: u32 = 357; +pub const __NR_seccomp: u32 = 358; +pub const __NR_getrandom: u32 = 359; +pub const __NR_memfd_create: u32 = 360; +pub const __NR_bpf: u32 = 361; +pub const __NR_execveat: u32 = 362; +pub const __NR_switch_endian: u32 = 363; +pub const __NR_userfaultfd: u32 = 364; +pub const __NR_membarrier: u32 = 365; +pub const __NR_mlock2: u32 = 378; +pub const __NR_copy_file_range: u32 = 379; +pub const __NR_preadv2: u32 = 380; +pub const __NR_pwritev2: u32 = 381; +pub const __NR_kexec_file_load: u32 = 382; +pub const __NR_statx: u32 = 383; +pub const __NR_pkey_alloc: u32 = 384; +pub const __NR_pkey_free: u32 = 385; +pub const __NR_pkey_mprotect: u32 = 386; +pub const __NR_rseq: u32 = 387; +pub const __NR_io_pgetevents: u32 = 388; +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_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/powerpc64/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..62b1998235a1ba86d7fcbdd39a04e808545952c4 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/if_arp.rs @@ -0,0 +1,2797 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_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_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_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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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 __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/powerpc64/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..9f2fed32a4fb51653d04a434e76d4d64cd1355a8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_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_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_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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc64/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..1d5963b6eb87a89f50468bbc08eb57ca1fd82089 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/if_packet.rs @@ -0,0 +1,317 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_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_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_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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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 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/powerpc64/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/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/powerpc64/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/powerpc64/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..bfa8e7cbd5b9317f7e14be5df822bffcfe925b5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/io_uring.rs @@ -0,0 +1,1446 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_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_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_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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +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_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 536805376; +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/powerpc64/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..fe3c153bf82781f491687d2519ddefad1de1e077 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/ioctl.rs @@ -0,0 +1,1501 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const FIONREAD: u32 = 1074030207; +pub const FIONBIO: u32 = 2147772030; +pub const FIOCLEX: u32 = 536897025; +pub const FIONCLEX: u32 = 536897026; +pub const FIOASYNC: u32 = 2147772029; +pub const FIOQSIZE: u32 = 1074292352; +pub const TCXONC: u32 = 536900638; +pub const TCFLSH: u32 = 536900639; +pub const TIOCSCTTY: u32 = 21518; +pub const TIOCSPGRP: u32 = 2147775606; +pub const TIOCOUTQ: u32 = 1074033779; +pub const TIOCSTI: u32 = 21522; +pub const TIOCSWINSZ: u32 = 2148037735; +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 = 2147767345; +pub const TIOCSIG: u32 = 2147767350; +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 = 1076655123; +pub const TCGETA: u32 = 1075082263; +pub const TCSBRK: u32 = 536900637; +pub const TCSBRKP: u32 = 21541; +pub const TCSETA: u32 = 2148824088; +pub const TCSETAF: u32 = 2148824092; +pub const TCSETAW: u32 = 2148824089; +pub const TIOCEXCL: u32 = 21516; +pub const TIOCNXCL: u32 = 21517; +pub const TIOCGDEV: u32 = 1074025522; +pub const TIOCGEXCL: u32 = 1074025536; +pub const TIOCGICOUNT: u32 = 21597; +pub const TIOCGLCKTRMIOS: u32 = 21590; +pub const TIOCGPGRP: u32 = 1074033783; +pub const TIOCGPKT: u32 = 1074025528; +pub const TIOCGPTLCK: u32 = 1074025529; +pub const TIOCGPTN: u32 = 1074025520; +pub const TIOCGPTPEER: u32 = 536892481; +pub const TIOCGRS485: u32 = 21550; +pub const TIOCGSERIAL: u32 = 21534; +pub const TIOCGSID: u32 = 21545; +pub const TIOCGSOFTCAR: u32 = 21529; +pub const TIOCGWINSZ: u32 = 1074295912; +pub const TCSETS: u32 = 2150396948; +pub const TCSETSF: u32 = 2150396950; +pub const TCSETSW: u32 = 2150396949; +pub const TIOCGETC: u32 = 1074164754; +pub const TIOCGETD: u32 = 21540; +pub const TIOCGETP: u32 = 1074164744; +pub const TIOCGLTC: u32 = 1074164852; +pub const MTIOCGET: u32 = 1076915458; +pub const BLKSSZGET: u32 = 536875624; +pub const BLKPBSZGET: u32 = 536875643; +pub const BLKROSET: u32 = 536875613; +pub const BLKROGET: u32 = 536875614; +pub const BLKRRPART: u32 = 536875615; +pub const BLKGETSIZE: u32 = 536875616; +pub const BLKFLSBUF: u32 = 536875617; +pub const BLKRASET: u32 = 536875618; +pub const BLKRAGET: u32 = 536875619; +pub const BLKFRASET: u32 = 536875620; +pub const BLKFRAGET: u32 = 536875621; +pub const BLKSECTSET: u32 = 536875622; +pub const BLKSECTGET: u32 = 536875623; +pub const BLKPG: u32 = 536875625; +pub const BLKBSZGET: u32 = 1074270832; +pub const BLKBSZSET: u32 = 2148012657; +pub const BLKGETSIZE64: u32 = 1074270834; +pub const BLKTRACESETUP: u32 = 3225948787; +pub const BLKTRACESTART: u32 = 536875636; +pub const BLKTRACESTOP: u32 = 536875637; +pub const BLKTRACETEARDOWN: u32 = 536875638; +pub const BLKDISCARD: u32 = 536875639; +pub const BLKIOMIN: u32 = 536875640; +pub const BLKIOOPT: u32 = 536875641; +pub const BLKALIGNOFF: u32 = 536875642; +pub const BLKDISCARDZEROES: u32 = 536875644; +pub const BLKSECDISCARD: u32 = 536875645; +pub const BLKROTATIONAL: u32 = 536875646; +pub const BLKZEROOUT: u32 = 536875647; +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 = 1074833921; +pub const UFFDIO_WAKE: u32 = 1074833922; +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 = 536917761; +pub const NS_GET_PARENT: u32 = 536917762; +pub const NS_GET_NSTYPE: u32 = 536917763; +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 = 1074030207; +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 = 536870913; +pub const FIGETBSZ: u32 = 536870914; +pub const FIFREEZE: u32 = 3221510263; +pub const FITHAW: u32 = 3221510264; +pub const FITRIM: u32 = 3222820985; +pub const FICLONE: u32 = 2147783689; +pub const FICLONERANGE: u32 = 2149618701; +pub const FIDEDUPERANGE: u32 = 3222836278; +pub const FS_IOC_GETFLAGS: u32 = 1074292225; +pub const FS_IOC_SETFLAGS: u32 = 2148034050; +pub const FS_IOC_GETVERSION: u32 = 1074296321; +pub const FS_IOC_SETVERSION: u32 = 2148038146; +pub const FS_IOC_FIEMAP: u32 = 3223348747; +pub const FS_IOC32_GETFLAGS: u32 = 1074030081; +pub const FS_IOC32_SETFLAGS: u32 = 2147771906; +pub const FS_IOC32_GETVERSION: u32 = 1074034177; +pub const FS_IOC32_SETVERSION: u32 = 2147776002; +pub const FS_IOC_FSGETXATTR: u32 = 1075599391; +pub const FS_IOC_FSSETXATTR: u32 = 2149341216; +pub const FS_IOC_GETFSLABEL: u32 = 1090556977; +pub const FS_IOC_SETFSLABEL: u32 = 2164298802; +pub const EXT4_IOC_GETVERSION: u32 = 1074292227; +pub const EXT4_IOC_SETVERSION: u32 = 2148034052; +pub const EXT4_IOC_GETVERSION_OLD: u32 = 1074296321; +pub const EXT4_IOC_SETVERSION_OLD: u32 = 2148038146; +pub const EXT4_IOC_GETRSVSZ: u32 = 1074292229; +pub const EXT4_IOC_SETRSVSZ: u32 = 2148034054; +pub const EXT4_IOC_GROUP_EXTEND: u32 = 2148034055; +pub const EXT4_IOC_MIGRATE: u32 = 536897033; +pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; +pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; +pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; +pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; +pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; +pub const EXT4_IOC_GETSTATE: u32 = 2147771945; +pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; +pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; +pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; +pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; +pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; +pub const EXT4_IOC32_GETRSVSZ: u32 = 1074030085; +pub const EXT4_IOC32_SETRSVSZ: u32 = 2147771910; +pub const EXT4_IOC32_GROUP_EXTEND: u32 = 2147771911; +pub const EXT4_IOC32_GETVERSION_OLD: u32 = 1074034177; +pub const EXT4_IOC32_SETVERSION_OLD: u32 = 2147776002; +pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 1074288191; +pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; +pub const LIRC_SET_SEND_CARRIER: u32 = 2147772691; +pub const AUTOFS_IOC_PROTOSUBVER: u32 = 1074041703; +pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; +pub const FSI_SCOM_WRITE: u32 = 3223352066; +pub const ATM_GETCIRANGE: u32 = 2148557194; +pub const DMA_BUF_SET_NAME_B: u32 = 2148033025; +pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; +pub const TUNSETPERSIST: u32 = 2147767499; +pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; +pub const CEC_RECEIVE: u32 = 3224920326; +pub const MGSL_IOCGPARAMS: u32 = 1076915457; +pub const ENI_SETMULT: u32 = 2148557159; +pub const RIO_GET_EVENT_MASK: u32 = 1074031886; +pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; +pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; +pub const CHIOMOVE: u32 = 2148819713; +pub const SONYPI_IOCGBATFLAGS: u32 = 1073837575; +pub const BTRFS_IOC_SYNC: u32 = 536908808; +pub const VIDIOC_TRY_FMT: u32 = 3234879040; +pub const LIRC_SET_REC_MODE: u32 = 2147772690; +pub const VIDIOC_DQEVENT: u32 = 1082676825; +pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 536917250; +pub const UVCIOC_CTRL_MAP: u32 = 3227546912; +pub const VHOST_SET_BACKEND_FEATURES: u32 = 2148052773; +pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 2148052832; +pub const UI_SET_KEYBIT: u32 = 2147767653; +pub const LIRC_SET_REC_TIMEOUT: u32 = 2147772696; +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 = 2148052754; +pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 2148035849; +pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; +pub const LIRC_GET_REC_MODE: u32 = 1074030850; +pub const PPGETTIME: u32 = 1074819221; +pub const BTRFS_IOC_RM_DEV: u32 = 2415957003; +pub const ATM_SETBACKEND: u32 = 2147639794; +pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; +pub const FBIO_WAITEVENT: u32 = 536888968; +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 = 536871513; +pub const NVME_IOCTL_SUBMIT_IO: u32 = 2150649410; +pub const NILFS_IOCTL_SYNC: u32 = 1074294410; +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 = 1074045957; +pub const NS_GETPSTAT: u32 = 3222298977; +pub const UI_SET_PROPBIT: u32 = 2147767662; +pub const TUNSETFILTEREBPF: u32 = 1074025697; +pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; +pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; +pub const WDIOC_SETOPTIONS: u32 = 1074026244; +pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; +pub const MGSL_IOCGTXIDLE: u32 = 536898819; +pub const ATM_ADDLECSADDR: u32 = 2148557198; +pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; +pub const FDGETPRM: u32 = 1075839492; +pub const HIDIOCAPPLICATION: u32 = 536889346; +pub const ENI_MEMDUMP: u32 = 2148557152; +pub const PTP_SYS_OFFSET2: u32 = 2202025230; +pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; +pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; +pub const PTP_PIN_GETFUNC: u32 = 3227532550; +pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; +pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; +pub const RTC_EPOCH_READ: u32 = 1074294797; +pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; +pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; +pub const ATM_GETLECSADDR: u32 = 2148557200; +pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; +pub const SONET_GETDIAG: u32 = 1074028820; +pub const ATMMPC_DATA: u32 = 536895961; +pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; +pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; +pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; +pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; +pub const UI_DEV_SETUP: u32 = 2153534723; +pub const ISST_IF_IO_CMD: u32 = 2148072962; +pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 1075342599; +pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; +pub const BLKGETNRZONES: u32 = 1074008709; +pub const VIDIOC_G_MODULATOR: u32 = 3225703990; +pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; +pub const USBDEVFS_SETINTERFACE: u32 = 1074287876; +pub const PPPIOCGCHAN: u32 = 1074033719; +pub const EVIOCGVERSION: u32 = 1074021633; +pub const VHOST_NET_SET_BACKEND: u32 = 2148052784; +pub const USBDEVFS_REAPURBNDELAY: u32 = 2148029709; +pub const RNDZAPENTCNT: u32 = 536891908; +pub const VIDIOC_G_PARM: u32 = 3234616853; +pub const TUNGETDEVNETNS: u32 = 536892643; +pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 2147772701; +pub const VHOST_SET_VRING_ERR: u32 = 2148052770; +pub const VDUSE_VQ_SETUP: u32 = 2149613844; +pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; +pub const VIDIOC_S_FREQUENCY: u32 = 2150389305; +pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 2149119252; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; +pub const WDIOC_GETPRETIMEOUT: u32 = 1074026249; +pub const USBDEVFS_DROP_PRIVILEGES: u32 = 2147767582; +pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 2415957015; +pub const VHOST_VSOCK_SET_RUNNING: u32 = 2147790689; +pub const STP_SET_OPTIONS: u32 = 2148017410; +pub const FBIO_RADEON_GET_MIRROR: u32 = 1074282499; +pub const IVTVFB_IOC_DMA_FRAME: u32 = 2149078720; +pub const IPMICTL_SEND_COMMAND: u32 = 1076390157; +pub const VIDIOC_G_ENC_INDEX: u32 = 1209554508; +pub const DFL_FPGA_FME_PORT_PR: u32 = 536917632; +pub const CHIOSVOLTAG: u32 = 2150654738; +pub const ATM_SETESIF: u32 = 2148557197; +pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 2149065476; +pub const PMU_IOC_GET_MODEL: u32 = 1074283011; +pub const JSIOCGBTNMAP: u32 = 1140877876; +pub const USBDEVFS_HUB_PORTINFO: u32 = 1082152211; +pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; +pub const FDCLRPRM: u32 = 536871489; +pub const BTRFS_IOC_SCRUB: u32 = 3288372251; +pub const USBDEVFS_DISCONNECT: u32 = 536892694; +pub const TUNSETVNETBE: u32 = 2147767518; +pub const ATMTCP_REMOVE: u32 = 536895887; +pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; +pub const PPPIOCGNPMODE: u32 = 3221779532; +pub const FDGETDRVPRM: u32 = 1082130961; +pub const TUNSETVNETLE: u32 = 2147767516; +pub const PHN_SETREG: u32 = 2148036614; +pub const PPPIOCDETACH: u32 = 2147775548; +pub const MMTIMER_GETRES: u32 = 1074294017; +pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; +pub const PPGETFLAGS: u32 = 1074032794; +pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; +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 = 1074310688; +pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; +pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; +pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; +pub const MGSL_IOCGXCTRL: u32 = 536898838; +pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; +pub const SONYPI_IOCGBLUE: u32 = 1073837576; +pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; +pub const I2OHTML: u32 = 3224398089; +pub const VFIO_GET_API_VERSION: u32 = 536886116; +pub const IDT77105_GETSTATZ: u32 = 2148557107; +pub const I2OPARMSET: u32 = 3223873795; +pub const TEE_IOC_CANCEL: u32 = 1074308100; +pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; +pub const DFL_FPGA_PORT_RESET: u32 = 536917568; +pub const PPPIOCGASYNCMAP: u32 = 1074033752; +pub const EVIOCGKEYCODE_V2: u32 = 1076380932; +pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; +pub const HIDIOCSUSAGE: u32 = 2149074956; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065488; +pub const PTP_EXTTS_REQUEST: u32 = 2148547842; +pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; +pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; +pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 2162732865; +pub const JSIOCGAXES: u32 = 1073834513; +pub const HIDIOCSFLAG: u32 = 2147764239; +pub const PTP_PEROUT_REQUEST2: u32 = 2151169292; +pub const PPWDATA: u32 = 2147577990; +pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; +pub const FDGETMAXERRS: u32 = 1075053070; +pub const TUNSETQUEUE: u32 = 2147767513; +pub const PTP_ENABLE_PPS: u32 = 2147761412; +pub const SIOCSIFATMTCP: u32 = 536895872; +pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; +pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; +pub const NBD_SET_BLKSIZE: u32 = 536914689; +pub const NBD_SET_TIMEOUT: u32 = 536914697; +pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 2147790658; +pub const RIO_UNMAP_INBOUND: u32 = 2148035858; +pub const ATM_QUERYLOOP: u32 = 2148557140; +pub const DFL_FPGA_GET_API_VERSION: u32 = 536917504; +pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 536892707; +pub const FBIO_CURSOR: u32 = 3228059144; +pub const RNDCLEARPOOL: u32 = 536891910; +pub const VIDIOC_QUERYSTD: u32 = 1074288191; +pub const DMA_BUF_IOCTL_SYNC: u32 = 2148033024; +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 = 1076909578; +pub const PTP_ENABLE_PPS2: u32 = 2147761421; +pub const PCITEST_CLEAR_IRQ: u32 = 536891408; +pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 1074030864; +pub const BTRFS_IOC_DEVICES_READY: u32 = 1342215207; +pub const JSIOCGAXMAP: u32 = 1077963314; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 1074799372; +pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 2148541207; +pub const RTC_WIE_OFF: u32 = 536899600; +pub const PPGETMODE: u32 = 1074032792; +pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; +pub const PTP_SYS_OFFSET: u32 = 2202025221; +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 = 536908806; +pub const INOTIFY_IOC_SETNEXTWD: u32 = 2147764480; +pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 1074279182; +pub const TUNDETACHFILTER: u32 = 2148553942; +pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; +pub const IOC_PR_CLEAR: u32 = 2148561101; +pub const SCIF_READFROM: u32 = 3223876362; +pub const PPPIOCGDEBUG: u32 = 1074033729; +pub const BLKGETZONESZ: u32 = 1074008708; +pub const HIDIOCGUSAGES: u32 = 3491514387; +pub const SONYPI_IOCGTEMP: u32 = 1073837580; +pub const UI_SET_MSCBIT: u32 = 2147767656; +pub const APM_IOC_SUSPEND: u32 = 536887554; +pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; +pub const RTC_PLL_GET: u32 = 1075867665; +pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; +pub const USBDEVFS_DISCSIGNAL: u32 = 1074812174; +pub const LIRC_GET_MIN_TIMEOUT: u32 = 1074030856; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 1100502850; +pub const DM_TARGET_MSG: u32 = 3241737486; +pub const SONYPI_IOCGBAT1REM: u32 = 1073903107; +pub const EVIOCSFF: u32 = 2150647168; +pub const TUNSETGROUP: u32 = 2147767502; +pub const EVIOCGKEYCODE: u32 = 1074283780; +pub const KCOV_REMOTE_ENABLE: u32 = 2149081958; +pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; +pub const FDEJECT: u32 = 536871514; +pub const TUNSETOFFLOAD: u32 = 2147767504; +pub const PPPIOCCONNECT: u32 = 2147775546; +pub const ATM_ADDADDR: u32 = 2148557192; +pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; +pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; +pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; +pub const CCISS_PASSTHRU: u32 = 3227009547; +pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; +pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; +pub const ATMARPD_CTRL: u32 = 536895969; +pub const UI_ABS_SETUP: u32 = 2149340420; +pub const UI_DEV_DESTROY: u32 = 536892674; +pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; +pub const RTC_AIE_ON: u32 = 536899585; +pub const AUTOFS_IOC_EXPIRE: u32 = 1091343205; +pub const PPPIOCSDEBUG: u32 = 2147775552; +pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; +pub const PPPIOCSMRU: u32 = 2147775570; +pub const CCISS_DEREGDISK: u32 = 536887820; +pub const UI_DEV_CREATE: u32 = 536892673; +pub const FUSE_DEV_IOC_CLONE: u32 = 1074062592; +pub const BTRFS_IOC_START_SYNC: u32 = 1074304024; +pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 2148036225; +pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 1074279187; +pub const DM_TABLE_CLEAR: u32 = 3241737482; +pub const CCISS_GETINTINFO: u32 = 1074283010; +pub const PPPIOCSASYNCMAP: u32 = 2147775575; +pub const I2OEVTGET: u32 = 1080584459; +pub const NVME_IOCTL_RESET: u32 = 536890948; +pub const PPYIELD: u32 = 536899725; +pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; +pub const TUNSETCARRIER: u32 = 2147767522; +pub const DM_DEV_WAIT: u32 = 3241737480; +pub const RTC_WIE_ON: u32 = 536899599; +pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; +pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; +pub const MGSL_IOCSPARAMS: u32 = 2150657280; +pub const RTC_SET_TIME: u32 = 2149871626; +pub const VHOST_RESET_OWNER: u32 = 536915714; +pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; +pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; +pub const UDF_GETEABLOCK: u32 = 1074293825; +pub const VFIO_IOMMU_MAP_DMA: u32 = 536886129; +pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 2149602906; +pub const HIDIOCGFLAG: u32 = 1074022414; +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 = 2148577793; +pub const CCISS_GETFIRMVER: u32 = 1074020872; +pub const ND_IOCTL_ARS_START: u32 = 3223342594; +pub const PPPIOCSMRRU: u32 = 2147775547; +pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; +pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 1074050818; +pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; +pub const PPSETTIME: u32 = 2148561046; +pub const RTC_ALM_READ: u32 = 1076129800; +pub const VDUSE_SET_API_VERSION: u32 = 2148040961; +pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; +pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; +pub const USBDEVFS_CONNECT: u32 = 536892695; +pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; +pub const ATMARP_MKIP: u32 = 536895970; +pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; +pub const CCISS_GETHEARTBEAT: u32 = 1074020870; +pub const ATM_RSTADDR: u32 = 2148557191; +pub const NBD_SET_SIZE: u32 = 536914690; +pub const UDF_GETVOLIDENT: u32 = 1074293826; +pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; +pub const MGSL_IOCSTXIDLE: u32 = 536898818; +pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; +pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; +pub const PPRSTATUS: u32 = 1073836161; +pub const MGSL_IOCTXENABLE: u32 = 536898820; +pub const UDF_GETEASIZE: u32 = 1074031680; +pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; +pub const VHOST_SET_OWNER: u32 = 536915713; +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 = 2148557195; +pub const HPET_IE_ON: u32 = 536897537; +pub const PERF_EVENT_IOC_ID: u32 = 1074275335; +pub const TUNSETSNDBUF: u32 = 2147767508; +pub const PTP_PIN_SETFUNC: u32 = 2153790727; +pub const PPPIOCDISCONN: u32 = 536900665; +pub const VIDIOC_QUERYCTRL: u32 = 3225703972; +pub const PPEXCL: u32 = 536899727; +pub const PCITEST_MSI: u32 = 2147766275; +pub const FDWERRORCLR: u32 = 536871510; +pub const AUTOFS_IOC_FAIL: u32 = 536908641; +pub const USBDEVFS_IOCTL: u32 = 3222295826; +pub const VIDIOC_S_STD: u32 = 2148029976; +pub const F2FS_IOC_RESIZE_FS: u32 = 2148070672; +pub const SONET_SETDIAG: u32 = 3221512466; +pub const BTRFS_IOC_DEFRAG: u32 = 2415956994; +pub const CCISS_GETDRIVVER: u32 = 1074020873; +pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 1074293015; +pub const HPET_IRQFREQ: u32 = 2148034566; +pub const ATM_GETESI: u32 = 2148557189; +pub const CCISS_GETLUNINFO: u32 = 1074545169; +pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; +pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; +pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; +pub const UDMABUF_CREATE_LIST: u32 = 2148037955; +pub const VHOST_SET_LOG_BASE: u32 = 2148052740; +pub const ZATM_GETPOOL: u32 = 2148557153; +pub const BR2684_SETFILT: u32 = 2149343632; +pub const RNDGETPOOL: u32 = 1074287106; +pub const PPS_GETPARAMS: u32 = 1074294945; +pub const IOC_PR_RESERVE: u32 = 2148561097; +pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; +pub const RIO_CM_CHAN_CLOSE: u32 = 2147640068; +pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; +pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; +pub const PMU_IOC_GET_BACKLIGHT: u32 = 1074283009; +pub const USBDEVFS_GET_CAPABILITIES: u32 = 1074025754; +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 = 536887822; +pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; +pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; +pub const CAPI_GET_VERSION: u32 = 3222291207; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; +pub const VFIO_EEH_PE_OP: u32 = 536886137; +pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; +pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 1074328850; +pub const NBD_SET_SIZE_BLOCKS: u32 = 536914695; +pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 536916224; +pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; +pub const VIDIOC_S_AUDOUT: u32 = 2150913586; +pub const VIDIOC_S_FMT: u32 = 3234878981; +pub const PPPIOCATTACH: u32 = 2147775549; +pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052772; +pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; +pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; +pub const IPMICTL_SET_MY_LUN_CMD: u32 = 1074030867; +pub const PCITEST_LEGACY_IRQ: u32 = 536891394; +pub const USBDEVFS_SUBMITURB: u32 = 1077433610; +pub const AUTOFS_IOC_READY: u32 = 536908640; +pub const BTRFS_IOC_SEND: u32 = 2152240166; +pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; +pub const JSIOCSBTNMAP: u32 = 2214619699; +pub const PPPIOCSFLAGS: u32 = 2147775577; +pub const NVRAM_INIT: u32 = 536899648; +pub const RFKILL_IOCTL_NOINPUT: u32 = 536891905; +pub const BTRFS_IOC_BALANCE: u32 = 2415957004; +pub const FS_IOC_GETFSMAP: u32 = 3233830971; +pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; +pub const STP_POLICY_ID_GET: u32 = 1074799873; +pub const PPSETFLAGS: u32 = 2147774619; +pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; +pub const ATMTCP_CREATE: u32 = 536895886; +pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; +pub const PPPIOCGXASYNCMAP: u32 = 1075868752; +pub const VHOST_SET_VRING_CALL: u32 = 2148052769; +pub const LIRC_GET_FEATURES: u32 = 1074030848; +pub const GSMIOC_DISABLE_NET: u32 = 536889091; +pub const AUTOFS_IOC_CATATONIC: u32 = 536908642; +pub const NBD_DO_IT: u32 = 536914691; +pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 2147772703; +pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030873; +pub const EVIOCSCLOCKID: u32 = 2147763616; +pub const USBDEVFS_FREE_STREAMS: u32 = 1074287901; +pub const FSI_SCOM_RESET: u32 = 2147775235; +pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 1074283014; +pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; +pub const FDDEFPRM: u32 = 2149581379; +pub const TEE_IOC_INVOKE: u32 = 1074832387; +pub const USBDEVFS_BULK: u32 = 3222820098; +pub const SCIF_VWRITETO: u32 = 3223876365; +pub const SONYPI_IOCSBRT: u32 = 2147579392; +pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; +pub const RTC_PIE_ON: u32 = 536899589; +pub const BTRFS_IOC_SCAN_DEV: u32 = 2415956996; +pub const PPPIOCXFERUNIT: u32 = 536900686; +pub const WDIOC_GETTIMEOUT: u32 = 1074026247; +pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; +pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 2148054598; +pub const FBIO_WAITFORVSYNC: u32 = 2147763744; +pub const RTC_PIE_OFF: u32 = 536899590; +pub const EVIOCGRAB: u32 = 2147763600; +pub const PMU_IOC_SET_BACKLIGHT: u32 = 2148024834; +pub const EVIOCGREP: u32 = 1074283779; +pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 2148017163; +pub const UFFDIO_CONTINUE: u32 = 3223366151; +pub const VDUSE_GET_API_VERSION: u32 = 1074299136; +pub const RTC_RD_TIME: u32 = 1076129801; +pub const FDMSGOFF: u32 = 536871494; +pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; +pub const CAPI_GET_ERRCODE: u32 = 1073890081; +pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; +pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; +pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2148036346; +pub const RIO_DEV_ADD: u32 = 2149608727; +pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; +pub const FBIO_RADEON_SET_MIRROR: u32 = 2148024324; +pub const PCITEST_GET_IRQTYPE: u32 = 536891401; +pub const JSIOCGVERSION: u32 = 1074031105; +pub const SONYPI_IOCSBLUE: u32 = 2147579401; +pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 536883986; +pub const F2FS_IOC_GET_FEATURES: u32 = 1074066700; +pub const SCIF_REG: u32 = 3223876360; +pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 2155376264; +pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 2147754757; +pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; +pub const VHOST_SET_VRING_NUM: u32 = 2148052752; +pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; +pub const RIO_FREE_DMA: u32 = 2148035860; +pub const MGSL_IOCRXENABLE: u32 = 536898821; +pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; +pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; +pub const PPPIOCGL2TPSTATS: u32 = 1078490166; +pub const PERF_EVENT_IOC_PERIOD: u32 = 2148017156; +pub const PTP_PIN_SETFUNC2: u32 = 2153790736; +pub const CHIOEXCHANGE: u32 = 2149344002; +pub const NILFS_IOCTL_GET_SUINFO: u32 = 1075342980; +pub const CEC_DQEVENT: u32 = 3226493191; +pub const UI_SET_SWBIT: u32 = 2147767661; +pub const VHOST_VDPA_SET_CONFIG: u32 = 2148052852; +pub const TUNSETIFF: u32 = 2147767498; +pub const CHIOPOSITION: u32 = 2148295427; +pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; +pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; +pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; +pub const CAPI_CLR_FLAGS: u32 = 1074021157; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; +pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074294520; +pub const EVIOCSMASK: u32 = 2148550035; +pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; +pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; +pub const CEC_S_MODE: u32 = 2147770633; +pub const MGSL_IOCSIF: u32 = 536898826; +pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; +pub const PPSETMODE: u32 = 2147774592; +pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; +pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; +pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 1078223114; +pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 2166386922; +pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; +pub const UDMABUF_CREATE: u32 = 2149086530; +pub const SONET_CLRDIAG: u32 = 3221512467; +pub const PHN_SET_REG: u32 = 2148036609; +pub const RNDADDTOENTCNT: u32 = 2147766785; +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 = 536899586; +pub const VFIO_GROUP_SET_CONTAINER: u32 = 536886120; +pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 2148016918; +pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 536886136; +pub const VFIO_IOMMU_GET_INFO: u32 = 536886128; +pub const DM_DEV_SUSPEND: u32 = 3241737478; +pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; +pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; +pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; +pub const ATMMPC_CTRL: u32 = 536895960; +pub const PPPIOCSXASYNCMAP: u32 = 2149610575; +pub const CHIOGSTATUS: u32 = 2148557576; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; +pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; +pub const CAPI_SET_FLAGS: u32 = 1074021156; +pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; +pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; +pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2148036344; +pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 536917570; +pub const VHOST_GET_FEATURES: u32 = 1074310912; +pub const LIRC_GET_REC_RESOLUTION: u32 = 1074030855; +pub const PACKET_CTRL_CMD: u32 = 3222820865; +pub const LIRC_SET_TRANSMITTER_MASK: u32 = 2147772695; +pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; +pub const JSIOCGCORR: u32 = 1076128290; +pub const VIDIOC_G_FMT: u32 = 3234878980; +pub const RTC_EPOCH_SET: u32 = 2148036622; +pub const CAPI_GET_PROFILE: u32 = 3225436937; +pub const ATM_GETLOOP: u32 = 2148557138; +pub const SCIF_LISTEN: u32 = 2147775234; +pub const NBD_CLEAR_QUE: u32 = 536914693; +pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; +pub const LIRC_GET_LENGTH: u32 = 1074030863; +pub const I8K_SET_FAN: u32 = 3221776775; +pub const FDSETMAXERRS: u32 = 2148794956; +pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 1077958144; +pub const SNAPSHOT_SET_SWAP_AREA: u32 = 2148283149; +pub const LIRC_GET_REC_TIMEOUT: u32 = 1074030884; +pub const EVIOCRMFF: u32 = 2147763585; +pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; +pub const PPRDATA: u32 = 1073836165; +pub const RIO_MPORT_GET_PROPERTIES: u32 = 1076915460; +pub const TUNSETVNETHDRSZ: u32 = 2147767512; +pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; +pub const GSMIOC_GETCONF: u32 = 1078740736; +pub const LIRC_GET_SEND_MODE: u32 = 1074030849; +pub const PPPIOCSACTIVE: u32 = 2148561990; +pub const SIOCGSTAMPNS_NEW: u32 = 1074825479; +pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; +pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 2147772693; +pub const UI_END_FF_ERASE: u32 = 2148292043; +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 = 536914698; +pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 536886124; +pub const REISERFS_IOC_UNPACK: u32 = 2148060417; +pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 2147754759; +pub const RIO_SET_EVENT_MASK: u32 = 2147773709; +pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 1074279188; +pub const VDUSE_VQ_INJECT_IRQ: u32 = 2147778839; +pub const I2OPASSTHRU: u32 = 1074817292; +pub const IOC_OPAL_SET_PW: u32 = 2183164128; +pub const FSI_SCOM_READ: u32 = 3223352065; +pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; +pub const VIDIOC_QBUF: u32 = 3227014671; +pub const VIDIOC_S_TUNER: u32 = 2153010718; +pub const TUNGETVNETHDRSZ: u32 = 1074025687; +pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; +pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; +pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; +pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; +pub const TEE_IOC_VERSION: u32 = 1074570240; +pub const VIDIOC_LOG_STATUS: u32 = 536892998; +pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1076914453; +pub const VHOST_SET_LOG_FD: u32 = 2147790599; +pub const SCIF_SEND: u32 = 3222827782; +pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; +pub const NS_ADJBUFLEV: u32 = 536895843; +pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; +pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; +pub const PHN_GETREG: u32 = 3221778437; +pub const I2OSWDL: u32 = 3224398085; +pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 536892931; +pub const JSIOCGBUTTONS: u32 = 1073834514; +pub const VFIO_IOMMU_ENABLE: u32 = 536886131; +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 = 2147790711; +pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; +pub const VIDIOC_S_CROP: u32 = 2148816444; +pub const WDIOC_GETTEMP: u32 = 1074026243; +pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 2165862628; +pub const UI_SET_LEDBIT: u32 = 2147767657; +pub const NBD_SET_SOCK: u32 = 536914688; +pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 2415957055; +pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; +pub const I2OSWUL: u32 = 3224398086; +pub const IOCTL_MEI_NOTIFY_GET: u32 = 1074022403; +pub const FDFMTTRK: u32 = 2148270664; +pub const MMTIMER_GETBITS: u32 = 536898820; +pub const VIDIOC_ENUMSTD: u32 = 3225966105; +pub const VHOST_GET_VRING_BASE: u32 = 3221794578; +pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; +pub const ATMARP_SETENTRY: u32 = 536895971; +pub const CCISS_REVALIDVOLS: u32 = 536887818; +pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; +pub const RTC_VL_READ: u32 = 1074032659; +pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; +pub const RIO_DEV_DEL: u32 = 2149608728; +pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; +pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; +pub const SONYPI_IOCSFAN: u32 = 2147579403; +pub const SPIOCSTYPE: u32 = 2148036865; +pub const IPMICTL_REGISTER_FOR_CMD: u32 = 1073899790; +pub const I8K_GET_FAN: u32 = 3221776774; +pub const TUNGETVNETBE: u32 = 1074025695; +pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; +pub const UI_END_FF_UPLOAD: u32 = 2154321353; +pub const TOSH_SMM: u32 = 3222828176; +pub const SONYPI_IOCGBAT2REM: u32 = 1073903109; +pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 1074328849; +pub const PPPIOCSNPMODE: u32 = 2148037707; +pub const USBDEVFS_CONTROL: u32 = 3222820096; +pub const HIDIOCGUSAGE: u32 = 3222816779; +pub const TUNSETTXFILTER: u32 = 2147767505; +pub const TUNGETVNETLE: u32 = 1074025693; +pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; +pub const MGSL_IOCGXSYNC: u32 = 536898836; +pub const HIDIOCGFIELDINFO: u32 = 3224913930; +pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; +pub const I2OVALIDATE: u32 = 1074030856; +pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; +pub const NILFS_IOCTL_GET_CPINFO: u32 = 1075342978; +pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; +pub const VFAT_IOCTL_READDIR_SHORT: u32 = 1110471170; +pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; +pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 1074328851; +pub const FDGETDRVSTAT: u32 = 1078985234; +pub const SYNC_IOC_MERGE: u32 = 3224387075; +pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; +pub const PPPIOCBRIDGECHAN: u32 = 2147775541; +pub const LIRC_SET_SEND_MODE: u32 = 2147772689; +pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 2148560139; +pub const ATM_GETTYPE: u32 = 2148557188; +pub const PHN_GETREGS: u32 = 3223875591; +pub const FDSETEMSGTRESH: u32 = 536871498; +pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; +pub const MGSL_IOCWAITEVENT: u32 = 3221515528; +pub const CAPI_INSTALLED: u32 = 1073890082; +pub const EVIOCGMASK: u32 = 1074808210; +pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; +pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; +pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; +pub const GSMIOC_GETFIRST: u32 = 1074022148; +pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; +pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; +pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; +pub const CAPI_GET_SERIAL: u32 = 3221504776; +pub const FDSETDRVPRM: u32 = 2155872912; +pub const IOC_OPAL_SAVE: u32 = 2165862620; +pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; +pub const TUNSETIFINDEX: u32 = 2147767514; +pub const CCISS_SETINTINFO: u32 = 2148024835; +pub const RTC_VL_CLR: u32 = 536899604; +pub const VIDIOC_REQBUFS: u32 = 3222558216; +pub const USBDEVFS_REAPURBNDELAY32: u32 = 2147767565; +pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; +pub const USBDEVFS_SETCONFIGURATION: u32 = 1074025733; +pub const CCISS_GETNODENAME: u32 = 1074807300; +pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; +pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; +pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 536886129; +pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 2150114066; +pub const LPSETTIMEOUT_NEW: u32 = 2148533775; +pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; +pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; +pub const FDRAWCMD: u32 = 536871512; +pub const SCIF_UNREG: u32 = 3222303497; +pub const PPPIOCGIDLE64: u32 = 1074820159; +pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; +pub const VIDIOC_CROPCAP: u32 = 3224131130; +pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; +pub const PHN_SET_REGS: u32 = 2148036611; +pub const ATMLEC_DATA: u32 = 536895953; +pub const PPPOEIOCDFWD: u32 = 536916225; +pub const VIDIOC_S_SELECTION: u32 = 3225441887; +pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; +pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; +pub const VIDIOC_S_CTRL: u32 = 3221771804; +pub const ZATM_SETPOOL: u32 = 2148557155; +pub const MTIOCPOS: u32 = 1074294019; +pub const PMU_IOC_SLEEP: u32 = 536887808; +pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; +pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; +pub const NILFS_IOCTL_GET_SUSTAT: u32 = 1076915845; +pub const VIDIOC_QUERYCAP: u32 = 1080579584; +pub const HPET_INFO: u32 = 1075341315; +pub const VIDIOC_AM437X_CCDC_CFG: u32 = 2148030145; +pub const DM_LIST_DEVICES: u32 = 3241737474; +pub const TUNSETOWNER: u32 = 2147767500; +pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; +pub const RNDADDENTROPY: u32 = 2148028931; +pub const USBDEVFS_RESET: u32 = 536892692; +pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 2415957006; +pub const USBDEVFS_FORBID_SUSPEND: u32 = 536892705; +pub const FDGETDRVTYP: u32 = 1074790927; +pub const PPWCONTROL: u32 = 2147577988; +pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; +pub const KCOV_DISABLE: u32 = 536896357; +pub const IOC_OPAL_ACTIVATE_LSP: u32 = 2165862623; +pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 1074835320; +pub const PPPIOCSPASS: u32 = 2148561991; +pub const RIO_CM_CHAN_CONNECT: u32 = 2148033288; +pub const I2OSWDEL: u32 = 3224398087; +pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 1074554387; +pub const IOC_OPAL_MBR_DONE: u32 = 2165338345; +pub const PPPIOCSMAXCID: u32 = 2147775569; +pub const PPSETPHASE: u32 = 2147774612; +pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 2148052853; +pub const USBDEVFS_GET_SPEED: u32 = 536892703; +pub const SONET_GETFRAMING: u32 = 1074028822; +pub const VIDIOC_QUERYBUF: u32 = 3227014665; +pub const VIDIOC_S_EDID: u32 = 3223868969; +pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 2149094441; +pub const PPS_GETCAP: u32 = 1074294947; +pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 536883983; +pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 2147772697; +pub const SCIF_GET_NODEIDS: u32 = 3222827790; +pub const NBD_DISCONNECT: u32 = 536914696; +pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; +pub const VFIO_IOMMU_DISABLE: u32 = 536886132; +pub const SNAPSHOT_CREATE_IMAGE: u32 = 2147758865; +pub const SNAPSHOT_POWER_OFF: u32 = 536883984; +pub const APM_IOC_STANDBY: u32 = 536887553; +pub const PPPIOCGUNIT: u32 = 1074033750; +pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 2147783526; +pub const SCIF_BIND: u32 = 3221779201; +pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 536893280; +pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 2148560512; +pub const IOC_OPAL_LOCK_UNLOCK: u32 = 2165862621; +pub const F2FS_IOC_SET_PIN_FILE: u32 = 2147808525; +pub const PPPIOCGRASYNCMAP: u32 = 1074033749; +pub const MMTIMER_MMAPAVAIL: u32 = 536898822; +pub const I2OPASSTHRU32: u32 = 1074293004; +pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 2147792513; +pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 1082414691; +pub const UI_SET_SNDBIT: u32 = 2147767658; +pub const VIDIOC_G_AUDOUT: u32 = 1077171761; +pub const RTC_PLL_SET: u32 = 2149609490; +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 = 2147790660; +pub const VHOST_SET_VRING_ADDR: u32 = 2150149905; +pub const VDUSE_CREATE_DEV: u32 = 2169536770; +pub const FDFLUSH: u32 = 536871499; +pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; +pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 2148054660; +pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; +pub const SCIF_CONNECT: u32 = 3221779203; +pub const BLKREPORTZONE: u32 = 3222278786; +pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; +pub const ATM_ADDPARTY: u32 = 2148557300; +pub const FDSETPRM: u32 = 2149581378; +pub const ATM_GETSTATZ: u32 = 2148557137; +pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; +pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 1106809916; +pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 2149602907; +pub const SEV_ISSUE_CMD: u32 = 3222295296; +pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; +pub const PCITEST_COPY: u32 = 2148028422; +pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; +pub const CHIOGPICKER: u32 = 1074029316; +pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; +pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; +pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2148017158; +pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; +pub const CHIOGVPARAMS: u32 = 1081107219; +pub const PTP_PEROUT_REQUEST: u32 = 2151169283; +pub const FSI_SCOM_CHECK: u32 = 1074033408; +pub const RTC_IRQP_READ: u32 = 1074294795; +pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 1075342597; +pub const HIDIOCGRDESCSIZE: u32 = 1074022401; +pub const UI_GET_VERSION: u32 = 1074025773; +pub const NILFS_IOCTL_GET_CPSTAT: u32 = 1075342979; +pub const CCISS_GETBUSTYPES: u32 = 1074020871; +pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 536886135; +pub const VIDIOC_EXPBUF: u32 = 3225441808; +pub const UI_SET_RELBIT: u32 = 2147767654; +pub const VFIO_SET_IOMMU: u32 = 536886118; +pub const VIDIOC_S_MODULATOR: u32 = 2151962167; +pub const TUNGETFILTER: u32 = 1074812123; +pub const CCISS_SETNODENAME: u32 = 2148549125; +pub const FBIO_GETCONTROL2: u32 = 1074284169; +pub const TUNSETDEBUG: u32 = 2147767497; +pub const DM_DEV_REMOVE: u32 = 3241737476; +pub const HIDIOCSUSAGES: u32 = 2417772564; +pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; +pub const FBIOGET_VBLANK: u32 = 1075856914; +pub const ATM_GETSTAT: u32 = 2148557136; +pub const VIDIOC_G_JPEGCOMP: u32 = 1082938941; +pub const TUNATTACHFILTER: u32 = 2148553941; +pub const UI_SET_ABSBIT: u32 = 2147767655; +pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; +pub const USBDEVFS_REAPURB32: u32 = 2147767564; +pub const BTRFS_IOC_TRANS_END: u32 = 536908807; +pub const CAPI_REGISTER: u32 = 2148287233; +pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; +pub const USBDEVFS_DISCARDURB: u32 = 536892683; +pub const HE_GET_REG: u32 = 2148557152; +pub const ATM_SETLOOP: u32 = 2148557139; +pub const ATMSIGD_CTRL: u32 = 536895984; +pub const CIOC_KERNEL_VERSION: u32 = 3221775114; +pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; +pub const SNAPSHOT_UNFREEZE: u32 = 536883970; +pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 536933635; +pub const PMU_IOC_HAS_ADB: u32 = 1074283012; +pub const I2OGETIOPS: u32 = 1075865856; +pub const VIDIOC_S_FBUF: u32 = 2150651403; +pub const PPRCONTROL: u32 = 1073836163; +pub const CHIOSPICKER: u32 = 2147771141; +pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 536886133; +pub const TUNGETSNDBUF: u32 = 1074025683; +pub const GSMIOC_SETCONF: u32 = 2152482561; +pub const IOC_PR_PREEMPT: u32 = 2149085387; +pub const KCOV_INIT_TRACE: u32 = 1074291457; +pub const SONYPI_IOCGBAT1CAP: u32 = 1073903106; +pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 1074812736; +pub const MTIOCTOP: u32 = 2148035841; +pub const VHOST_VDPA_SET_STATUS: u32 = 2147594098; +pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 2147790659; +pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 536886133; +pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; +pub const PPPIOCGMRU: u32 = 1074033747; +pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; +pub const PPPIOCGFLAGS: u32 = 1074033754; +pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; +pub const ATM_DELLECSADDR: u32 = 2148557199; +pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; +pub const PPPIOCGIDLE32: u32 = 1074295871; +pub const VFIO_DEVICE_RESET: u32 = 536886127; +pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; +pub const WDIOC_GETSTATUS: u32 = 1074026241; +pub const BTRFS_IOC_SET_FEATURES: u32 = 2150667321; +pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; +pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; +pub const PCITEST_READ: u32 = 2148028421; +pub const VFIO_GROUP_GET_STATUS: u32 = 536886119; +pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 1074294523; +pub const USBDEVFS_CLEAR_HALT: u32 = 1074025749; +pub const VIDIOC_DECODER_CMD: u32 = 3225966176; +pub const VIDIOC_G_AUDIO: u32 = 1077171745; +pub const CCISS_RESCANDISK: u32 = 536887824; +pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 2148560140; +pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 2165338343; +pub const USBDEVFS_REAPURB: u32 = 2148029708; +pub const DFL_FPGA_CHECK_EXTENSION: u32 = 536917505; +pub const AUTOFS_IOC_PROTOVER: u32 = 1074041699; +pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; +pub const BTRFS_IOC_GET_FEATURES: u32 = 1075352633; +pub const PCITEST_MSIX: u32 = 2147766279; +pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 2150667280; +pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; +pub const DM_GET_TARGET_VERSION: u32 = 3241737489; +pub const PPPIOCGIDLE: u32 = 1074820159; +pub const NVRAM_SETCKS: u32 = 536899649; +pub const WDIOC_GETSUPPORT: u32 = 1076385536; +pub const GSMIOC_ENABLE_NET: u32 = 2150909698; +pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 1078244353; +pub const NE_ADD_VCPU: u32 = 3221532193; +pub const EVIOCSKEYCODE_V2: u32 = 2150122756; +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 = 2149084422; +pub const I2OEVTREG: u32 = 2148296970; +pub const I2OPARMGET: u32 = 3223873796; +pub const EVIOCGID: u32 = 1074283778; +pub const BTRFS_IOC_QGROUP_CREATE: u32 = 2148570154; +pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; +pub const VIDIOC_S_PARM: u32 = 3234616854; +pub const TUNSETSTEERINGEBPF: u32 = 1074025696; +pub const ATM_GETNAMES: u32 = 2148557187; +pub const VIDIOC_QUERYMENU: u32 = 3224131109; +pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; +pub const I2OLCTGET: u32 = 3222825218; +pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; +pub const NS_SETBUFLEV: u32 = 2148557154; +pub const BLKCLOSEZONE: u32 = 2148536967; +pub const SONET_GETFRSENSE: u32 = 1074159895; +pub const UI_SET_EVBIT: u32 = 2147767652; +pub const DM_LIST_VERSIONS: u32 = 3241737485; +pub const HIDIOCGSTRING: u32 = 1090799620; +pub const PPPIOCATTCHAN: u32 = 2147775544; +pub const VDUSE_DEV_SET_CONFIG: u32 = 2148040978; +pub const TUNGETFEATURES: u32 = 1074025679; +pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 536886121; +pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 1074030865; +pub const CCISS_REGNEWDISK: u32 = 2147762701; +pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 1082414691; +pub const PHN_SETREGS: u32 = 2150133768; +pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 1074033168; +pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; +pub const TUNGETIFF: u32 = 1074025682; +pub const PTP_CLOCK_GETCAPS2: u32 = 1079000330; +pub const BTRFS_IOC_RESIZE: u32 = 2415956995; +pub const VHOST_SET_VRING_ENDIAN: u32 = 2148052755; +pub const PPS_KC_BIND: u32 = 2148036773; +pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 536933639; +pub const UI_SET_FFBIT: u32 = 2147767659; +pub const IPMICTL_GET_MY_LUN_CMD: u32 = 1074030868; +pub const CEC_ADAP_G_PHYS_ADDR: u32 = 1073897729; +pub const CEC_G_MODE: u32 = 1074028808; +pub const USBDEVFS_RESETEP: u32 = 1074025731; +pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; +pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; +pub const MGSL_IOCSXCTRL: u32 = 536898837; +pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; +pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; +pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; +pub const ISST_IF_GET_PLATFORM_INFO: u32 = 1074331136; +pub const SCIF_FENCE_MARK: u32 = 3222303503; +pub const USBDEVFS_RELEASE_PORT: u32 = 1074025753; +pub const VFIO_CHECK_EXTENSION: u32 = 536886117; +pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 1076925483; +pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; +pub const UI_SET_PHYS: u32 = 2148029804; +pub const FDWERRORGET: u32 = 1076363799; +pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; +pub const MGSL_IOCGSTATS: u32 = 536898823; +pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; +pub const SIOCGSTAMP_NEW: u32 = 1074825478; +pub const RTC_WKALM_RD: u32 = 1076391952; +pub const PHN_GET_REG: u32 = 3221778432; +pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; +pub const PHN_NOT_OH: u32 = 536899588; +pub const PPGETMODES: u32 = 1074032791; +pub const CHIOGPARAMS: u32 = 1075077894; +pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; +pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; +pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; +pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; +pub const MGSL_IOCWAITGPIO: u32 = 3222301970; +pub const PMU_IOC_CAN_SLEEP: u32 = 1074283013; +pub const KCOV_ENABLE: u32 = 536896356; +pub const BTRFS_IOC_CLONE: u32 = 2147783689; +pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; +pub const AGPIOC_ALLOCATE: u32 = 3221766406; +pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; +pub const MGSL_IOCTXABORT: u32 = 536898822; +pub const MGSL_IOCSGPIO: u32 = 2148560144; +pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; +pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; +pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; +pub const RTC_UIE_OFF: u32 = 536899588; +pub const BT_BMC_IOCTL_SMS_ATN: u32 = 536916224; +pub const NVME_IOCTL_ID: u32 = 536890944; +pub const NE_START_ENCLAVE: u32 = 3222318628; +pub const VIDIOC_STREAMON: u32 = 2147767826; +pub const FDPOLLDRVSTAT: u32 = 1078985235; +pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; +pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; +pub const VIDIOC_SUBDEV_S_STD: u32 = 2148029976; +pub const WDIOC_GETTIMELEFT: u32 = 1074026250; +pub const ATM_GETLINKRATE: u32 = 2148557185; +pub const RTC_WKALM_SET: u32 = 2150133775; +pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; +pub const ATMARP_ENCAP: u32 = 536895973; +pub const CAPI_GET_FLAGS: u32 = 1074021155; +pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; +pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; +pub const NS_GET_OWNER_UID: u32 = 536917764; +pub const VIDIOC_OVERLAY: u32 = 2147767822; +pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; +pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; +pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; +pub const ATM_GETADDR: u32 = 2148557190; +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 = 536883979; +pub const JSIOCSAXMAP: u32 = 2151705137; +pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 2147677462; +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 = 536886128; +pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; +pub const MMTIMER_GETOFFSET: u32 = 536898816; +pub const RIO_CM_CHAN_LISTEN: u32 = 2147640070; +pub const ATM_SETSC: u32 = 2147770865; +pub const F2FS_IOC_SHUTDOWN: u32 = 1074026621; +pub const NVME_IOCTL_RESCAN: u32 = 536890950; +pub const BLKOPENZONE: u32 = 2148536966; +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 = 536895968; +pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; +pub const HIDIOCGVERSION: u32 = 1074022401; +pub const VIDIOC_S_INPUT: u32 = 3221509671; +pub const VIDIOC_G_CROP: u32 = 3222558267; +pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 2147772707; +pub const EVIOCGEFFECTS: u32 = 1074021764; +pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; +pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; +pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; +pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; +pub const USBDEVFS_GETDRIVER: u32 = 2164544776; +pub const IDT77105_GETSTAT: u32 = 2148557106; +pub const HIDIOCINITREPORT: u32 = 536889349; +pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; +pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; +pub const RNDGETENTCNT: u32 = 1074024960; +pub const PPPIOCNEWUNIT: u32 = 3221517374; +pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; +pub const FDRESET: u32 = 536871508; +pub const IOC_PR_REGISTER: u32 = 2149085384; +pub const HIDIOCSREPORT: u32 = 2148288520; +pub const TEE_IOC_OPEN_SESSION: u32 = 1074832386; +pub const TEE_IOC_SUPPL_RECV: u32 = 1074832390; +pub const BTRFS_IOC_BALANCE_CTL: u32 = 2147783713; +pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; +pub const HIDIOCGRAWINFO: u32 = 1074284547; +pub const PPPIOCSCOMPRESS: u32 = 2148561997; +pub const USBDEVFS_CONNECTINFO: u32 = 2148029713; +pub const BLKRESETZONE: u32 = 2148536963; +pub const CHIOINITELEM: u32 = 536896273; +pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 2148560524; +pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; +pub const RIO_MPORT_MAINT_HDID_SET: u32 = 2147642625; +pub const PPGETPHASE: u32 = 1074032793; +pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 1091065115; +pub const FDMSGON: u32 = 536871493; +pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; +pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; +pub const MEDIA_REQUEST_IOC_REINIT: u32 = 536902785; +pub const IOC_OPAL_ERASE_LR: u32 = 2165338342; +pub const FDFMTBEG: u32 = 536871495; +pub const RNDRESEEDCRNG: u32 = 536891911; +pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; +pub const TUNSETNOCSUM: u32 = 2147767496; +pub const SONET_GETSTAT: u32 = 1076125968; +pub const TFD_IOC_SET_TICKS: u32 = 2148029440; +pub const PPDATADIR: u32 = 2147774608; +pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 2165338341; +pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; +pub const RIO_CM_CHAN_SEND: u32 = 2148557577; +pub const PPWCTLONIRQ: u32 = 2147578002; +pub const SONYPI_IOCGBRT: u32 = 1073837568; +pub const IOC_PR_RELEASE: u32 = 2148561098; +pub const PPCLRIRQ: u32 = 1074032787; +pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; +pub const MGSL_IOCSXSYNC: u32 = 536898835; +pub const HPET_IE_OFF: u32 = 536897538; +pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; +pub const SONET_SETFRAMING: u32 = 2147770645; +pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 2147755017; +pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; +pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; +pub const BLKFINISHZONE: u32 = 2148536968; +pub const EVIOCREVOKE: u32 = 2147763601; +pub const VFIO_DEVICE_FEATURE: u32 = 536886133; +pub const CCISS_GETPCIINFO: u32 = 1074283009; +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 = 2147767827; +pub const VDUSE_DESTROY_DEV: u32 = 2164293891; +pub const FDGETFDCSTAT: u32 = 1076363797; +pub const VIDIOC_S_PRIORITY: u32 = 2147767876; +pub const SNAPSHOT_FREEZE: u32 = 536883969; +pub const VIDIOC_ENUMINPUT: u32 = 3226490394; +pub const ZATM_GETPOOLZ: u32 = 2148557154; +pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; +pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; +pub const VIDIOC_G_STD: u32 = 1074288151; +pub const USBDEVFS_ALLOW_SUSPEND: u32 = 536892706; +pub const SONET_GETSTATZ: u32 = 1076125969; +pub const SCIF_ACCEPTREG: u32 = 3221779205; +pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; +pub const PPPIOCSRASYNCMAP: u32 = 2147775572; +pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; +pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; +pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; +pub const ATMLEC_CTRL: u32 = 536895952; +pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074294521; +pub const DM_DEV_CREATE: u32 = 3241737475; +pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; +pub const VIDIOC_G_CTRL: u32 = 3221771803; +pub const NBD_CLEAR_SOCK: u32 = 536914692; +pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 536886130; +pub const WDIOC_KEEPALIVE: u32 = 1074026245; +pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; +pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; +pub const PCITEST_BAR: u32 = 536891393; +pub const MGSL_IOCGGPIO: u32 = 1074818321; +pub const EVIOCSREP: u32 = 2148025603; +pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; +pub const HPET_DPI: u32 = 536897541; +pub const VDUSE_VQ_SETUP_KICKFD: u32 = 2148040982; +pub const ND_IOCTL_CALL: u32 = 3225439754; +pub const HIDIOCGDEVINFO: u32 = 1075595267; +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 = 1074026051; +pub const ATM_NEWBACKENDIF: u32 = 2147639795; +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 = 2150651474; +pub const DM_TABLE_LOAD: u32 = 3241737481; +pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; +pub const VIDIOC_G_OUTPUT: u32 = 1074026030; +pub const ATM_DROPPARTY: u32 = 2147770869; +pub const CHIOGELEM: u32 = 2154586896; +pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; +pub const EVIOCSKEYCODE: u32 = 2148025604; +pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; +pub const TUNSETLINK: u32 = 2147767501; +pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; +pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 536908828; +pub const PPS_SETPARAMS: u32 = 2148036770; +pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; +pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; +pub const WDIOC_SETTIMEOUT: u32 = 3221509894; +pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; +pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; +pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; +pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; +pub const VIDIOC_G_EDID: u32 = 3223868968; +pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 2149119243; +pub const RIO_MAP_INBOUND: u32 = 3223874833; +pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 2164814046; +pub const USBDEVFS_CLAIM_PORT: u32 = 1074025752; +pub const VIDIOC_S_AUDIO: u32 = 2150913570; +pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 1074816539; +pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 2150114067; +pub const BTRFS_IOC_SNAP_DESTROY: u32 = 2415957007; +pub const SNAPSHOT_FREE: u32 = 536883973; +pub const I8K_GET_SPEED: u32 = 3221776773; +pub const HIDIOCGREPORT: u32 = 2148288519; +pub const HPET_EPI: u32 = 536897540; +pub const JSIOCSCORR: u32 = 2149870113; +pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; +pub const RIO_MAP_OUTBOUND: u32 = 3223874831; +pub const ATM_SETESI: u32 = 2148557196; +pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; +pub const ATM_DELADDR: u32 = 2148557193; +pub const PPFCONTROL: u32 = 2147643534; +pub const SONYPI_IOCGFAN: u32 = 1073837578; +pub const RTC_IRQP_SET: u32 = 2148036620; +pub const PCITEST_WRITE: u32 = 2148028420; +pub const PPCLAIM: u32 = 536899723; +pub const VIDIOC_S_JPEGCOMP: u32 = 2156680766; +pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 1073899791; +pub const VHOST_SET_FEATURES: u32 = 2148052736; +pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; +pub const VIDIOC_DQBUF: u32 = 3227014673; +pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; +pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; +pub const ATMLEC_MCAST: u32 = 536895954; +pub const MMTIMER_GETFREQ: u32 = 1074294018; +pub const VIDIOC_G_SELECTION: u32 = 3225441886; +pub const RTC_ALM_SET: u32 = 2149871623; +pub const PPPOEIOCSFWD: u32 = 2148053248; +pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; +pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; +pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; +pub const FDFMTEND: u32 = 536871497; +pub const DMA_BUF_SET_NAME: u32 = 2148033025; +pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; +pub const RTC_UIE_ON: u32 = 536899587; +pub const PPRELEASE: u32 = 536899724; +pub const VFIO_IOMMU_UNMAP_DMA: u32 = 536886130; +pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; +pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; +pub const VFAT_IOCTL_READDIR_BOTH: u32 = 1110471169; +pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; +pub const VHOST_SET_VRING_KICK: u32 = 2148052768; +pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 2415957016; +pub const BTRFS_IOC_SNAP_CREATE: u32 = 2415956993; +pub const SONYPI_IOCGBAT2CAP: u32 = 1073903108; +pub const PPNEGOT: u32 = 2147774609; +pub const NBD_PRINT_DEBUG: u32 = 536914694; +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 = 1140888607; +pub const VIDIOC_ENUM_FMT: u32 = 3225441794; +pub const VIDIOC_G_INPUT: u32 = 1074026022; +pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; +pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 1074050691; +pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; +pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 2151715884; +pub const MMTIMER_GETCOUNTER: u32 = 1074294025; +pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; +pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; +pub const RIO_CM_CHAN_BIND: u32 = 2148033285; +pub const HIDIOCGRDESC: u32 = 1342457858; +pub const MGSL_IOCGIF: u32 = 536898827; +pub const VIDIOC_S_OUTPUT: u32 = 3221509679; +pub const HIDIOCGREPORTINFO: u32 = 3222030345; +pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; +pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; +pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 2149884501; +pub const BLKGETDISKSEQ: u32 = 1074270848; +pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; +pub const ACRN_IOCTL_DESTROY_VM: u32 = 536912401; +pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 2148835923; +pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 536912434; +pub const ACRN_IOCTL_IRQFD: u32 = 2149098097; +pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; +pub const ACRN_IOCTL_INJECT_MSI: u32 = 2148573731; +pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 536912435; +pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 2148835924; +pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 2148049457; +pub const ACRN_IOCTL_SET_IRQLINE: u32 = 2148049445; +pub const ACRN_IOCTL_START_VM: u32 = 536912402; +pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 2166923798; +pub const ACRN_IOCTL_SET_MEMSEG: u32 = 2149622337; +pub const ACRN_IOCTL_PAUSE_VM: u32 = 536912403; +pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 536912437; +pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 2149622338; +pub const ACRN_IOCTL_IOEVENTFD: u32 = 2149622384; +pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; +pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; +pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; +pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2148049444; +pub const TCGETS2: u32 = 1076655123; +pub const TCSETS2: u32 = 2150396948; +pub const TCSETSF2: u32 = 2150396950; +pub const TCSETSW2: u32 = 2150396949; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..223905591cf0b44016bf893cfcadf629f6668c97 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_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_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_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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc64/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..7eb429dc3b1d51daeb60e56b17334c58dd8ffbae --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/loop_device.rs @@ -0,0 +1,140 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_old_dev_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_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_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_long; +pub type __u64 = crate::ctypes::c_ulong; +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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc64/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/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/powerpc64/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/powerpc64/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..5d9fa20d6ccdf0d4705689c89f56bfa047823734 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/net.rs @@ -0,0 +1,3497 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_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_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_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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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 SO_RCVLOWAT: u32 = 16; +pub const SO_SNDLOWAT: u32 = 17; +pub const SO_RCVTIMEO_OLD: u32 = 18; +pub const SO_SNDTIMEO_OLD: u32 = 19; +pub const SO_PASSCRED: u32 = 20; +pub const SO_PEERCRED: u32 = 21; +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_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 = 18; +pub const SO_SNDTIMEO: u32 = 19; +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 __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/powerpc64/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..5d7b7af2358476af85f061061a64de9e544e1f44 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_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_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_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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc64/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..324f5b4ed8b30b6c6f64f245580df178212f681d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_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_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_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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc64/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..9e4fc021e6ab36a8db64a22ae29f7df84566af0f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/ptrace.rs @@ -0,0 +1,938 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_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_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_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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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 gpr: [crate::ctypes::c_ulong; 32usize], +pub nip: crate::ctypes::c_ulong, +pub msr: crate::ctypes::c_ulong, +pub orig_gpr3: crate::ctypes::c_ulong, +pub ctr: crate::ctypes::c_ulong, +pub link: crate::ctypes::c_ulong, +pub xer: crate::ctypes::c_ulong, +pub ccr: crate::ctypes::c_ulong, +pub softe: crate::ctypes::c_ulong, +pub trap: crate::ctypes::c_ulong, +pub dar: crate::ctypes::c_ulong, +pub dsisr: crate::ctypes::c_ulong, +pub result: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ppc_debug_info { +pub version: __u32, +pub num_instruction_bps: __u32, +pub num_data_bps: __u32, +pub num_condition_regs: __u32, +pub data_bp_alignment: __u32, +pub sizeof_condition: __u32, +pub features: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ppc_hw_breakpoint { +pub version: __u32, +pub trigger_type: __u32, +pub addr_mode: __u32, +pub condition_mode: __u32, +pub addr: __u64, +pub addr2: __u64, +pub condition_value: __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 PT_R0: u32 = 0; +pub const PT_R1: u32 = 1; +pub const PT_R2: u32 = 2; +pub const PT_R3: u32 = 3; +pub const PT_R4: u32 = 4; +pub const PT_R5: u32 = 5; +pub const PT_R6: u32 = 6; +pub const PT_R7: u32 = 7; +pub const PT_R8: u32 = 8; +pub const PT_R9: u32 = 9; +pub const PT_R10: u32 = 10; +pub const PT_R11: u32 = 11; +pub const PT_R12: u32 = 12; +pub const PT_R13: u32 = 13; +pub const PT_R14: u32 = 14; +pub const PT_R15: u32 = 15; +pub const PT_R16: u32 = 16; +pub const PT_R17: u32 = 17; +pub const PT_R18: u32 = 18; +pub const PT_R19: u32 = 19; +pub const PT_R20: u32 = 20; +pub const PT_R21: u32 = 21; +pub const PT_R22: u32 = 22; +pub const PT_R23: u32 = 23; +pub const PT_R24: u32 = 24; +pub const PT_R25: u32 = 25; +pub const PT_R26: u32 = 26; +pub const PT_R27: u32 = 27; +pub const PT_R28: u32 = 28; +pub const PT_R29: u32 = 29; +pub const PT_R30: u32 = 30; +pub const PT_R31: u32 = 31; +pub const PT_NIP: u32 = 32; +pub const PT_MSR: u32 = 33; +pub const PT_ORIG_R3: u32 = 34; +pub const PT_CTR: u32 = 35; +pub const PT_LNK: u32 = 36; +pub const PT_XER: u32 = 37; +pub const PT_CCR: u32 = 38; +pub const PT_SOFTE: u32 = 39; +pub const PT_TRAP: u32 = 40; +pub const PT_DAR: u32 = 41; +pub const PT_DSISR: u32 = 42; +pub const PT_RESULT: u32 = 43; +pub const PT_DSCR: u32 = 44; +pub const PT_REGS_COUNT: u32 = 44; +pub const PT_FPR0: u32 = 48; +pub const PT_FPSCR: u32 = 80; +pub const PT_VR0: u32 = 82; +pub const PT_VSCR: u32 = 147; +pub const PT_VRSAVE: u32 = 148; +pub const PT_VSR0: u32 = 150; +pub const PT_VSR31: u32 = 212; +pub const PTRACE_GETVRREGS: u32 = 18; +pub const PTRACE_SETVRREGS: u32 = 19; +pub const PTRACE_GETEVRREGS: u32 = 20; +pub const PTRACE_SETEVRREGS: u32 = 21; +pub const PTRACE_GETVSRREGS: u32 = 27; +pub const PTRACE_SETVSRREGS: u32 = 28; +pub const PTRACE_SYSEMU: u32 = 29; +pub const PTRACE_SYSEMU_SINGLESTEP: u32 = 30; +pub const PTRACE_GET_DEBUGREG: u32 = 25; +pub const PTRACE_SET_DEBUGREG: u32 = 26; +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_GETREGS64: u32 = 22; +pub const PTRACE_SETREGS64: u32 = 23; +pub const PPC_PTRACE_PEEKTEXT_3264: u32 = 149; +pub const PPC_PTRACE_PEEKDATA_3264: u32 = 148; +pub const PPC_PTRACE_POKETEXT_3264: u32 = 147; +pub const PPC_PTRACE_POKEDATA_3264: u32 = 146; +pub const PPC_PTRACE_PEEKUSR_3264: u32 = 145; +pub const PPC_PTRACE_POKEUSR_3264: u32 = 144; +pub const PTRACE_SINGLEBLOCK: u32 = 256; +pub const PPC_PTRACE_GETHWDBGINFO: u32 = 137; +pub const PPC_PTRACE_SETHWDEBUG: u32 = 136; +pub const PPC_PTRACE_DELHWDEBUG: u32 = 135; +pub const PPC_DEBUG_FEATURE_INSN_BP_RANGE: u32 = 1; +pub const PPC_DEBUG_FEATURE_INSN_BP_MASK: u32 = 2; +pub const PPC_DEBUG_FEATURE_DATA_BP_RANGE: u32 = 4; +pub const PPC_DEBUG_FEATURE_DATA_BP_MASK: u32 = 8; +pub const PPC_DEBUG_FEATURE_DATA_BP_DAWR: u32 = 16; +pub const PPC_DEBUG_FEATURE_DATA_BP_ARCH_31: u32 = 32; +pub const PPC_BREAKPOINT_TRIGGER_EXECUTE: u32 = 1; +pub const PPC_BREAKPOINT_TRIGGER_READ: u32 = 2; +pub const PPC_BREAKPOINT_TRIGGER_WRITE: u32 = 4; +pub const PPC_BREAKPOINT_TRIGGER_RW: u32 = 6; +pub const PPC_BREAKPOINT_MODE_EXACT: u32 = 0; +pub const PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE: u32 = 1; +pub const PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE: u32 = 2; +pub const PPC_BREAKPOINT_MODE_MASK: u32 = 3; +pub const PPC_BREAKPOINT_CONDITION_MODE: u32 = 3; +pub const PPC_BREAKPOINT_CONDITION_NONE: u32 = 0; +pub const PPC_BREAKPOINT_CONDITION_AND: u32 = 1; +pub const PPC_BREAKPOINT_CONDITION_EXACT: u32 = 1; +pub const PPC_BREAKPOINT_CONDITION_OR: u32 = 2; +pub const PPC_BREAKPOINT_CONDITION_AND_OR: u32 = 3; +pub const PPC_BREAKPOINT_CONDITION_BE_ALL: u32 = 16711680; +pub const PPC_BREAKPOINT_CONDITION_BE_SHIFT: u32 = 16; +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/powerpc64/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..d2df177c4056dea2fb05a711da20cc90487f8697 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_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_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_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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc64/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..6a96b955dd318ce91e9c40ba4ffdad30dbb64a89 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/powerpc64/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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_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_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_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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/riscv32/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/auxvec.rs new file mode 100644 index 0000000000000000000000000000000000000000..e28321d3a8fc6c785eb8b6b790e82c0e1065fc57 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/auxvec.rs @@ -0,0 +1,40 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_L1I_CACHESIZE: u32 = 40; +pub const AT_L1I_CACHEGEOMETRY: u32 = 41; +pub const AT_L1D_CACHESIZE: u32 = 42; +pub const AT_L1D_CACHEGEOMETRY: u32 = 43; +pub const AT_L2_CACHESIZE: u32 = 44; +pub const AT_L2_CACHEGEOMETRY: u32 = 45; +pub const AT_L3_CACHESIZE: u32 = 46; +pub const AT_L3_CACHEGEOMETRY: u32 = 47; +pub const AT_VECTOR_SIZE_ARCH: u32 = 10; +pub const AT_MINSIGSTKSZ: u32 = 51; +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/riscv32/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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/riscv32/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/riscv32/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..6006b5453915025099809300d636fb26f49b43bb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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_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 = 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/riscv32/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..9a42c19d34d48200815b4d7f42524a379c334b58 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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_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 = 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/riscv32/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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/riscv32/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/riscv32/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..17245107d8a2dcec9f52ec1eca3508390ab9ef14 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/general.rs @@ -0,0 +1,3189 @@ +/* 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_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 = 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 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 = __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(Debug, Copy, Clone)] +pub struct sigset_t { +pub sig: [crate::ctypes::c_ulong; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaction { +pub sa_handler: __sighandler_t, +pub sa_flags: crate::ctypes::c_ulong, +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; 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 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 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 __pad1: crate::ctypes::c_ulonglong, +pub st_size: crate::ctypes::c_longlong, +pub st_blksize: crate::ctypes::c_int, +pub __pad2: crate::ctypes::c_int, +pub st_blocks: crate::ctypes::c_longlong, +pub st_atime: crate::ctypes::c_int, +pub st_atime_nsec: crate::ctypes::c_uint, +pub st_mtime: crate::ctypes::c_int, +pub st_mtime_nsec: crate::ctypes::c_uint, +pub st_ctime: crate::ctypes::c_int, +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_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 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 = 64; +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 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_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_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_fcntl64: 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_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_statfs64: u32 = 43; +pub const __NR_fstatfs64: u32 = 44; +pub const __NR_truncate64: u32 = 45; +pub const __NR_ftruncate64: 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_llseek: 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_sendfile64: u32 = 71; +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_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_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_set_robust_list: u32 = 99; +pub const __NR_get_robust_list: u32 = 100; +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_getoverrun: u32 = 109; +pub const __NR_timer_delete: u32 = 111; +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_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_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_getrusage: u32 = 165; +pub const __NR_umask: u32 = 166; +pub const __NR_prctl: u32 = 167; +pub const __NR_getcpu: u32 = 168; +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_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_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_mmap2: u32 = 222; +pub const __NR_fadvise64_64: 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_riscv_hwprobe: u32 = 258; +pub const __NR_riscv_flush_icache: u32 = 259; +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_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_rseq: u32 = 293; +pub const __NR_kexec_file_load: u32 = 294; +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_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; 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/riscv32/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..a7cb133f6d3a235ccd8435d889f10328638b35ae --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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_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 = 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/riscv32/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..37b557031a08524e4b266d52146bd3b060e05429 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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_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 = 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/riscv32/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..f5f2897b5b6fbea8e3cee059b84bc5a0662a4fe1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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_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 = 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/riscv32/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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/riscv32/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/riscv32/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..ca217846693f7fa22c5a65737ac06015bb802fbf --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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_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 = 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/riscv32/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..7d37c95d67cbd5ca125562d41e2059615c3947ce --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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 = 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/riscv32/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..003e937b447ae4e308a7c05a365c3a686b6c107d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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_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 = 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/riscv32/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..ea21927f70483d04b6a4133bcb2348b9ad047b42 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/loop_device.rs @@ -0,0 +1,132 @@ +/* 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 = 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/riscv32/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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/riscv32/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/riscv32/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..8cb6e51b21e90209a5f48599abf6b949da22d939 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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_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 = 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/riscv32/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..bbceed6c4581c55056eaa81701cd0275b51d685b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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_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 = 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 __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/riscv32/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..8e21959df535f440f5ad7a14cd7fcf3d6fc233dc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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_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 = 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/riscv32/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..7af6257964ae975e7953c333779fc84e107b617c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/ptrace.rs @@ -0,0 +1,892 @@ +/* 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 = 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 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/riscv32/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..7ed06a5054b72387844a7806d9eb3c4d377dddb0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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_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 = 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/riscv32/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..f285133ce2641a848a198285f91dd2f45c08a29e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv32/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_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 = 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_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/riscv64/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/auxvec.rs new file mode 100644 index 0000000000000000000000000000000000000000..e28321d3a8fc6c785eb8b6b790e82c0e1065fc57 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/auxvec.rs @@ -0,0 +1,40 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_L1I_CACHESIZE: u32 = 40; +pub const AT_L1I_CACHEGEOMETRY: u32 = 41; +pub const AT_L1D_CACHESIZE: u32 = 42; +pub const AT_L1D_CACHEGEOMETRY: u32 = 43; +pub const AT_L2_CACHESIZE: u32 = 44; +pub const AT_L2_CACHEGEOMETRY: u32 = 45; +pub const AT_L3_CACHESIZE: u32 = 46; +pub const AT_L3_CACHEGEOMETRY: u32 = 47; +pub const AT_VECTOR_SIZE_ARCH: u32 = 10; +pub const AT_MINSIGSTKSZ: u32 = 51; +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/riscv64/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/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/riscv64/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/riscv64/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..c8680dfb01f3c692a1d0fee1bd27a3f70b9becf3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/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_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)] +#[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/riscv64/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..595b774c48c872defb8289b39e22772b60efd8b8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/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_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 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/riscv64/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/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/riscv64/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/riscv64/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..818b7f340839e463c080343d4a7fe56897d9d116 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/general.rs @@ -0,0 +1,3174 @@ +/* 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_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 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_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)] +#[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_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 = 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 = 64; +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 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_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_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_riscv_hwprobe: u32 = 258; +pub const __NR_riscv_flush_icache: u32 = 259; +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/riscv64/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..12173e6355806c33c81ca6de2a15d90477f49f6b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/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_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, 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/riscv64/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/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/riscv64/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/x86/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/bootparam.rs new file mode 100644 index 0000000000000000000000000000000000000000..30775d200c0f4845814f654e1dda66de760359fa --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/bootparam.rs @@ -0,0 +1,669 @@ +/* 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 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/x86/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/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/x86/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/x86/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..4889d3c8732661fed6facb3e9fc015f3cc6a2162 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/general.rs @@ -0,0 +1,3355 @@ +/* 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)] +#[repr(align(8))] +#[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)] +#[repr(align(8))] +#[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_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_uint, +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 __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 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_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_waitpid: 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_time: u32 = 13; +pub const __NR_mknod: u32 = 14; +pub const __NR_chmod: u32 = 15; +pub const __NR_lchown: u32 = 16; +pub const __NR_break: u32 = 17; +pub const __NR_oldstat: u32 = 18; +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_setuid: u32 = 23; +pub const __NR_getuid: u32 = 24; +pub const __NR_stime: u32 = 25; +pub const __NR_ptrace: u32 = 26; +pub const __NR_alarm: u32 = 27; +pub const __NR_oldfstat: u32 = 28; +pub const __NR_pause: u32 = 29; +pub const __NR_utime: u32 = 30; +pub const __NR_stty: u32 = 31; +pub const __NR_gtty: u32 = 32; +pub const __NR_access: u32 = 33; +pub const __NR_nice: u32 = 34; +pub const __NR_ftime: u32 = 35; +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_prof: u32 = 44; +pub const __NR_brk: 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_umount2: u32 = 52; +pub const __NR_lock: u32 = 53; +pub const __NR_ioctl: u32 = 54; +pub const __NR_fcntl: u32 = 55; +pub const __NR_mpx: u32 = 56; +pub const __NR_setpgid: u32 = 57; +pub const __NR_ulimit: u32 = 58; +pub const __NR_oldolduname: u32 = 59; +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_sgetmask: u32 = 68; +pub const __NR_ssetmask: u32 = 69; +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_getrlimit: u32 = 76; +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_select: u32 = 82; +pub const __NR_symlink: u32 = 83; +pub const __NR_oldlstat: u32 = 84; +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_fchown: u32 = 95; +pub const __NR_getpriority: u32 = 96; +pub const __NR_setpriority: u32 = 97; +pub const __NR_profil: u32 = 98; +pub const __NR_statfs: u32 = 99; +pub const __NR_fstatfs: u32 = 100; +pub const __NR_ioperm: u32 = 101; +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_olduname: u32 = 109; +pub const __NR_iopl: u32 = 110; +pub const __NR_vhangup: u32 = 111; +pub const __NR_idle: u32 = 112; +pub const __NR_vm86old: u32 = 113; +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_modify_ldt: u32 = 123; +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_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_vm86: u32 = 166; +pub const __NR_query_module: u32 = 167; +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_getpmsg: u32 = 188; +pub const __NR_putpmsg: u32 = 189; +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_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_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_set_thread_area: u32 = 243; +pub const __NR_get_thread_area: u32 = 244; +pub const __NR_io_setup: u32 = 245; +pub const __NR_io_destroy: u32 = 246; +pub const __NR_io_getevents: u32 = 247; +pub const __NR_io_submit: u32 = 248; +pub const __NR_io_cancel: u32 = 249; +pub const __NR_fadvise64: u32 = 250; +pub const __NR_exit_group: u32 = 252; +pub const __NR_lookup_dcookie: u32 = 253; +pub const __NR_epoll_create: u32 = 254; +pub const __NR_epoll_ctl: u32 = 255; +pub const __NR_epoll_wait: u32 = 256; +pub const __NR_remap_file_pages: u32 = 257; +pub const __NR_set_tid_address: u32 = 258; +pub const __NR_timer_create: u32 = 259; +pub const __NR_timer_settime: u32 = 260; +pub const __NR_timer_gettime: u32 = 261; +pub const __NR_timer_getoverrun: u32 = 262; +pub const __NR_timer_delete: u32 = 263; +pub const __NR_clock_settime: u32 = 264; +pub const __NR_clock_gettime: u32 = 265; +pub const __NR_clock_getres: u32 = 266; +pub const __NR_clock_nanosleep: u32 = 267; +pub const __NR_statfs64: u32 = 268; +pub const __NR_fstatfs64: u32 = 269; +pub const __NR_tgkill: u32 = 270; +pub const __NR_utimes: u32 = 271; +pub const __NR_fadvise64_64: u32 = 272; +pub const __NR_vserver: u32 = 273; +pub const __NR_mbind: u32 = 274; +pub const __NR_get_mempolicy: u32 = 275; +pub const __NR_set_mempolicy: u32 = 276; +pub const __NR_mq_open: u32 = 277; +pub const __NR_mq_unlink: u32 = 278; +pub const __NR_mq_timedsend: u32 = 279; +pub const __NR_mq_timedreceive: u32 = 280; +pub const __NR_mq_notify: u32 = 281; +pub const __NR_mq_getsetattr: u32 = 282; +pub const __NR_kexec_load: u32 = 283; +pub const __NR_waitid: u32 = 284; +pub const __NR_add_key: u32 = 286; +pub const __NR_request_key: u32 = 287; +pub const __NR_keyctl: u32 = 288; +pub const __NR_ioprio_set: u32 = 289; +pub const __NR_ioprio_get: u32 = 290; +pub const __NR_inotify_init: u32 = 291; +pub const __NR_inotify_add_watch: u32 = 292; +pub const __NR_inotify_rm_watch: u32 = 293; +pub const __NR_migrate_pages: u32 = 294; +pub const __NR_openat: u32 = 295; +pub const __NR_mkdirat: u32 = 296; +pub const __NR_mknodat: u32 = 297; +pub const __NR_fchownat: u32 = 298; +pub const __NR_futimesat: u32 = 299; +pub const __NR_fstatat64: u32 = 300; +pub const __NR_unlinkat: u32 = 301; +pub const __NR_renameat: u32 = 302; +pub const __NR_linkat: u32 = 303; +pub const __NR_symlinkat: u32 = 304; +pub const __NR_readlinkat: u32 = 305; +pub const __NR_fchmodat: u32 = 306; +pub const __NR_faccessat: u32 = 307; +pub const __NR_pselect6: u32 = 308; +pub const __NR_ppoll: u32 = 309; +pub const __NR_unshare: u32 = 310; +pub const __NR_set_robust_list: u32 = 311; +pub const __NR_get_robust_list: u32 = 312; +pub const __NR_splice: u32 = 313; +pub const __NR_sync_file_range: u32 = 314; +pub const __NR_tee: u32 = 315; +pub const __NR_vmsplice: u32 = 316; +pub const __NR_move_pages: u32 = 317; +pub const __NR_getcpu: u32 = 318; +pub const __NR_epoll_pwait: u32 = 319; +pub const __NR_utimensat: u32 = 320; +pub const __NR_signalfd: u32 = 321; +pub const __NR_timerfd_create: u32 = 322; +pub const __NR_eventfd: u32 = 323; +pub const __NR_fallocate: u32 = 324; +pub const __NR_timerfd_settime: u32 = 325; +pub const __NR_timerfd_gettime: u32 = 326; +pub const __NR_signalfd4: u32 = 327; +pub const __NR_eventfd2: u32 = 328; +pub const __NR_epoll_create1: u32 = 329; +pub const __NR_dup3: u32 = 330; +pub const __NR_pipe2: u32 = 331; +pub const __NR_inotify_init1: u32 = 332; +pub const __NR_preadv: u32 = 333; +pub const __NR_pwritev: u32 = 334; +pub const __NR_rt_tgsigqueueinfo: u32 = 335; +pub const __NR_perf_event_open: u32 = 336; +pub const __NR_recvmmsg: u32 = 337; +pub const __NR_fanotify_init: u32 = 338; +pub const __NR_fanotify_mark: u32 = 339; +pub const __NR_prlimit64: u32 = 340; +pub const __NR_name_to_handle_at: u32 = 341; +pub const __NR_open_by_handle_at: u32 = 342; +pub const __NR_clock_adjtime: u32 = 343; +pub const __NR_syncfs: u32 = 344; +pub const __NR_sendmmsg: u32 = 345; +pub const __NR_setns: u32 = 346; +pub const __NR_process_vm_readv: u32 = 347; +pub const __NR_process_vm_writev: u32 = 348; +pub const __NR_kcmp: u32 = 349; +pub const __NR_finit_module: u32 = 350; +pub const __NR_sched_setattr: u32 = 351; +pub const __NR_sched_getattr: u32 = 352; +pub const __NR_renameat2: u32 = 353; +pub const __NR_seccomp: u32 = 354; +pub const __NR_getrandom: u32 = 355; +pub const __NR_memfd_create: u32 = 356; +pub const __NR_bpf: u32 = 357; +pub const __NR_execveat: 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_userfaultfd: u32 = 374; +pub const __NR_membarrier: u32 = 375; +pub const __NR_mlock2: u32 = 376; +pub const __NR_copy_file_range: u32 = 377; +pub const __NR_preadv2: u32 = 378; +pub const __NR_pwritev2: u32 = 379; +pub const __NR_pkey_mprotect: u32 = 380; +pub const __NR_pkey_alloc: u32 = 381; +pub const __NR_pkey_free: u32 = 382; +pub const __NR_statx: u32 = 383; +pub const __NR_arch_prctl: u32 = 384; +pub const __NR_io_pgetevents: u32 = 385; +pub const __NR_rseq: u32 = 386; +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_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 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 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 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/x86/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..ab3489e614f72ebe133aa9cef574a8640762cec2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/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_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)] +#[repr(align(8))] +#[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)] +#[repr(align(8))] +#[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/x86/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/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/x86/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/x86/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..5c9eb4db12e7b03f69c5db9f5ac48b4c5840b85a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/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_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)] +#[repr(align(8))] +#[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)] +#[repr(align(8))] +#[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/x86/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/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/x86/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/x86/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..36140633769a882f0c926f7eeb61c1199053a7d2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/io_uring.rs @@ -0,0 +1,1442 @@ +/* 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: [u32; 4usize], +} +#[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)] +#[repr(align(8))] +#[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)] +#[repr(align(8))] +#[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)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +} +#[repr(C)] +#[repr(align(8))] +#[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: [u32; 4usize], +} +#[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/x86/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..35c4c22c4b7ea21fd04ca12537876c09d30a565b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/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 = 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 = 3225424499; +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 = 2155370073; +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 = 1076645442; +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 = 1075061508; +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 = 3225441817; +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 = 1076110081; +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 = 3222565639; +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 = 2148279052; +pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074537239; +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 = 3223614220; +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 = 3223614218; +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 = 3223614219; +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 = 2228508482; +pub const VFIO_EEH_PE_OP: u32 = 15225; +pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223069448; +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 = 1078236198; +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 = 3223614221; +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 = 3233846309; +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 = 3223123209; +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 = 3222545173; +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 = 3222565638; +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 = 3225441817; +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 = 1076110098; +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 = 3222565646; +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 = 2179503164; +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 = 3391394869; +pub const PPPIOCGFLAGS: u32 = 2147775578; +pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222545172; +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 = 3222041359; +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 = 3223614225; +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 = 3226228250; +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 = 3223093520; +pub const FW_CDEV_IOC_GET_INFO: u32 = 3223593728; +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 = 1075115275; +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 = 3224142101; +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 = 1092919830; +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/x86/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/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/x86/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/x86/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/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/x86/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/x86/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/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/x86/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/x86/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..aebb53c1e5fba2747b9153a46f7d658249954c87 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/net.rs @@ -0,0 +1,3485 @@ +/* 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)] +#[repr(align(8))] +#[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)] +#[repr(align(8))] +#[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/x86/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..2426b94f476c07e4b2a92ff9f6b8f8c49105033f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/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_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 __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/x86/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/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/x86/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/x86/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..cabcf0295013ad8b4956186ac7f37b19b0880015 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/ptrace.rs @@ -0,0 +1,915 @@ +/* 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 ebx: crate::ctypes::c_long, +pub ecx: crate::ctypes::c_long, +pub edx: crate::ctypes::c_long, +pub esi: crate::ctypes::c_long, +pub edi: crate::ctypes::c_long, +pub ebp: crate::ctypes::c_long, +pub eax: crate::ctypes::c_long, +pub xds: crate::ctypes::c_int, +pub xes: crate::ctypes::c_int, +pub xfs: crate::ctypes::c_int, +pub xgs: crate::ctypes::c_int, +pub orig_eax: crate::ctypes::c_long, +pub eip: crate::ctypes::c_long, +pub xcs: crate::ctypes::c_int, +pub eflags: crate::ctypes::c_long, +pub esp: crate::ctypes::c_long, +pub xss: crate::ctypes::c_int, +} +#[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 EBX: u32 = 0; +pub const ECX: u32 = 1; +pub const EDX: u32 = 2; +pub const ESI: u32 = 3; +pub const EDI: u32 = 4; +pub const EBP: u32 = 5; +pub const EAX: u32 = 6; +pub const DS: u32 = 7; +pub const ES: u32 = 8; +pub const FS: u32 = 9; +pub const GS: u32 = 10; +pub const ORIG_EAX: u32 = 11; +pub const EIP: u32 = 12; +pub const CS: u32 = 13; +pub const EFL: u32 = 14; +pub const UESP: u32 = 15; +pub const SS: u32 = 16; +pub const FRAME_SIZE: u32 = 17; +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_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: u32 = 0; +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/x86/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/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/x86/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/x86/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..06d3016bfa5c8ae3441c546d29d30506445b5750 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/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_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_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_64/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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/x86_64/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/x86_64/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/bootparam.rs new file mode 100644 index 0000000000000000000000000000000000000000..59527fba20f3e389d3849b9d46f8766419f77453 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_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_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_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 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/x86_64/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..1caba3beee573f3b4e1c97a786f6203d765288a4 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_old_dev_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_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 = __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/x86_64/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..d0b58c4ceeb9e416b04d3fa13443c2849304f501 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_old_dev_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_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 = __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/x86_64/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_64/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/x86_64/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..838fde76a9c3d2dd04f0b8fab48430e1b4aebdab --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/general.rs @@ -0,0 +1,3271 @@ +/* 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_old_dev_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_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 = __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 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, 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_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: __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: __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_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 = 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 = 0; +pub const __NR_write: u32 = 1; +pub const __NR_open: u32 = 2; +pub const __NR_close: u32 = 3; +pub const __NR_stat: u32 = 4; +pub const __NR_fstat: u32 = 5; +pub const __NR_lstat: u32 = 6; +pub const __NR_poll: u32 = 7; +pub const __NR_lseek: u32 = 8; +pub const __NR_mmap: u32 = 9; +pub const __NR_mprotect: u32 = 10; +pub const __NR_munmap: u32 = 11; +pub const __NR_brk: u32 = 12; +pub const __NR_rt_sigaction: u32 = 13; +pub const __NR_rt_sigprocmask: u32 = 14; +pub const __NR_rt_sigreturn: u32 = 15; +pub const __NR_ioctl: u32 = 16; +pub const __NR_pread64: u32 = 17; +pub const __NR_pwrite64: u32 = 18; +pub const __NR_readv: u32 = 19; +pub const __NR_writev: u32 = 20; +pub const __NR_access: u32 = 21; +pub const __NR_pipe: u32 = 22; +pub const __NR_select: u32 = 23; +pub const __NR_sched_yield: u32 = 24; +pub const __NR_mremap: u32 = 25; +pub const __NR_msync: u32 = 26; +pub const __NR_mincore: u32 = 27; +pub const __NR_madvise: u32 = 28; +pub const __NR_shmget: u32 = 29; +pub const __NR_shmat: u32 = 30; +pub const __NR_shmctl: u32 = 31; +pub const __NR_dup: u32 = 32; +pub const __NR_dup2: u32 = 33; +pub const __NR_pause: u32 = 34; +pub const __NR_nanosleep: u32 = 35; +pub const __NR_getitimer: u32 = 36; +pub const __NR_alarm: u32 = 37; +pub const __NR_setitimer: u32 = 38; +pub const __NR_getpid: u32 = 39; +pub const __NR_sendfile: u32 = 40; +pub const __NR_socket: u32 = 41; +pub const __NR_connect: u32 = 42; +pub const __NR_accept: u32 = 43; +pub const __NR_sendto: u32 = 44; +pub const __NR_recvfrom: u32 = 45; +pub const __NR_sendmsg: u32 = 46; +pub const __NR_recvmsg: u32 = 47; +pub const __NR_shutdown: u32 = 48; +pub const __NR_bind: u32 = 49; +pub const __NR_listen: u32 = 50; +pub const __NR_getsockname: u32 = 51; +pub const __NR_getpeername: u32 = 52; +pub const __NR_socketpair: u32 = 53; +pub const __NR_setsockopt: u32 = 54; +pub const __NR_getsockopt: u32 = 55; +pub const __NR_clone: u32 = 56; +pub const __NR_fork: u32 = 57; +pub const __NR_vfork: u32 = 58; +pub const __NR_execve: u32 = 59; +pub const __NR_exit: u32 = 60; +pub const __NR_wait4: u32 = 61; +pub const __NR_kill: u32 = 62; +pub const __NR_uname: u32 = 63; +pub const __NR_semget: u32 = 64; +pub const __NR_semop: u32 = 65; +pub const __NR_semctl: u32 = 66; +pub const __NR_shmdt: u32 = 67; +pub const __NR_msgget: u32 = 68; +pub const __NR_msgsnd: u32 = 69; +pub const __NR_msgrcv: u32 = 70; +pub const __NR_msgctl: u32 = 71; +pub const __NR_fcntl: u32 = 72; +pub const __NR_flock: u32 = 73; +pub const __NR_fsync: u32 = 74; +pub const __NR_fdatasync: u32 = 75; +pub const __NR_truncate: u32 = 76; +pub const __NR_ftruncate: u32 = 77; +pub const __NR_getdents: u32 = 78; +pub const __NR_getcwd: u32 = 79; +pub const __NR_chdir: u32 = 80; +pub const __NR_fchdir: u32 = 81; +pub const __NR_rename: u32 = 82; +pub const __NR_mkdir: u32 = 83; +pub const __NR_rmdir: u32 = 84; +pub const __NR_creat: u32 = 85; +pub const __NR_link: u32 = 86; +pub const __NR_unlink: u32 = 87; +pub const __NR_symlink: u32 = 88; +pub const __NR_readlink: u32 = 89; +pub const __NR_chmod: u32 = 90; +pub const __NR_fchmod: u32 = 91; +pub const __NR_chown: u32 = 92; +pub const __NR_fchown: u32 = 93; +pub const __NR_lchown: u32 = 94; +pub const __NR_umask: u32 = 95; +pub const __NR_gettimeofday: u32 = 96; +pub const __NR_getrlimit: u32 = 97; +pub const __NR_getrusage: u32 = 98; +pub const __NR_sysinfo: u32 = 99; +pub const __NR_times: u32 = 100; +pub const __NR_ptrace: u32 = 101; +pub const __NR_getuid: u32 = 102; +pub const __NR_syslog: u32 = 103; +pub const __NR_getgid: u32 = 104; +pub const __NR_setuid: u32 = 105; +pub const __NR_setgid: u32 = 106; +pub const __NR_geteuid: u32 = 107; +pub const __NR_getegid: u32 = 108; +pub const __NR_setpgid: u32 = 109; +pub const __NR_getppid: u32 = 110; +pub const __NR_getpgrp: u32 = 111; +pub const __NR_setsid: u32 = 112; +pub const __NR_setreuid: u32 = 113; +pub const __NR_setregid: u32 = 114; +pub const __NR_getgroups: u32 = 115; +pub const __NR_setgroups: u32 = 116; +pub const __NR_setresuid: u32 = 117; +pub const __NR_getresuid: u32 = 118; +pub const __NR_setresgid: u32 = 119; +pub const __NR_getresgid: u32 = 120; +pub const __NR_getpgid: u32 = 121; +pub const __NR_setfsuid: u32 = 122; +pub const __NR_setfsgid: u32 = 123; +pub const __NR_getsid: u32 = 124; +pub const __NR_capget: u32 = 125; +pub const __NR_capset: u32 = 126; +pub const __NR_rt_sigpending: u32 = 127; +pub const __NR_rt_sigtimedwait: u32 = 128; +pub const __NR_rt_sigqueueinfo: u32 = 129; +pub const __NR_rt_sigsuspend: u32 = 130; +pub const __NR_sigaltstack: u32 = 131; +pub const __NR_utime: u32 = 132; +pub const __NR_mknod: u32 = 133; +pub const __NR_uselib: u32 = 134; +pub const __NR_personality: u32 = 135; +pub const __NR_ustat: u32 = 136; +pub const __NR_statfs: u32 = 137; +pub const __NR_fstatfs: u32 = 138; +pub const __NR_sysfs: u32 = 139; +pub const __NR_getpriority: u32 = 140; +pub const __NR_setpriority: u32 = 141; +pub const __NR_sched_setparam: u32 = 142; +pub const __NR_sched_getparam: u32 = 143; +pub const __NR_sched_setscheduler: u32 = 144; +pub const __NR_sched_getscheduler: u32 = 145; +pub const __NR_sched_get_priority_max: u32 = 146; +pub const __NR_sched_get_priority_min: u32 = 147; +pub const __NR_sched_rr_get_interval: u32 = 148; +pub const __NR_mlock: u32 = 149; +pub const __NR_munlock: u32 = 150; +pub const __NR_mlockall: u32 = 151; +pub const __NR_munlockall: u32 = 152; +pub const __NR_vhangup: u32 = 153; +pub const __NR_modify_ldt: u32 = 154; +pub const __NR_pivot_root: u32 = 155; +pub const __NR__sysctl: u32 = 156; +pub const __NR_prctl: u32 = 157; +pub const __NR_arch_prctl: u32 = 158; +pub const __NR_adjtimex: u32 = 159; +pub const __NR_setrlimit: u32 = 160; +pub const __NR_chroot: u32 = 161; +pub const __NR_sync: u32 = 162; +pub const __NR_acct: u32 = 163; +pub const __NR_settimeofday: u32 = 164; +pub const __NR_mount: u32 = 165; +pub const __NR_umount2: u32 = 166; +pub const __NR_swapon: u32 = 167; +pub const __NR_swapoff: u32 = 168; +pub const __NR_reboot: u32 = 169; +pub const __NR_sethostname: u32 = 170; +pub const __NR_setdomainname: u32 = 171; +pub const __NR_iopl: u32 = 172; +pub const __NR_ioperm: u32 = 173; +pub const __NR_create_module: u32 = 174; +pub const __NR_init_module: u32 = 175; +pub const __NR_delete_module: u32 = 176; +pub const __NR_get_kernel_syms: u32 = 177; +pub const __NR_query_module: u32 = 178; +pub const __NR_quotactl: u32 = 179; +pub const __NR_nfsservctl: u32 = 180; +pub const __NR_getpmsg: u32 = 181; +pub const __NR_putpmsg: u32 = 182; +pub const __NR_afs_syscall: u32 = 183; +pub const __NR_tuxcall: u32 = 184; +pub const __NR_security: u32 = 185; +pub const __NR_gettid: u32 = 186; +pub const __NR_readahead: u32 = 187; +pub const __NR_setxattr: u32 = 188; +pub const __NR_lsetxattr: u32 = 189; +pub const __NR_fsetxattr: u32 = 190; +pub const __NR_getxattr: u32 = 191; +pub const __NR_lgetxattr: u32 = 192; +pub const __NR_fgetxattr: u32 = 193; +pub const __NR_listxattr: u32 = 194; +pub const __NR_llistxattr: u32 = 195; +pub const __NR_flistxattr: u32 = 196; +pub const __NR_removexattr: u32 = 197; +pub const __NR_lremovexattr: u32 = 198; +pub const __NR_fremovexattr: u32 = 199; +pub const __NR_tkill: u32 = 200; +pub const __NR_time: u32 = 201; +pub const __NR_futex: u32 = 202; +pub const __NR_sched_setaffinity: u32 = 203; +pub const __NR_sched_getaffinity: u32 = 204; +pub const __NR_set_thread_area: u32 = 205; +pub const __NR_io_setup: u32 = 206; +pub const __NR_io_destroy: u32 = 207; +pub const __NR_io_getevents: u32 = 208; +pub const __NR_io_submit: u32 = 209; +pub const __NR_io_cancel: u32 = 210; +pub const __NR_get_thread_area: u32 = 211; +pub const __NR_lookup_dcookie: u32 = 212; +pub const __NR_epoll_create: u32 = 213; +pub const __NR_epoll_ctl_old: u32 = 214; +pub const __NR_epoll_wait_old: u32 = 215; +pub const __NR_remap_file_pages: u32 = 216; +pub const __NR_getdents64: u32 = 217; +pub const __NR_set_tid_address: u32 = 218; +pub const __NR_restart_syscall: u32 = 219; +pub const __NR_semtimedop: u32 = 220; +pub const __NR_fadvise64: u32 = 221; +pub const __NR_timer_create: u32 = 222; +pub const __NR_timer_settime: u32 = 223; +pub const __NR_timer_gettime: u32 = 224; +pub const __NR_timer_getoverrun: u32 = 225; +pub const __NR_timer_delete: u32 = 226; +pub const __NR_clock_settime: u32 = 227; +pub const __NR_clock_gettime: u32 = 228; +pub const __NR_clock_getres: u32 = 229; +pub const __NR_clock_nanosleep: u32 = 230; +pub const __NR_exit_group: u32 = 231; +pub const __NR_epoll_wait: u32 = 232; +pub const __NR_epoll_ctl: u32 = 233; +pub const __NR_tgkill: u32 = 234; +pub const __NR_utimes: u32 = 235; +pub const __NR_vserver: u32 = 236; +pub const __NR_mbind: u32 = 237; +pub const __NR_set_mempolicy: u32 = 238; +pub const __NR_get_mempolicy: u32 = 239; +pub const __NR_mq_open: u32 = 240; +pub const __NR_mq_unlink: u32 = 241; +pub const __NR_mq_timedsend: u32 = 242; +pub const __NR_mq_timedreceive: u32 = 243; +pub const __NR_mq_notify: u32 = 244; +pub const __NR_mq_getsetattr: u32 = 245; +pub const __NR_kexec_load: u32 = 246; +pub const __NR_waitid: u32 = 247; +pub const __NR_add_key: u32 = 248; +pub const __NR_request_key: u32 = 249; +pub const __NR_keyctl: u32 = 250; +pub const __NR_ioprio_set: u32 = 251; +pub const __NR_ioprio_get: u32 = 252; +pub const __NR_inotify_init: u32 = 253; +pub const __NR_inotify_add_watch: u32 = 254; +pub const __NR_inotify_rm_watch: u32 = 255; +pub const __NR_migrate_pages: u32 = 256; +pub const __NR_openat: u32 = 257; +pub const __NR_mkdirat: u32 = 258; +pub const __NR_mknodat: u32 = 259; +pub const __NR_fchownat: u32 = 260; +pub const __NR_futimesat: u32 = 261; +pub const __NR_newfstatat: u32 = 262; +pub const __NR_unlinkat: u32 = 263; +pub const __NR_renameat: u32 = 264; +pub const __NR_linkat: u32 = 265; +pub const __NR_symlinkat: u32 = 266; +pub const __NR_readlinkat: u32 = 267; +pub const __NR_fchmodat: u32 = 268; +pub const __NR_faccessat: u32 = 269; +pub const __NR_pselect6: u32 = 270; +pub const __NR_ppoll: u32 = 271; +pub const __NR_unshare: u32 = 272; +pub const __NR_set_robust_list: u32 = 273; +pub const __NR_get_robust_list: u32 = 274; +pub const __NR_splice: u32 = 275; +pub const __NR_tee: u32 = 276; +pub const __NR_sync_file_range: u32 = 277; +pub const __NR_vmsplice: u32 = 278; +pub const __NR_move_pages: u32 = 279; +pub const __NR_utimensat: u32 = 280; +pub const __NR_epoll_pwait: u32 = 281; +pub const __NR_signalfd: u32 = 282; +pub const __NR_timerfd_create: u32 = 283; +pub const __NR_eventfd: u32 = 284; +pub const __NR_fallocate: u32 = 285; +pub const __NR_timerfd_settime: u32 = 286; +pub const __NR_timerfd_gettime: u32 = 287; +pub const __NR_accept4: u32 = 288; +pub const __NR_signalfd4: u32 = 289; +pub const __NR_eventfd2: u32 = 290; +pub const __NR_epoll_create1: u32 = 291; +pub const __NR_dup3: u32 = 292; +pub const __NR_pipe2: u32 = 293; +pub const __NR_inotify_init1: u32 = 294; +pub const __NR_preadv: u32 = 295; +pub const __NR_pwritev: u32 = 296; +pub const __NR_rt_tgsigqueueinfo: u32 = 297; +pub const __NR_perf_event_open: u32 = 298; +pub const __NR_recvmmsg: u32 = 299; +pub const __NR_fanotify_init: u32 = 300; +pub const __NR_fanotify_mark: u32 = 301; +pub const __NR_prlimit64: u32 = 302; +pub const __NR_name_to_handle_at: u32 = 303; +pub const __NR_open_by_handle_at: u32 = 304; +pub const __NR_clock_adjtime: u32 = 305; +pub const __NR_syncfs: u32 = 306; +pub const __NR_sendmmsg: u32 = 307; +pub const __NR_setns: u32 = 308; +pub const __NR_getcpu: u32 = 309; +pub const __NR_process_vm_readv: u32 = 310; +pub const __NR_process_vm_writev: u32 = 311; +pub const __NR_kcmp: u32 = 312; +pub const __NR_finit_module: u32 = 313; +pub const __NR_sched_setattr: u32 = 314; +pub const __NR_sched_getattr: u32 = 315; +pub const __NR_renameat2: u32 = 316; +pub const __NR_seccomp: u32 = 317; +pub const __NR_getrandom: u32 = 318; +pub const __NR_memfd_create: u32 = 319; +pub const __NR_kexec_file_load: u32 = 320; +pub const __NR_bpf: u32 = 321; +pub const __NR_execveat: u32 = 322; +pub const __NR_userfaultfd: u32 = 323; +pub const __NR_membarrier: u32 = 324; +pub const __NR_mlock2: u32 = 325; +pub const __NR_copy_file_range: u32 = 326; +pub const __NR_preadv2: u32 = 327; +pub const __NR_pwritev2: u32 = 328; +pub const __NR_pkey_mprotect: u32 = 329; +pub const __NR_pkey_alloc: u32 = 330; +pub const __NR_pkey_free: u32 = 331; +pub const __NR_statx: u32 = 332; +pub const __NR_io_pgetevents: u32 = 333; +pub const __NR_rseq: u32 = 334; +pub const __NR_uretprobe: u32 = 335; +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 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; 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 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/x86_64/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..87a3565fe680f0d6c774ee01c538a80914468672 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_old_dev_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_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 = __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/x86_64/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..48b34ae757a026df5b0bfeeeb30c1d364e1eaa2d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_old_dev_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_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 = __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/x86_64/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..d943d1785f763dd048ede1fadc692a002582ec97 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_old_dev_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_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 = __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/x86_64/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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/x86_64/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/x86_64/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..4daef43c9fb4f6604cc0a77c1e690838fe2021aa --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_old_dev_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_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 = __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/x86_64/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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/x86_64/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/x86_64/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..506f9d2a31dec0a6cddcd72793b611849e865ccc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_old_dev_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_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 = __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/x86_64/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..bb564539ee6076dacac15a14f13f54bdbaaaf523 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_old_dev_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_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 = __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/x86_64/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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/x86_64/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/x86_64/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..5223de55dd251a767ed9cdad1d6a25a4ba950205 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_old_dev_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_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 = __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/x86_64/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..71de81695a3d4515950eee47540307c04229ed8c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_old_dev_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_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 = __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/x86_64/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..c8ed8e18b1984eeed8f3989de691acf828fddbc2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_old_dev_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_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 = __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/x86_64/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..ebe666144c3144b461ab913fa1f34504121edea2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_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_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_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 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/x86_64/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..b7c0905870eea336630f66a3bb96fa05fbad09ea --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_old_dev_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_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 = __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/x86_64/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..5d53d7b5f1f2e1b7c0f6bac05dad52df96010ff4 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86_64/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_old_dev_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_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 = __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/pem-3.0.6/.github/workflows/ci.yml b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/.github/workflows/ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..f62760291a6b716a7a48444e75758dfe313f507d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: ci +on: + pull_request: + push: + branches: + - master +jobs: + msrv: + name: msrv + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: 1.60.0 + components: clippy, rustfmt + - run: cargo fmt --check + - run: cargo clippy --all-features -- --deny warnings + # For no_std we use check instead of test because + # std is required for the test suite to run. + - run: cargo clippy --no-default-features -- --deny warnings + - run: cargo check --no-default-features + # Ensure that serde support works without std + - run: cargo check --no-default-features --features serde + stable: + name: stable + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + - run: cargo test --all-features + - run: cargo bench --all-features diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/benches/pem_benchmark.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/benches/pem_benchmark.rs new file mode 100644 index 0000000000000000000000000000000000000000..53134fde26b8edc00a0b9a23f7a89aa9474dbb5a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/benches/pem_benchmark.rs @@ -0,0 +1,124 @@ +use criterion::{criterion_group, criterion_main, Criterion}; + +const SAMPLE: &str = "-----BEGIN RSA PRIVATE KEY-----\r +MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc\r +dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO\r +2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei\r +AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un\r +DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT\r +TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh\r +ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ\r +-----END RSA PRIVATE KEY-----\r +\r +-----BEGIN RSA PUBLIC KEY-----\r +MIIBOgIBAAJBAMIeCnn9G/7g2Z6J+qHOE2XCLLuPoh5NHTO2Fm+PbzBvafBo0oYo\r +QVVy7frzxmOqx6iIZBxTyfAQqBPO3Br59BMCAwEAAQJAX+PjHPuxdqiwF6blTkS0\r +RFI1MrnzRbCmOkM6tgVO0cd6r5Z4bDGLusH9yjI9iI84gPRjK0AzymXFmBGuREHI\r +sQIhAPKf4pp+Prvutgq2ayygleZChBr1DC4XnnufBNtaswyvAiEAzNGVKgNvzuhk\r +ijoUXIDruJQEGFGvZTsi1D2RehXiT90CIQC4HOQUYKCydB7oWi1SHDokFW2yFyo6\r +/+lf3fgNjPI6OQIgUPmTFXciXxT1msh3gFLf3qt2Kv8wbr9Ad9SXjULVpGkCIB+g\r +RzHX0lkJl9Stshd/7Gbt65/QYq+v+xvAeT0CoyIg\r +-----END RSA PUBLIC KEY-----\r +"; + +fn pem_parse() { + pem::parse(SAMPLE).unwrap(); +} + +fn pem_parse_many() { + pem::parse_many(SAMPLE).unwrap(); +} + +fn pem_encode(pem: &pem::Pem) { + pem::encode(pem); +} + +fn pem_encode_many(pems: &[pem::Pem]) { + pem::encode_many(pems); +} + +fn criterion_benchmark(c: &mut Criterion) { + // Parse + c.bench_function("pem::parse", |b| b.iter(pem_parse)); + c.bench_function("pem::parse_many", |b| b.iter(pem_parse_many)); + + // Encode + let pem = pem::Pem::new( + "RSA PRIVATE KEY", + [ + 48, 130, 1, 61, 2, 1, 0, 2, 65, 0, 235, 31, 139, 144, 6, 98, 23, 81, 179, 252, 122, + 171, 145, 251, 145, 39, 49, 3, 66, 179, 206, 167, 186, 88, 142, 160, 127, 175, 173, + 115, 162, 47, 41, 2, 104, 230, 180, 28, 117, 101, 146, 67, 73, 209, 26, 221, 161, 56, + 240, 206, 251, 126, 77, 42, 20, 4, 140, 20, 49, 62, 31, 239, 238, 125, 2, 3, 1, 0, 1, + 2, 65, 0, 225, 154, 4, 12, 174, 195, 66, 2, 200, 67, 114, 228, 219, 14, 218, 9, 19, + 211, 64, 22, 77, 44, 204, 245, 153, 236, 208, 119, 157, 99, 125, 114, 17, 166, 228, + 184, 91, 235, 48, 33, 227, 177, 193, 5, 238, 237, 216, 232, 240, 123, 2, 125, 200, 206, + 138, 1, 29, 200, 108, 20, 55, 162, 0, 1, 2, 33, 0, 255, 37, 168, 93, 119, 52, 121, 43, + 112, 58, 175, 52, 226, 118, 96, 31, 212, 240, 109, 170, 46, 246, 247, 161, 39, 90, 255, + 22, 190, 151, 192, 1, 2, 33, 0, 235, 232, 192, 133, 217, 35, 133, 39, 13, 120, 224, + 103, 215, 164, 185, 72, 217, 55, 225, 148, 65, 16, 21, 150, 65, 4, 162, 17, 139, 87, + 46, 125, 2, 33, 0, 247, 69, 109, 168, 55, 80, 185, 101, 169, 188, 149, 244, 112, 205, + 60, 87, 93, 45, 45, 122, 211, 77, 49, 172, 18, 210, 19, 137, 221, 104, 128, 1, 2, 33, + 0, 192, 104, 89, 125, 209, 152, 18, 229, 195, 43, 47, 124, 2, 121, 171, 85, 43, 53, 84, + 154, 226, 102, 7, 245, 64, 154, 82, 197, 20, 108, 202, 209, 2, 33, 0, 210, 70, 115, + 176, 5, 147, 135, 242, 20, 63, 206, 123, 56, 112, 24, 118, 214, 154, 143, 210, 249, + 183, 222, 2, 34, 33, 217, 43, 54, 23, 18, 137, + ], + ); + c.bench_function("pem::encode", move |b| b.iter(|| pem_encode(&pem))); + + let pems = vec![ + pem::Pem::new( + "RSA PRIVATE KEY", + vec![ + 48, 130, 1, 61, 2, 1, 0, 2, 65, 0, 235, 31, 139, 144, 6, 98, 23, 81, 179, 252, 122, + 171, 145, 251, 145, 39, 49, 3, 66, 179, 206, 167, 186, 88, 142, 160, 127, 175, 173, + 115, 162, 47, 41, 2, 104, 230, 180, 28, 117, 101, 146, 67, 73, 209, 26, 221, 161, + 56, 240, 206, 251, 126, 77, 42, 20, 4, 140, 20, 49, 62, 31, 239, 238, 125, 2, 3, 1, + 0, 1, 2, 65, 0, 225, 154, 4, 12, 174, 195, 66, 2, 200, 67, 114, 228, 219, 14, 218, + 9, 19, 211, 64, 22, 77, 44, 204, 245, 153, 236, 208, 119, 157, 99, 125, 114, 17, + 166, 228, 184, 91, 235, 48, 33, 227, 177, 193, 5, 238, 237, 216, 232, 240, 123, 2, + 125, 200, 206, 138, 1, 29, 200, 108, 20, 55, 162, 0, 1, 2, 33, 0, 255, 37, 168, 93, + 119, 52, 121, 43, 112, 58, 175, 52, 226, 118, 96, 31, 212, 240, 109, 170, 46, 246, + 247, 161, 39, 90, 255, 22, 190, 151, 192, 1, 2, 33, 0, 235, 232, 192, 133, 217, 35, + 133, 39, 13, 120, 224, 103, 215, 164, 185, 72, 217, 55, 225, 148, 65, 16, 21, 150, + 65, 4, 162, 17, 139, 87, 46, 125, 2, 33, 0, 247, 69, 109, 168, 55, 80, 185, 101, + 169, 188, 149, 244, 112, 205, 60, 87, 93, 45, 45, 122, 211, 77, 49, 172, 18, 210, + 19, 137, 221, 104, 128, 1, 2, 33, 0, 192, 104, 89, 125, 209, 152, 18, 229, 195, 43, + 47, 124, 2, 121, 171, 85, 43, 53, 84, 154, 226, 102, 7, 245, 64, 154, 82, 197, 20, + 108, 202, 209, 2, 33, 0, 210, 70, 115, 176, 5, 147, 135, 242, 20, 63, 206, 123, 56, + 112, 24, 118, 214, 154, 143, 210, 249, 183, 222, 2, 34, 33, 217, 43, 54, 23, 18, + 137, + ], + ), + pem::Pem::new( + "RSA PUBLIC KEY", + vec![ + 48, 130, 1, 58, 2, 1, 0, 2, 65, 0, 194, 30, 10, 121, 253, 27, 254, 224, 217, 158, + 137, 250, 161, 206, 19, 101, 194, 44, 187, 143, 162, 30, 77, 29, 51, 182, 22, 111, + 143, 111, 48, 111, 105, 240, 104, 210, 134, 40, 65, 85, 114, 237, 250, 243, 198, + 99, 170, 199, 168, 136, 100, 28, 83, 201, 240, 16, 168, 19, 206, 220, 26, 249, 244, + 19, 2, 3, 1, 0, 1, 2, 64, 95, 227, 227, 28, 251, 177, 118, 168, 176, 23, 166, 229, + 78, 68, 180, 68, 82, 53, 50, 185, 243, 69, 176, 166, 58, 67, 58, 182, 5, 78, 209, + 199, 122, 175, 150, 120, 108, 49, 139, 186, 193, 253, 202, 50, 61, 136, 143, 56, + 128, 244, 99, 43, 64, 51, 202, 101, 197, 152, 17, 174, 68, 65, 200, 177, 2, 33, 0, + 242, 159, 226, 154, 126, 62, 187, 238, 182, 10, 182, 107, 44, 160, 149, 230, 66, + 132, 26, 245, 12, 46, 23, 158, 123, 159, 4, 219, 90, 179, 12, 175, 2, 33, 0, 204, + 209, 149, 42, 3, 111, 206, 232, 100, 138, 58, 20, 92, 128, 235, 184, 148, 4, 24, + 81, 175, 101, 59, 34, 212, 61, 145, 122, 21, 226, 79, 221, 2, 33, 0, 184, 28, 228, + 20, 96, 160, 178, 116, 30, 232, 90, 45, 82, 28, 58, 36, 21, 109, 178, 23, 42, 58, + 255, 233, 95, 221, 248, 13, 140, 242, 58, 57, 2, 32, 80, 249, 147, 21, 119, 34, 95, + 20, 245, 154, 200, 119, 128, 82, 223, 222, 171, 118, 42, 255, 48, 110, 191, 64, + 119, 212, 151, 141, 66, 213, 164, 105, 2, 32, 31, 160, 71, 49, 215, 210, 89, 9, + 151, 212, 173, 178, 23, 127, 236, 102, 237, 235, 159, 208, 98, 175, 175, 251, 27, + 192, 121, 61, 2, 163, 34, 32, + ], + ), + ]; + c.bench_function("pem::encode_many", move |b| { + b.iter(|| pem_encode_many(&pems)) + }); +} + +criterion_group!(benches, criterion_benchmark); +criterion_main!(benches); diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/src/errors.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/src/errors.rs new file mode 100644 index 0000000000000000000000000000000000000000..7e16e1d7f8cd8161e9d33e3b923919f7d5cb5c7c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/src/errors.rs @@ -0,0 +1,69 @@ +// Copyright 2017 Jonathan Creekmore +// +// Licensed under the MIT license . This file may not be +// copied, modified, or distributed except according to those terms. +use core::fmt; + +#[cfg(any(feature = "std", test))] +use std::error::Error; + +#[cfg(not(any(feature = "std", test)))] +use alloc::string::String; + +/// The `pem` error type. +#[derive(Debug, Eq, PartialEq)] +#[allow(missing_docs)] +pub enum PemError { + MismatchedTags(String, String), + MalformedFraming, + MissingBeginTag, + MissingEndTag, + MissingData, + InvalidData(::base64::DecodeError), + InvalidHeader(String), + NotUtf8(::core::str::Utf8Error), +} + +impl fmt::Display for PemError { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + match self { + PemError::MismatchedTags(b, e) => { + write!(f, "mismatching BEGIN (\"{b}\") and END (\"{e}\") tags") + } + PemError::MalformedFraming => write!(f, "malformedframing"), + PemError::MissingBeginTag => write!(f, "missing BEGIN tag"), + PemError::MissingEndTag => write!(f, "missing END tag"), + PemError::MissingData => write!(f, "missing data"), + PemError::InvalidData(e) => write!(f, "invalid data: {e}"), + PemError::InvalidHeader(hdr) => write!(f, "invalid header: {hdr}"), + PemError::NotUtf8(e) => write!(f, "invalid utf-8 value: {e}"), + } + } +} + +#[cfg(any(feature = "std", test))] +impl Error for PemError { + fn source(&self) -> Option<&(dyn Error + 'static)> { + match self { + // Errors originating from other libraries. + PemError::InvalidData(e) => Some(e), + PemError::NotUtf8(e) => Some(e), + // Errors directly originating from `pem-rs`. + _ => None, + } + } +} + +/// The `pem` result type. +pub type Result = ::core::result::Result; + +#[allow(missing_docs)] +#[macro_export] +macro_rules! ensure { + ($cond:expr, $err:expr) => { + if !$cond { + return Err($err); + } + }; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/src/lib.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/src/lib.rs new file mode 100644 index 0000000000000000000000000000000000000000..80039326e64ed6a2c31a9dcb136a3ed7a8f251ca --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/src/lib.rs @@ -0,0 +1,1061 @@ +// Copyright 2016-2017 Jonathan Creekmore +// +// Licensed under the MIT license . This file may not be +// copied, modified, or distributed except according to those terms. + +//! This crate provides a parser and encoder for PEM-encoded binary data. +//! PEM-encoded binary data is essentially a beginning and matching end +//! tag that encloses base64-encoded binary data (see: +//! https://en.wikipedia.org/wiki/Privacy-enhanced_Electronic_Mail). +//! +//! This crate's documentation provides a few simple examples along with +//! documentation on the public methods for the crate. +//! +//! # Usage +//! +//! This crate is [on crates.io](https://crates.io/crates/pem) and can be used +//! by adding `pem` to your dependencies in your project's `Cargo.toml`. +//! +//! ```toml +//! [dependencies] +//! pem = "3" +//! ``` +//! +//! Using the `serde` feature will implement the serde traits for +//! the `Pem` struct. +//! +//! # Example: parse a single chunk of PEM-encoded text +//! +//! Generally, PEM-encoded files contain a single chunk of PEM-encoded +//! text. Commonly, this is in some sort of a key file or an x.509 +//! certificate. +//! +//! ```rust +//! +//! use pem::parse; +//! +//! const SAMPLE: &'static str = "-----BEGIN RSA PRIVATE KEY----- +//! MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc +//! dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO +//! 2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei +//! AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un +//! DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT +//! TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh +//! ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ +//! -----END RSA PRIVATE KEY----- +//! "; +//! +//! let pem = parse(SAMPLE).unwrap(); +//! assert_eq!(pem.tag(), "RSA PRIVATE KEY"); +//! ``` +//! +//! # Example: parse a set of PEM-encoded text +//! +//! Sometimes, PEM-encoded files contain multiple chunks of PEM-encoded +//! text. You might see this if you have an x.509 certificate file that +//! also includes intermediate certificates. +//! +//! ```rust +//! +//! use pem::parse_many; +//! +//! const SAMPLE: &'static str = "-----BEGIN INTERMEDIATE CERT----- +//! MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc +//! dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO +//! 2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei +//! AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un +//! DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT +//! TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh +//! ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ +//! -----END INTERMEDIATE CERT----- +//! +//! -----BEGIN CERTIFICATE----- +//! MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc +//! dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO +//! 2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei +//! AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un +//! DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT +//! TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh +//! ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ +//! -----END CERTIFICATE----- +//! "; +//! +//! let pems = parse_many(SAMPLE).unwrap(); +//! assert_eq!(pems.len(), 2); +//! assert_eq!(pems[0].tag(), "INTERMEDIATE CERT"); +//! assert_eq!(pems[1].tag(), "CERTIFICATE"); +//! ``` +//! +//! # Features +//! +//! This crate supports two features: `std` and `serde`. +//! +//! The `std` feature is enabled by default. If you specify +//! `default-features = false` to disable `std`, be aware that +//! this crate still needs an allocator. +//! +//! The `serde` feature implements `serde::{Deserialize, Serialize}` +//! for this crate's `Pem` struct. + +#![deny( + missing_docs, + missing_debug_implementations, + missing_copy_implementations, + trivial_casts, + trivial_numeric_casts, + unsafe_code, + unstable_features, + unused_import_braces, + unused_qualifications +)] +#![cfg_attr(not(feature = "std"), no_std)] + +#[cfg(not(any(feature = "std", test)))] +extern crate alloc; +#[cfg(not(any(feature = "std", test)))] +use alloc::{ + format, + string::{String, ToString}, + vec::Vec, +}; + +mod errors; +mod parser; +use parser::{parse_captures, parse_captures_iter, Captures}; + +pub use crate::errors::{PemError, Result}; +use base64::Engine as _; +use core::fmt::Write; +use core::{fmt, slice, str}; + +/// The line length for PEM encoding +const LINE_WRAP: usize = 64; + +/// Enum describing line endings +#[derive(Debug, Clone, Copy)] +pub enum LineEnding { + /// Windows-like (`\r\n`) + CRLF, + /// Unix-like (`\n`) + LF, +} + +/// Configuration for Pem encoding +#[derive(Debug, Clone, Copy)] +pub struct EncodeConfig { + /// Line ending to use during encoding + line_ending: LineEnding, + + /// Line length to use during encoding + line_wrap: usize, +} + +/// A representation of Pem-encoded data +#[derive(PartialEq, Debug, Clone)] +pub struct Pem { + tag: String, + headers: HeaderMap, + contents: Vec, +} + +/// Provides access to the headers that might be found in a Pem-encoded file +#[derive(Clone, Debug, Default, PartialEq)] +pub struct HeaderMap(Vec); + +fn decode_data(raw_data: &str) -> Result> { + // We need to get rid of newlines/whitespaces for base64::decode + // As base64 requires an AsRef<[u8]>, this must involve a copy + let data: String = raw_data.chars().filter(|c| !c.is_whitespace()).collect(); + + // And decode it from Base64 into a vector of u8 + let contents = base64::engine::general_purpose::STANDARD + .decode(data) + .map_err(PemError::InvalidData)?; + + Ok(contents) +} + +/// Iterator across all headers in the Pem-encoded data +#[derive(Debug)] +pub struct HeadersIter<'a> { + cur: slice::Iter<'a, String>, +} + +impl<'a> Iterator for HeadersIter<'a> { + type Item = (&'a str, &'a str); + + fn next(&mut self) -> Option { + self.cur.next().and_then(HeaderMap::split_header) + } +} + +impl<'a> DoubleEndedIterator for HeadersIter<'a> { + fn next_back(&mut self) -> Option { + self.cur.next_back().and_then(HeaderMap::split_header) + } +} + +impl HeaderMap { + #[allow(clippy::ptr_arg)] + fn split_header(header: &String) -> Option<(&str, &str)> { + header + .split_once(':') + .map(|(key, value)| (key.trim(), value.trim())) + } + + fn parse(headers: Vec) -> Result { + headers.iter().try_for_each(|hline| { + Self::split_header(hline) + .map(|_| ()) + .ok_or_else(|| PemError::InvalidHeader(hline.to_string())) + })?; + Ok(HeaderMap(headers)) + } + + /// Get an iterator across all header key-value pairs + pub fn iter(&self) -> HeadersIter<'_> { + HeadersIter { cur: self.0.iter() } + } + + /// Get the last set value corresponding to the header key + pub fn get(&self, key: &str) -> Option<&str> { + self.iter().rev().find(|(k, _)| *k == key).map(|(_, v)| v) + } + + /// Get the last set value corresponding to the header key + pub fn add(&mut self, key: &str, value: &str) -> Result<()> { + ensure!( + !(key.contains(':') || key.contains('\n')), + PemError::InvalidHeader(key.to_string()) + ); + ensure!( + !(value.contains(':') || value.contains('\n')), + PemError::InvalidHeader(value.to_string()) + ); + self.0.push(format!("{}: {}", key.trim(), value.trim())); + Ok(()) + } +} + +impl EncodeConfig { + /// Create a new encode config with default values. + pub const fn new() -> Self { + Self { + line_ending: LineEnding::CRLF, + line_wrap: LINE_WRAP, + } + } + + /// Set the line ending to use for the encoding. + pub const fn set_line_ending(mut self, line_ending: LineEnding) -> Self { + self.line_ending = line_ending; + self + } + + /// Set the line length to use for the encoding. + pub const fn set_line_wrap(mut self, line_wrap: usize) -> Self { + self.line_wrap = line_wrap; + self + } +} + +impl Default for EncodeConfig { + fn default() -> Self { + Self::new() + } +} + +impl Pem { + /// Create a new Pem struct + pub fn new(tag: impl ToString, contents: impl Into>) -> Pem { + Pem { + tag: tag.to_string(), + headers: HeaderMap::default(), + contents: contents.into(), + } + } + + /// Get the tag extracted from the Pem-encoded data + pub fn tag(&self) -> &str { + &self.tag + } + + /// Get the binary contents extracted from the Pem-encoded data + pub fn contents(&self) -> &[u8] { + &self.contents + } + + /// Consume the Pem struct to get an owned copy of the binary contents + pub fn into_contents(self) -> Vec { + self.contents + } + + /// Get the header map for the headers in the Pem-encoded data + pub fn headers(&self) -> &HeaderMap { + &self.headers + } + + /// Get the header map for modification + pub fn headers_mut(&mut self) -> &mut HeaderMap { + &mut self.headers + } + + fn new_from_captures(caps: Captures) -> Result { + fn as_utf8(bytes: &[u8]) -> Result<&str> { + str::from_utf8(bytes).map_err(PemError::NotUtf8) + } + + // Verify that the begin section exists + let tag = as_utf8(caps.begin)?; + if tag.is_empty() { + return Err(PemError::MissingBeginTag); + } + + // as well as the end section + let tag_end = as_utf8(caps.end)?; + if tag_end.is_empty() { + return Err(PemError::MissingEndTag); + } + + // The beginning and the end sections must match + if tag != tag_end { + return Err(PemError::MismatchedTags(tag.into(), tag_end.into())); + } + + // If they did, then we can grab the data section + let raw_data = as_utf8(caps.data)?; + let contents = decode_data(raw_data)?; + let headers: Vec = as_utf8(caps.headers)?.lines().map(str::to_string).collect(); + let headers = HeaderMap::parse(headers)?; + + let mut file = Pem::new(tag, contents); + file.headers = headers; + + Ok(file) + } +} + +impl str::FromStr for Pem { + type Err = PemError; + + fn from_str(s: &str) -> Result { + parse(s) + } +} + +impl TryFrom<&[u8]> for Pem { + type Error = PemError; + + fn try_from(s: &[u8]) -> Result { + parse(s) + } +} + +impl fmt::Display for Pem { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "{}", encode(self)) + } +} + +/// Parses a single PEM-encoded data from a data-type that can be dereferenced as a [u8]. +/// +/// # Example: parse PEM-encoded data from a Vec +/// ```rust +/// +/// use pem::parse; +/// +/// const SAMPLE: &'static str = "-----BEGIN RSA PRIVATE KEY----- +/// MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc +/// dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO +/// 2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei +/// AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un +/// DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT +/// TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh +/// ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ +/// -----END RSA PRIVATE KEY----- +/// "; +/// let SAMPLE_BYTES: Vec = SAMPLE.into(); +/// +/// let pem = parse(SAMPLE_BYTES).unwrap(); +/// assert_eq!(pem.tag(), "RSA PRIVATE KEY"); +/// ``` +/// +/// # Example: parse PEM-encoded data from a String +/// ```rust +/// +/// use pem::parse; +/// +/// const SAMPLE: &'static str = "-----BEGIN RSA PRIVATE KEY----- +/// MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc +/// dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO +/// 2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei +/// AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un +/// DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT +/// TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh +/// ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ +/// -----END RSA PRIVATE KEY----- +/// "; +/// let SAMPLE_STRING: String = SAMPLE.into(); +/// +/// let pem = parse(SAMPLE_STRING).unwrap(); +/// assert_eq!(pem.tag(), "RSA PRIVATE KEY"); +/// ``` +pub fn parse>(input: B) -> Result { + parse_captures(input.as_ref()) + .ok_or(PemError::MalformedFraming) + .and_then(Pem::new_from_captures) +} + +/// Parses a set of PEM-encoded data from a data-type that can be dereferenced as a [u8]. +/// +/// # Example: parse a set of PEM-encoded data from a Vec +/// +/// ```rust +/// +/// use pem::parse_many; +/// +/// const SAMPLE: &'static str = "-----BEGIN INTERMEDIATE CERT----- +/// MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc +/// dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO +/// 2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei +/// AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un +/// DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT +/// TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh +/// ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ +/// -----END INTERMEDIATE CERT----- +/// +/// -----BEGIN CERTIFICATE----- +/// MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc +/// dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO +/// 2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei +/// AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un +/// DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT +/// TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh +/// ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ +/// -----END CERTIFICATE----- +/// "; +/// let SAMPLE_BYTES: Vec = SAMPLE.into(); +/// +/// let pems = parse_many(SAMPLE_BYTES).unwrap(); +/// assert_eq!(pems.len(), 2); +/// assert_eq!(pems[0].tag(), "INTERMEDIATE CERT"); +/// assert_eq!(pems[1].tag(), "CERTIFICATE"); +/// ``` +/// +/// # Example: parse a set of PEM-encoded data from a String +/// +/// ```rust +/// +/// use pem::parse_many; +/// +/// const SAMPLE: &'static str = "-----BEGIN INTERMEDIATE CERT----- +/// MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc +/// dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO +/// 2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei +/// AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un +/// DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT +/// TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh +/// ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ +/// -----END INTERMEDIATE CERT----- +/// +/// -----BEGIN CERTIFICATE----- +/// MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc +/// dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO +/// 2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei +/// AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un +/// DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT +/// TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh +/// ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ +/// -----END CERTIFICATE----- +/// "; +/// let SAMPLE_STRING: Vec = SAMPLE.into(); +/// +/// let pems = parse_many(SAMPLE_STRING).unwrap(); +/// assert_eq!(pems.len(), 2); +/// assert_eq!(pems[0].tag(), "INTERMEDIATE CERT"); +/// assert_eq!(pems[1].tag(), "CERTIFICATE"); +/// ``` +pub fn parse_many>(input: B) -> Result> { + // Each time our regex matches a PEM section, we need to decode it. + parse_captures_iter(input.as_ref()) + .map(Pem::new_from_captures) + .collect() +} + +/// Encode a PEM struct into a PEM-encoded data string +/// +/// # Example +/// ```rust +/// use pem::{Pem, encode}; +/// +/// let pem = Pem::new("FOO", [1, 2, 3, 4]); +/// encode(&pem); +/// ``` +pub fn encode(pem: &Pem) -> String { + encode_config(pem, EncodeConfig::default()) +} + +/// Encode a PEM struct into a PEM-encoded data string with additional +/// configuration options +/// +/// # Example +/// ```rust +/// use pem::{Pem, encode_config, EncodeConfig, LineEnding}; +/// +/// let pem = Pem::new("FOO", [1, 2, 3, 4]); +/// encode_config(&pem, EncodeConfig::new().set_line_ending(LineEnding::LF)); +/// ``` +pub fn encode_config(pem: &Pem, config: EncodeConfig) -> String { + let line_ending = match config.line_ending { + LineEnding::CRLF => "\r\n", + LineEnding::LF => "\n", + }; + + let mut output = String::new(); + + let contents = if pem.contents.is_empty() { + String::from("") + } else { + base64::engine::general_purpose::STANDARD.encode(&pem.contents) + }; + + write!(output, "-----BEGIN {}-----{}", pem.tag, line_ending).unwrap(); + if !pem.headers.0.is_empty() { + for line in &pem.headers.0 { + write!(output, "{}{}", line.trim(), line_ending).unwrap(); + } + output.push_str(line_ending); + } + for c in contents.as_bytes().chunks(config.line_wrap) { + write!(output, "{}{}", str::from_utf8(c).unwrap(), line_ending).unwrap(); + } + write!(output, "-----END {}-----{}", pem.tag, line_ending).unwrap(); + + output +} + +/// Encode multiple PEM structs into a PEM-encoded data string +/// +/// # Example +/// ```rust +/// use pem::{Pem, encode_many}; +/// +/// let data = vec![ +/// Pem::new("FOO", [1, 2, 3, 4]), +/// Pem::new("BAR", [5, 6, 7, 8]), +/// ]; +/// encode_many(&data); +/// ``` +pub fn encode_many(pems: &[Pem]) -> String { + pems.iter() + .map(encode) + .collect::>() + .join("\r\n") +} + +/// Encode multiple PEM structs into a PEM-encoded data string with additional +/// configuration options +/// +/// Same config will be used for each PEM struct. +/// +/// # Example +/// ```rust +/// use pem::{Pem, encode_many_config, EncodeConfig, LineEnding}; +/// +/// let data = vec![ +/// Pem::new("FOO", [1, 2, 3, 4]), +/// Pem::new("BAR", [5, 6, 7, 8]), +/// ]; +/// encode_many_config(&data, EncodeConfig::new().set_line_ending(LineEnding::LF)); +/// ``` +pub fn encode_many_config(pems: &[Pem], config: EncodeConfig) -> String { + let line_ending = match config.line_ending { + LineEnding::CRLF => "\r\n", + LineEnding::LF => "\n", + }; + pems.iter() + .map(|value| encode_config(value, config)) + .collect::>() + .join(line_ending) +} + +#[cfg(feature = "serde")] +mod serde_impl { + use super::{encode, parse, Pem}; + use core::fmt; + use serde_core::{ + de::{Error, Visitor}, + Deserialize, Serialize, + }; + + impl Serialize for Pem { + fn serialize(&self, serializer: S) -> Result + where + S: serde_core::Serializer, + { + serializer.serialize_str(&encode(self)) + } + } + + struct PemVisitor; + + impl<'de> Visitor<'de> for PemVisitor { + type Value = Pem; + + fn expecting(&self, _formatter: &mut fmt::Formatter) -> fmt::Result { + Ok(()) + } + + fn visit_str(self, v: &str) -> Result + where + E: Error, + { + parse(v).map_err(Error::custom) + } + } + + impl<'de> Deserialize<'de> for Pem { + fn deserialize(deserializer: D) -> Result + where + D: serde_core::Deserializer<'de>, + { + deserializer.deserialize_str(PemVisitor) + } + } +} + +#[cfg(test)] +mod test { + use super::*; + use proptest::prelude::*; + use std::error::Error; + + const SAMPLE_CRLF: &str = "-----BEGIN RSA PRIVATE KEY-----\r +MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc\r +dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO\r +2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei\r +AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un\r +DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT\r +TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh\r +ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ\r +-----END RSA PRIVATE KEY-----\r +\r +-----BEGIN RSA PUBLIC KEY-----\r +MIIBOgIBAAJBAMIeCnn9G/7g2Z6J+qHOE2XCLLuPoh5NHTO2Fm+PbzBvafBo0oYo\r +QVVy7frzxmOqx6iIZBxTyfAQqBPO3Br59BMCAwEAAQJAX+PjHPuxdqiwF6blTkS0\r +RFI1MrnzRbCmOkM6tgVO0cd6r5Z4bDGLusH9yjI9iI84gPRjK0AzymXFmBGuREHI\r +sQIhAPKf4pp+Prvutgq2ayygleZChBr1DC4XnnufBNtaswyvAiEAzNGVKgNvzuhk\r +ijoUXIDruJQEGFGvZTsi1D2RehXiT90CIQC4HOQUYKCydB7oWi1SHDokFW2yFyo6\r +/+lf3fgNjPI6OQIgUPmTFXciXxT1msh3gFLf3qt2Kv8wbr9Ad9SXjULVpGkCIB+g\r +RzHX0lkJl9Stshd/7Gbt65/QYq+v+xvAeT0CoyIg\r +-----END RSA PUBLIC KEY-----\r +"; + + const SAMPLE_LF: &str = "-----BEGIN RSA PRIVATE KEY----- +MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc +dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO +2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei +AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un +DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT +TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh +ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ +-----END RSA PRIVATE KEY----- + +-----BEGIN RSA PUBLIC KEY----- +MIIBOgIBAAJBAMIeCnn9G/7g2Z6J+qHOE2XCLLuPoh5NHTO2Fm+PbzBvafBo0oYo +QVVy7frzxmOqx6iIZBxTyfAQqBPO3Br59BMCAwEAAQJAX+PjHPuxdqiwF6blTkS0 +RFI1MrnzRbCmOkM6tgVO0cd6r5Z4bDGLusH9yjI9iI84gPRjK0AzymXFmBGuREHI +sQIhAPKf4pp+Prvutgq2ayygleZChBr1DC4XnnufBNtaswyvAiEAzNGVKgNvzuhk +ijoUXIDruJQEGFGvZTsi1D2RehXiT90CIQC4HOQUYKCydB7oWi1SHDokFW2yFyo6 +/+lf3fgNjPI6OQIgUPmTFXciXxT1msh3gFLf3qt2Kv8wbr9Ad9SXjULVpGkCIB+g +RzHX0lkJl9Stshd/7Gbt65/QYq+v+xvAeT0CoyIg +-----END RSA PUBLIC KEY----- +"; + + const SAMPLE_WS: &str = "-----BEGIN RSA PRIVATE KEY----- +MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc \ +dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO \ +2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei \ +AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un \ +DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT \ +TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh \ +ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ +-----END RSA PRIVATE KEY----- + +-----BEGIN RSA PUBLIC KEY----- +MIIBOgIBAAJBAMIeCnn9G/7g2Z6J+qHOE2XCLLuPoh5NHTO2Fm+PbzBvafBo0oYo \ +QVVy7frzxmOqx6iIZBxTyfAQqBPO3Br59BMCAwEAAQJAX+PjHPuxdqiwF6blTkS0 \ +RFI1MrnzRbCmOkM6tgVO0cd6r5Z4bDGLusH9yjI9iI84gPRjK0AzymXFmBGuREHI \ +sQIhAPKf4pp+Prvutgq2ayygleZChBr1DC4XnnufBNtaswyvAiEAzNGVKgNvzuhk \ +ijoUXIDruJQEGFGvZTsi1D2RehXiT90CIQC4HOQUYKCydB7oWi1SHDokFW2yFyo6 \ +/+lf3fgNjPI6OQIgUPmTFXciXxT1msh3gFLf3qt2Kv8wbr9Ad9SXjULVpGkCIB+g \ +RzHX0lkJl9Stshd/7Gbt65/QYq+v+xvAeT0CoyIg +-----END RSA PUBLIC KEY----- +"; + + const SAMPLE_DEFAULT_LINE_WRAP: &str = "-----BEGIN TEST-----\r +AQIDBA==\r +-----END TEST-----\r +"; + + const SAMPLE_CUSTOM_LINE_WRAP_4: &str = "-----BEGIN TEST-----\r +AQID\r +BA==\r +-----END TEST-----\r +"; + + #[test] + fn test_parse_works() { + let pem = parse(SAMPLE_CRLF).unwrap(); + assert_eq!(pem.tag(), "RSA PRIVATE KEY"); + } + + #[test] + fn test_parse_empty_space() { + let pem = parse(SAMPLE_WS).unwrap(); + assert_eq!(pem.tag(), "RSA PRIVATE KEY"); + } + + #[test] + fn test_parse_invalid_framing() { + let input = "--BEGIN data----- + -----END data-----"; + assert_eq!(parse(input), Err(PemError::MalformedFraming)); + } + + #[test] + fn test_parse_invalid_begin() { + let input = "-----BEGIN ----- +MIIBOgIBAAJBAMIeCnn9G/7g2Z6J+qHOE2XCLLuPoh5NHTO2Fm+PbzBvafBo0oYo +QVVy7frzxmOqx6iIZBxTyfAQqBPO3Br59BMCAwEAAQJAX+PjHPuxdqiwF6blTkS0 +RFI1MrnzRbCmOkM6tgVO0cd6r5Z4bDGLusH9yjI9iI84gPRjK0AzymXFmBGuREHI +sQIhAPKf4pp+Prvutgq2ayygleZChBr1DC4XnnufBNtaswyvAiEAzNGVKgNvzuhk +ijoUXIDruJQEGFGvZTsi1D2RehXiT90CIQC4HOQUYKCydB7oWi1SHDokFW2yFyo6 +/+lf3fgNjPI6OQIgUPmTFXciXxT1msh3gFLf3qt2Kv8wbr9Ad9SXjULVpGkCIB+g +RzHX0lkJl9Stshd/7Gbt65/QYq+v+xvAeT0CoyIg +-----END RSA PUBLIC KEY-----"; + assert_eq!(parse(input), Err(PemError::MissingBeginTag)); + } + + #[test] + fn test_parse_invalid_end() { + let input = "-----BEGIN DATA----- +MIIBOgIBAAJBAMIeCnn9G/7g2Z6J+qHOE2XCLLuPoh5NHTO2Fm+PbzBvafBo0oYo +QVVy7frzxmOqx6iIZBxTyfAQqBPO3Br59BMCAwEAAQJAX+PjHPuxdqiwF6blTkS0 +RFI1MrnzRbCmOkM6tgVO0cd6r5Z4bDGLusH9yjI9iI84gPRjK0AzymXFmBGuREHI +sQIhAPKf4pp+Prvutgq2ayygleZChBr1DC4XnnufBNtaswyvAiEAzNGVKgNvzuhk +ijoUXIDruJQEGFGvZTsi1D2RehXiT90CIQC4HOQUYKCydB7oWi1SHDokFW2yFyo6 +/+lf3fgNjPI6OQIgUPmTFXciXxT1msh3gFLf3qt2Kv8wbr9Ad9SXjULVpGkCIB+g +RzHX0lkJl9Stshd/7Gbt65/QYq+v+xvAeT0CoyIg +-----END -----"; + assert_eq!(parse(input), Err(PemError::MissingEndTag)); + } + + #[test] + fn test_parse_invalid_data() { + let input = "-----BEGIN DATA----- +MIIBOgIBAAJBAMIeCnn9G/7g2Z6J+qHOE2XCLLuPoh5NHTO2Fm+PbzBvafBo0oY? +QVVy7frzxmOqx6iIZBxTyfAQqBPO3Br59BMCAwEAAQJAX+PjHPuxdqiwF6blTkS0 +RFI1MrnzRbCmOkM6tgVO0cd6r5Z4bDGLusH9yjI9iI84gPRjK0AzymXFmBGuREHI +sQIhAPKf4pp+Prvutgq2ayygleZChBr1DC4XnnufBNtaswyvAiEAzNGVKgNvzuhk +ijoUXIDruJQEGFGvZTsi1D2RehXiT90CIQC4HOQUYKCydB7oWi1SHDokFW2yFyo6 +/+lf3fgNjPI6OQIgUPmTFXciXxT1msh3gFLf3qt2Kv8wbr9Ad9SXjULVpGkCIB+g +RzHX0lkJl9Stshd/7Gbt65/QYq+v+xvAeT0CoyIg +-----END DATA-----"; + match parse(input) { + Err(e @ PemError::InvalidData(_)) => { + assert_eq!( + &format!("{}", e.source().unwrap()), + "Invalid symbol 63, offset 63." + ); + } + _ => unreachable!(), + } + } + + #[test] + fn test_parse_empty_data() { + let input = "-----BEGIN DATA----- +-----END DATA-----"; + let pem = parse(input).unwrap(); + assert_eq!(pem.contents().len(), 0); + } + + #[test] + fn test_parse_many_works() { + let pems = parse_many(SAMPLE_CRLF).unwrap(); + assert_eq!(pems.len(), 2); + assert_eq!(pems[0].tag(), "RSA PRIVATE KEY"); + assert_eq!(pems[1].tag(), "RSA PUBLIC KEY"); + } + + #[test] + fn test_parse_many_errors_on_invalid_section() { + let input = SAMPLE_LF.to_owned() + "-----BEGIN -----\n-----END -----"; + assert_eq!(parse_many(input), Err(PemError::MissingBeginTag)); + } + + #[test] + fn test_encode_default_line_wrap() { + let pem = Pem::new("TEST", vec![1, 2, 3, 4]); + assert_eq!(encode(&pem), SAMPLE_DEFAULT_LINE_WRAP); + } + + #[test] + fn test_encode_custom_line_wrap_4() { + let pem = Pem::new("TEST", vec![1, 2, 3, 4]); + assert_eq!( + encode_config(&pem, EncodeConfig::default().set_line_wrap(4)), + SAMPLE_CUSTOM_LINE_WRAP_4 + ); + } + #[test] + fn test_encode_empty_contents() { + let pem = Pem::new("FOO", vec![]); + let encoded = encode(&pem); + assert!(!encoded.is_empty()); + + let pem_out = parse(&encoded).unwrap(); + assert_eq!(&pem, &pem_out); + } + + #[test] + fn test_encode_contents() { + let pem = Pem::new("FOO", [1, 2, 3, 4]); + let encoded = encode(&pem); + assert!(!encoded.is_empty()); + + let pem_out = parse(&encoded).unwrap(); + assert_eq!(&pem, &pem_out); + } + + #[test] + fn test_encode_many() { + let pems = parse_many(SAMPLE_CRLF).unwrap(); + let encoded = encode_many(&pems); + + assert_eq!(SAMPLE_CRLF, encoded); + } + + #[test] + fn test_encode_config_contents() { + let pem = Pem::new("FOO", [1, 2, 3, 4]); + let config = EncodeConfig::default().set_line_ending(LineEnding::LF); + let encoded = encode_config(&pem, config); + assert!(!encoded.is_empty()); + + let pem_out = parse(&encoded).unwrap(); + assert_eq!(&pem, &pem_out); + } + + #[test] + fn test_encode_many_config() { + let pems = parse_many(SAMPLE_LF).unwrap(); + let config = EncodeConfig::default().set_line_ending(LineEnding::LF); + let encoded = encode_many_config(&pems, config); + + assert_eq!(SAMPLE_LF, encoded); + } + + #[cfg(feature = "serde")] + #[test] + fn test_serde() { + let pem = Pem::new("Mock tag", "Mock contents".as_bytes()); + let value = serde_json::to_string_pretty(&pem).unwrap(); + let result = serde_json::from_str(&value).unwrap(); + assert_eq!(pem, result); + } + + const HEADER_CRLF: &str = "-----BEGIN CERTIFICATE-----\r +MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc\r +dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO\r +2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei\r +AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un\r +DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT\r +TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh\r +ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ\r +-----END CERTIFICATE-----\r +-----BEGIN RSA PRIVATE KEY-----\r +Proc-Type: 4,ENCRYPTED\r +DEK-Info: AES-256-CBC,975C518B7D2CCD1164A3354D1F89C5A6\r +\r +MIIBOgIBAAJBAMIeCnn9G/7g2Z6J+qHOE2XCLLuPoh5NHTO2Fm+PbzBvafBo0oYo\r +QVVy7frzxmOqx6iIZBxTyfAQqBPO3Br59BMCAwEAAQJAX+PjHPuxdqiwF6blTkS0\r +RFI1MrnzRbCmOkM6tgVO0cd6r5Z4bDGLusH9yjI9iI84gPRjK0AzymXFmBGuREHI\r +sQIhAPKf4pp+Prvutgq2ayygleZChBr1DC4XnnufBNtaswyvAiEAzNGVKgNvzuhk\r +ijoUXIDruJQEGFGvZTsi1D2RehXiT90CIQC4HOQUYKCydB7oWi1SHDokFW2yFyo6\r +/+lf3fgNjPI6OQIgUPmTFXciXxT1msh3gFLf3qt2Kv8wbr9Ad9SXjULVpGkCIB+g\r +RzHX0lkJl9Stshd/7Gbt65/QYq+v+xvAeT0CoyIg\r +-----END RSA PRIVATE KEY-----\r +"; + const HEADER_CRLF_DATA: [&str; 2] = [ + "MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc\r +dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO\r +2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei\r +AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un\r +DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT\r +TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh\r +ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ\r", + "MIIBOgIBAAJBAMIeCnn9G/7g2Z6J+qHOE2XCLLuPoh5NHTO2Fm+PbzBvafBo0oYo\r +QVVy7frzxmOqx6iIZBxTyfAQqBPO3Br59BMCAwEAAQJAX+PjHPuxdqiwF6blTkS0\r +RFI1MrnzRbCmOkM6tgVO0cd6r5Z4bDGLusH9yjI9iI84gPRjK0AzymXFmBGuREHI\r +sQIhAPKf4pp+Prvutgq2ayygleZChBr1DC4XnnufBNtaswyvAiEAzNGVKgNvzuhk\r +ijoUXIDruJQEGFGvZTsi1D2RehXiT90CIQC4HOQUYKCydB7oWi1SHDokFW2yFyo6\r +/+lf3fgNjPI6OQIgUPmTFXciXxT1msh3gFLf3qt2Kv8wbr9Ad9SXjULVpGkCIB+g\r +RzHX0lkJl9Stshd/7Gbt65/QYq+v+xvAeT0CoyIg\r", + ]; + + const HEADER_LF: &str = "-----BEGIN CERTIFICATE----- +MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc +dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO +2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei +AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un +DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT +TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh +ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ +-----END CERTIFICATE----- +-----BEGIN RSA PRIVATE KEY----- +Proc-Type: 4,ENCRYPTED +DEK-Info: AES-256-CBC,975C518B7D2CCD1164A3354D1F89C5A6 + +MIIBOgIBAAJBAMIeCnn9G/7g2Z6J+qHOE2XCLLuPoh5NHTO2Fm+PbzBvafBo0oYo +QVVy7frzxmOqx6iIZBxTyfAQqBPO3Br59BMCAwEAAQJAX+PjHPuxdqiwF6blTkS0 +RFI1MrnzRbCmOkM6tgVO0cd6r5Z4bDGLusH9yjI9iI84gPRjK0AzymXFmBGuREHI +sQIhAPKf4pp+Prvutgq2ayygleZChBr1DC4XnnufBNtaswyvAiEAzNGVKgNvzuhk +ijoUXIDruJQEGFGvZTsi1D2RehXiT90CIQC4HOQUYKCydB7oWi1SHDokFW2yFyo6 +/+lf3fgNjPI6OQIgUPmTFXciXxT1msh3gFLf3qt2Kv8wbr9Ad9SXjULVpGkCIB+g +RzHX0lkJl9Stshd/7Gbt65/QYq+v+xvAeT0CoyIg +-----END RSA PRIVATE KEY----- +"; + const HEADER_LF_DATA: [&str; 2] = [ + "MIIBPQIBAAJBAOsfi5AGYhdRs/x6q5H7kScxA0Kzzqe6WI6gf6+tc6IvKQJo5rQc +dWWSQ0nRGt2hOPDO+35NKhQEjBQxPh/v7n0CAwEAAQJBAOGaBAyuw0ICyENy5NsO +2gkT00AWTSzM9Zns0HedY31yEabkuFvrMCHjscEF7u3Y6PB7An3IzooBHchsFDei +AAECIQD/JahddzR5K3A6rzTidmAf1PBtqi7296EnWv8WvpfAAQIhAOvowIXZI4Un +DXjgZ9ekuUjZN+GUQRAVlkEEohGLVy59AiEA90VtqDdQuWWpvJX0cM08V10tLXrT +TTGsEtITid1ogAECIQDAaFl90ZgS5cMrL3wCeatVKzVUmuJmB/VAmlLFFGzK0QIh +ANJGc7AFk4fyFD/OezhwGHbWmo/S+bfeAiIh2Ss2FxKJ", + "MIIBOgIBAAJBAMIeCnn9G/7g2Z6J+qHOE2XCLLuPoh5NHTO2Fm+PbzBvafBo0oYo +QVVy7frzxmOqx6iIZBxTyfAQqBPO3Br59BMCAwEAAQJAX+PjHPuxdqiwF6blTkS0 +RFI1MrnzRbCmOkM6tgVO0cd6r5Z4bDGLusH9yjI9iI84gPRjK0AzymXFmBGuREHI +sQIhAPKf4pp+Prvutgq2ayygleZChBr1DC4XnnufBNtaswyvAiEAzNGVKgNvzuhk +ijoUXIDruJQEGFGvZTsi1D2RehXiT90CIQC4HOQUYKCydB7oWi1SHDokFW2yFyo6 +/+lf3fgNjPI6OQIgUPmTFXciXxT1msh3gFLf3qt2Kv8wbr9Ad9SXjULVpGkCIB+g +RzHX0lkJl9Stshd/7Gbt65/QYq+v+xvAeT0CoyIg", + ]; + + fn cmp_data(left: &[u8], right: &[u8]) -> bool { + if left.len() != right.len() { + false + } else { + left.iter() + .zip(right.iter()) + .all(|(left, right)| left == right) + } + } + + #[test] + fn test_parse_many_with_headers_crlf() { + let pems = parse_many(HEADER_CRLF).unwrap(); + assert_eq!(pems.len(), 2); + assert_eq!(pems[0].tag(), "CERTIFICATE"); + assert!(cmp_data( + pems[0].contents(), + &decode_data(HEADER_CRLF_DATA[0]).unwrap() + )); + assert_eq!(pems[1].tag(), "RSA PRIVATE KEY"); + assert!(cmp_data( + pems[1].contents(), + &decode_data(HEADER_CRLF_DATA[1]).unwrap() + )); + } + + #[test] + fn test_parse_many_with_headers_lf() { + let pems = parse_many(HEADER_LF).unwrap(); + assert_eq!(pems.len(), 2); + assert_eq!(pems[0].tag(), "CERTIFICATE"); + assert!(cmp_data( + pems[0].contents(), + &decode_data(HEADER_LF_DATA[0]).unwrap() + )); + assert_eq!(pems[1].tag(), "RSA PRIVATE KEY"); + assert!(cmp_data( + pems[1].contents(), + &decode_data(HEADER_LF_DATA[1]).unwrap() + )); + } + + proptest! { + #[test] + fn test_str_parse_and_display(tag in "[A-Z ]+", contents in prop::collection::vec(0..255u8, 0..200)) { + let pem = Pem::new(tag, contents); + prop_assert_eq!(&pem, &pem.to_string().parse::().unwrap()); + } + + #[test] + fn test_str_parse_and_display_with_headers(tag in "[A-Z ]+", + key in "[a-zA-Z]+", + value in "[a-zA-A]+", + contents in prop::collection::vec(0..255u8, 0..200)) { + let mut pem = Pem::new(tag, contents); + pem.headers_mut().add(&key, &value).unwrap(); + prop_assert_eq!(&pem, &pem.to_string().parse::().unwrap()); + } + } + + #[test] + fn test_extract_headers() { + let pems = parse_many(HEADER_CRLF).unwrap(); + let headers = pems[1].headers().iter().collect::>(); + assert_eq!(headers.len(), 2); + assert_eq!(headers[0].0, "Proc-Type"); + assert_eq!(headers[0].1, "4,ENCRYPTED"); + assert_eq!(headers[1].0, "DEK-Info"); + assert_eq!(headers[1].1, "AES-256-CBC,975C518B7D2CCD1164A3354D1F89C5A6"); + + let headers = pems[1].headers().iter().rev().collect::>(); + assert_eq!(headers.len(), 2); + assert_eq!(headers[1].0, "Proc-Type"); + assert_eq!(headers[1].1, "4,ENCRYPTED"); + assert_eq!(headers[0].0, "DEK-Info"); + assert_eq!(headers[0].1, "AES-256-CBC,975C518B7D2CCD1164A3354D1F89C5A6"); + } + + #[test] + fn test_get_header() { + let pems = parse_many(HEADER_CRLF).unwrap(); + let headers = pems[1].headers(); + assert_eq!(headers.get("Proc-Type"), Some("4,ENCRYPTED")); + assert_eq!( + headers.get("DEK-Info"), + Some("AES-256-CBC,975C518B7D2CCD1164A3354D1F89C5A6") + ); + } + + #[test] + fn test_only_get_latest() { + const LATEST: &str = "-----BEGIN RSA PRIVATE KEY----- +Proc-Type: 4,ENCRYPTED +DEK-Info: AES-256-CBC,975C518B7D2CCD1164A3354D1F89C5A6 +Proc-Type: 42,DECRYPTED + +MIIBOgIBAAJBAMIeCnn9G/7g2Z6J+qHOE2XCLLuPoh5NHTO2Fm+PbzBvafBo0oYo +QVVy7frzxmOqx6iIZBxTyfAQqBPO3Br59BMCAwEAAQJAX+PjHPuxdqiwF6blTkS0 +RFI1MrnzRbCmOkM6tgVO0cd6r5Z4bDGLusH9yjI9iI84gPRjK0AzymXFmBGuREHI +sQIhAPKf4pp+Prvutgq2ayygleZChBr1DC4XnnufBNtaswyvAiEAzNGVKgNvzuhk +ijoUXIDruJQEGFGvZTsi1D2RehXiT90CIQC4HOQUYKCydB7oWi1SHDokFW2yFyo6 +/+lf3fgNjPI6OQIgUPmTFXciXxT1msh3gFLf3qt2Kv8wbr9Ad9SXjULVpGkCIB+g +RzHX0lkJl9Stshd/7Gbt65/QYq+v+xvAeT0CoyIg +-----END RSA PRIVATE KEY----- +"; + let pem = parse(LATEST).unwrap(); + let headers = pem.headers(); + assert_eq!(headers.get("Proc-Type"), Some("42,DECRYPTED")); + assert_eq!( + headers.get("DEK-Info"), + Some("AES-256-CBC,975C518B7D2CCD1164A3354D1F89C5A6") + ); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/src/parser.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/src/parser.rs new file mode 100644 index 0000000000000000000000000000000000000000..78a5709a5fe107fe17b392b7f707f52c3589c572 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pem-3.0.6/src/parser.rs @@ -0,0 +1,122 @@ +pub struct Captures<'a> { + pub begin: &'a [u8], + pub headers: &'a [u8], + pub data: &'a [u8], + pub end: &'a [u8], +} + +pub fn parse_captures(input: &[u8]) -> Option> { + parser_inner(input).map(|(_, cap)| cap) +} +pub fn parse_captures_iter(input: &[u8]) -> CaptureMatches<'_> { + CaptureMatches { input } +} + +pub struct CaptureMatches<'a> { + input: &'a [u8], +} +impl<'a> Iterator for CaptureMatches<'a> { + type Item = Captures<'a>; + fn next(&mut self) -> Option { + if self.input.is_empty() { + return None; + } + match parser_inner(self.input) { + Some((remaining, captures)) => { + self.input = remaining; + Some(captures) + } + None => { + self.input = &[]; + None + } + } + } +} + +fn parse_begin(input: &[u8]) -> Option<(&[u8], &[u8])> { + let (input, _) = read_until(input, b"-----BEGIN ")?; + let (input, begin) = read_until(input, b"-----")?; + let input = skip_whitespace(input); + Some((input, begin)) +} + +fn parse_payload(input: &[u8]) -> Option<(&[u8], &[u8])> { + read_until(input, b"-----END ") +} + +fn extract_headers_and_data(input: &[u8]) -> (&[u8], &[u8]) { + if let Some((rest, headers)) = read_until(input, b"\n\n") { + (headers, rest) + } else if let Some((rest, headers)) = read_until(input, b"\r\n\r\n") { + (headers, rest) + } else { + (&[], input) + } +} + +fn parse_end(input: &[u8]) -> Option<(&[u8], &[u8])> { + let (remaining, end) = read_until(input, b"-----")?; + let remaining = skip_whitespace(remaining); + Some((remaining, end)) +} + +fn parser_inner(input: &[u8]) -> Option<(&[u8], Captures<'_>)> { + // Should be equivalent to the regex + // "(?s)-----BEGIN (?P.*?)-----[ \t\n\r]*(?P.*?)-----END (?P.*?)-----[ \t\n\r]*" + + // (?s) # Enable dotall (. matches all characters incl \n) + // -----BEGIN (?P.*?)-----[ \t\n\r]* # Parse begin + // (?P.*?) # Parse data + // -----END (?P.*?)-----[ \t\n\r]* # Parse end + + let (input, begin) = parse_begin(input)?; + let (input, payload) = parse_payload(input)?; + let (headers, data) = extract_headers_and_data(payload); + let (remaining, end) = parse_end(input)?; + + let captures = Captures { + begin, + headers, + data, + end, + }; + Some((remaining, captures)) +} + +// Equivalent to the regex [ \t\n\r]* +fn skip_whitespace(mut input: &[u8]) -> &[u8] { + while let Some(b) = input.first() { + match b { + b' ' | b'\t' | b'\n' | b'\r' => { + input = &input[1..]; + } + _ => break, + } + } + input +} +// Equivalent to (.*?) followed by a string +// Returns the remaining input (after the secondary matched string) and the matched data +fn read_until<'a>(input: &'a [u8], marker: &[u8]) -> Option<(&'a [u8], &'a [u8])> { + // If there is no end condition, short circuit + if marker.is_empty() { + return Some((&[], input)); + } + let mut index = 0; + let mut found = 0; + while input.len() - index >= marker.len() - found { + if input[index] == marker[found] { + found += 1; + } else { + found = 0; + } + index += 1; + if found == marker.len() { + let remaining = &input[index..]; + let matched = &input[..index - found]; + return Some((remaining, matched)); + } + } + None +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/.cargo/config b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/.cargo/config new file mode 100644 index 0000000000000000000000000000000000000000..4ec2f3b8620332641758c95f2c1c685e261cba42 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/.cargo/config @@ -0,0 +1,2 @@ +[target.wasm32-unknown-unknown] +runner = 'wasm-bindgen-test-runner' diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/benches/main.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/benches/main.rs new file mode 100644 index 0000000000000000000000000000000000000000..f1975f5f0a9f322d4cd9de660a14d835c3548772 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/benches/main.rs @@ -0,0 +1,7 @@ +use criterion::criterion_main; + +mod benches; + +criterion_main! { + benches::data::quartiles_group +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/3d-plot.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/3d-plot.rs new file mode 100644 index 0000000000000000000000000000000000000000..7bfc6c3e96cf8a5503aec903befde9ddf7e3f2d3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/3d-plot.rs @@ -0,0 +1,59 @@ +use plotters::prelude::*; +const OUT_FILE_NAME: &str = "plotters-doc-data/3d-plot.svg"; +fn main() -> Result<(), Box> { + let area = SVGBackend::new(OUT_FILE_NAME, (1024, 760)).into_drawing_area(); + + area.fill(&WHITE)?; + + let x_axis = (-3.0..3.0).step(0.1); + let z_axis = (-3.0..3.0).step(0.1); + + let mut chart = ChartBuilder::on(&area) + .caption("3D Plot Test", ("sans", 20)) + .build_cartesian_3d(x_axis.clone(), -3.0..3.0, z_axis.clone())?; + + chart.with_projection(|mut pb| { + pb.yaw = 0.5; + pb.scale = 0.9; + pb.into_matrix() + }); + + chart + .configure_axes() + .light_grid_style(BLACK.mix(0.15)) + .max_light_lines(3) + .draw()?; + + chart + .draw_series( + SurfaceSeries::xoz( + (-30..30).map(|f| f as f64 / 10.0), + (-30..30).map(|f| f as f64 / 10.0), + |x, z| (x * x + z * z).cos(), + ) + .style(BLUE.mix(0.2).filled()), + )? + .label("Surface") + .legend(|(x, y)| Rectangle::new([(x + 5, y - 5), (x + 15, y + 5)], BLUE.mix(0.5).filled())); + + chart + .draw_series(LineSeries::new( + (-100..100) + .map(|y| y as f64 / 40.0) + .map(|y| ((y * 10.0).sin(), y, (y * 10.0).cos())), + &BLACK, + ))? + .label("Line") + .legend(|(x, y)| PathElement::new(vec![(x, y), (x + 20, y)], BLACK)); + + chart.configure_series_labels().border_style(BLACK).draw()?; + + // To avoid the IO failure being ignored silently, we manually call the present function + area.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/3d-plot2.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/3d-plot2.rs new file mode 100644 index 0000000000000000000000000000000000000000..d8feeb9e7a86504626eda87426f3de2bc8fa9e62 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/3d-plot2.rs @@ -0,0 +1,54 @@ +use plotters::prelude::*; +fn pdf(x: f64, y: f64) -> f64 { + const SDX: f64 = 0.1; + const SDY: f64 = 0.1; + const A: f64 = 5.0; + let x = x / 10.0; + let y = y / 10.0; + A * (-x * x / 2.0 / SDX / SDX - y * y / 2.0 / SDY / SDY).exp() +} + +const OUT_FILE_NAME: &str = "plotters-doc-data/3d-plot2.gif"; +fn main() -> Result<(), Box> { + let root = BitMapBackend::gif(OUT_FILE_NAME, (600, 400), 100)?.into_drawing_area(); + + for pitch in 0..157 { + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .caption("2D Gaussian PDF", ("sans-serif", 20)) + .build_cartesian_3d(-3.0..3.0, 0.0..6.0, -3.0..3.0)?; + chart.with_projection(|mut p| { + p.pitch = 1.57 - (1.57 - pitch as f64 / 50.0).abs(); + p.scale = 0.7; + p.into_matrix() // build the projection matrix + }); + + chart + .configure_axes() + .light_grid_style(BLACK.mix(0.15)) + .max_light_lines(3) + .draw()?; + + chart.draw_series( + SurfaceSeries::xoz( + (-15..=15).map(|x| x as f64 / 5.0), + (-15..=15).map(|x| x as f64 / 5.0), + pdf, + ) + .style_func(&|&v| (VulcanoHSL::get_color(v / 5.0)).into()), + )?; + + root.present()?; + } + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/README.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/README.md new file mode 100644 index 0000000000000000000000000000000000000000..3149df7c5eece0be003248c9ef534714eeb3de89 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/README.md @@ -0,0 +1,19 @@ +# plotters examples + +* The example projects have been moved to independent git repository under plotters-rs organization, please check the [Example Project](#example-project) section for the links. + +To run any example, from within the repo, run `cargo run --example ` where `` is the name of the file without the `.rs` extension. + +All the examples assumes the directory [plotters-doc-data](https://github.com/38/plotters-doc-data) exists, otherwise those example crashes. + +The output of these example files are used to generate the [plotters-doc-data](https://github.com/38/plotters-doc-data) repo that populates the sample images in the main README. +We also rely on the output of examples to detect potential layout changes. +For that reason, **they must be run with `cargo` from within the repo, or you must change the output filename in the example code to a directory that exists.** + +The examples that have their own directories and `Cargo.toml` files work differently. They are run the same way you would a standalone project. + +## Example Projects + +- For WebAssembly sample project, check [plotters-wasm-demo](https://github.com/plotters-rs/plotters-wasm-demo) +- For Frame Buffer, Realtime Readering example, check [plotters-minifb-demo](https://github.com/plotters-rs/plotters-minifb-demo) +- For GTK integration, check [plotters-gtk-demo](https://github.com/plotters-rs/plotters-gtk-demo) diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/animation.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/animation.rs new file mode 100644 index 0000000000000000000000000000000000000000..b93cb81a3cc82a603fac7cd49608b087f6198b17 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/animation.rs @@ -0,0 +1,65 @@ +use plotters::prelude::*; + +fn snowflake_iter(points: &[(f64, f64)]) -> Vec<(f64, f64)> { + let mut ret = vec![]; + for i in 0..points.len() { + let (start, end) = (points[i], points[(i + 1) % points.len()]); + let t = ((end.0 - start.0) / 3.0, (end.1 - start.1) / 3.0); + let s = ( + t.0 * 0.5 - t.1 * (0.75f64).sqrt(), + t.1 * 0.5 + (0.75f64).sqrt() * t.0, + ); + ret.push(start); + ret.push((start.0 + t.0, start.1 + t.1)); + ret.push((start.0 + t.0 + s.0, start.1 + t.1 + s.1)); + ret.push((start.0 + t.0 * 2.0, start.1 + t.1 * 2.0)); + } + ret +} + +const OUT_FILE_NAME: &str = "plotters-doc-data/animation.gif"; +fn main() -> Result<(), Box> { + let root = BitMapBackend::gif(OUT_FILE_NAME, (800, 600), 1_000)?.into_drawing_area(); + + for i in 0..8 { + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .caption( + format!("Koch's Snowflake (n_iter = {})", i), + ("sans-serif", 50), + ) + .build_cartesian_2d(-2.0..2.0, -1.5..1.5)?; + + let mut snowflake_vertices = { + let mut current: Vec<(f64, f64)> = vec![ + (0.0, 1.0), + ((3.0f64).sqrt() / 2.0, -0.5), + (-(3.0f64).sqrt() / 2.0, -0.5), + ]; + for _ in 0..i { + current = snowflake_iter(¤t[..]); + } + current + }; + + chart.draw_series(std::iter::once(Polygon::new( + snowflake_vertices.clone(), + RED.mix(0.2), + )))?; + + snowflake_vertices.push(snowflake_vertices[0]); + chart.draw_series(std::iter::once(PathElement::new(snowflake_vertices, RED)))?; + + root.present()?; + } + + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} + +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/area-chart.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/area-chart.rs new file mode 100644 index 0000000000000000000000000000000000000000..c6d78df20e55c30a2aa78bddc1710c0881d5bfd9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/area-chart.rs @@ -0,0 +1,54 @@ +use plotters::prelude::*; + +use rand::SeedableRng; +use rand_distr::{Distribution, Normal}; +use rand_xorshift::XorShiftRng; + +const OUT_FILE_NAME: &str = "plotters-doc-data/area-chart.png"; +fn main() -> Result<(), Box> { + let data: Vec<_> = { + let norm_dist = Normal::new(500.0, 100.0).unwrap(); + let mut x_rand = XorShiftRng::from_seed(*b"MyFragileSeed123"); + let x_iter = norm_dist.sample_iter(&mut x_rand); + x_iter + .filter(|x| *x < 1500.0) + .take(100) + .zip(0..) + .map(|(x, b)| x + (b as f64).powf(1.2)) + .collect() + }; + + let root = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .set_label_area_size(LabelAreaPosition::Left, 60) + .set_label_area_size(LabelAreaPosition::Bottom, 60) + .caption("Area Chart Demo", ("sans-serif", 40)) + .build_cartesian_2d(0..(data.len() - 1), 0.0..1500.0)?; + + chart + .configure_mesh() + .disable_x_mesh() + .disable_y_mesh() + .draw()?; + + chart.draw_series( + AreaSeries::new( + (0..).zip(data.iter()).map(|(x, y)| (x, *y)), + 0.0, + RED.mix(0.2), + ) + .border_style(RED), + )?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/blit-bitmap.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/blit-bitmap.rs new file mode 100644 index 0000000000000000000000000000000000000000..bcdcd177f1bcf47da5b4f7b22e593346d9c3a779 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/blit-bitmap.rs @@ -0,0 +1,45 @@ +use plotters::prelude::*; + +use image::{imageops::FilterType, ImageFormat}; + +use std::fs::File; +use std::io::BufReader; + +const OUT_FILE_NAME: &str = "plotters-doc-data/blit-bitmap.png"; + +fn main() -> Result<(), Box> { + let root = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .caption("Bitmap Example", ("sans-serif", 30)) + .margin(5) + .set_label_area_size(LabelAreaPosition::Left, 40) + .set_label_area_size(LabelAreaPosition::Bottom, 40) + .build_cartesian_2d(0.0..1.0, 0.0..1.0)?; + + chart.configure_mesh().disable_mesh().draw()?; + + let (w, h) = chart.plotting_area().dim_in_pixel(); + let image = image::load( + BufReader::new( + File::open("plotters-doc-data/cat.png").map_err(|e| { + eprintln!("Unable to open file plotters-doc-data.png, please make sure you have clone this repo with --recursive"); + e + })?), + ImageFormat::Png, + )? + .resize_exact(w - w / 10, h - h / 10, FilterType::Nearest); + + let elem: BitMapElement<_> = ((0.05, 0.95), image).into(); + + chart.draw_series(std::iter::once(elem))?; + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/boxplot.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/boxplot.rs new file mode 100644 index 0000000000000000000000000000000000000000..7acda7ab5ea2ecae9c9fa6d0d6782407b6074e80 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/boxplot.rs @@ -0,0 +1,225 @@ +use itertools::Itertools; +use plotters::data::fitting_range; +use plotters::prelude::*; +use std::collections::BTreeMap; +use std::collections::HashMap; +use std::env; +use std::fs; +use std::io::{self, prelude::*, BufReader}; + +fn read_data(reader: BR) -> HashMap<(String, String), Vec> { + let mut ds = HashMap::new(); + for l in reader.lines() { + let line = l.unwrap(); + let tuple: Vec<&str> = line.split('\t').collect(); + if tuple.len() == 3 { + let key = (String::from(tuple[0]), String::from(tuple[1])); + let entry = ds.entry(key).or_insert_with(Vec::new); + entry.push(tuple[2].parse::().unwrap()); + } + } + ds +} + +const OUT_FILE_NAME: &str = "plotters-doc-data/boxplot.svg"; +fn main() -> Result<(), Box> { + let root = SVGBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + root.fill(&WHITE)?; + + let root = root.margin(5, 5, 5, 5); + + let (upper, lower) = root.split_vertically(512); + + let args: Vec = env::args().collect(); + + let ds = if args.len() < 2 { + read_data(io::Cursor::new(get_data())) + } else { + let file = fs::File::open(&args[1])?; + read_data(BufReader::new(file)) + }; + let dataset: Vec<(String, String, Quartiles)> = ds + .iter() + .map(|(k, v)| (k.0.clone(), k.1.clone(), Quartiles::new(v))) + .collect(); + + let host_list: Vec<_> = dataset + .iter() + .unique_by(|x| x.0.clone()) + .sorted_by(|a, b| b.2.median().partial_cmp(&a.2.median()).unwrap()) + .map(|x| x.0.clone()) + .collect(); + + let mut colors = (0..).map(Palette99::pick); + let mut offsets = (-12..).step_by(24); + let mut series = BTreeMap::new(); + for x in dataset.iter() { + let entry = series + .entry(x.1.clone()) + .or_insert_with(|| (Vec::new(), colors.next().unwrap(), offsets.next().unwrap())); + entry.0.push((x.0.clone(), &x.2)); + } + + let values: Vec = dataset.iter().flat_map(|x| x.2.values().to_vec()).collect(); + let values_range = fitting_range(values.iter()); + + let mut chart = ChartBuilder::on(&upper) + .x_label_area_size(40) + .y_label_area_size(80) + .caption("Ping Boxplot", ("sans-serif", 20)) + .build_cartesian_2d( + values_range.start - 1.0..values_range.end + 1.0, + host_list[..].into_segmented(), + )?; + + chart + .configure_mesh() + .x_desc("Ping, ms") + .y_desc("Host") + .y_labels(host_list.len()) + .light_line_style(WHITE) + .draw()?; + + for (label, (values, style, offset)) in &series { + chart + .draw_series(values.iter().map(|x| { + Boxplot::new_horizontal(SegmentValue::CenterOf(&x.0), x.1) + .width(20) + .whisker_width(0.5) + .style(style) + .offset(*offset) + }))? + .label(label) + .legend(move |(x, y)| Rectangle::new([(x, y - 6), (x + 12, y + 6)], style.filled())); + } + chart + .configure_series_labels() + .position(SeriesLabelPosition::UpperRight) + .background_style(WHITE.filled()) + .border_style(BLACK.mix(0.5)) + .legend_area_size(22) + .draw()?; + + let drawing_areas = lower.split_evenly((1, 2)); + let (left, right) = (&drawing_areas[0], &drawing_areas[1]); + + let quartiles_a = Quartiles::new(&[ + 6.0, 7.0, 15.9, 36.9, 39.0, 40.0, 41.0, 42.0, 43.0, 47.0, 49.0, + ]); + let quartiles_b = Quartiles::new(&[16.0, 17.0, 50.0, 60.0, 40.2, 41.3, 42.7, 43.3, 47.0]); + + let ab_axis = ["a", "b"]; + + let values_range = fitting_range( + quartiles_a + .values() + .iter() + .chain(quartiles_b.values().iter()), + ); + let mut chart = ChartBuilder::on(left) + .x_label_area_size(40) + .y_label_area_size(40) + .caption("Vertical Boxplot", ("sans-serif", 20)) + .build_cartesian_2d( + ab_axis[..].into_segmented(), + values_range.start - 10.0..values_range.end + 10.0, + )?; + + chart.configure_mesh().light_line_style(WHITE).draw()?; + chart.draw_series(vec![ + Boxplot::new_vertical(SegmentValue::CenterOf(&"a"), &quartiles_a), + Boxplot::new_vertical(SegmentValue::CenterOf(&"b"), &quartiles_b), + ])?; + + let mut chart = ChartBuilder::on(right) + .x_label_area_size(40) + .y_label_area_size(40) + .caption("Horizontal Boxplot", ("sans-serif", 20)) + .build_cartesian_2d(-30f32..90f32, 0..3)?; + + chart.configure_mesh().light_line_style(WHITE).draw()?; + chart.draw_series(vec![ + Boxplot::new_horizontal(1, &quartiles_a), + Boxplot::new_horizontal(2, &Quartiles::new(&[30])), + ])?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + Ok(()) +} + +fn get_data() -> String { + String::from( + " + 1.1.1.1 wireless 41.6 + 1.1.1.1 wireless 32.5 + 1.1.1.1 wireless 33.1 + 1.1.1.1 wireless 32.3 + 1.1.1.1 wireless 36.7 + 1.1.1.1 wireless 32.0 + 1.1.1.1 wireless 33.1 + 1.1.1.1 wireless 32.0 + 1.1.1.1 wireless 32.9 + 1.1.1.1 wireless 32.7 + 1.1.1.1 wireless 34.5 + 1.1.1.1 wireless 36.5 + 1.1.1.1 wireless 31.9 + 1.1.1.1 wireless 33.7 + 1.1.1.1 wireless 32.6 + 1.1.1.1 wireless 35.1 + 8.8.8.8 wireless 42.3 + 8.8.8.8 wireless 32.9 + 8.8.8.8 wireless 32.9 + 8.8.8.8 wireless 34.3 + 8.8.8.8 wireless 32.0 + 8.8.8.8 wireless 33.3 + 8.8.8.8 wireless 31.5 + 8.8.8.8 wireless 33.1 + 8.8.8.8 wireless 33.2 + 8.8.8.8 wireless 35.9 + 8.8.8.8 wireless 42.3 + 8.8.8.8 wireless 34.1 + 8.8.8.8 wireless 34.2 + 8.8.8.8 wireless 34.2 + 8.8.8.8 wireless 32.4 + 8.8.8.8 wireless 33.0 + 1.1.1.1 wired 31.8 + 1.1.1.1 wired 28.6 + 1.1.1.1 wired 29.4 + 1.1.1.1 wired 28.8 + 1.1.1.1 wired 28.2 + 1.1.1.1 wired 28.8 + 1.1.1.1 wired 28.4 + 1.1.1.1 wired 28.6 + 1.1.1.1 wired 28.3 + 1.1.1.1 wired 28.5 + 1.1.1.1 wired 28.5 + 1.1.1.1 wired 28.5 + 1.1.1.1 wired 28.4 + 1.1.1.1 wired 28.6 + 1.1.1.1 wired 28.4 + 1.1.1.1 wired 28.9 + 8.8.8.8 wired 33.3 + 8.8.8.8 wired 28.4 + 8.8.8.8 wired 28.7 + 8.8.8.8 wired 29.1 + 8.8.8.8 wired 29.6 + 8.8.8.8 wired 28.9 + 8.8.8.8 wired 28.6 + 8.8.8.8 wired 29.3 + 8.8.8.8 wired 28.6 + 8.8.8.8 wired 29.1 + 8.8.8.8 wired 28.7 + 8.8.8.8 wired 28.3 + 8.8.8.8 wired 28.3 + 8.8.8.8 wired 28.6 + 8.8.8.8 wired 29.4 + 8.8.8.8 wired 33.1 +", + ) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/chart.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/chart.rs new file mode 100644 index 0000000000000000000000000000000000000000..e121041ecb3816bd022a7a0da7dcb7dd458adf30 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/chart.rs @@ -0,0 +1,94 @@ +use plotters::prelude::*; + +const OUT_FILE_NAME: &str = "plotters-doc-data/sample.png"; +fn main() -> Result<(), Box> { + let root_area = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + + root_area.fill(&WHITE)?; + + let root_area = root_area.titled("Image Title", ("sans-serif", 60))?; + + let (upper, lower) = root_area.split_vertically(512); + + let x_axis = (-3.4f32..3.4).step(0.1); + + let mut cc = ChartBuilder::on(&upper) + .margin(5) + .set_all_label_area_size(50) + .caption("Sine and Cosine", ("sans-serif", 40)) + .build_cartesian_2d(-3.4f32..3.4, -1.2f32..1.2f32)?; + + cc.configure_mesh() + .x_labels(20) + .y_labels(10) + .disable_mesh() + .x_label_formatter(&|v| format!("{:.1}", v)) + .y_label_formatter(&|v| format!("{:.1}", v)) + .draw()?; + + cc.draw_series(LineSeries::new(x_axis.values().map(|x| (x, x.sin())), &RED))? + .label("Sine") + .legend(|(x, y)| PathElement::new(vec![(x, y), (x + 20, y)], RED)); + + cc.draw_series(LineSeries::new( + x_axis.values().map(|x| (x, x.cos())), + &BLUE, + ))? + .label("Cosine") + .legend(|(x, y)| PathElement::new(vec![(x, y), (x + 20, y)], BLUE)); + + cc.configure_series_labels().border_style(BLACK).draw()?; + + /* + // It's possible to use a existing pointing element + cc.draw_series(PointSeries::<_, _, Circle<_>>::new( + (-3.0f32..2.1f32).step(1.0).values().map(|x| (x, x.sin())), + 5, + Into::::into(&RGBColor(255,0,0)).filled(), + ))?;*/ + + // Otherwise you can use a function to construct your pointing element yourself + cc.draw_series(PointSeries::of_element( + (-3.0f32..2.1f32).step(1.0).values().map(|x| (x, x.sin())), + 5, + ShapeStyle::from(&RED).filled(), + &|coord, size, style| { + EmptyElement::at(coord) + + Circle::new((0, 0), size, style) + + Text::new(format!("{:?}", coord), (0, 15), ("sans-serif", 15)) + }, + ))?; + + let drawing_areas = lower.split_evenly((1, 2)); + + for (drawing_area, idx) in drawing_areas.iter().zip(1..) { + let mut cc = ChartBuilder::on(drawing_area) + .x_label_area_size(30) + .y_label_area_size(30) + .margin_right(20) + .caption(format!("y = x^{}", 1 + 2 * idx), ("sans-serif", 40)) + .build_cartesian_2d(-1f32..1f32, -1f32..1f32)?; + cc.configure_mesh() + .x_labels(5) + .y_labels(3) + .max_light_lines(4) + .draw()?; + + cc.draw_series(LineSeries::new( + (-1f32..1f32) + .step(0.01) + .values() + .map(|x| (x, x.powf(idx as f32 * 2.0 + 1.0))), + &BLUE, + ))?; + } + + // To avoid the IO failure being ignored silently, we manually call the present function + root_area.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/colormaps.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/colormaps.rs new file mode 100644 index 0000000000000000000000000000000000000000..3749e43da37ce72b6f8752b5947751e1e1ce0073 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/colormaps.rs @@ -0,0 +1,69 @@ +use plotters::prelude::*; + +const OUT_FILE_NAME: &str = "plotters-doc-data/colormaps.png"; + +fn main() -> Result<(), Box> { + let colormaps_rgb: [(Box>, &str); 4] = [ + (Box::new(ViridisRGB {}), "Viridis"), + (Box::new(BlackWhite {}), "BlackWhite"), + (Box::new(Bone {}), "Bone"), + (Box::new(Copper {}), "Copper"), + ]; + + let colormaps_hsl: [(Box>, &str); 2] = [ + (Box::new(MandelbrotHSL {}), "MandelbrotHSL"), + (Box::new(VulcanoHSL {}), "VulcanoHSL"), + ]; + + let size_x: i32 = 800; + let n_colormaps = colormaps_rgb.len() + colormaps_hsl.len(); + let size_y = 200 + n_colormaps as u32 * 100; + let root = BitMapBackend::new(OUT_FILE_NAME, (size_x as u32, size_y)).into_drawing_area(); + + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .caption("Demonstration of predefined colormaps", ("sans-serif", 20)) + .build_cartesian_2d( + -150.0..size_x as f32 + 50.0, + 0.0..3.0 * (n_colormaps as f32), + )?; + + use plotters::style::text_anchor::*; + let centered = Pos::new(HPos::Center, VPos::Center); + let label_style = TextStyle::from(("monospace", 14.0).into_font()).pos(centered); + + let mut colormap_counter = 0; + macro_rules! plot_colormaps( + ($colormap:expr) => { + for (colormap, colormap_name) in $colormap.iter() { + chart.draw_series( + (0..size_x as i32).map(|x| { + Rectangle::new([ + (x as f32, 3.0*(n_colormaps - 1 - colormap_counter) as f32 + 0.5), + (x as f32+1.0, 3.0*(n_colormaps - 1 - colormap_counter) as f32 + 2.5) + ], + colormap.get_color_normalized(x as f32, 0.0, size_x as f32).filled()) + }) + )?; + chart.draw_series( + [Text::new(colormap_name.to_owned(), (-75.0, 3.0*(n_colormaps-1-colormap_counter) as f32 + 1.5), &label_style)] + )?; + colormap_counter+=1; + } + } + ); + + plot_colormaps!(colormaps_rgb); + plot_colormaps!(colormaps_hsl); + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/console.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/console.rs new file mode 100644 index 0000000000000000000000000000000000000000..814fb5f24be08accb9bd5283f8ea652aa7c2d607 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/console.rs @@ -0,0 +1,200 @@ +use plotters::prelude::*; +use plotters::style::text_anchor::{HPos, VPos}; +use plotters_backend::{ + BackendColor, BackendStyle, BackendTextStyle, DrawingBackend, DrawingErrorKind, +}; +use std::error::Error; + +#[derive(Copy, Clone)] +enum PixelState { + Empty, + HLine, + VLine, + Cross, + Pixel, + Text(char), + Circle(bool), +} + +impl PixelState { + fn to_char(self) -> char { + match self { + Self::Empty => ' ', + Self::HLine => '-', + Self::VLine => '|', + Self::Cross => '+', + Self::Pixel => '.', + Self::Text(c) => c, + Self::Circle(filled) => { + if filled { + '@' + } else { + 'O' + } + } + } + } + + fn update(&mut self, new_state: PixelState) { + let next_state = match (*self, new_state) { + (Self::HLine, Self::VLine) => Self::Cross, + (Self::VLine, Self::HLine) => Self::Cross, + (_, Self::Circle(what)) => Self::Circle(what), + (Self::Circle(what), _) => Self::Circle(what), + (_, Self::Pixel) => Self::Pixel, + (Self::Pixel, _) => Self::Pixel, + (_, new) => new, + }; + + *self = next_state; + } +} + +pub struct TextDrawingBackend(Vec); + +impl DrawingBackend for TextDrawingBackend { + type ErrorType = std::io::Error; + + fn get_size(&self) -> (u32, u32) { + (100, 30) + } + + fn ensure_prepared(&mut self) -> Result<(), DrawingErrorKind> { + Ok(()) + } + + fn present(&mut self) -> Result<(), DrawingErrorKind> { + for r in 0..30 { + let mut buf = String::new(); + for c in 0..100 { + buf.push(self.0[r * 100 + c].to_char()); + } + println!("{}", buf); + } + + Ok(()) + } + + fn draw_pixel( + &mut self, + pos: (i32, i32), + color: BackendColor, + ) -> Result<(), DrawingErrorKind> { + if color.alpha > 0.3 { + self.0[(pos.1 * 100 + pos.0) as usize].update(PixelState::Pixel); + } + Ok(()) + } + + fn draw_line( + &mut self, + from: (i32, i32), + to: (i32, i32), + style: &S, + ) -> Result<(), DrawingErrorKind> { + if from.0 == to.0 { + let x = from.0; + let y0 = from.1.min(to.1); + let y1 = from.1.max(to.1); + for y in y0..y1 { + self.0[(y * 100 + x) as usize].update(PixelState::VLine); + } + return Ok(()); + } + + if from.1 == to.1 { + let y = from.1; + let x0 = from.0.min(to.0); + let x1 = from.0.max(to.0); + for x in x0..x1 { + self.0[(y * 100 + x) as usize].update(PixelState::HLine); + } + return Ok(()); + } + + plotters_backend::rasterizer::draw_line(self, from, to, style) + } + + fn estimate_text_size( + &self, + text: &str, + _: &S, + ) -> Result<(u32, u32), DrawingErrorKind> { + Ok((text.len() as u32, 1)) + } + + fn draw_text( + &mut self, + text: &str, + style: &S, + pos: (i32, i32), + ) -> Result<(), DrawingErrorKind> { + let (width, height) = self.estimate_text_size(text, style)?; + let (width, height) = (width as i32, height as i32); + let dx = match style.anchor().h_pos { + HPos::Left => 0, + HPos::Right => -width, + HPos::Center => -width / 2, + }; + let dy = match style.anchor().v_pos { + VPos::Top => 0, + VPos::Center => -height / 2, + VPos::Bottom => -height, + }; + let offset = (pos.1 + dy).max(0) * 100 + (pos.0 + dx).max(0); + for (idx, chr) in (offset..).zip(text.chars()) { + self.0[idx as usize].update(PixelState::Text(chr)); + } + Ok(()) + } +} + +fn draw_chart( + b: DrawingArea, +) -> Result<(), Box> +where + DB::ErrorType: 'static, +{ + let mut chart = ChartBuilder::on(&b) + .margin(1) + .caption("Sine and Cosine", ("sans-serif", (10).percent_height())) + .set_label_area_size(LabelAreaPosition::Left, (5i32).percent_width()) + .set_label_area_size(LabelAreaPosition::Bottom, (10i32).percent_height()) + .build_cartesian_2d(-std::f64::consts::PI..std::f64::consts::PI, -1.2..1.2)?; + + chart + .configure_mesh() + .disable_x_mesh() + .disable_y_mesh() + .draw()?; + + chart.draw_series(LineSeries::new( + (-314..314).map(|x| x as f64 / 100.0).map(|x| (x, x.sin())), + &RED, + ))?; + + chart.draw_series(LineSeries::new( + (-314..314).map(|x| x as f64 / 100.0).map(|x| (x, x.cos())), + &RED, + ))?; + + b.present()?; + + Ok(()) +} + +const OUT_FILE_NAME: &str = "plotters-doc-data/console-example.png"; +fn main() -> Result<(), Box> { + draw_chart(TextDrawingBackend(vec![PixelState::Empty; 5000]).into_drawing_area())?; + let b = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + b.fill(&WHITE)?; + draw_chart(b)?; + + println!("Image result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/customized_coord.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/customized_coord.rs new file mode 100644 index 0000000000000000000000000000000000000000..760373bc1d7fc21b2f3a62ae80d1b19fd5c2e49a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/customized_coord.rs @@ -0,0 +1,54 @@ +use plotters::{ + coord::ranged1d::{KeyPointHint, NoDefaultFormatting, ValueFormatter}, + prelude::*, +}; +const OUT_FILE_NAME: &str = "plotters-doc-data/customized_coord.svg"; + +struct CustomizedX(u32); + +impl Ranged for CustomizedX { + type ValueType = u32; + type FormatOption = NoDefaultFormatting; + fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32 { + let size = limit.1 - limit.0; + ((*value as f64 / self.0 as f64) * size as f64) as i32 + limit.0 + } + + fn range(&self) -> std::ops::Range { + 0..self.0 + } + + fn key_points(&self, hint: Hint) -> Vec { + if hint.max_num_points() < (self.0 as usize) { + return vec![]; + } + + (0..self.0).collect() + } +} + +impl ValueFormatter for CustomizedX { + fn format_ext(&self, value: &u32) -> String { + format!("{} of {}", value, self.0) + } +} + +fn main() -> Result<(), Box> { + let area = SVGBackend::new(OUT_FILE_NAME, (1024, 760)).into_drawing_area(); + area.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&area) + .set_all_label_area_size(50) + .build_cartesian_2d(CustomizedX(7), 0.0..10.0)?; + + chart.configure_mesh().draw()?; + + area.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + Ok(()) +} + +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/errorbar.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/errorbar.rs new file mode 100644 index 0000000000000000000000000000000000000000..364ea899db1aacc42e504e67d4e6f951a86a1870 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/errorbar.rs @@ -0,0 +1,98 @@ +use plotters::prelude::*; + +use rand::SeedableRng; +use rand_distr::{Distribution, Normal}; +use rand_xorshift::XorShiftRng; + +use itertools::Itertools; + +use num_traits::sign::Signed; + +const OUT_FILE_NAME: &str = "plotters-doc-data/errorbar.png"; +fn main() -> Result<(), Box> { + let data = generate_random_data(); + let down_sampled = down_sample(&data[..]); + + let root = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .caption("Linear Function with Noise", ("sans-serif", 60)) + .margin(10) + .set_label_area_size(LabelAreaPosition::Left, 40) + .set_label_area_size(LabelAreaPosition::Bottom, 40) + .build_cartesian_2d(-10f64..10f64, -10f64..10f64)?; + + chart.configure_mesh().draw()?; + + chart + .draw_series(LineSeries::new(data, &GREEN.mix(0.3)))? + .label("Raw Data") + .legend(|(x, y)| PathElement::new(vec![(x, y), (x + 20, y)], GREEN)); + + chart.draw_series(LineSeries::new( + down_sampled.iter().map(|(x, _, y, _)| (*x, *y)), + &BLUE, + ))?; + + chart + .draw_series( + down_sampled.iter().map(|(x, yl, ym, yh)| { + ErrorBar::new_vertical(*x, *yl, *ym, *yh, BLUE.filled(), 20) + }), + )? + .label("Down-sampled") + .legend(|(x, y)| PathElement::new(vec![(x, y), (x + 20, y)], BLUE)); + + chart + .configure_series_labels() + .background_style(WHITE.filled()) + .draw()?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} + +fn generate_random_data() -> Vec<(f64, f64)> { + let norm_dist = Normal::new(0.0, 1.0).unwrap(); + let mut x_rand = XorShiftRng::from_seed(*b"MyFragileSeed123"); + let x_iter = norm_dist.sample_iter(&mut x_rand); + x_iter + .take(20000) + .filter(|x| x.abs() <= 4.0) + .zip(-10000..10000) + .map(|(yn, x)| { + ( + x as f64 / 1000.0, + x as f64 / 1000.0 + yn * x as f64 / 10000.0, + ) + }) + .collect() +} + +fn down_sample(data: &[(f64, f64)]) -> Vec<(f64, f64, f64, f64)> { + let down_sampled: Vec<_> = data + .iter() + .group_by(|x| (x.0 * 1.0).round() / 1.0) + .into_iter() + .map(|(x, g)| { + let mut g: Vec<_> = g.map(|(_, y)| *y).collect(); + g.sort_by(|a, b| a.partial_cmp(b).unwrap()); + ( + x, + g[0], + g.iter().sum::() / g.len() as f64, + g[g.len() - 1], + ) + }) + .collect(); + down_sampled +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/full_palette.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/full_palette.rs new file mode 100644 index 0000000000000000000000000000000000000000..b63ea73e69eab5d2844db502e3625b92f8838293 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/full_palette.rs @@ -0,0 +1,548 @@ +use plotters::prelude::*; + +const OUT_FILE_NAME: &str = "plotters-doc-data/full_palette.png"; + +fn main() -> Result<(), Box> { + let root = BitMapBackend::new(OUT_FILE_NAME, (2000, 850)).into_drawing_area(); + + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .caption("Demonstration of full_palette Colors", ("sans-serif", 50)) + .build_cartesian_2d(-0.5f32..19f32, -1f32..15f32)?; + + use full_palette::*; + let colors = [ + [ + RED, RED_50, RED_100, RED_200, RED_300, RED_400, RED_500, RED_600, RED_700, RED_800, + RED_900, RED_A100, RED_A200, RED_A400, RED_A700, + ], + [ + PINK, PINK_50, PINK_100, PINK_200, PINK_300, PINK_400, PINK_500, PINK_600, PINK_700, + PINK_800, PINK_900, PINK_A100, PINK_A200, PINK_A400, PINK_A700, + ], + [ + PURPLE, + PURPLE_50, + PURPLE_100, + PURPLE_200, + PURPLE_300, + PURPLE_400, + PURPLE_500, + PURPLE_600, + PURPLE_700, + PURPLE_800, + PURPLE_900, + PURPLE_A100, + PURPLE_A200, + PURPLE_A400, + PURPLE_A700, + ], + [ + DEEPPURPLE, + DEEPPURPLE_50, + DEEPPURPLE_100, + DEEPPURPLE_200, + DEEPPURPLE_300, + DEEPPURPLE_400, + DEEPPURPLE_500, + DEEPPURPLE_600, + DEEPPURPLE_700, + DEEPPURPLE_800, + DEEPPURPLE_900, + DEEPPURPLE_A100, + DEEPPURPLE_A200, + DEEPPURPLE_A400, + DEEPPURPLE_A700, + ], + [ + INDIGO, + INDIGO_50, + INDIGO_100, + INDIGO_200, + INDIGO_300, + INDIGO_400, + INDIGO_500, + INDIGO_600, + INDIGO_700, + INDIGO_800, + INDIGO_900, + INDIGO_A100, + INDIGO_A200, + INDIGO_A400, + INDIGO_A700, + ], + [ + BLUE, BLUE_50, BLUE_100, BLUE_200, BLUE_300, BLUE_400, BLUE_500, BLUE_600, BLUE_700, + BLUE_800, BLUE_900, BLUE_A100, BLUE_A200, BLUE_A400, BLUE_A700, + ], + [ + LIGHTBLUE, + LIGHTBLUE_50, + LIGHTBLUE_100, + LIGHTBLUE_200, + LIGHTBLUE_300, + LIGHTBLUE_400, + LIGHTBLUE_500, + LIGHTBLUE_600, + LIGHTBLUE_700, + LIGHTBLUE_800, + LIGHTBLUE_900, + LIGHTBLUE_A100, + LIGHTBLUE_A200, + LIGHTBLUE_A400, + LIGHTBLUE_A700, + ], + [ + CYAN, CYAN_50, CYAN_100, CYAN_200, CYAN_300, CYAN_400, CYAN_500, CYAN_600, CYAN_700, + CYAN_800, CYAN_900, CYAN_A100, CYAN_A200, CYAN_A400, CYAN_A700, + ], + [ + TEAL, TEAL_50, TEAL_100, TEAL_200, TEAL_300, TEAL_400, TEAL_500, TEAL_600, TEAL_700, + TEAL_800, TEAL_900, TEAL_A100, TEAL_A200, TEAL_A400, TEAL_A700, + ], + [ + GREEN, GREEN_50, GREEN_100, GREEN_200, GREEN_300, GREEN_400, GREEN_500, GREEN_600, + GREEN_700, GREEN_800, GREEN_900, GREEN_A100, GREEN_A200, GREEN_A400, GREEN_A700, + ], + [ + LIGHTGREEN, + LIGHTGREEN_50, + LIGHTGREEN_100, + LIGHTGREEN_200, + LIGHTGREEN_300, + LIGHTGREEN_400, + LIGHTGREEN_500, + LIGHTGREEN_600, + LIGHTGREEN_700, + LIGHTGREEN_800, + LIGHTGREEN_900, + LIGHTGREEN_A100, + LIGHTGREEN_A200, + LIGHTGREEN_A400, + LIGHTGREEN_A700, + ], + [ + LIME, LIME_50, LIME_100, LIME_200, LIME_300, LIME_400, LIME_500, LIME_600, LIME_700, + LIME_800, LIME_900, LIME_A100, LIME_A200, LIME_A400, LIME_A700, + ], + [ + YELLOW, + YELLOW_50, + YELLOW_100, + YELLOW_200, + YELLOW_300, + YELLOW_400, + YELLOW_500, + YELLOW_600, + YELLOW_700, + YELLOW_800, + YELLOW_900, + YELLOW_A100, + YELLOW_A200, + YELLOW_A400, + YELLOW_A700, + ], + [ + AMBER, AMBER_50, AMBER_100, AMBER_200, AMBER_300, AMBER_400, AMBER_500, AMBER_600, + AMBER_700, AMBER_800, AMBER_900, AMBER_A100, AMBER_A200, AMBER_A400, AMBER_A700, + ], + [ + ORANGE, + ORANGE_50, + ORANGE_100, + ORANGE_200, + ORANGE_300, + ORANGE_400, + ORANGE_500, + ORANGE_600, + ORANGE_700, + ORANGE_800, + ORANGE_900, + ORANGE_A100, + ORANGE_A200, + ORANGE_A400, + ORANGE_A700, + ], + [ + DEEPORANGE, + DEEPORANGE_50, + DEEPORANGE_100, + DEEPORANGE_200, + DEEPORANGE_300, + DEEPORANGE_400, + DEEPORANGE_500, + DEEPORANGE_600, + DEEPORANGE_700, + DEEPORANGE_800, + DEEPORANGE_900, + DEEPORANGE_A100, + DEEPORANGE_A200, + DEEPORANGE_A400, + DEEPORANGE_A700, + ], + [ + BROWN, BROWN_50, BROWN_100, BROWN_200, BROWN_300, BROWN_400, BROWN_500, BROWN_600, + BROWN_700, BROWN_800, BROWN_900, BROWN_A100, BROWN_A200, BROWN_A400, BROWN_A700, + ], + [ + GREY, GREY_50, GREY_100, GREY_200, GREY_300, GREY_400, GREY_500, GREY_600, GREY_700, + GREY_800, GREY_900, GREY_A100, GREY_A200, GREY_A400, GREY_A700, + ], + [ + BLUEGREY, + BLUEGREY_50, + BLUEGREY_100, + BLUEGREY_200, + BLUEGREY_300, + BLUEGREY_400, + BLUEGREY_500, + BLUEGREY_600, + BLUEGREY_700, + BLUEGREY_800, + BLUEGREY_900, + BLUEGREY_A100, + BLUEGREY_A200, + BLUEGREY_A400, + BLUEGREY_A700, + ], + ]; + let color_names = [ + [ + "RED", "RED_50", "RED_100", "RED_200", "RED_300", "RED_400", "RED_500", "RED_600", + "RED_700", "RED_800", "RED_900", "RED_A100", "RED_A200", "RED_A400", "RED_A700", + ], + [ + "PINK", + "PINK_50", + "PINK_100", + "PINK_200", + "PINK_300", + "PINK_400", + "PINK_500", + "PINK_600", + "PINK_700", + "PINK_800", + "PINK_900", + "PINK_A100", + "PINK_A200", + "PINK_A400", + "PINK_A700", + ], + [ + "PURPLE", + "PURPLE_50", + "PURPLE_100", + "PURPLE_200", + "PURPLE_300", + "PURPLE_400", + "PURPLE_500", + "PURPLE_600", + "PURPLE_700", + "PURPLE_800", + "PURPLE_900", + "PURPLE_A100", + "PURPLE_A200", + "PURPLE_A400", + "PURPLE_A700", + ], + [ + "DEEPPURPLE", + "DEEPPURPLE_50", + "DEEPPURPLE_100", + "DEEPPURPLE_200", + "DEEPPURPLE_300", + "DEEPPURPLE_400", + "DEEPPURPLE_500", + "DEEPPURPLE_600", + "DEEPPURPLE_700", + "DEEPPURPLE_800", + "DEEPPURPLE_900", + "DEEPPURPLE_A100", + "DEEPPURPLE_A200", + "DEEPPURPLE_A400", + "DEEPPURPLE_A700", + ], + [ + "INDIGO", + "INDIGO_50", + "INDIGO_100", + "INDIGO_200", + "INDIGO_300", + "INDIGO_400", + "INDIGO_500", + "INDIGO_600", + "INDIGO_700", + "INDIGO_800", + "INDIGO_900", + "INDIGO_A100", + "INDIGO_A200", + "INDIGO_A400", + "INDIGO_A700", + ], + [ + "BLUE", + "BLUE_50", + "BLUE_100", + "BLUE_200", + "BLUE_300", + "BLUE_400", + "BLUE_500", + "BLUE_600", + "BLUE_700", + "BLUE_800", + "BLUE_900", + "BLUE_A100", + "BLUE_A200", + "BLUE_A400", + "BLUE_A700", + ], + [ + "LIGHTBLUE", + "LIGHTBLUE_50", + "LIGHTBLUE_100", + "LIGHTBLUE_200", + "LIGHTBLUE_300", + "LIGHTBLUE_400", + "LIGHTBLUE_500", + "LIGHTBLUE_600", + "LIGHTBLUE_700", + "LIGHTBLUE_800", + "LIGHTBLUE_900", + "LIGHTBLUE_A100", + "LIGHTBLUE_A200", + "LIGHTBLUE_A400", + "LIGHTBLUE_A700", + ], + [ + "CYAN", + "CYAN_50", + "CYAN_100", + "CYAN_200", + "CYAN_300", + "CYAN_400", + "CYAN_500", + "CYAN_600", + "CYAN_700", + "CYAN_800", + "CYAN_900", + "CYAN_A100", + "CYAN_A200", + "CYAN_A400", + "CYAN_A700", + ], + [ + "TEAL", + "TEAL_50", + "TEAL_100", + "TEAL_200", + "TEAL_300", + "TEAL_400", + "TEAL_500", + "TEAL_600", + "TEAL_700", + "TEAL_800", + "TEAL_900", + "TEAL_A100", + "TEAL_A200", + "TEAL_A400", + "TEAL_A700", + ], + [ + "GREEN", + "GREEN_50", + "GREEN_100", + "GREEN_200", + "GREEN_300", + "GREEN_400", + "GREEN_500", + "GREEN_600", + "GREEN_700", + "GREEN_800", + "GREEN_900", + "GREEN_A100", + "GREEN_A200", + "GREEN_A400", + "GREEN_A700", + ], + [ + "LIGHTGREEN", + "LIGHTGREEN_50", + "LIGHTGREEN_100", + "LIGHTGREEN_200", + "LIGHTGREEN_300", + "LIGHTGREEN_400", + "LIGHTGREEN_500", + "LIGHTGREEN_600", + "LIGHTGREEN_700", + "LIGHTGREEN_800", + "LIGHTGREEN_900", + "LIGHTGREEN_A100", + "LIGHTGREEN_A200", + "LIGHTGREEN_A400", + "LIGHTGREEN_A700", + ], + [ + "LIME", + "LIME_50", + "LIME_100", + "LIME_200", + "LIME_300", + "LIME_400", + "LIME_500", + "LIME_600", + "LIME_700", + "LIME_800", + "LIME_900", + "LIME_A100", + "LIME_A200", + "LIME_A400", + "LIME_A700", + ], + [ + "YELLOW", + "YELLOW_50", + "YELLOW_100", + "YELLOW_200", + "YELLOW_300", + "YELLOW_400", + "YELLOW_500", + "YELLOW_600", + "YELLOW_700", + "YELLOW_800", + "YELLOW_900", + "YELLOW_A100", + "YELLOW_A200", + "YELLOW_A400", + "YELLOW_A700", + ], + [ + "AMBER", + "AMBER_50", + "AMBER_100", + "AMBER_200", + "AMBER_300", + "AMBER_400", + "AMBER_500", + "AMBER_600", + "AMBER_700", + "AMBER_800", + "AMBER_900", + "AMBER_A100", + "AMBER_A200", + "AMBER_A400", + "AMBER_A700", + ], + [ + "ORANGE", + "ORANGE_50", + "ORANGE_100", + "ORANGE_200", + "ORANGE_300", + "ORANGE_400", + "ORANGE_500", + "ORANGE_600", + "ORANGE_700", + "ORANGE_800", + "ORANGE_900", + "ORANGE_A100", + "ORANGE_A200", + "ORANGE_A400", + "ORANGE_A700", + ], + [ + "DEEPORANGE", + "DEEPORANGE_50", + "DEEPORANGE_100", + "DEEPORANGE_200", + "DEEPORANGE_300", + "DEEPORANGE_400", + "DEEPORANGE_500", + "DEEPORANGE_600", + "DEEPORANGE_700", + "DEEPORANGE_800", + "DEEPORANGE_900", + "DEEPORANGE_A100", + "DEEPORANGE_A200", + "DEEPORANGE_A400", + "DEEPORANGE_A700", + ], + [ + "BROWN", + "BROWN_50", + "BROWN_100", + "BROWN_200", + "BROWN_300", + "BROWN_400", + "BROWN_500", + "BROWN_600", + "BROWN_700", + "BROWN_800", + "BROWN_900", + "BROWN_A100", + "BROWN_A200", + "BROWN_A400", + "BROWN_A700", + ], + [ + "GREY", + "GREY_50", + "GREY_100", + "GREY_200", + "GREY_300", + "GREY_400", + "GREY_500", + "GREY_600", + "GREY_700", + "GREY_800", + "GREY_900", + "GREY_A100", + "GREY_A200", + "GREY_A400", + "GREY_A700", + ], + [ + "BLUEGREY", + "BLUEGREY_50", + "BLUEGREY_100", + "BLUEGREY_200", + "BLUEGREY_300", + "BLUEGREY_400", + "BLUEGREY_500", + "BLUEGREY_600", + "BLUEGREY_700", + "BLUEGREY_800", + "BLUEGREY_900", + "BLUEGREY_A100", + "BLUEGREY_A200", + "BLUEGREY_A400", + "BLUEGREY_A700", + ], + ]; + + use plotters::style::text_anchor::*; + let centered = Pos::new(HPos::Center, VPos::Top); + let label_style = TextStyle::from(("monospace", 14.0).into_font()).pos(centered); + + for (col, colors) in colors.iter().enumerate() { + chart.draw_series(colors.iter().zip(color_names[col].iter()).enumerate().map( + |(row, (color, &name))| { + let row = row as f32; + let col = col as f32; + EmptyElement::at((col, row)) + + Circle::new((0, 0), 15, color.filled()) + + Text::new(name, (0, 16), &label_style) + }, + ))?; + } + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/histogram.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/histogram.rs new file mode 100644 index 0000000000000000000000000000000000000000..a56ce0268af0ee60f316a9b46c5c1c4a73fb59f4 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/histogram.rs @@ -0,0 +1,43 @@ +use plotters::prelude::*; +const OUT_FILE_NAME: &str = "plotters-doc-data/histogram.png"; +fn main() -> Result<(), Box> { + let root = BitMapBackend::new(OUT_FILE_NAME, (640, 480)).into_drawing_area(); + + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .x_label_area_size(35) + .y_label_area_size(40) + .margin(5) + .caption("Histogram Test", ("sans-serif", 50.0)) + .build_cartesian_2d((0u32..10u32).into_segmented(), 0u32..10u32)?; + + chart + .configure_mesh() + .disable_x_mesh() + .bold_line_style(WHITE.mix(0.3)) + .y_desc("Count") + .x_desc("Bucket") + .axis_desc_style(("sans-serif", 15)) + .draw()?; + + let data = [ + 0u32, 1, 1, 1, 4, 2, 5, 7, 8, 6, 4, 2, 1, 8, 3, 3, 3, 4, 4, 3, 3, 3, + ]; + + chart.draw_series( + Histogram::vertical(&chart) + .style(RED.mix(0.5).filled()) + .data(data.iter().map(|x: &u32| (*x, 1))), + )?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/mandelbrot.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/mandelbrot.rs new file mode 100644 index 0000000000000000000000000000000000000000..a03ae1c5ae1395a662b2496c4b3d7a1a15f57386 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/mandelbrot.rs @@ -0,0 +1,71 @@ +use plotters::prelude::*; +use std::ops::Range; + +const OUT_FILE_NAME: &str = "plotters-doc-data/mandelbrot.png"; +fn main() -> Result<(), Box> { + let root = BitMapBackend::new(OUT_FILE_NAME, (800, 600)).into_drawing_area(); + + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .margin(20) + .x_label_area_size(10) + .y_label_area_size(10) + .build_cartesian_2d(-2.1f64..0.6f64, -1.2f64..1.2f64)?; + + chart + .configure_mesh() + .disable_x_mesh() + .disable_y_mesh() + .draw()?; + + let plotting_area = chart.plotting_area(); + + let range = plotting_area.get_pixel_range(); + + let (pw, ph) = (range.0.end - range.0.start, range.1.end - range.1.start); + let (xr, yr) = (chart.x_range(), chart.y_range()); + + for (x, y, c) in mandelbrot_set(xr, yr, (pw as usize, ph as usize), 100) { + if c != 100 { + plotting_area.draw_pixel((x, y), &MandelbrotHSL::get_color(c as f64 / 100.0))?; + } else { + plotting_area.draw_pixel((x, y), &BLACK)?; + } + } + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} + +fn mandelbrot_set( + real: Range, + complex: Range, + samples: (usize, usize), + max_iter: usize, +) -> impl Iterator { + let step = ( + (real.end - real.start) / samples.0 as f64, + (complex.end - complex.start) / samples.1 as f64, + ); + (0..(samples.0 * samples.1)).map(move |k| { + let c = ( + real.start + step.0 * (k % samples.0) as f64, + complex.start + step.1 * (k / samples.0) as f64, + ); + let mut z = (0.0, 0.0); + let mut cnt = 0; + while cnt < max_iter && z.0 * z.0 + z.1 * z.1 <= 1e10 { + z = (z.0 * z.0 - z.1 * z.1 + c.0, 2.0 * z.0 * z.1 + c.1); + cnt += 1; + } + (c.0, c.1, cnt) + }) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/matshow.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/matshow.rs new file mode 100644 index 0000000000000000000000000000000000000000..09ce561cc9f0233d3dff3d5efc19269859ee2d4a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/matshow.rs @@ -0,0 +1,61 @@ +use plotters::prelude::*; + +const OUT_FILE_NAME: &str = "plotters-doc-data/matshow.png"; +fn main() -> Result<(), Box> { + let root = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .caption("Matshow Example", ("sans-serif", 80)) + .margin(5) + .top_x_label_area_size(40) + .y_label_area_size(40) + .build_cartesian_2d(0i32..15i32, 0i32..15i32)?; + + chart + .configure_mesh() + .x_labels(15) + .y_labels(15) + .max_light_lines(4) + .x_label_offset(35) + .y_label_offset(25) + .disable_x_mesh() + .disable_y_mesh() + .label_style(("sans-serif", 20)) + .draw()?; + + let mut matrix = [[0; 15]; 15]; + + for i in 0..15 { + matrix[i][i] = i + 4; + } + + chart.draw_series( + matrix + .iter() + .zip(0..) + .flat_map(|(l, y)| l.iter().zip(0..).map(move |(v, x)| (x, y, v))) + .map(|(x, y, v)| { + Rectangle::new( + [(x, y), (x + 1, y + 1)], + HSLColor( + 240.0 / 360.0 - 240.0 / 360.0 * (*v as f64 / 20.0), + 0.7, + 0.1 + 0.4 * *v as f64 / 20.0, + ) + .filled(), + ) + }), + )?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/nested_coord.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/nested_coord.rs new file mode 100644 index 0000000000000000000000000000000000000000..a3418fa9f2113c9f46bbdc5964d838ebafeff1b2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/nested_coord.rs @@ -0,0 +1,47 @@ +use plotters::prelude::*; +const OUT_FILE_NAME: &str = "plotters-doc-data/nested_coord.png"; +fn main() -> Result<(), Box> { + let root = BitMapBackend::new(OUT_FILE_NAME, (640, 480)).into_drawing_area(); + + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .x_label_area_size(35) + .y_label_area_size(40) + .margin(5) + .caption("Nested Coord", ("sans-serif", 50.0)) + .build_cartesian_2d( + ["Linear", "Quadratic"].nested_coord(|_| 0.0..10.0), + 0.0..10.0, + )?; + + chart + .configure_mesh() + .disable_mesh() + .axis_desc_style(("sans-serif", 15)) + .draw()?; + + chart.draw_series(LineSeries::new( + (0..10) + .map(|x| x as f64 / 1.0) + .map(|x| ((&"Linear", x).into(), x)), + &RED, + ))?; + + chart.draw_series(LineSeries::new( + (0..10) + .map(|x| x as f64 / 1.0) + .map(|x| ((&"Quadratic", x).into(), x * x / 10.0)), + &RED, + ))?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/normal-dist.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/normal-dist.rs new file mode 100644 index 0000000000000000000000000000000000000000..e6cfdcd60b94de228be1710a371610a5a312f12c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/normal-dist.rs @@ -0,0 +1,66 @@ +use plotters::prelude::*; + +use rand::SeedableRng; +use rand_distr::{Distribution, Normal}; +use rand_xorshift::XorShiftRng; + +const OUT_FILE_NAME: &str = "plotters-doc-data/normal-dist.png"; +fn main() -> Result<(), Box> { + let root = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + + root.fill(&WHITE)?; + + let sd = 0.13; + + let random_points: Vec<(f64, f64)> = { + let norm_dist = Normal::new(0.5, sd).unwrap(); + let mut x_rand = XorShiftRng::from_seed(*b"MyFragileSeed123"); + let mut y_rand = XorShiftRng::from_seed(*b"MyFragileSeed321"); + let x_iter = norm_dist.sample_iter(&mut x_rand); + let y_iter = norm_dist.sample_iter(&mut y_rand); + x_iter.zip(y_iter).take(5000).collect() + }; + + let areas = root.split_by_breakpoints([944], [80]); + + let mut x_hist_ctx = ChartBuilder::on(&areas[0]) + .y_label_area_size(40) + .build_cartesian_2d((0.0..1.0).step(0.01).use_round().into_segmented(), 0..250)?; + let mut y_hist_ctx = ChartBuilder::on(&areas[3]) + .x_label_area_size(40) + .build_cartesian_2d(0..250, (0.0..1.0).step(0.01).use_round())?; + let mut scatter_ctx = ChartBuilder::on(&areas[2]) + .x_label_area_size(40) + .y_label_area_size(40) + .build_cartesian_2d(0f64..1f64, 0f64..1f64)?; + scatter_ctx + .configure_mesh() + .disable_x_mesh() + .disable_y_mesh() + .draw()?; + scatter_ctx.draw_series( + random_points + .iter() + .map(|(x, y)| Circle::new((*x, *y), 2, GREEN.filled())), + )?; + let x_hist = Histogram::vertical(&x_hist_ctx) + .style(GREEN.filled()) + .margin(0) + .data(random_points.iter().map(|(x, _)| (*x, 1))); + let y_hist = Histogram::horizontal(&y_hist_ctx) + .style(GREEN.filled()) + .margin(0) + .data(random_points.iter().map(|(_, y)| (*y, 1))); + x_hist_ctx.draw_series(x_hist)?; + y_hist_ctx.draw_series(y_hist)?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/normal-dist2.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/normal-dist2.rs new file mode 100644 index 0000000000000000000000000000000000000000..f9963123ea591dabad35f46a39715c8e3a0c6676 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/normal-dist2.rs @@ -0,0 +1,83 @@ +use plotters::prelude::*; + +use rand::SeedableRng; +use rand_distr::{Distribution, Normal}; +use rand_xorshift::XorShiftRng; + +use num_traits::sign::Signed; + +const OUT_FILE_NAME: &str = "plotters-doc-data/normal-dist2.png"; +fn main() -> Result<(), Box> { + let sd = 0.60; + + let random_points: Vec = { + let norm_dist = Normal::new(0.0, sd).unwrap(); + let mut x_rand = XorShiftRng::from_seed(*b"MyFragileSeed123"); + let x_iter = norm_dist.sample_iter(&mut x_rand); + x_iter.take(5000).filter(|x| x.abs() <= 4.0).collect() + }; + + let root = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .margin(5) + .caption("1D Gaussian Distribution Demo", ("sans-serif", 30)) + .set_label_area_size(LabelAreaPosition::Left, 60) + .set_label_area_size(LabelAreaPosition::Bottom, 60) + .set_label_area_size(LabelAreaPosition::Right, 60) + .build_cartesian_2d(-4f64..4f64, 0f64..0.1)? + .set_secondary_coord( + (-4f64..4f64).step(0.1).use_round().into_segmented(), + 0u32..500u32, + ); + + chart + .configure_mesh() + .disable_x_mesh() + .disable_y_mesh() + .y_label_formatter(&|y| format!("{:.0}%", *y * 100.0)) + .y_desc("Percentage") + .draw()?; + + chart.configure_secondary_axes().y_desc("Count").draw()?; + + let actual = Histogram::vertical(chart.borrow_secondary()) + .style(GREEN.filled()) + .margin(3) + .data(random_points.iter().map(|x| (*x, 1))); + + chart + .draw_secondary_series(actual)? + .label("Observed") + .legend(|(x, y)| Rectangle::new([(x, y - 5), (x + 10, y + 5)], GREEN.filled())); + + let pdf = LineSeries::new( + (-400..400).map(|x| x as f64 / 100.0).map(|x| { + ( + x, + (-x * x / 2.0 / sd / sd).exp() / (2.0 * std::f64::consts::PI * sd * sd).sqrt() + * 0.1, + ) + }), + &RED, + ); + + chart + .draw_series(pdf)? + .label("PDF") + .legend(|(x, y)| PathElement::new(vec![(x, y), (x + 20, y)], RED.filled())); + + chart.configure_series_labels().draw()?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/pie.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/pie.rs new file mode 100644 index 0000000000000000000000000000000000000000..7226e5a3663f3adc9b8239e20115febd603cc1b5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/pie.rs @@ -0,0 +1,25 @@ +use plotters::{prelude::*, style::full_palette::ORANGE}; + +const OUT_FILE_NAME: &str = "plotters-doc-data/pie-chart.png"; +fn main() -> Result<(), Box> { + let root_area = BitMapBackend::new(&OUT_FILE_NAME, (950, 700)).into_drawing_area(); + root_area.fill(&WHITE).unwrap(); + let title_style = TextStyle::from(("sans-serif", 30).into_font()).color(&(BLACK)); + root_area.titled("BEST CIRCLES", title_style).unwrap(); + + let dims = root_area.dim_in_pixel(); + let center = (dims.0 as i32 / 2, dims.1 as i32 / 2); + let radius = 300.0; + let sizes = vec![66.0, 33.0]; + let _rgba = RGBAColor(0, 50, 255, 1.0); + let colors = vec![RGBColor(0, 50, 255), CYAN]; + let labels = vec!["Pizza", "Pacman"]; + + let mut pie = Pie::new(¢er, &radius, &sizes, &colors, &labels); + pie.start_angle(66.0); + pie.label_style((("sans-serif", 50).into_font()).color(&(ORANGE))); + pie.percentages((("sans-serif", radius * 0.08).into_font()).color(&BLACK)); + root_area.draw(&pie)?; + + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/relative_size.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/relative_size.rs new file mode 100644 index 0000000000000000000000000000000000000000..e66bfeef6a07932a7d45db2ef95ccb7811d015ae --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/relative_size.rs @@ -0,0 +1,57 @@ +use plotters::coord::Shift; +use plotters::prelude::*; + +fn draw_chart(root: &DrawingArea) -> DrawResult<(), B> { + let mut chart = ChartBuilder::on(root) + .caption( + "Relative Size Example", + ("sans-serif", (5).percent_height()), + ) + .x_label_area_size((10).percent_height()) + .y_label_area_size((10).percent_width()) + .margin(5) + .build_cartesian_2d(-5.0..5.0, -1.0..1.0)?; + + chart + .configure_mesh() + .disable_x_mesh() + .disable_y_mesh() + .label_style(("sans-serif", (3).percent_height())) + .draw()?; + + chart.draw_series(LineSeries::new( + (0..1000) + .map(|x| x as f64 / 100.0 - 5.0) + .map(|x| (x, x.sin())), + &RED, + ))?; + Ok(()) +} + +const OUT_FILE_NAME: &str = "plotters-doc-data/relative_size.png"; +fn main() -> Result<(), Box> { + let root = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + + root.fill(&WHITE)?; + + let (left, right) = root.split_horizontally((70).percent_width()); + + draw_chart(&left)?; + + let (upper, lower) = right.split_vertically(300); + + draw_chart(&upper)?; + draw_chart(&lower)?; + let root = root.shrink((200, 200), (150, 100)); + draw_chart(&root)?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/sierpinski.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/sierpinski.rs new file mode 100644 index 0000000000000000000000000000000000000000..773d1b2c0156ceb3fb56e1a42290059748748b96 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/sierpinski.rs @@ -0,0 +1,43 @@ +use plotters::coord::Shift; +use plotters::prelude::*; + +pub fn sierpinski_carpet( + depth: u32, + drawing_area: &DrawingArea, +) -> Result<(), Box> { + if depth > 0 { + let sub_areas = drawing_area.split_evenly((3, 3)); + for (idx, sub_area) in (0..).zip(sub_areas.iter()) { + if idx != 4 { + sub_area.fill(&BLUE)?; + sierpinski_carpet(depth - 1, sub_area)?; + } else { + sub_area.fill(&WHITE)?; + } + } + } + Ok(()) +} + +const OUT_FILE_NAME: &str = "plotters-doc-data/sierpinski.png"; +fn main() -> Result<(), Box> { + let root = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + + root.fill(&WHITE)?; + + let root = root + .titled("Sierpinski Carpet Demo", ("sans-serif", 60))? + .shrink(((1024 - 700) / 2, 0), (700, 700)); + + sierpinski_carpet(5, &root)?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/slc-temp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/slc-temp.rs new file mode 100644 index 0000000000000000000000000000000000000000..a774995d9145656d1b165a89ef36db84f301c6fc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/slc-temp.rs @@ -0,0 +1,174 @@ +use plotters::prelude::*; + +use chrono::{TimeZone, Utc}; + +use std::error::Error; + +const OUT_FILE_NAME: &str = "plotters-doc-data/slc-temp.png"; +fn main() -> Result<(), Box> { + let root = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .margin(10) + .caption( + "Monthly Average Temperate in Salt Lake City, UT", + ("sans-serif", 40), + ) + .set_label_area_size(LabelAreaPosition::Left, 60) + .set_label_area_size(LabelAreaPosition::Right, 60) + .set_label_area_size(LabelAreaPosition::Bottom, 40) + .build_cartesian_2d( + (Utc.ymd(2010, 1, 1)..Utc.ymd(2018, 12, 1)).monthly(), + 14.0..104.0, + )? + .set_secondary_coord( + (Utc.ymd(2010, 1, 1)..Utc.ymd(2018, 12, 1)).monthly(), + -10.0..40.0, + ); + + chart + .configure_mesh() + .disable_x_mesh() + .disable_y_mesh() + .x_labels(30) + .max_light_lines(4) + .y_desc("Average Temp (F)") + .draw()?; + chart + .configure_secondary_axes() + .y_desc("Average Temp (C)") + .draw()?; + + chart.draw_series(LineSeries::new( + DATA.iter().map(|(y, m, t)| (Utc.ymd(*y, *m, 1), *t)), + &BLUE, + ))?; + + chart.draw_series( + DATA.iter() + .map(|(y, m, t)| Circle::new((Utc.ymd(*y, *m, 1), *t), 3, BLUE.filled())), + )?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} + +const DATA: [(i32, u32, f64); 12 * 9] = [ + (2010, 1, 32.4), + (2010, 2, 37.5), + (2010, 3, 44.5), + (2010, 4, 50.3), + (2010, 5, 55.0), + (2010, 6, 70.0), + (2010, 7, 78.7), + (2010, 8, 76.5), + (2010, 9, 68.9), + (2010, 10, 56.3), + (2010, 11, 40.3), + (2010, 12, 36.5), + (2011, 1, 28.8), + (2011, 2, 35.1), + (2011, 3, 45.5), + (2011, 4, 48.9), + (2011, 5, 55.1), + (2011, 6, 68.8), + (2011, 7, 77.9), + (2011, 8, 78.4), + (2011, 9, 68.2), + (2011, 10, 55.0), + (2011, 11, 41.5), + (2011, 12, 31.0), + (2012, 1, 35.6), + (2012, 2, 38.1), + (2012, 3, 49.1), + (2012, 4, 56.1), + (2012, 5, 63.4), + (2012, 6, 73.0), + (2012, 7, 79.0), + (2012, 8, 79.0), + (2012, 9, 68.8), + (2012, 10, 54.9), + (2012, 11, 45.2), + (2012, 12, 34.9), + (2013, 1, 19.7), + (2013, 2, 31.1), + (2013, 3, 46.2), + (2013, 4, 49.8), + (2013, 5, 61.3), + (2013, 6, 73.3), + (2013, 7, 80.3), + (2013, 8, 77.2), + (2013, 9, 68.3), + (2013, 10, 52.0), + (2013, 11, 43.2), + (2013, 12, 25.7), + (2014, 1, 31.5), + (2014, 2, 39.3), + (2014, 3, 46.4), + (2014, 4, 52.5), + (2014, 5, 63.0), + (2014, 6, 71.3), + (2014, 7, 81.0), + (2014, 8, 75.3), + (2014, 9, 70.0), + (2014, 10, 58.6), + (2014, 11, 42.1), + (2014, 12, 38.0), + (2015, 1, 35.3), + (2015, 2, 45.2), + (2015, 3, 50.9), + (2015, 4, 54.3), + (2015, 5, 60.5), + (2015, 6, 77.1), + (2015, 7, 76.2), + (2015, 8, 77.3), + (2015, 9, 70.4), + (2015, 10, 60.6), + (2015, 11, 40.9), + (2015, 12, 32.4), + (2016, 1, 31.5), + (2016, 2, 35.1), + (2016, 3, 49.1), + (2016, 4, 55.1), + (2016, 5, 60.9), + (2016, 6, 76.9), + (2016, 7, 80.0), + (2016, 8, 77.0), + (2016, 9, 67.1), + (2016, 10, 59.1), + (2016, 11, 47.4), + (2016, 12, 31.8), + (2017, 1, 29.4), + (2017, 2, 42.4), + (2017, 3, 51.7), + (2017, 4, 51.7), + (2017, 5, 62.5), + (2017, 6, 74.8), + (2017, 7, 81.3), + (2017, 8, 78.1), + (2017, 9, 65.7), + (2017, 10, 52.5), + (2017, 11, 49.0), + (2017, 12, 34.4), + (2018, 1, 38.1), + (2018, 2, 37.5), + (2018, 3, 45.4), + (2018, 4, 54.6), + (2018, 5, 64.0), + (2018, 6, 74.9), + (2018, 7, 82.5), + (2018, 8, 78.1), + (2018, 9, 71.9), + (2018, 10, 53.2), + (2018, 11, 39.7), + (2018, 12, 33.6), +]; +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/snowflake.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/snowflake.rs new file mode 100644 index 0000000000000000000000000000000000000000..f64a0d677899173767b47df8b3e1f57ebcc5e405 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/snowflake.rs @@ -0,0 +1,57 @@ +use plotters::prelude::*; + +fn snowflake_iter(points: &[(f64, f64)]) -> Vec<(f64, f64)> { + let mut ret = vec![]; + for i in 0..points.len() { + let (start, end) = (points[i], points[(i + 1) % points.len()]); + let t = ((end.0 - start.0) / 3.0, (end.1 - start.1) / 3.0); + let s = ( + t.0 * 0.5 - t.1 * (0.75f64).sqrt(), + t.1 * 0.5 + (0.75f64).sqrt() * t.0, + ); + ret.push(start); + ret.push((start.0 + t.0, start.1 + t.1)); + ret.push((start.0 + t.0 + s.0, start.1 + t.1 + s.1)); + ret.push((start.0 + t.0 * 2.0, start.1 + t.1 * 2.0)); + } + ret +} + +const OUT_FILE_NAME: &str = "plotters-doc-data/snowflake.png"; +fn main() -> Result<(), Box> { + let root = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .caption("Koch's Snowflake", ("sans-serif", 50)) + .build_cartesian_2d(-2.0..2.0, -1.5..1.5)?; + + let mut snowflake_vertices = { + let mut current: Vec<(f64, f64)> = vec![ + (0.0, 1.0), + ((3.0f64).sqrt() / 2.0, -0.5), + (-(3.0f64).sqrt() / 2.0, -0.5), + ]; + for _ in 0..6 { + current = snowflake_iter(¤t[..]); + } + current + }; + + chart.draw_series(std::iter::once(Polygon::new( + snowflake_vertices.clone(), + RED.mix(0.2), + )))?; + snowflake_vertices.push(snowflake_vertices[0]); + chart.draw_series(std::iter::once(PathElement::new(snowflake_vertices, RED)))?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/stock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/stock.rs new file mode 100644 index 0000000000000000000000000000000000000000..65defad2cd04a192108b3961f59045d2922c1749 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/stock.rs @@ -0,0 +1,79 @@ +use chrono::offset::{Local, TimeZone}; +use chrono::{Date, Duration}; +use plotters::prelude::*; +fn parse_time(t: &str) -> Date { + Local + .datetime_from_str(&format!("{} 0:0", t), "%Y-%m-%d %H:%M") + .unwrap() + .date() +} +const OUT_FILE_NAME: &str = "plotters-doc-data/stock.png"; +fn main() -> Result<(), Box> { + let data = get_data(); + let root = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + root.fill(&WHITE)?; + + let (to_date, from_date) = ( + parse_time(data[0].0) + Duration::days(1), + parse_time(data[29].0) - Duration::days(1), + ); + + let mut chart = ChartBuilder::on(&root) + .x_label_area_size(40) + .y_label_area_size(40) + .caption("MSFT Stock Price", ("sans-serif", 50.0).into_font()) + .build_cartesian_2d(from_date..to_date, 110f32..135f32)?; + + chart.configure_mesh().light_line_style(WHITE).draw()?; + + chart.draw_series( + data.iter().map(|x| { + CandleStick::new(parse_time(x.0), x.1, x.2, x.3, x.4, GREEN.filled(), RED, 15) + }), + )?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} + +fn get_data() -> Vec<(&'static str, f32, f32, f32, f32)> { + vec![ + ("2019-04-25", 130.06, 131.37, 128.83, 129.15), + ("2019-04-24", 125.79, 125.85, 124.52, 125.01), + ("2019-04-23", 124.1, 125.58, 123.83, 125.44), + ("2019-04-22", 122.62, 124.0000, 122.57, 123.76), + ("2019-04-18", 122.19, 123.52, 121.3018, 123.37), + ("2019-04-17", 121.24, 121.85, 120.54, 121.77), + ("2019-04-16", 121.64, 121.65, 120.1, 120.77), + ("2019-04-15", 120.94, 121.58, 120.57, 121.05), + ("2019-04-12", 120.64, 120.98, 120.37, 120.95), + ("2019-04-11", 120.54, 120.85, 119.92, 120.33), + ("2019-04-10", 119.76, 120.35, 119.54, 120.19), + ("2019-04-09", 118.63, 119.54, 118.58, 119.28), + ("2019-04-08", 119.81, 120.02, 118.64, 119.93), + ("2019-04-05", 119.39, 120.23, 119.37, 119.89), + ("2019-04-04", 120.1, 120.23, 118.38, 119.36), + ("2019-04-03", 119.86, 120.43, 119.15, 119.97), + ("2019-04-02", 119.06, 119.48, 118.52, 119.19), + ("2019-04-01", 118.95, 119.1085, 118.1, 119.02), + ("2019-03-29", 118.07, 118.32, 116.96, 117.94), + ("2019-03-28", 117.44, 117.58, 116.13, 116.93), + ("2019-03-27", 117.875, 118.21, 115.5215, 116.77), + ("2019-03-26", 118.62, 118.705, 116.85, 117.91), + ("2019-03-25", 116.56, 118.01, 116.3224, 117.66), + ("2019-03-22", 119.5, 119.59, 117.04, 117.05), + ("2019-03-21", 117.135, 120.82, 117.09, 120.22), + ("2019-03-20", 117.39, 118.75, 116.71, 117.52), + ("2019-03-19", 118.09, 118.44, 116.99, 117.65), + ("2019-03-18", 116.17, 117.61, 116.05, 117.57), + ("2019-03-15", 115.34, 117.25, 114.59, 115.91), + ("2019-03-14", 114.54, 115.2, 114.33, 114.59), + ] +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/tick_control.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/tick_control.rs new file mode 100644 index 0000000000000000000000000000000000000000..2f4ea348567bc3325186828fbe94e2edc81e3bd9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/tick_control.rs @@ -0,0 +1,86 @@ +// Data is pulled from https://covid.ourworldindata.org/data/owid-covid-data.json +use plotters::prelude::*; +use std::fs::File; +use std::io::BufReader; + +#[derive(serde_derive::Deserialize)] +struct DailyData { + #[serde(default)] + new_cases: f64, + #[serde(default)] + total_cases: f64, +} + +#[derive(serde_derive::Deserialize)] +struct CountryData { + data: Vec, +} + +const OUT_FILE_NAME: &str = "plotters-doc-data/tick_control.svg"; +fn main() -> Result<(), Box> { + let root = SVGBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + root.fill(&WHITE)?; + + let (upper, lower) = root.split_vertically(750); + + lower.titled( + "Data Source: https://covid.ourworldindata.org/data/owid-covid-data.json", + ("sans-serif", 10).into_font().color(&BLACK.mix(0.5)), + )?; + + let mut chart = ChartBuilder::on(&upper) + .caption("World COVID-19 Cases", ("sans-serif", (5).percent_height())) + .set_label_area_size(LabelAreaPosition::Left, (8).percent()) + .set_label_area_size(LabelAreaPosition::Bottom, (4).percent()) + .margin((1).percent()) + .build_cartesian_2d( + (20u32..5000_0000u32) + .log_scale() + .with_key_points(vec![50, 100, 1000, 10000, 100000, 1000000, 10000000]), + (0u32..50_0000u32) + .log_scale() + .with_key_points(vec![10, 50, 100, 1000, 10000, 100000, 200000]), + )?; + + chart + .configure_mesh() + .x_desc("Total Cases") + .y_desc("New Cases") + .draw()?; + + let data: std::collections::HashMap = serde_json::from_reader( + BufReader::new(File::open("plotters-doc-data/covid-data.json")?), + )?; + + for (idx, &series) in ["CHN", "USA", "RUS", "JPN", "DEU", "IND", "OWID_WRL"] + .iter() + .enumerate() + { + let color = Palette99::pick(idx).mix(0.9); + chart + .draw_series(LineSeries::new( + data[series].data.iter().map( + |&DailyData { + new_cases, + total_cases, + .. + }| (total_cases as u32, new_cases as u32), + ), + color.stroke_width(3), + ))? + .label(series) + .legend(move |(x, y)| Rectangle::new([(x, y - 5), (x + 10, y + 5)], color.filled())); + } + + chart.configure_series_labels().border_style(BLACK).draw()?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/two-scales.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/two-scales.rs new file mode 100644 index 0000000000000000000000000000000000000000..e50410fb8887b917f0a8e533b810ddcec0c92106 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/examples/two-scales.rs @@ -0,0 +1,60 @@ +use plotters::prelude::*; + +const OUT_FILE_NAME: &str = "plotters-doc-data/twoscale.png"; +fn main() -> Result<(), Box> { + let root = BitMapBackend::new(OUT_FILE_NAME, (1024, 768)).into_drawing_area(); + root.fill(&WHITE)?; + + let mut chart = ChartBuilder::on(&root) + .x_label_area_size(35) + .y_label_area_size(40) + .right_y_label_area_size(40) + .margin(5) + .caption("Dual Y-Axis Example", ("sans-serif", 50.0).into_font()) + .build_cartesian_2d(0f32..10f32, (0.1f32..1e10f32).log_scale())? + .set_secondary_coord(0f32..10f32, -1.0f32..1.0f32); + + chart + .configure_mesh() + .disable_x_mesh() + .disable_y_mesh() + .y_desc("Log Scale") + .y_label_formatter(&|x| format!("{:e}", x)) + .draw()?; + + chart + .configure_secondary_axes() + .y_desc("Linear Scale") + .draw()?; + + chart + .draw_series(LineSeries::new( + (0..=100).map(|x| (x as f32 / 10.0, (1.02f32).powf(x as f32 * x as f32 / 10.0))), + &BLUE, + ))? + .label("y = 1.02^x^2") + .legend(|(x, y)| PathElement::new(vec![(x, y), (x + 20, y)], BLUE)); + + chart + .draw_secondary_series(LineSeries::new( + (0..=100).map(|x| (x as f32 / 10.0, (x as f32 / 5.0).sin())), + &RED, + ))? + .label("y = sin(2x)") + .legend(|(x, y)| PathElement::new(vec![(x, y), (x + 20, y)], RED)); + + chart + .configure_series_labels() + .background_style(RGBColor(128, 128, 128)) + .draw()?; + + // To avoid the IO failure being ignored silently, we manually call the present function + root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir"); + println!("Result has been saved to {}", OUT_FILE_NAME); + + Ok(()) +} +#[test] +fn entry_point() { + main().unwrap() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/axes3d.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/axes3d.rs new file mode 100644 index 0000000000000000000000000000000000000000..9431715e82fcce2634867a224a43b7eb95cab0cc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/axes3d.rs @@ -0,0 +1,317 @@ +use std::marker::PhantomData; + +use super::ChartContext; +use crate::coord::cartesian::Cartesian3d; +use crate::coord::ranged1d::{BoldPoints, LightPoints, Ranged, ValueFormatter}; +use crate::style::colors::{BLACK, TRANSPARENT}; +use crate::style::Color; +use crate::style::{AsRelative, ShapeStyle, SizeDesc, TextStyle}; + +use super::Coord3D; + +use crate::drawing::DrawingAreaErrorKind; + +use plotters_backend::DrawingBackend; + +/** +Implements 3D plot axes configurations. + +The best way to use this struct is by way of the [`configure_axes()`] function. +See [`ChartContext::configure_axes()`] for more information and examples. +*/ +pub struct Axes3dStyle<'a, 'b, X: Ranged, Y: Ranged, Z: Ranged, DB: DrawingBackend> { + pub(super) parent_size: (u32, u32), + pub(super) target: Option<&'b mut ChartContext<'a, DB, Cartesian3d>>, + pub(super) tick_size: i32, + pub(super) light_lines_limit: [usize; 3], + pub(super) n_labels: [usize; 3], + pub(super) bold_line_style: ShapeStyle, + pub(super) light_line_style: ShapeStyle, + pub(super) axis_panel_style: ShapeStyle, + pub(super) axis_style: ShapeStyle, + pub(super) label_style: TextStyle<'b>, + pub(super) format_x: &'b dyn Fn(&X::ValueType) -> String, + pub(super) format_y: &'b dyn Fn(&Y::ValueType) -> String, + pub(super) format_z: &'b dyn Fn(&Z::ValueType) -> String, + _phantom: PhantomData<&'a (X, Y, Z)>, +} + +impl<'a, 'b, X, Y, Z, XT, YT, ZT, DB> Axes3dStyle<'a, 'b, X, Y, Z, DB> +where + X: Ranged + ValueFormatter, + Y: Ranged + ValueFormatter, + Z: Ranged + ValueFormatter, + DB: DrawingBackend, +{ + /** + Set the size of the tick marks. + + - `value` Desired tick mark size, in pixels. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn tick_size(&mut self, size: Size) -> &mut Self { + let actual_size = size.in_pixels(&self.parent_size); + self.tick_size = actual_size; + self + } + + /** + Set the maximum number of divisions for the minor grid in the X axis. + + - `value`: Maximum desired divisions between two consecutive X labels. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn x_max_light_lines(&mut self, value: usize) -> &mut Self { + self.light_lines_limit[0] = value; + self + } + + /** + Set the maximum number of divisions for the minor grid in the Y axis. + + - `value`: Maximum desired divisions between two consecutive Y labels. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn y_max_light_lines(&mut self, value: usize) -> &mut Self { + self.light_lines_limit[1] = value; + self + } + + /** + Set the maximum number of divisions for the minor grid in the Z axis. + + - `value`: Maximum desired divisions between two consecutive Z labels. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn z_max_light_lines(&mut self, value: usize) -> &mut Self { + self.light_lines_limit[2] = value; + self + } + + /** + Set the maximum number of divisions for the minor grid. + + - `value`: Maximum desired divisions between two consecutive labels in X, Y, and Z. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn max_light_lines(&mut self, value: usize) -> &mut Self { + self.light_lines_limit[0] = value; + self.light_lines_limit[1] = value; + self.light_lines_limit[2] = value; + self + } + + /** + Set the number of labels on the X axes. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn x_labels(&mut self, n: usize) -> &mut Self { + self.n_labels[0] = n; + self + } + + /** + Set the number of labels on the Y axes. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn y_labels(&mut self, n: usize) -> &mut Self { + self.n_labels[1] = n; + self + } + + /** + Set the number of labels on the Z axes. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn z_labels(&mut self, n: usize) -> &mut Self { + self.n_labels[2] = n; + self + } + + /** + Sets the style of the panels in the background. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn axis_panel_style>(&mut self, style: S) -> &mut Self { + self.axis_panel_style = style.into(); + self + } + + /** + Sets the style of the major grid lines. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn bold_grid_style>(&mut self, style: S) -> &mut Self { + self.bold_line_style = style.into(); + self + } + + /** + Sets the style of the minor grid lines. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn light_grid_style>(&mut self, style: S) -> &mut Self { + self.light_line_style = style.into(); + self + } + + /** + Sets the text style of the axis labels. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn label_style>>(&mut self, style: S) -> &mut Self { + self.label_style = style.into(); + self + } + + /** + Specifies the string format of the X axis labels. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn x_formatter String>(&mut self, f: &'b F) -> &mut Self { + self.format_x = f; + self + } + + /** + Specifies the string format of the Y axis labels. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn y_formatter String>(&mut self, f: &'b F) -> &mut Self { + self.format_y = f; + self + } + + /** + Specifies the string format of the Z axis labels. + + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub fn z_formatter String>(&mut self, f: &'b F) -> &mut Self { + self.format_z = f; + self + } + + /** + Constructs a new configuration object and defines the defaults. + + This is used internally by Plotters and should probably not be included in user code. + See [`ChartContext::configure_axes()`] for more information and examples. + */ + pub(crate) fn new(chart: &'b mut ChartContext<'a, DB, Cartesian3d>) -> Self { + let parent_size = chart.drawing_area.dim_in_pixel(); + let base_tick_size = (5u32).percent().max(5).in_pixels(chart.plotting_area()); + let tick_size = base_tick_size; + Self { + parent_size, + tick_size, + light_lines_limit: [10, 10, 10], + n_labels: [10, 10, 10], + bold_line_style: Into::::into(BLACK.mix(0.2)), + light_line_style: Into::::into(TRANSPARENT), + axis_panel_style: Into::::into(BLACK.mix(0.1)), + axis_style: Into::::into(BLACK.mix(0.8)), + label_style: ("sans-serif", (12).percent().max(12).in_pixels(&parent_size)).into(), + format_x: &X::format, + format_y: &Y::format, + format_z: &Z::format, + _phantom: PhantomData, + target: Some(chart), + } + } + + pub fn draw(&mut self) -> Result<(), DrawingAreaErrorKind> + where + XT: Clone, + YT: Clone, + ZT: Clone, + { + let chart = self.target.take().unwrap(); + let kps_bold = chart.get_key_points( + BoldPoints(self.n_labels[0]), + BoldPoints(self.n_labels[1]), + BoldPoints(self.n_labels[2]), + ); + let kps_light = chart.get_key_points( + LightPoints::new( + self.n_labels[0], + self.n_labels[0] * self.light_lines_limit[0], + ), + LightPoints::new( + self.n_labels[1], + self.n_labels[1] * self.light_lines_limit[1], + ), + LightPoints::new( + self.n_labels[2], + self.n_labels[2] * self.light_lines_limit[2], + ), + ); + + let panels = chart.draw_axis_panels( + &kps_bold, + &kps_light, + self.axis_panel_style, + self.bold_line_style, + self.light_line_style, + )?; + + for i in 0..3 { + let axis = chart.draw_axis(i, &panels, self.axis_style)?; + let labels: Vec<_> = match i { + 0 => kps_bold + .x_points + .iter() + .map(|x| { + let x_text = (self.format_x)(x); + let mut p = axis[0].clone(); + p[0] = Coord3D::X(x.clone()); + (p, x_text) + }) + .collect(), + 1 => kps_bold + .y_points + .iter() + .map(|y| { + let y_text = (self.format_y)(y); + let mut p = axis[0].clone(); + p[1] = Coord3D::Y(y.clone()); + (p, y_text) + }) + .collect(), + _ => kps_bold + .z_points + .iter() + .map(|z| { + let z_text = (self.format_z)(z); + let mut p = axis[0].clone(); + p[2] = Coord3D::Z(z.clone()); + (p, z_text) + }) + .collect(), + }; + chart.draw_axis_ticks( + axis, + &labels[..], + self.tick_size, + self.axis_style, + self.label_style.clone(), + )?; + } + + Ok(()) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/builder.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/builder.rs new file mode 100644 index 0000000000000000000000000000000000000000..41a4309bd14b47a59d034668348004905d2a0943 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/builder.rs @@ -0,0 +1,591 @@ +use super::context::ChartContext; + +use crate::coord::cartesian::{Cartesian2d, Cartesian3d}; +use crate::coord::ranged1d::AsRangedCoord; +use crate::coord::Shift; + +use crate::drawing::{DrawingArea, DrawingAreaErrorKind}; +use crate::style::{IntoTextStyle, SizeDesc, TextStyle}; + +use plotters_backend::DrawingBackend; + +/** +Specifies one of the four label positions around the figure. + +This is used to configure the label area size with function +[`ChartBuilder::set_label_area_size()`]. + +# Example + +``` +use plotters::prelude::*; +let drawing_area = SVGBackend::new("label_area_position.svg", (300, 200)).into_drawing_area(); +drawing_area.fill(&WHITE).unwrap(); +let mut chart_builder = ChartBuilder::on(&drawing_area); +chart_builder.set_label_area_size(LabelAreaPosition::Bottom, 60).set_label_area_size(LabelAreaPosition::Left, 35); +let mut chart_context = chart_builder.build_cartesian_2d(0.0..4.0, 0.0..3.0).unwrap(); +chart_context.configure_mesh().x_desc("Spacious X label area").y_desc("Narrow Y label area").draw().unwrap(); +``` + +The result is a chart with a spacious X label area and a narrow Y label area: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@9ca6541/apidoc/label_area_position.svg) + +# See also + +[`ChartBuilder::set_left_and_bottom_label_area_size()`] +*/ +#[derive(Copy, Clone)] +pub enum LabelAreaPosition { + /// Top of the figure + Top = 0, + /// Bottom of the figure + Bottom = 1, + /// Left side of the figure + Left = 2, + /// Right side of the figure + Right = 3, +} + +/** +The helper object to create a chart context, which is used for the high-level figure drawing. + +With the help of this object, we can convert a basic drawing area into a chart context, which +allows the high-level charting API being used on the drawing area. + +See [`ChartBuilder::on()`] for more information and examples. +*/ +pub struct ChartBuilder<'a, 'b, DB: DrawingBackend> { + label_area_size: [u32; 4], // [upper, lower, left, right] + overlap_plotting_area: [bool; 4], + root_area: &'a DrawingArea, + title: Option<(String, TextStyle<'b>)>, + margin: [u32; 4], +} + +impl<'a, 'b, DB: DrawingBackend> ChartBuilder<'a, 'b, DB> { + /** + Create a chart builder on the given drawing area + + - `root`: The root drawing area + - Returns: The chart builder object + + # Example + + ``` + use plotters::prelude::*; + let drawing_area = SVGBackend::new("chart_builder_on.svg", (300, 200)).into_drawing_area(); + drawing_area.fill(&WHITE).unwrap(); + let mut chart_builder = ChartBuilder::on(&drawing_area); + chart_builder.margin(5).set_left_and_bottom_label_area_size(35) + .caption("Figure title or caption", ("Calibri", 20, FontStyle::Italic, &RED).into_text_style(&drawing_area)); + let mut chart_context = chart_builder.build_cartesian_2d(0.0..3.8, 0.0..2.8).unwrap(); + chart_context.configure_mesh().draw().unwrap(); + ``` + The result is a chart with customized margins, label area sizes, and title: + + ![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@42ecf52/apidoc/chart_builder_on.svg) + + */ + pub fn on(root: &'a DrawingArea) -> Self { + Self { + label_area_size: [0; 4], + root_area: root, + title: None, + margin: [0; 4], + overlap_plotting_area: [false; 4], + } + } + + /** + Sets the size of the four margins of the chart. + + - `size`: The desired size of the four chart margins in backend units (pixels). + + See [`ChartBuilder::on()`] for more information and examples. + */ + pub fn margin(&mut self, size: S) -> &mut Self { + let size = size.in_pixels(self.root_area).max(0) as u32; + self.margin = [size, size, size, size]; + self + } + + /** + Sets the size of the top margin of the chart. + + - `size`: The desired size of the margin in backend units (pixels). + + See [`ChartBuilder::on()`] for more information and examples. + */ + pub fn margin_top(&mut self, size: S) -> &mut Self { + let size = size.in_pixels(self.root_area).max(0) as u32; + self.margin[0] = size; + self + } + + /** + Sets the size of the bottom margin of the chart. + + - `size`: The desired size of the margin in backend units (pixels). + + See [`ChartBuilder::on()`] for more information and examples. + */ + pub fn margin_bottom(&mut self, size: S) -> &mut Self { + let size = size.in_pixels(self.root_area).max(0) as u32; + self.margin[1] = size; + self + } + + /** + Sets the size of the left margin of the chart. + + - `size`: The desired size of the margin in backend units (pixels). + + See [`ChartBuilder::on()`] for more information and examples. + */ + pub fn margin_left(&mut self, size: S) -> &mut Self { + let size = size.in_pixels(self.root_area).max(0) as u32; + self.margin[2] = size; + self + } + + /** + Sets the size of the right margin of the chart. + + - `size`: The desired size of the margin in backend units (pixels). + + See [`ChartBuilder::on()`] for more information and examples. + */ + pub fn margin_right(&mut self, size: S) -> &mut Self { + let size = size.in_pixels(self.root_area).max(0) as u32; + self.margin[3] = size; + self + } + + /** + Sets the size of the four label areas of the chart. + + - `size`: The desired size of the four label areas in backend units (pixels). + + See [`ChartBuilder::on()`] for more information and examples. + */ + pub fn set_all_label_area_size(&mut self, size: S) -> &mut Self { + let size = size.in_pixels(self.root_area); + self.set_label_area_size(LabelAreaPosition::Top, size) + .set_label_area_size(LabelAreaPosition::Bottom, size) + .set_label_area_size(LabelAreaPosition::Left, size) + .set_label_area_size(LabelAreaPosition::Right, size) + } + + /** + Sets the size of the left and bottom label areas of the chart. + + - `size`: The desired size of the left and bottom label areas in backend units (pixels). + + See [`ChartBuilder::on()`] for more information and examples. + */ + pub fn set_left_and_bottom_label_area_size(&mut self, size: S) -> &mut Self { + let size = size.in_pixels(self.root_area); + self.set_label_area_size(LabelAreaPosition::Left, size) + .set_label_area_size(LabelAreaPosition::Bottom, size) + } + + /** + Sets the size of the X label area at the bottom of the chart. + + - `size`: The desired size of the X label area in backend units (pixels). + If set to 0, the X label area is removed. + + See [`ChartBuilder::on()`] for more information and examples. + */ + pub fn x_label_area_size(&mut self, size: S) -> &mut Self { + self.set_label_area_size(LabelAreaPosition::Bottom, size) + } + + /** + Sets the size of the Y label area to the left of the chart. + + - `size`: The desired size of the Y label area in backend units (pixels). + If set to 0, the Y label area is removed. + + See [`ChartBuilder::on()`] for more information and examples. + */ + pub fn y_label_area_size(&mut self, size: S) -> &mut Self { + self.set_label_area_size(LabelAreaPosition::Left, size) + } + + /** + Sets the size of the X label area at the top of the chart. + + - `size`: The desired size of the top X label area in backend units (pixels). + If set to 0, the top X label area is removed. + + See [`ChartBuilder::on()`] for more information and examples. + */ + pub fn top_x_label_area_size(&mut self, size: S) -> &mut Self { + self.set_label_area_size(LabelAreaPosition::Top, size) + } + + /** + Sets the size of the Y label area to the right of the chart. + + - `size`: The desired size of the Y label area in backend units (pixels). + If set to 0, the Y label area to the right is removed. + + See [`ChartBuilder::on()`] for more information and examples. + */ + pub fn right_y_label_area_size(&mut self, size: S) -> &mut Self { + self.set_label_area_size(LabelAreaPosition::Right, size) + } + + /** + Sets the size of a chart label area. + + - `pos`: The position of the desired label area to adjust + - `size`: The desired size of the label area in backend units (pixels). + If set to 0, the label area is removed. + + See [`ChartBuilder::on()`] for more information and examples. + */ + pub fn set_label_area_size( + &mut self, + pos: LabelAreaPosition, + size: S, + ) -> &mut Self { + let size = size.in_pixels(self.root_area); + self.label_area_size[pos as usize] = size.unsigned_abs(); + self.overlap_plotting_area[pos as usize] = size < 0; + self + } + + /** + Sets the title or caption of the chart. + + - `caption`: The caption of the chart + - `style`: The text style + + The title or caption will be centered at the top of the drawing area. + + See [`ChartBuilder::on()`] for more information and examples. + */ + pub fn caption, Style: IntoTextStyle<'b>>( + &mut self, + caption: S, + style: Style, + ) -> &mut Self { + self.title = Some(( + caption.as_ref().to_string(), + style.into_text_style(self.root_area), + )); + self + } + + /// This function has been renamed to [`ChartBuilder::build_cartesian_2d()`] and is to be removed in the future. + #[allow(clippy::type_complexity)] + #[deprecated( + note = "`build_ranged` has been renamed to `build_cartesian_2d` and is to be removed in the future." + )] + pub fn build_ranged<'c, X: AsRangedCoord, Y: AsRangedCoord>( + &mut self, + x_spec: X, + y_spec: Y, + ) -> Result< + ChartContext<'c, DB, Cartesian2d>, + DrawingAreaErrorKind, + > { + self.build_cartesian_2d(x_spec, y_spec) + } + + /** + Builds a chart with a 2D Cartesian coordinate system. + + - `x_spec`: Specifies the X axis range and data properties + - `y_spec`: Specifies the Y axis range and data properties + - Returns: A `ChartContext` object, ready to visualize data. + + See [`ChartBuilder::on()`] and [`ChartContext::configure_mesh()`] for more information and examples. + */ + #[allow(clippy::type_complexity)] + pub fn build_cartesian_2d<'c, X: AsRangedCoord, Y: AsRangedCoord>( + &mut self, + x_spec: X, + y_spec: Y, + ) -> Result< + ChartContext<'c, DB, Cartesian2d>, + DrawingAreaErrorKind, + > { + let mut label_areas = [None, None, None, None]; + + let mut drawing_area = DrawingArea::clone(self.root_area); + + if *self.margin.iter().max().unwrap_or(&0) > 0 { + drawing_area = drawing_area.margin( + self.margin[0] as i32, + self.margin[1] as i32, + self.margin[2] as i32, + self.margin[3] as i32, + ); + } + + let (title_dx, title_dy) = if let Some((ref title, ref style)) = self.title { + let (origin_dx, origin_dy) = drawing_area.get_base_pixel(); + drawing_area = drawing_area.titled(title, style.clone())?; + let (current_dx, current_dy) = drawing_area.get_base_pixel(); + (current_dx - origin_dx, current_dy - origin_dy) + } else { + (0, 0) + }; + + let (w, h) = drawing_area.dim_in_pixel(); + + let mut actual_drawing_area_pos = [0, h as i32, 0, w as i32]; + + const DIR: [(i16, i16); 4] = [(0, -1), (0, 1), (-1, 0), (1, 0)]; + + for (idx, (dx, dy)) in (0..4).map(|idx| (idx, DIR[idx])) { + if self.overlap_plotting_area[idx] { + continue; + } + + let size = self.label_area_size[idx] as i32; + + let split_point = if dx + dy < 0 { size } else { -size }; + + actual_drawing_area_pos[idx] += split_point; + } + + // Now the root drawing area is to be split into + // + // +----------+------------------------------+------+ + // | 0 | 1 (Top Label Area) | 2 | + // +----------+------------------------------+------+ + // | 3 | | 5 | + // | Left | 4 (Plotting Area) | Right| + // | Labels | | Label| + // +----------+------------------------------+------+ + // | 6 | 7 (Bottom Labels) | 8 | + // +----------+------------------------------+------+ + + let mut split: Vec<_> = drawing_area + .split_by_breakpoints( + &actual_drawing_area_pos[2..4], + &actual_drawing_area_pos[0..2], + ) + .into_iter() + .map(Some) + .collect(); + + // Take out the plotting area + std::mem::swap(&mut drawing_area, split[4].as_mut().unwrap()); + + // Initialize the label areas - since the label area might be overlapping + // with the plotting area, in this case, we need handle them differently + for (src_idx, dst_idx) in [1, 7, 3, 5].iter().zip(0..4) { + if !self.overlap_plotting_area[dst_idx] { + let (h, w) = split[*src_idx].as_ref().unwrap().dim_in_pixel(); + if h > 0 && w > 0 { + std::mem::swap(&mut label_areas[dst_idx], &mut split[*src_idx]); + } + } else if self.label_area_size[dst_idx] != 0 { + let size = self.label_area_size[dst_idx] as i32; + let (dw, dh) = drawing_area.dim_in_pixel(); + let x0 = if DIR[dst_idx].0 > 0 { + dw as i32 - size + } else { + 0 + }; + let y0 = if DIR[dst_idx].1 > 0 { + dh as i32 - size + } else { + 0 + }; + let x1 = if DIR[dst_idx].0 >= 0 { dw as i32 } else { size }; + let y1 = if DIR[dst_idx].1 >= 0 { dh as i32 } else { size }; + + label_areas[dst_idx] = Some( + drawing_area + .clone() + .shrink((x0, y0), ((x1 - x0), (y1 - y0))), + ); + } + } + + let mut pixel_range = drawing_area.get_pixel_range(); + pixel_range.0.end -= 1; + pixel_range.1.end -= 1; + pixel_range.1 = pixel_range.1.end..pixel_range.1.start; + + let mut x_label_area = [None, None]; + let mut y_label_area = [None, None]; + + std::mem::swap(&mut x_label_area[0], &mut label_areas[0]); + std::mem::swap(&mut x_label_area[1], &mut label_areas[1]); + std::mem::swap(&mut y_label_area[0], &mut label_areas[2]); + std::mem::swap(&mut y_label_area[1], &mut label_areas[3]); + + Ok(ChartContext { + x_label_area, + y_label_area, + drawing_area: drawing_area.apply_coord_spec(Cartesian2d::new( + x_spec, + y_spec, + pixel_range, + )), + series_anno: vec![], + drawing_area_pos: ( + actual_drawing_area_pos[2] + title_dx + self.margin[2] as i32, + actual_drawing_area_pos[0] + title_dy + self.margin[0] as i32, + ), + }) + } + + /** + Builds a chart with a 3D Cartesian coordinate system. + + - `x_spec`: Specifies the X axis range and data properties + - `y_spec`: Specifies the Y axis range and data properties + - `z_sepc`: Specifies the Z axis range and data properties + - Returns: A `ChartContext` object, ready to visualize data. + + See [`ChartBuilder::on()`] and [`ChartContext::configure_axes()`] for more information and examples. + */ + #[allow(clippy::type_complexity)] + pub fn build_cartesian_3d<'c, X: AsRangedCoord, Y: AsRangedCoord, Z: AsRangedCoord>( + &mut self, + x_spec: X, + y_spec: Y, + z_spec: Z, + ) -> Result< + ChartContext<'c, DB, Cartesian3d>, + DrawingAreaErrorKind, + > { + let mut drawing_area = DrawingArea::clone(self.root_area); + + if *self.margin.iter().max().unwrap_or(&0) > 0 { + drawing_area = drawing_area.margin( + self.margin[0] as i32, + self.margin[1] as i32, + self.margin[2] as i32, + self.margin[3] as i32, + ); + } + + let (title_dx, title_dy) = if let Some((ref title, ref style)) = self.title { + let (origin_dx, origin_dy) = drawing_area.get_base_pixel(); + drawing_area = drawing_area.titled(title, style.clone())?; + let (current_dx, current_dy) = drawing_area.get_base_pixel(); + (current_dx - origin_dx, current_dy - origin_dy) + } else { + (0, 0) + }; + + let pixel_range = drawing_area.get_pixel_range(); + + Ok(ChartContext { + x_label_area: [None, None], + y_label_area: [None, None], + drawing_area: drawing_area.apply_coord_spec(Cartesian3d::new( + x_spec, + y_spec, + z_spec, + pixel_range, + )), + series_anno: vec![], + drawing_area_pos: ( + title_dx + self.margin[2] as i32, + title_dy + self.margin[0] as i32, + ), + }) + } +} + +#[cfg(test)] +mod test { + use super::*; + use crate::prelude::*; + #[test] + fn test_label_area_size() { + let drawing_area = create_mocked_drawing_area(200, 200, |_| {}); + let mut chart = ChartBuilder::on(&drawing_area); + + chart + .x_label_area_size(10) + .y_label_area_size(20) + .top_x_label_area_size(30) + .right_y_label_area_size(40); + assert_eq!(chart.label_area_size[1], 10); + assert_eq!(chart.label_area_size[2], 20); + assert_eq!(chart.label_area_size[0], 30); + assert_eq!(chart.label_area_size[3], 40); + + chart.set_label_area_size(LabelAreaPosition::Left, 100); + chart.set_label_area_size(LabelAreaPosition::Right, 200); + chart.set_label_area_size(LabelAreaPosition::Top, 300); + chart.set_label_area_size(LabelAreaPosition::Bottom, 400); + + assert_eq!(chart.label_area_size[0], 300); + assert_eq!(chart.label_area_size[1], 400); + assert_eq!(chart.label_area_size[2], 100); + assert_eq!(chart.label_area_size[3], 200); + } + + #[test] + fn test_margin_configure() { + let drawing_area = create_mocked_drawing_area(200, 200, |_| {}); + let mut chart = ChartBuilder::on(&drawing_area); + + chart.margin(5); + assert_eq!(chart.margin[0], 5); + assert_eq!(chart.margin[1], 5); + assert_eq!(chart.margin[2], 5); + assert_eq!(chart.margin[3], 5); + + chart.margin_top(10); + chart.margin_bottom(11); + chart.margin_left(12); + chart.margin_right(13); + assert_eq!(chart.margin[0], 10); + assert_eq!(chart.margin[1], 11); + assert_eq!(chart.margin[2], 12); + assert_eq!(chart.margin[3], 13); + } + + #[test] + fn test_caption() { + let drawing_area = create_mocked_drawing_area(200, 200, |_| {}); + let mut chart = ChartBuilder::on(&drawing_area); + + chart.caption("This is a test case", ("serif", 10)); + + assert_eq!(chart.title.as_ref().unwrap().0, "This is a test case"); + assert_eq!(chart.title.as_ref().unwrap().1.font.get_name(), "serif"); + assert_eq!(chart.title.as_ref().unwrap().1.font.get_size(), 10.0); + check_color(chart.title.as_ref().unwrap().1.color, BLACK.to_rgba()); + + chart.caption("This is a test case", ("serif", 10)); + assert_eq!(chart.title.as_ref().unwrap().1.font.get_name(), "serif"); + } + + #[test] + fn test_zero_limit_with_log_scale() { + let drawing_area = create_mocked_drawing_area(640, 480, |_| {}); + + let mut chart = ChartBuilder::on(&drawing_area) + .build_cartesian_2d(0f32..10f32, (1e-6f32..1f32).log_scale()) + .unwrap(); + + let data = vec![ + (2f32, 1e-4f32), + (4f32, 1e-3f32), + (6f32, 1e-2f32), + (8f32, 1e-1f32), + ]; + + chart + .draw_series( + data.iter() + .map(|&(x, y)| Rectangle::new([(x - 0.5, 0.0), (x + 0.5, y)], RED.filled())), + ) + .unwrap(); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context.rs new file mode 100644 index 0000000000000000000000000000000000000000..c63ee3b0b2cc015af8d99ed35542effd43bc7dbf --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context.rs @@ -0,0 +1,221 @@ +use std::borrow::Borrow; + +use plotters_backend::{BackendCoord, DrawingBackend}; + +use crate::chart::{SeriesAnno, SeriesLabelStyle}; +use crate::coord::{CoordTranslate, ReverseCoordTranslate, Shift}; +use crate::drawing::{DrawingArea, DrawingAreaErrorKind}; +use crate::element::{CoordMapper, Drawable, PointCollection}; + +pub(super) mod cartesian2d; +pub(super) mod cartesian3d; + +pub(super) use cartesian3d::Coord3D; + +/** +The context of the chart. This is the core object of Plotters. + +Any plot/chart is abstracted as this type, and any data series can be placed to the chart context. + +- To draw a series on a chart context, use [`ChartContext::draw_series()`]. +- To draw a single element on the chart, you may want to use [`ChartContext::plotting_area()`]. + +See [`crate::series::LineSeries`] and [`ChartContext::configure_series_labels()`] for more information and examples +*/ +pub struct ChartContext<'a, DB: DrawingBackend, CT: CoordTranslate> { + pub(crate) x_label_area: [Option>; 2], + pub(crate) y_label_area: [Option>; 2], + pub(crate) drawing_area: DrawingArea, + pub(crate) series_anno: Vec>, + pub(crate) drawing_area_pos: (i32, i32), +} + +impl<'a, DB: DrawingBackend, CT: ReverseCoordTranslate> ChartContext<'a, DB, CT> { + /// Convert the chart context into an closure that can be used for coordinate translation + pub fn into_coord_trans(self) -> impl Fn(BackendCoord) -> Option { + let coord_spec = self.drawing_area.into_coord_spec(); + move |coord| coord_spec.reverse_translate(coord) + } +} + +impl<'a, DB: DrawingBackend, CT: CoordTranslate> ChartContext<'a, DB, CT> { + /** + Configure the styles for drawing series labels in the chart + + # Example + + ``` + use plotters::prelude::*; + let data = [(1.0, 3.3), (2., 2.1), (3., 1.5), (4., 1.9), (5., 1.0)]; + let drawing_area = SVGBackend::new("configure_series_labels.svg", (300, 200)).into_drawing_area(); + drawing_area.fill(&WHITE).unwrap(); + let mut chart_builder = ChartBuilder::on(&drawing_area); + chart_builder.margin(7).set_left_and_bottom_label_area_size(20); + let mut chart_context = chart_builder.build_cartesian_2d(0.0..5.5, 0.0..5.5).unwrap(); + chart_context.configure_mesh().draw().unwrap(); + chart_context.draw_series(LineSeries::new(data, BLACK)).unwrap().label("Series 1") + .legend(|(x,y)| Rectangle::new([(x - 15, y + 1), (x, y)], BLACK)); + chart_context.configure_series_labels().position(SeriesLabelPosition::UpperRight).margin(20) + .legend_area_size(5).border_style(BLUE).background_style(BLUE.mix(0.1)).label_font(("Calibri", 20)).draw().unwrap(); + ``` + + The result is a chart with one data series labeled "Series 1" in a blue legend box: + + ![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@8e0fe60/apidoc/configure_series_labels.svg) + + # See also + + See [`crate::series::LineSeries`] for more information and examples + */ + pub fn configure_series_labels<'b>(&'b mut self) -> SeriesLabelStyle<'a, 'b, DB, CT> + where + DB: 'a, + { + SeriesLabelStyle::new(self) + } + + /// Get a reference of underlying plotting area + pub fn plotting_area(&self) -> &DrawingArea { + &self.drawing_area + } + + /// Cast the reference to a chart context to a reference to underlying coordinate specification. + pub fn as_coord_spec(&self) -> &CT { + self.drawing_area.as_coord_spec() + } + + // TODO: All draw_series_impl is overly strict about lifetime, because we don't have stable HKT, + // what we can ensure is for all lifetime 'b the element reference &'b E is a iterator + // of points reference with the same lifetime. + // However, this doesn't work if the coordinate doesn't live longer than the backend, + // this is unnecessarily strict + pub(crate) fn draw_series_impl( + &mut self, + series: S, + ) -> Result<(), DrawingAreaErrorKind> + where + B: CoordMapper, + for<'b> &'b E: PointCollection<'b, CT::From, B>, + E: Drawable, + R: Borrow, + S: IntoIterator, + { + for element in series { + self.drawing_area.draw(element.borrow())?; + } + Ok(()) + } + + pub(crate) fn alloc_series_anno(&mut self) -> &mut SeriesAnno<'a, DB> { + let idx = self.series_anno.len(); + self.series_anno.push(SeriesAnno::new()); + &mut self.series_anno[idx] + } + + /** + Draws a data series. A data series in Plotters is abstracted as an iterator of elements. + + See [`crate::series::LineSeries`] and [`ChartContext::configure_series_labels()`] for more information and examples. + */ + pub fn draw_series( + &mut self, + series: S, + ) -> Result<&mut SeriesAnno<'a, DB>, DrawingAreaErrorKind> + where + B: CoordMapper, + for<'b> &'b E: PointCollection<'b, CT::From, B>, + E: Drawable, + R: Borrow, + S: IntoIterator, + { + self.draw_series_impl(series)?; + Ok(self.alloc_series_anno()) + } +} + +#[cfg(test)] +mod test { + use crate::prelude::*; + + #[test] + fn test_chart_context() { + let drawing_area = create_mocked_drawing_area(200, 200, |_| {}); + + drawing_area.fill(&WHITE).expect("Fill"); + + let mut chart = ChartBuilder::on(&drawing_area) + .caption("Test Title", ("serif", 10)) + .x_label_area_size(20) + .y_label_area_size(20) + .set_label_area_size(LabelAreaPosition::Top, 20) + .set_label_area_size(LabelAreaPosition::Right, 20) + .build_cartesian_2d(0..10, 0..10) + .expect("Create chart") + .set_secondary_coord(0.0..1.0, 0.0..1.0); + + chart + .configure_mesh() + .x_desc("X") + .y_desc("Y") + .draw() + .expect("Draw mesh"); + chart + .configure_secondary_axes() + .x_desc("X") + .y_desc("Y") + .draw() + .expect("Draw Secondary axes"); + + // test that chart states work correctly with dual coord charts + let cs = chart.into_chart_state(); + let mut chart = cs.clone().restore(&drawing_area); + + chart + .draw_series(std::iter::once(Circle::new((5, 5), 5, RED))) + .expect("Drawing error"); + chart + .draw_secondary_series(std::iter::once(Circle::new((0.3, 0.8), 5, GREEN))) + .expect("Drawing error") + .label("Test label") + .legend(|(x, y)| Rectangle::new([(x - 10, y - 5), (x, y + 5)], GREEN)); + + chart + .configure_series_labels() + .position(SeriesLabelPosition::UpperMiddle) + .draw() + .expect("Drawing error"); + } + + #[test] + fn test_chart_context_3d() { + let drawing_area = create_mocked_drawing_area(200, 200, |_| {}); + + drawing_area.fill(&WHITE).expect("Fill"); + + let mut chart = ChartBuilder::on(&drawing_area) + .caption("Test Title", ("serif", 10)) + .x_label_area_size(20) + .y_label_area_size(20) + .set_label_area_size(LabelAreaPosition::Top, 20) + .set_label_area_size(LabelAreaPosition::Right, 20) + .build_cartesian_3d(0..10, 0..10, 0..10) + .expect("Create chart"); + + chart.with_projection(|mut pb| { + pb.yaw = 0.5; + pb.pitch = 0.5; + pb.scale = 0.5; + pb.into_matrix() + }); + + chart.configure_axes().draw().expect("Drawing axes"); + + // test that chart states work correctly with 3d coordinates + let cs = chart.into_chart_state(); + let mut chart = cs.clone().restore(&drawing_area); + + chart + .draw_series(std::iter::once(Circle::new((5, 5, 5), 5, RED))) + .expect("Drawing error"); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/dual_coord.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/dual_coord.rs new file mode 100644 index 0000000000000000000000000000000000000000..048bea023ce7472fca0c0b683a3b4f2ad77be1e8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/dual_coord.rs @@ -0,0 +1,242 @@ +/// The dual coordinate system support +use std::borrow::{Borrow, BorrowMut}; +use std::ops::{Deref, DerefMut}; +use std::sync::Arc; + +use super::mesh::SecondaryMeshStyle; +use super::{ChartContext, ChartState, SeriesAnno}; + +use crate::coord::cartesian::Cartesian2d; +use crate::coord::ranged1d::{Ranged, ValueFormatter}; +use crate::coord::{CoordTranslate, ReverseCoordTranslate, Shift}; + +use crate::drawing::DrawingArea; +use crate::drawing::DrawingAreaErrorKind; +use crate::element::{Drawable, PointCollection}; + +use plotters_backend::{BackendCoord, DrawingBackend}; + +/// The chart context that has two coordinate system attached. +/// This situation is quite common, for example, we with two different coordinate system. +/// For instance this example +/// This is done by attaching a second coordinate system to ChartContext by method [ChartContext::set_secondary_coord](struct.ChartContext.html#method.set_secondary_coord). +/// For instance of dual coordinate charts, see [this example](https://github.com/plotters-rs/plotters/blob/master/examples/two-scales.rs#L15). +/// Note: `DualCoordChartContext` is always deref to the chart context. +/// - If you want to configure the secondary axis, method [DualCoordChartContext::configure_secondary_axes](struct.DualCoordChartContext.html#method.configure_secondary_axes) +/// - If you want to draw a series using secondary coordinate system, use [DualCoordChartContext::draw_secondary_series](struct.DualCoordChartContext.html#method.draw_secondary_series). And method [ChartContext::draw_series](struct.ChartContext.html#method.draw_series) will always use primary coordinate spec. +pub struct DualCoordChartContext<'a, DB: DrawingBackend, CT1: CoordTranslate, CT2: CoordTranslate> { + pub(super) primary: ChartContext<'a, DB, CT1>, + pub(super) secondary: ChartContext<'a, DB, CT2>, +} + +/// The chart state for a dual coord chart, see the detailed description for `ChartState` for more +/// information about the purpose of a chart state. +/// Similar to [ChartState](struct.ChartState.html), but used for the dual coordinate charts. +#[derive(Clone)] +pub struct DualCoordChartState { + primary: ChartState, + secondary: ChartState, +} + +impl + DualCoordChartContext<'_, DB, CT1, CT2> +{ + /// Convert the chart context into a chart state, similar to [ChartContext::into_chart_state](struct.ChartContext.html#method.into_chart_state) + pub fn into_chart_state(self) -> DualCoordChartState { + DualCoordChartState { + primary: self.primary.into(), + secondary: self.secondary.into(), + } + } + + /// Convert the chart context into a sharable chart state. + pub fn into_shared_chart_state(self) -> DualCoordChartState, Arc> { + DualCoordChartState { + primary: self.primary.into_shared_chart_state(), + secondary: self.secondary.into_shared_chart_state(), + } + } + + /// Copy the coordinate specs and make a chart state + pub fn to_chart_state(&self) -> DualCoordChartState + where + CT1: Clone, + CT2: Clone, + { + DualCoordChartState { + primary: self.primary.to_chart_state(), + secondary: self.secondary.to_chart_state(), + } + } +} + +impl DualCoordChartState { + /// Restore the chart state on the given drawing area + pub fn restore( + self, + area: &DrawingArea, + ) -> DualCoordChartContext<'_, DB, CT1, CT2> { + let primary = self.primary.restore(area); + let secondary = self + .secondary + .restore(&primary.plotting_area().strip_coord_spec()); + DualCoordChartContext { primary, secondary } + } +} + +impl + From> for DualCoordChartState +{ + fn from(chart: DualCoordChartContext<'_, DB, CT1, CT2>) -> DualCoordChartState { + chart.into_chart_state() + } +} + +impl<'b, DB: DrawingBackend, CT1: CoordTranslate + Clone, CT2: CoordTranslate + Clone> + From<&'b DualCoordChartContext<'_, DB, CT1, CT2>> for DualCoordChartState +{ + fn from(chart: &'b DualCoordChartContext<'_, DB, CT1, CT2>) -> DualCoordChartState { + chart.to_chart_state() + } +} + +impl<'a, DB: DrawingBackend, CT1: CoordTranslate, CT2: CoordTranslate> + DualCoordChartContext<'a, DB, CT1, CT2> +{ + pub(super) fn new(mut primary: ChartContext<'a, DB, CT1>, secondary_coord: CT2) -> Self { + let secondary_drawing_area = primary + .drawing_area + .strip_coord_spec() + .apply_coord_spec(secondary_coord); + let mut secondary_x_label_area = [None, None]; + let mut secondary_y_label_area = [None, None]; + + std::mem::swap(&mut primary.x_label_area[0], &mut secondary_x_label_area[0]); + std::mem::swap(&mut primary.y_label_area[1], &mut secondary_y_label_area[1]); + + Self { + primary, + secondary: ChartContext { + x_label_area: secondary_x_label_area, + y_label_area: secondary_y_label_area, + drawing_area: secondary_drawing_area, + series_anno: vec![], + drawing_area_pos: (0, 0), + }, + } + } + + /// Get a reference to the drawing area that uses the secondary coordinate system + pub fn secondary_plotting_area(&self) -> &DrawingArea { + &self.secondary.drawing_area + } + + /// Borrow a mutable reference to the chart context that uses the secondary + /// coordinate system + pub fn borrow_secondary(&self) -> &ChartContext<'a, DB, CT2> { + &self.secondary + } +} + +impl + DualCoordChartContext<'_, DB, CT1, CT2> +{ + /// Convert the chart context into the secondary coordinate translation function + pub fn into_secondary_coord_trans(self) -> impl Fn(BackendCoord) -> Option { + let coord_spec = self.secondary.drawing_area.into_coord_spec(); + move |coord| coord_spec.reverse_translate(coord) + } +} + +impl + DualCoordChartContext<'_, DB, CT1, CT2> +{ + /// Convert the chart context into a pair of closures that maps the pixel coordinate into the + /// logical coordinate for both primary coordinate system and secondary coordinate system. + pub fn into_coord_trans_pair( + self, + ) -> ( + impl Fn(BackendCoord) -> Option, + impl Fn(BackendCoord) -> Option, + ) { + let coord_spec_1 = self.primary.drawing_area.into_coord_spec(); + let coord_spec_2 = self.secondary.drawing_area.into_coord_spec(); + ( + move |coord| coord_spec_1.reverse_translate(coord), + move |coord| coord_spec_2.reverse_translate(coord), + ) + } +} + +impl< + 'a, + DB: DrawingBackend, + CT1: CoordTranslate, + XT, + YT, + SX: Ranged, + SY: Ranged, + > DualCoordChartContext<'a, DB, CT1, Cartesian2d> +where + SX: ValueFormatter, + SY: ValueFormatter, +{ + /// Start configure the style for the secondary axes + pub fn configure_secondary_axes<'b>(&'b mut self) -> SecondaryMeshStyle<'a, 'b, SX, SY, DB> { + SecondaryMeshStyle::new(&mut self.secondary) + } +} + +impl<'a, DB: DrawingBackend, X: Ranged, Y: Ranged, SX: Ranged, SY: Ranged> + DualCoordChartContext<'a, DB, Cartesian2d, Cartesian2d> +{ + /// Draw a series use the secondary coordinate system. + /// - `series`: The series to draw + /// - `Returns` the series annotation object or error code + pub fn draw_secondary_series( + &mut self, + series: S, + ) -> Result<&mut SeriesAnno<'a, DB>, DrawingAreaErrorKind> + where + for<'b> &'b E: PointCollection<'b, (SX::ValueType, SY::ValueType)>, + E: Drawable, + R: Borrow, + S: IntoIterator, + { + self.secondary.draw_series_impl(series)?; + Ok(self.primary.alloc_series_anno()) + } +} + +impl<'a, DB: DrawingBackend, CT1: CoordTranslate, CT2: CoordTranslate> + Borrow> for DualCoordChartContext<'a, DB, CT1, CT2> +{ + fn borrow(&self) -> &ChartContext<'a, DB, CT1> { + &self.primary + } +} + +impl<'a, DB: DrawingBackend, CT1: CoordTranslate, CT2: CoordTranslate> + BorrowMut> for DualCoordChartContext<'a, DB, CT1, CT2> +{ + fn borrow_mut(&mut self) -> &mut ChartContext<'a, DB, CT1> { + &mut self.primary + } +} + +impl<'a, DB: DrawingBackend, CT1: CoordTranslate, CT2: CoordTranslate> Deref + for DualCoordChartContext<'a, DB, CT1, CT2> +{ + type Target = ChartContext<'a, DB, CT1>; + fn deref(&self) -> &Self::Target { + self.borrow() + } +} + +impl<'a, DB: DrawingBackend, CT1: CoordTranslate, CT2: CoordTranslate> DerefMut + for DualCoordChartContext<'a, DB, CT1, CT2> +{ + fn deref_mut(&mut self) -> &mut Self::Target { + self.borrow_mut() + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/mesh.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/mesh.rs new file mode 100644 index 0000000000000000000000000000000000000000..c2b7a957781e8a78a6a7be91d0b925c0252e00e2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/mesh.rs @@ -0,0 +1,533 @@ +use std::marker::PhantomData; + +use super::builder::LabelAreaPosition; +use super::context::ChartContext; +use crate::coord::cartesian::{Cartesian2d, MeshLine}; +use crate::coord::ranged1d::{BoldPoints, LightPoints, Ranged, ValueFormatter}; +use crate::drawing::DrawingAreaErrorKind; +use crate::style::{ + AsRelative, Color, FontDesc, FontFamily, FontStyle, IntoTextStyle, RGBColor, ShapeStyle, + SizeDesc, TextStyle, +}; + +use plotters_backend::DrawingBackend; + +/// The style used to describe the mesh and axis for a secondary coordinate system. +pub struct SecondaryMeshStyle<'a, 'b, X: Ranged, Y: Ranged, DB: DrawingBackend> { + style: MeshStyle<'a, 'b, X, Y, DB>, +} + +impl<'a, 'b, XT, YT, X: Ranged, Y: Ranged, DB: DrawingBackend> + SecondaryMeshStyle<'a, 'b, X, Y, DB> +where + X: ValueFormatter, + Y: ValueFormatter, +{ + pub(super) fn new(target: &'b mut ChartContext<'a, DB, Cartesian2d>) -> Self { + let mut style = target.configure_mesh(); + style.draw_x_mesh = false; + style.draw_y_mesh = false; + Self { style } + } + + /// Set the style definition for the axis + /// - `style`: The style for the axis + pub fn axis_style>(&mut self, style: T) -> &mut Self { + self.style.axis_style(style); + self + } + + /// The offset of x labels. This is used when we want to place the label in the middle of + /// the grid. This is used to adjust label position for histograms, but since plotters 0.3, this + /// use case is deprecated, see [SegmentedCoord coord decorator](../coord/ranged1d/trait.IntoSegmentedCoord.html) for more details + /// - `value`: The offset in pixel + pub fn x_label_offset(&mut self, value: S) -> &mut Self { + self.style.x_label_offset(value); + self + } + + /// The offset of y labels. This is used when we want to place the label in the middle of + /// the grid. This is used to adjust label position for histograms, but since plotters 0.3, this + /// use case is deprecated, see [SegmentedCoord coord decorator](../coord/ranged1d/trait.IntoSegmentedCoord.html) for more details + /// - `value`: The offset in pixel + pub fn y_label_offset(&mut self, value: S) -> &mut Self { + self.style.y_label_offset(value); + self + } + + /// Set how many labels for the X axis at most + /// - `value`: The maximum desired number of labels in the X axis + pub fn x_labels(&mut self, value: usize) -> &mut Self { + self.style.x_labels(value); + self + } + + /// Set how many label for the Y axis at most + /// - `value`: The maximum desired number of labels in the Y axis + pub fn y_labels(&mut self, value: usize) -> &mut Self { + self.style.y_labels(value); + self + } + + /// Set the formatter function for the X label text + /// - `fmt`: The formatter function + pub fn x_label_formatter(&mut self, fmt: &'b dyn Fn(&X::ValueType) -> String) -> &mut Self { + self.style.x_label_formatter(fmt); + self + } + + /// Set the formatter function for the Y label text + /// - `fmt`: The formatter function + pub fn y_label_formatter(&mut self, fmt: &'b dyn Fn(&Y::ValueType) -> String) -> &mut Self { + self.style.y_label_formatter(fmt); + self + } + + /// Set the axis description's style. If not given, use label style instead. + /// - `style`: The text style that would be applied to descriptions + pub fn axis_desc_style>(&mut self, style: T) -> &mut Self { + self.style + .axis_desc_style(style.into_text_style(&self.style.parent_size)); + self + } + + /// Set the X axis's description + /// - `desc`: The description of the X axis + pub fn x_desc>(&mut self, desc: T) -> &mut Self { + self.style.x_desc(desc); + self + } + + /// Set the Y axis's description + /// - `desc`: The description of the Y axis + pub fn y_desc>(&mut self, desc: T) -> &mut Self { + self.style.y_desc(desc); + self + } + + /// Draw the axes for the secondary coordinate system + pub fn draw(&mut self) -> Result<(), DrawingAreaErrorKind> { + self.style.draw() + } + + /// Set the label style for the secondary axis + pub fn label_style>(&mut self, style: T) -> &mut Self { + self.style.label_style(style); + self + } + + /// Set all the tick marks to the same size + /// `value`: The new size + pub fn set_all_tick_mark_size(&mut self, value: S) -> &mut Self { + let size = value.in_pixels(&self.style.parent_size); + self.style.x_tick_size = [size, size]; + self.style.y_tick_size = [size, size]; + self + } + /// Sets the tick mark size for a given label area position. + /// `value`: The new size + pub fn set_tick_mark_size( + &mut self, + pos: LabelAreaPosition, + value: S, + ) -> &mut Self { + *match pos { + LabelAreaPosition::Top => &mut self.style.x_tick_size[0], + LabelAreaPosition::Bottom => &mut self.style.x_tick_size[1], + LabelAreaPosition::Left => &mut self.style.y_tick_size[0], + LabelAreaPosition::Right => &mut self.style.y_tick_size[1], + } = value.in_pixels(&self.style.parent_size); + self + } +} + +/// The struct that is used for tracking the configuration of a mesh of any chart +pub struct MeshStyle<'a, 'b, X: Ranged, Y: Ranged, DB: DrawingBackend> { + pub(super) parent_size: (u32, u32), + pub(super) draw_x_mesh: bool, + pub(super) draw_y_mesh: bool, + pub(super) draw_x_axis: bool, + pub(super) draw_y_axis: bool, + pub(super) x_label_offset: i32, + pub(super) y_label_offset: i32, + pub(super) x_light_lines_limit: usize, + pub(super) y_light_lines_limit: usize, + pub(super) n_x_labels: usize, + pub(super) n_y_labels: usize, + pub(super) axis_desc_style: Option>, + pub(super) x_desc: Option, + pub(super) y_desc: Option, + pub(super) bold_line_style: Option, + pub(super) light_line_style: Option, + pub(super) axis_style: Option, + pub(super) x_label_style: Option>, + pub(super) y_label_style: Option>, + pub(super) format_x: Option<&'b dyn Fn(&X::ValueType) -> String>, + pub(super) format_y: Option<&'b dyn Fn(&Y::ValueType) -> String>, + pub(super) target: Option<&'b mut ChartContext<'a, DB, Cartesian2d>>, + pub(super) _phantom_data: PhantomData<(X, Y)>, + pub(super) x_tick_size: [i32; 2], + pub(super) y_tick_size: [i32; 2], +} + +impl<'a, 'b, X, Y, XT, YT, DB> MeshStyle<'a, 'b, X, Y, DB> +where + X: Ranged + ValueFormatter, + Y: Ranged + ValueFormatter, + DB: DrawingBackend, +{ + pub(crate) fn new(chart: &'b mut ChartContext<'a, DB, Cartesian2d>) -> Self { + let base_tick_size = (5u32).percent().max(5).in_pixels(chart.plotting_area()); + + let mut x_tick_size = [base_tick_size, base_tick_size]; + let mut y_tick_size = [base_tick_size, base_tick_size]; + + for idx in 0..2 { + if chart.is_overlapping_drawing_area(chart.x_label_area[idx].as_ref()) { + x_tick_size[idx] = -x_tick_size[idx]; + } + if chart.is_overlapping_drawing_area(chart.y_label_area[idx].as_ref()) { + y_tick_size[idx] = -y_tick_size[idx]; + } + } + + MeshStyle { + parent_size: chart.drawing_area.dim_in_pixel(), + axis_style: None, + x_label_offset: 0, + y_label_offset: 0, + draw_x_mesh: true, + draw_y_mesh: true, + draw_x_axis: true, + draw_y_axis: true, + x_light_lines_limit: 10, + y_light_lines_limit: 10, + n_x_labels: 11, + n_y_labels: 11, + bold_line_style: None, + light_line_style: None, + x_label_style: None, + y_label_style: None, + format_x: None, + format_y: None, + target: Some(chart), + _phantom_data: PhantomData, + x_desc: None, + y_desc: None, + axis_desc_style: None, + x_tick_size, + y_tick_size, + } + } +} + +impl<'a, 'b, X, Y, DB> MeshStyle<'a, 'b, X, Y, DB> +where + X: Ranged, + Y: Ranged, + DB: DrawingBackend, +{ + /// Set all the tick mark to the same size + /// `value`: The new size + pub fn set_all_tick_mark_size(&mut self, value: S) -> &mut Self { + let size = value.in_pixels(&self.parent_size); + self.x_tick_size = [size, size]; + self.y_tick_size = [size, size]; + self + } + + /// Set the tick mark size on the axes. When this is set to negative, the axis value label will + /// become inward. + /// + /// - `pos`: The which label area we want to set + /// - `value`: The size specification + pub fn set_tick_mark_size( + &mut self, + pos: LabelAreaPosition, + value: S, + ) -> &mut Self { + *match pos { + LabelAreaPosition::Top => &mut self.x_tick_size[0], + LabelAreaPosition::Bottom => &mut self.x_tick_size[1], + LabelAreaPosition::Left => &mut self.y_tick_size[0], + LabelAreaPosition::Right => &mut self.y_tick_size[1], + } = value.in_pixels(&self.parent_size); + self + } + + /// The offset of x labels. This is used when we want to place the label in the middle of + /// the grid. This is used to adjust label position for histograms, but since plotters 0.3, this + /// use case is deprecated, see [SegmentedCoord coord decorator](../coord/ranged1d/trait.IntoSegmentedCoord.html) for more details + /// - `value`: The offset in pixel + pub fn x_label_offset(&mut self, value: S) -> &mut Self { + self.x_label_offset = value.in_pixels(&self.parent_size); + self + } + + /// The offset of y labels. This is used when we want to place the label in the middle of + /// the grid. This is used to adjust label position for histograms, but since plotters 0.3, this + /// use case is deprecated, see [SegmentedCoord coord decorator](../coord/ranged1d/trait.IntoSegmentedCoord.html) for more details + /// - `value`: The offset in pixel + pub fn y_label_offset(&mut self, value: S) -> &mut Self { + self.y_label_offset = value.in_pixels(&self.parent_size); + self + } + + /// Disable the mesh for the x axis. + pub fn disable_x_mesh(&mut self) -> &mut Self { + self.draw_x_mesh = false; + self + } + + /// Disable the mesh for the y axis + pub fn disable_y_mesh(&mut self) -> &mut Self { + self.draw_y_mesh = false; + self + } + + /// Disable drawing the X axis + pub fn disable_x_axis(&mut self) -> &mut Self { + self.draw_x_axis = false; + self + } + + /// Disable drawing the Y axis + pub fn disable_y_axis(&mut self) -> &mut Self { + self.draw_y_axis = false; + self + } + + /// Disable drawing all meshes + pub fn disable_mesh(&mut self) -> &mut Self { + self.disable_x_mesh().disable_y_mesh() + } + + /// Disable drawing all axes + pub fn disable_axes(&mut self) -> &mut Self { + self.disable_x_axis().disable_y_axis() + } + + /// Set the style definition for the axis + /// - `style`: The style for the axis + pub fn axis_style>(&mut self, style: T) -> &mut Self { + self.axis_style = Some(style.into()); + self + } + + /// Set the maximum number of divisions for the minor grid + /// - `value`: Maximum desired divisions between two consecutive X labels + pub fn x_max_light_lines(&mut self, value: usize) -> &mut Self { + self.x_light_lines_limit = value; + self + } + + /// Set the maximum number of divisions for the minor grid + /// - `value`: Maximum desired divisions between two consecutive Y labels + pub fn y_max_light_lines(&mut self, value: usize) -> &mut Self { + self.y_light_lines_limit = value; + self + } + + /// Set the maximum number of divisions for the minor grid + /// - `value`: Maximum desired divisions between two consecutive labels in X and Y + pub fn max_light_lines(&mut self, value: usize) -> &mut Self { + self.x_light_lines_limit = value; + self.y_light_lines_limit = value; + self + } + + /// Set how many labels for the X axis at most + /// - `value`: The maximum desired number of labels in the X axis + pub fn x_labels(&mut self, value: usize) -> &mut Self { + self.n_x_labels = value; + self + } + + /// Set how many label for the Y axis at most + /// - `value`: The maximum desired number of labels in the Y axis + pub fn y_labels(&mut self, value: usize) -> &mut Self { + self.n_y_labels = value; + self + } + + /// Set the style for the coarse grind grid + /// - `style`: This is the coarse grind grid style + pub fn bold_line_style>(&mut self, style: T) -> &mut Self { + self.bold_line_style = Some(style.into()); + self + } + + /// Set the style for the fine grind grid + /// - `style`: The fine grind grid style + pub fn light_line_style>(&mut self, style: T) -> &mut Self { + self.light_line_style = Some(style.into()); + self + } + + /// Set the style of the label text + /// - `style`: The text style that would be applied to the labels + pub fn label_style>(&mut self, style: T) -> &mut Self { + let style = style.into_text_style(&self.parent_size); + self.x_label_style = Some(style.clone()); + self.y_label_style = Some(style); + self + } + + /// Set the style of the label X axis text + /// - `style`: The text style that would be applied to the labels + pub fn x_label_style>(&mut self, style: T) -> &mut Self { + self.x_label_style = Some(style.into_text_style(&self.parent_size)); + self + } + + /// Set the style of the label Y axis text + /// - `style`: The text style that would be applied to the labels + pub fn y_label_style>(&mut self, style: T) -> &mut Self { + self.y_label_style = Some(style.into_text_style(&self.parent_size)); + self + } + + /// Set the formatter function for the X label text + /// - `fmt`: The formatter function + pub fn x_label_formatter(&mut self, fmt: &'b dyn Fn(&X::ValueType) -> String) -> &mut Self { + self.format_x = Some(fmt); + self + } + + /// Set the formatter function for the Y label text + /// - `fmt`: The formatter function + pub fn y_label_formatter(&mut self, fmt: &'b dyn Fn(&Y::ValueType) -> String) -> &mut Self { + self.format_y = Some(fmt); + self + } + + /// Set the axis description's style. If not given, use label style instead. + /// - `style`: The text style that would be applied to descriptions + pub fn axis_desc_style>(&mut self, style: T) -> &mut Self { + self.axis_desc_style = Some(style.into_text_style(&self.parent_size)); + self + } + + /// Set the X axis's description + /// - `desc`: The description of the X axis + pub fn x_desc>(&mut self, desc: T) -> &mut Self { + self.x_desc = Some(desc.into()); + self + } + + /// Set the Y axis's description + /// - `desc`: The description of the Y axis + pub fn y_desc>(&mut self, desc: T) -> &mut Self { + self.y_desc = Some(desc.into()); + self + } + + /// Draw the configured mesh on the target plot + pub fn draw(&mut self) -> Result<(), DrawingAreaErrorKind> + where + X: ValueFormatter<::ValueType>, + Y: ValueFormatter<::ValueType>, + { + let target = self.target.take().unwrap(); + + let default_mesh_color_1 = RGBColor(0, 0, 0).mix(0.2); + let default_mesh_color_2 = RGBColor(0, 0, 0).mix(0.1); + let default_axis_color = RGBColor(0, 0, 0); + let default_label_font = FontDesc::new( + FontFamily::SansSerif, + f64::from((12i32).percent().max(12).in_pixels(&self.parent_size)), + FontStyle::Normal, + ); + + let bold_style = self + .bold_line_style + .unwrap_or_else(|| (&default_mesh_color_1).into()); + let light_style = self + .light_line_style + .unwrap_or_else(|| (&default_mesh_color_2).into()); + let axis_style = self + .axis_style + .unwrap_or_else(|| (&default_axis_color).into()); + + let x_label_style = self + .x_label_style + .clone() + .unwrap_or_else(|| default_label_font.clone().into()); + + let y_label_style = self + .y_label_style + .clone() + .unwrap_or_else(|| default_label_font.into()); + + let axis_desc_style = self + .axis_desc_style + .clone() + .unwrap_or_else(|| x_label_style.clone()); + + target.draw_mesh( + ( + LightPoints::new(self.n_y_labels, self.n_y_labels * self.y_light_lines_limit), + LightPoints::new(self.n_x_labels, self.n_x_labels * self.x_light_lines_limit), + ), + &light_style, + &x_label_style, + &y_label_style, + |_, _, _| None, + self.draw_x_mesh, + self.draw_y_mesh, + self.x_label_offset, + self.y_label_offset, + false, + false, + &axis_style, + &axis_desc_style, + self.x_desc.clone(), + self.y_desc.clone(), + self.x_tick_size, + self.y_tick_size, + )?; + + target.draw_mesh( + (BoldPoints(self.n_y_labels), BoldPoints(self.n_x_labels)), + &bold_style, + &x_label_style, + &y_label_style, + |xr, yr, m| match m { + MeshLine::XMesh(_, _, v) => { + if self.draw_x_axis { + if let Some(fmt_func) = self.format_x { + Some(fmt_func(v)) + } else { + Some(xr.format_ext(v)) + } + } else { + None + } + } + MeshLine::YMesh(_, _, v) => { + if self.draw_y_axis { + if let Some(fmt_func) = self.format_y { + Some(fmt_func(v)) + } else { + Some(yr.format_ext(v)) + } + } else { + None + } + } + }, + self.draw_x_mesh, + self.draw_y_mesh, + self.x_label_offset, + self.y_label_offset, + self.draw_x_axis, + self.draw_y_axis, + &axis_style, + &axis_desc_style, + None, + None, + self.x_tick_size, + self.y_tick_size, + ) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..4a8802963a7fc08127010282d2f1259744062524 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/mod.rs @@ -0,0 +1,30 @@ +/*! +The high-level plotting abstractions. + +Plotters uses `ChartContext`, a thin layer on the top of `DrawingArea`, to provide +high-level chart specific drawing functionalities, like, mesh line, coordinate label +and other common components for the data chart. + +To draw a series, `ChartContext::draw_series` is used to draw a series on the chart. +In Plotters, a series is abstracted as an iterator of elements. + +`ChartBuilder` is used to construct a chart. To learn more detailed information, check the +detailed description for each struct. +*/ + +mod axes3d; +mod builder; +mod context; +mod dual_coord; +mod mesh; +mod series; +mod state; + +pub use builder::{ChartBuilder, LabelAreaPosition}; +pub use context::ChartContext; +pub use dual_coord::{DualCoordChartContext, DualCoordChartState}; +pub use mesh::{MeshStyle, SecondaryMeshStyle}; +pub use series::{SeriesAnno, SeriesLabelPosition, SeriesLabelStyle}; +pub use state::ChartState; + +use context::Coord3D; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/series.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/series.rs new file mode 100644 index 0000000000000000000000000000000000000000..997f30d0c5e9e482d75f9043d68e5d5c3d64a382 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/series.rs @@ -0,0 +1,296 @@ +use super::ChartContext; +use crate::coord::CoordTranslate; +use crate::drawing::DrawingAreaErrorKind; +use crate::element::{DynElement, EmptyElement, IntoDynElement, MultiLineText, Rectangle}; +use crate::style::{IntoFont, IntoTextStyle, ShapeStyle, SizeDesc, TextStyle, TRANSPARENT}; + +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; + +type SeriesAnnoDrawFn<'a, DB> = dyn Fn(BackendCoord) -> DynElement<'a, DB, BackendCoord> + 'a; + +/// The annotations (such as the label of the series, the legend element, etc) +/// When a series is drawn onto a drawing area, an series annotation object +/// is created and a mutable reference is returned. +pub struct SeriesAnno<'a, DB: DrawingBackend> { + label: Option, + draw_func: Option>>, +} + +impl<'a, DB: DrawingBackend> SeriesAnno<'a, DB> { + #[allow(clippy::option_as_ref_deref)] + pub(crate) fn get_label(&self) -> &str { + // TODO: Change this when we bump the MSRV + self.label.as_ref().map(|x| x.as_str()).unwrap_or("") + } + + pub(crate) fn get_draw_func(&self) -> Option<&SeriesAnnoDrawFn<'a, DB>> { + self.draw_func.as_ref().map(|x| x.as_ref()) + } + + pub(crate) fn new() -> Self { + Self { + label: None, + draw_func: None, + } + } + + /** + Sets the series label for the current series. + + See [`ChartContext::configure_series_labels()`] for more information and examples. + */ + pub fn label>(&mut self, label: L) -> &mut Self { + self.label = Some(label.into()); + self + } + + /** + Sets the legend element creator function. + + - `func`: The function use to create the element + + # Note + + The creation function uses a shifted pixel-based coordinate system, where the + point (0,0) is defined to the mid-right point of the shape. + + # See also + + See [`ChartContext::configure_series_labels()`] for more information and examples. + */ + pub fn legend, T: Fn(BackendCoord) -> E + 'a>( + &mut self, + func: T, + ) -> &mut Self { + self.draw_func = Some(Box::new(move |p| func(p).into_dyn())); + self + } +} + +/** +Useful to specify the position of the series label. + +See [`ChartContext::configure_series_labels()`] for more information and examples. +*/ +#[derive(Debug, Clone, PartialEq)] +pub enum SeriesLabelPosition { + /// Places the series label at the upper left + UpperLeft, + /// Places the series label at the middle left + MiddleLeft, + /// Places the series label at the lower left + LowerLeft, + /// Places the series label at the upper middle + UpperMiddle, + /// Places the series label at the middle middle + MiddleMiddle, + /// Places the series label at the lower middle + LowerMiddle, + /// Places the series label at the upper right + UpperRight, + /// Places the series label at the middle right + MiddleRight, + /// Places the series label at the lower right + LowerRight, + /// Places the series label at the specific location in backend coordinates + Coordinate(i32, i32), +} + +impl SeriesLabelPosition { + fn layout_label_area(&self, label_dim: (i32, i32), area_dim: (u32, u32)) -> (i32, i32) { + use SeriesLabelPosition::*; + ( + match self { + UpperLeft | MiddleLeft | LowerLeft => 5, + UpperMiddle | MiddleMiddle | LowerMiddle => (area_dim.0 as i32 - label_dim.0) / 2, + UpperRight | MiddleRight | LowerRight => area_dim.0 as i32 - label_dim.0 - 5, + Coordinate(x, _) => *x, + }, + match self { + UpperLeft | UpperMiddle | UpperRight => 5, + MiddleLeft | MiddleMiddle | MiddleRight => (area_dim.1 as i32 - label_dim.1) / 2, + LowerLeft | LowerMiddle | LowerRight => area_dim.1 as i32 - label_dim.1 - 5, + Coordinate(_, y) => *y, + }, + ) + } +} + +/// The struct to specify the series label of a target chart context +pub struct SeriesLabelStyle<'a, 'b, DB: DrawingBackend, CT: CoordTranslate> { + target: &'b mut ChartContext<'a, DB, CT>, + position: SeriesLabelPosition, + legend_area_size: u32, + border_style: ShapeStyle, + background: ShapeStyle, + label_font: Option>, + margin: u32, +} + +impl<'a, 'b, DB: DrawingBackend + 'a, CT: CoordTranslate> SeriesLabelStyle<'a, 'b, DB, CT> { + pub(super) fn new(target: &'b mut ChartContext<'a, DB, CT>) -> Self { + Self { + target, + position: SeriesLabelPosition::MiddleRight, + legend_area_size: 30, + border_style: (&TRANSPARENT).into(), + background: (&TRANSPARENT).into(), + label_font: None, + margin: 10, + } + } + + /** + Sets the series label positioning style + + `pos` - The positioning style + + See [`ChartContext::configure_series_labels()`] for more information and examples. + */ + pub fn position(&mut self, pos: SeriesLabelPosition) -> &mut Self { + self.position = pos; + self + } + + /** + Sets the margin of the series label drawing area. + + - `value`: The size specification in backend units (pixels) + + See [`ChartContext::configure_series_labels()`] for more information and examples. + */ + pub fn margin(&mut self, value: S) -> &mut Self { + self.margin = value + .in_pixels(&self.target.plotting_area().dim_in_pixel()) + .max(0) as u32; + self + } + + /** + Sets the size of the legend area. + + `size` - The size of legend area in backend units (pixels) + + See [`ChartContext::configure_series_labels()`] for more information and examples. + */ + pub fn legend_area_size(&mut self, size: S) -> &mut Self { + let size = size + .in_pixels(&self.target.plotting_area().dim_in_pixel()) + .max(0) as u32; + self.legend_area_size = size; + self + } + + /** + Sets the style of the label series area. + + `style` - The style of the border + + See [`ChartContext::configure_series_labels()`] for more information and examples. + */ + pub fn border_style>(&mut self, style: S) -> &mut Self { + self.border_style = style.into(); + self + } + + /** + Sets the background style of the label series area. + + `style` - The style of the border + + See [`ChartContext::configure_series_labels()`] for more information and examples. + */ + pub fn background_style>(&mut self, style: S) -> &mut Self { + self.background = style.into(); + self + } + + /** + Sets the font for series labels. + + `font` - Desired font + + See [`ChartContext::configure_series_labels()`] for more information and examples. + */ + pub fn label_font>(&mut self, font: F) -> &mut Self { + self.label_font = Some(font.into_text_style(&self.target.plotting_area().dim_in_pixel())); + self + } + + /** + Draws the series label area. + + See [`ChartContext::configure_series_labels()`] for more information and examples. + */ + pub fn draw(&mut self) -> Result<(), DrawingAreaErrorKind> { + let drawing_area = self.target.plotting_area().strip_coord_spec(); + + // TODO: Issue #68 Currently generic font family doesn't load on OSX, change this after the issue + // resolved + let default_font = ("sans-serif", 12).into_font(); + let default_style: TextStyle = default_font.into(); + + let font = { + let mut temp = None; + std::mem::swap(&mut self.label_font, &mut temp); + temp.unwrap_or(default_style) + }; + + let mut label_element = MultiLineText::<_, &str>::new((0, 0), &font); + let mut funcs = vec![]; + + for anno in self.target.series_anno.iter() { + let label_text = anno.get_label(); + let draw_func = anno.get_draw_func(); + + if label_text.is_empty() && draw_func.is_none() { + continue; + } + + funcs.push(draw_func.unwrap_or(&|p: BackendCoord| EmptyElement::at(p).into_dyn())); + label_element.push_line(label_text); + } + + let (mut w, mut h) = label_element.estimate_dimension().map_err(|e| { + DrawingAreaErrorKind::BackendError(DrawingErrorKind::FontError(Box::new(e))) + })?; + + let margin = self.margin as i32; + + w += self.legend_area_size as i32 + margin * 2; + h += margin * 2; + + let (area_w, area_h) = drawing_area.dim_in_pixel(); + + let (label_x, label_y) = self.position.layout_label_area((w, h), (area_w, area_h)); + + label_element.relocate(( + label_x + self.legend_area_size as i32 + margin, + label_y + margin, + )); + + drawing_area.draw(&Rectangle::new( + [(label_x, label_y), (label_x + w, label_y + h)], + self.background.filled(), + ))?; + drawing_area.draw(&Rectangle::new( + [(label_x, label_y), (label_x + w, label_y + h)], + self.border_style, + ))?; + drawing_area.draw(&label_element)?; + + for (((_, y0), (_, y1)), make_elem) in label_element + .compute_line_layout() + .map_err(|e| { + DrawingAreaErrorKind::BackendError(DrawingErrorKind::FontError(Box::new(e))) + })? + .into_iter() + .zip(funcs.into_iter()) + { + let legend_element = make_elem((label_x + margin, (y0 + y1) / 2)); + drawing_area.draw(&legend_element)?; + } + + Ok(()) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/state.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/state.rs new file mode 100644 index 0000000000000000000000000000000000000000..55c4056e00abb3f66c227b6757883597a2b31bf0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/state.rs @@ -0,0 +1,112 @@ +use std::sync::Arc; + +use super::ChartContext; +use crate::coord::{CoordTranslate, Shift}; +use crate::drawing::DrawingArea; +use plotters_backend::DrawingBackend; + +/// A chart context state - This is the data that is needed to reconstruct the chart context +/// without actually drawing the chart. This is useful when we want to do realtime rendering and +/// want to incrementally update the chart. +/// +/// For each frame, instead of updating the entire backend, we are able to keep the keep the figure +/// component like axis, labels untouched and make updates only in the plotting drawing area. +/// This is very useful for incremental render. +/// ```rust +/// use plotters::prelude::*; +/// let mut buffer = vec![0u8;1024*768*3]; +/// let area = BitMapBackend::with_buffer(&mut buffer[..], (1024, 768)) +/// .into_drawing_area() +/// .split_evenly((1,2)); +/// let chart = ChartBuilder::on(&area[0]) +/// .caption("Incremental Example", ("sans-serif", 20)) +/// .set_all_label_area_size(30) +/// .build_cartesian_2d(0..10, 0..10) +/// .expect("Unable to build ChartContext"); +/// // Draw the first frame at this point +/// area[0].present().expect("Present"); +/// let state = chart.into_chart_state(); +/// // Let's draw the second frame +/// let chart = state.restore(&area[0]); +/// chart.plotting_area().fill(&WHITE).unwrap(); // Clear the previously drawn graph +/// // At this point, you are able to draw next frame +///``` +#[derive(Clone)] +pub struct ChartState { + drawing_area_pos: (i32, i32), + drawing_area_size: (u32, u32), + coord: CT, +} + +impl<'a, DB: DrawingBackend, CT: CoordTranslate> From> for ChartState { + fn from(chart: ChartContext<'a, DB, CT>) -> ChartState { + ChartState { + drawing_area_pos: chart.drawing_area_pos, + drawing_area_size: chart.drawing_area.dim_in_pixel(), + coord: chart.drawing_area.into_coord_spec(), + } + } +} + +impl<'a, DB: DrawingBackend, CT: CoordTranslate> ChartContext<'a, DB, CT> { + /// Convert a chart context into a chart state, by doing so, the chart context is consumed and + /// a saved chart state is created for later use. This is typically used in incremental rendering. See documentation of `ChartState` for more detailed example. + pub fn into_chart_state(self) -> ChartState { + self.into() + } + + /// Convert the chart context into a sharable chart state. + /// Normally a chart state can not be clone, since the coordinate spec may not be able to be + /// cloned. In this case, we can use an `Arc` get the coordinate wrapped thus the state can be + /// cloned and shared by multiple chart context + pub fn into_shared_chart_state(self) -> ChartState> { + ChartState { + drawing_area_pos: self.drawing_area_pos, + drawing_area_size: self.drawing_area.dim_in_pixel(), + coord: Arc::new(self.drawing_area.into_coord_spec()), + } + } +} + +impl<'a, DB, CT> From<&ChartContext<'a, DB, CT>> for ChartState +where + DB: DrawingBackend, + CT: CoordTranslate + Clone, +{ + fn from(chart: &ChartContext<'a, DB, CT>) -> ChartState { + ChartState { + drawing_area_pos: chart.drawing_area_pos, + drawing_area_size: chart.drawing_area.dim_in_pixel(), + coord: chart.drawing_area.as_coord_spec().clone(), + } + } +} + +impl<'a, DB: DrawingBackend, CT: CoordTranslate + Clone> ChartContext<'a, DB, CT> { + /// Make the chart context, do not consume the chart context and clone the coordinate spec + pub fn to_chart_state(&self) -> ChartState { + self.into() + } +} + +impl ChartState { + /// Restore the chart context on the given drawing area + /// + /// - `area`: The given drawing area where we want to restore the chart context + /// - **returns** The newly created chart context + pub fn restore<'a, DB: DrawingBackend>( + self, + area: &DrawingArea, + ) -> ChartContext<'a, DB, CT> { + let area = area + .clone() + .shrink(self.drawing_area_pos, self.drawing_area_size); + ChartContext { + x_label_area: [None, None], + y_label_area: [None, None], + drawing_area: area.apply_coord_spec(self.coord), + series_anno: vec![], + drawing_area_pos: self.drawing_area_pos, + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..b01fc697d58e2f75be704b88157130dc6e6c42d5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/mod.rs @@ -0,0 +1,73 @@ +/*! + +One of the key features of Plotters is flexible coordinate system abstraction and this module +provides all the abstraction used for the coordinate abstraction of Plotters. + +Generally speaking, the coordinate system in Plotters is responsible for mapping logic data points into +pixel based backend coordinate. This task is abstracted by a simple trait called +[CoordTranslate](trait.CoordTranslate.html). Please note `CoordTranslate` trait doesn't assume any property +about the coordinate values, thus we are able to extend Plotters's coordinate system to other types of coorindate +easily. + +Another important trait is [ReverseCoordTranslate](trait.ReverseCoordTranslate.html). This trait allows some coordinate +retrieve the logic value based on the pixel-based backend coordinate. This is particularly interesting for interactive plots. + +Plotters contains a set of pre-defined coordinate specifications that fulfills the most common use. See documentation for +module [types](types/index.html) for details about the basic 1D types. + +The coordinate system also can be tweaked by the coordinate combinators, such as logarithmic coordinate, nested coordinate, etc. +See documentation for module [combinators](combinators/index.html) for details. + +Currently we support the following 2D coordinate system: + +- 2-dimensional Cartesian Coordinate: This is done by the combinator [Cartesian2d](cartesian/struct.Cartesian2d.html). + +*/ + +use plotters_backend::BackendCoord; + +pub mod ranged1d; + +/// The coordinate combinators +/// +/// Coordinate combinators are very important part of Plotters' coordinate system. +/// The combinator is more about the "combinator pattern", which takes one or more coordinate specification +/// and transform them into a new coordinate specification. +pub mod combinators { + pub use super::ranged1d::combinators::*; +} + +/// The primitive types supported by Plotters coordinate system +pub mod types { + pub use super::ranged1d::types::*; +} + +mod ranged2d; +/// Ranged coordinates in 3d. +pub mod ranged3d; + +/// Groups Cartesian ranged coordinates in 2d and 3d. +pub mod cartesian { + pub use super::ranged2d::cartesian::{Cartesian2d, MeshLine}; + pub use super::ranged3d::Cartesian3d; +} + +mod translate; +pub use translate::{CoordTranslate, ReverseCoordTranslate}; + +/// The coordinate translation that only impose shift +#[derive(Debug, Clone)] +pub struct Shift(pub BackendCoord); + +impl CoordTranslate for Shift { + type From = BackendCoord; + fn translate(&self, from: &Self::From) -> BackendCoord { + (from.0 + (self.0).0, from.1 + (self.0).1) + } +} + +impl ReverseCoordTranslate for Shift { + fn reverse_translate(&self, input: BackendCoord) -> Option { + Some((input.0 - (self.0).0, input.1 - (self.0).1)) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/translate.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/translate.rs new file mode 100644 index 0000000000000000000000000000000000000000..222f948aced4b47a11edaf53dd024678f245515d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/translate.rs @@ -0,0 +1,38 @@ +use plotters_backend::BackendCoord; +use std::ops::Deref; + +/// The trait that translates some customized object to the backend coordinate +pub trait CoordTranslate { + /// Specifies the object to be translated from + type From; + + /// Translate the guest coordinate to the guest coordinate + fn translate(&self, from: &Self::From) -> BackendCoord; + + /// Get the Z-value of current coordinate + fn depth(&self, _from: &Self::From) -> i32 { + 0 + } +} + +impl CoordTranslate for T +where + C: CoordTranslate, + T: Deref, +{ + type From = C::From; + fn translate(&self, from: &Self::From) -> BackendCoord { + self.deref().translate(from) + } +} + +/// The trait indicates that the coordinate system supports reverse transform +/// This is useful when we need an interactive plot, thus we need to map the event +/// from the backend coordinate to the logical coordinate +pub trait ReverseCoordTranslate: CoordTranslate { + /// Reverse translate the coordinate from the drawing coordinate to the + /// logic coordinate. + /// Note: the return value is an option, because it's possible that the drawing + /// coordinate isn't able to be represented in te guest coordinate system + fn reverse_translate(&self, input: BackendCoord) -> Option; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/data/data_range.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/data/data_range.rs new file mode 100644 index 0000000000000000000000000000000000000000..3d42eec4b95fbcf40809f9751c5392ead7a192be --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/data/data_range.rs @@ -0,0 +1,42 @@ +use std::cmp::{Ordering, PartialOrd}; +use std::iter::IntoIterator; +use std::ops::Range; + +use num_traits::{One, Zero}; + +/// Build a range that fits the data +/// +/// - `iter`: the iterator over the data +/// - **returns** The resulting range +/// +/// ```rust +/// use plotters::data::fitting_range; +/// +/// let data = [4, 14, -2, 2, 5]; +/// let range = fitting_range(&data); +/// assert_eq!(range, std::ops::Range { start: -2, end: 14 }); +/// ``` +pub fn fitting_range<'a, T, I: IntoIterator>(iter: I) -> Range +where + T: 'a + Zero + One + PartialOrd + Clone, +{ + let (mut lb, mut ub) = (None, None); + + for value in iter.into_iter() { + if let Some(Ordering::Greater) = lb + .as_ref() + .map_or(Some(Ordering::Greater), |lbv: &T| lbv.partial_cmp(value)) + { + lb = Some(value.clone()); + } + + if let Some(Ordering::Less) = ub + .as_ref() + .map_or(Some(Ordering::Less), |ubv: &T| ubv.partial_cmp(value)) + { + ub = Some(value.clone()); + } + } + + lb.unwrap_or_else(Zero::zero)..ub.unwrap_or_else(One::one) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/data/float.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/data/float.rs new file mode 100644 index 0000000000000000000000000000000000000000..febd330ea24c206b1a51e129665562f88921cff1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/data/float.rs @@ -0,0 +1,145 @@ +// The code that is related to float number handling +fn find_minimal_repr(n: f64, eps: f64) -> (f64, usize) { + if eps >= 1.0 { + return (n, 0); + } + if n - n.floor() < eps { + (n.floor(), 0) + } else if n.ceil() - n < eps { + (n.ceil(), 0) + } else { + let (rem, pre) = find_minimal_repr((n - n.floor()) * 10.0, eps * 10.0); + (n.floor() + rem / 10.0, pre + 1) + } +} + +#[allow(clippy::never_loop)] +fn float_to_string(n: f64, max_precision: usize, min_decimal: usize) -> String { + let (mut result, mut count) = loop { + let (sign, n) = if n < 0.0 { ("-", -n) } else { ("", n) }; + let int_part = n.floor(); + + let dec_part = + ((n.abs() - int_part.abs()) * (10.0f64).powi(max_precision as i32)).round() as u64; + + if dec_part == 0 || max_precision == 0 { + break (format!("{}{:.0}", sign, int_part), 0); + } + + let mut leading = "".to_string(); + let mut dec_result = format!("{}", dec_part); + + for _ in 0..(max_precision - dec_result.len()) { + leading.push('0'); + } + + while let Some(c) = dec_result.pop() { + if c != '0' { + dec_result.push(c); + break; + } + } + + break ( + format!("{}{:.0}.{}{}", sign, int_part, leading, dec_result), + leading.len() + dec_result.len(), + ); + }; + + if count == 0 && min_decimal > 0 { + result.push('.'); + } + + while count < min_decimal { + result.push('0'); + count += 1; + } + result +} + +/// Handles printing of floating point numbers +pub struct FloatPrettyPrinter { + /// Whether scientific notation is allowed + pub allow_scientific: bool, + /// Minimum allowed number of decimal digits + pub min_decimal: i32, + /// Maximum allowed number of decimal digits + pub max_decimal: i32, +} + +impl FloatPrettyPrinter { + /// Handles printing of floating point numbers + pub fn print(&self, n: f64) -> String { + let (tn, p) = find_minimal_repr(n, (10f64).powi(-self.max_decimal)); + let d_repr = float_to_string(tn, p, self.min_decimal as usize); + if !self.allow_scientific { + d_repr + } else { + if n == 0.0 { + return "0".to_string(); + } + + let mut idx = n.abs().log10().floor(); + let mut exp = (10.0f64).powf(idx); + + if n.abs() / exp + 1e-5 >= 10.0 { + idx += 1.0; + exp *= 10.0; + } + + if idx.abs() < 3.0 { + return d_repr; + } + + let (sn, sp) = find_minimal_repr(n / exp, 1e-5); + let s_repr = format!( + "{}e{}", + float_to_string(sn, sp, self.min_decimal as usize), + float_to_string(idx, 0, 0) + ); + if s_repr.len() + 1 < d_repr.len() || (tn == 0.0 && n != 0.0) { + s_repr + } else { + d_repr + } + } + } +} + +/// The function that pretty prints the floating number +/// Since rust doesn't have anything that can format a float with out appearance, so we just +/// implement a float pretty printing function, which finds the shortest representation of a +/// floating point number within the allowed error range. +/// +/// - `n`: The float number to pretty-print +/// - `allow_sn`: Should we use scientific notation when possible +/// - **returns**: The pretty printed string +pub fn pretty_print_float(n: f64, allow_sn: bool) -> String { + (FloatPrettyPrinter { + allow_scientific: allow_sn, + min_decimal: 0, + max_decimal: 10, + }) + .print(n) +} + +#[cfg(test)] +mod test { + use super::*; + #[test] + fn test_pretty_printing() { + assert_eq!(pretty_print_float(0.99999999999999999999, false), "1"); + assert_eq!(pretty_print_float(0.9999, false), "0.9999"); + assert_eq!( + pretty_print_float(-1e-5 - 0.00000000000000001, true), + "-1e-5" + ); + assert_eq!( + pretty_print_float(-1e-5 - 0.00000000000000001, false), + "-0.00001" + ); + assert_eq!(pretty_print_float(1e100, true), "1e100"); + assert_eq!(pretty_print_float(1234567890f64, true), "1234567890"); + assert_eq!(pretty_print_float(1000000001f64, true), "1e9"); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/data/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/data/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..a6b9038948dda2d726f1f85df3f3d950404452eb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/data/mod.rs @@ -0,0 +1,13 @@ +/*! +The data processing module, which implements algorithms related to visualization of data. +Such as, down-sampling, etc. +*/ + +mod data_range; +pub use data_range::fitting_range; + +mod quartiles; +pub use quartiles::Quartiles; + +/// Handles the printing of floating-point numbers. +pub mod float; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/data/quartiles.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/data/quartiles.rs new file mode 100644 index 0000000000000000000000000000000000000000..78613dad4a1d101b1ec3927b2d9498a4da2abb2e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/data/quartiles.rs @@ -0,0 +1,127 @@ +/// The quartiles +#[derive(Clone, Debug)] +pub struct Quartiles { + lower_fence: f64, + lower: f64, + median: f64, + upper: f64, + upper_fence: f64, +} + +impl Quartiles { + // Extract a value representing the `pct` percentile of a + // sorted `s`, using linear interpolation. + fn percentile_of_sorted + Copy>(s: &[T], pct: f64) -> f64 { + assert!(!s.is_empty()); + if s.len() == 1 { + return s[0].into(); + } + assert!(0_f64 <= pct); + let hundred = 100_f64; + assert!(pct <= hundred); + if (pct - hundred).abs() < f64::EPSILON { + return s[s.len() - 1].into(); + } + let length = (s.len() - 1) as f64; + let rank = (pct / hundred) * length; + let lower_rank = rank.floor(); + let d = rank - lower_rank; + let n = lower_rank as usize; + let lo = s[n].into(); + let hi = s[n + 1].into(); + lo + (hi - lo) * d + } + + /// Create a new quartiles struct with the values calculated from the argument. + /// + /// - `s`: The array of the original values + /// - **returns** The newly created quartiles + /// + /// ```rust + /// use plotters::prelude::*; + /// + /// let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); + /// assert_eq!(quartiles.median(), 37.5); + /// ``` + pub fn new + Copy + PartialOrd>(s: &[T]) -> Self { + let mut s = s.to_owned(); + s.sort_unstable_by(|a, b| a.partial_cmp(b).unwrap()); + + let lower = Quartiles::percentile_of_sorted(&s, 25_f64); + let median = Quartiles::percentile_of_sorted(&s, 50_f64); + let upper = Quartiles::percentile_of_sorted(&s, 75_f64); + let iqr = upper - lower; + let lower_fence = lower - 1.5 * iqr; + let upper_fence = upper + 1.5 * iqr; + Self { + lower_fence, + lower, + median, + upper, + upper_fence, + } + } + + /// Get the quartiles values. + /// + /// - **returns** The array [lower fence, lower quartile, median, upper quartile, upper fence] + /// + /// ```rust + /// use plotters::prelude::*; + /// + /// let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); + /// let values = quartiles.values(); + /// assert_eq!(values, [-9.0, 20.25, 37.5, 39.75, 69.0]); + /// ``` + pub fn values(&self) -> [f32; 5] { + [ + self.lower_fence as f32, + self.lower as f32, + self.median as f32, + self.upper as f32, + self.upper_fence as f32, + ] + } + + /// Get the quartiles median. + /// + /// - **returns** The median + /// + /// ```rust + /// use plotters::prelude::*; + /// + /// let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); + /// assert_eq!(quartiles.median(), 37.5); + /// ``` + pub fn median(&self) -> f64 { + self.median + } +} + +#[cfg(test)] +mod test { + use super::*; + + #[test] + #[should_panic] + fn test_empty_input() { + let empty_array: [i32; 0] = []; + Quartiles::new(&empty_array); + } + + #[test] + fn test_low_inputs() { + assert_eq!( + Quartiles::new(&[15.0]).values(), + [15.0, 15.0, 15.0, 15.0, 15.0] + ); + assert_eq!( + Quartiles::new(&[10, 20]).values(), + [5.0, 12.5, 15.0, 17.5, 25.0] + ); + assert_eq!( + Quartiles::new(&[10, 20, 30]).values(), + [0.0, 15.0, 20.0, 25.0, 40.0] + ); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/drawing/area.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/drawing/area.rs new file mode 100644 index 0000000000000000000000000000000000000000..e8981fea372f73ecbc685d341b633a341586bd2b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/drawing/area.rs @@ -0,0 +1,859 @@ +use crate::coord::cartesian::{Cartesian2d, MeshLine}; +use crate::coord::ranged1d::{KeyPointHint, Ranged}; +use crate::coord::{CoordTranslate, Shift}; +use crate::element::{CoordMapper, Drawable, PointCollection}; +use crate::style::text_anchor::{HPos, Pos, VPos}; +use crate::style::{Color, SizeDesc, TextStyle}; + +/// The abstraction of a drawing area +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; + +use std::borrow::Borrow; +use std::cell::RefCell; +use std::error::Error; +use std::iter::{once, repeat}; +use std::ops::Range; +use std::rc::Rc; + +/// The representation of the rectangle in backend canvas +#[derive(Clone, Debug)] +pub struct Rect { + x0: i32, + y0: i32, + x1: i32, + y1: i32, +} + +impl Rect { + /// Split the rectangle into a few smaller rectangles + fn split<'a, BPI: IntoIterator + 'a>( + &'a self, + break_points: BPI, + vertical: bool, + ) -> impl Iterator + 'a { + let (mut x0, mut y0) = (self.x0, self.y0); + let (full_x, full_y) = (self.x1, self.y1); + break_points + .into_iter() + .chain(once(if vertical { &self.y1 } else { &self.x1 })) + .map(move |&p| { + let x1 = if vertical { full_x } else { p }; + let y1 = if vertical { p } else { full_y }; + let ret = Rect { x0, y0, x1, y1 }; + + if vertical { + y0 = y1 + } else { + x0 = x1; + } + + ret + }) + } + + /// Evenly split the rectangle to a row * col mesh + fn split_evenly(&self, (row, col): (usize, usize)) -> impl Iterator + '_ { + fn compute_evenly_split(from: i32, to: i32, n: usize, idx: usize) -> i32 { + let size = (to - from) as usize; + from + idx as i32 * (size / n) as i32 + idx.min(size % n) as i32 + } + (0..row) + .flat_map(move |x| repeat(x).zip(0..col)) + .map(move |(ri, ci)| Self { + y0: compute_evenly_split(self.y0, self.y1, row, ri), + y1: compute_evenly_split(self.y0, self.y1, row, ri + 1), + x0: compute_evenly_split(self.x0, self.x1, col, ci), + x1: compute_evenly_split(self.x0, self.x1, col, ci + 1), + }) + } + + /// Evenly the rectangle into a grid with arbitrary breaks; return a rect iterator. + fn split_grid( + &self, + x_breaks: impl Iterator, + y_breaks: impl Iterator, + ) -> impl Iterator { + let mut xs = vec![self.x0, self.x1]; + let mut ys = vec![self.y0, self.y1]; + xs.extend(x_breaks.map(|v| v + self.x0)); + ys.extend(y_breaks.map(|v| v + self.y0)); + + xs.sort_unstable(); + ys.sort_unstable(); + + let xsegs: Vec<_> = xs + .iter() + .zip(xs.iter().skip(1)) + .map(|(a, b)| (*a, *b)) + .collect(); + + // Justify: this is actually needed. Because we need to return a iterator that have + // static life time, thus we need to copy the value to a buffer and then turn the buffer + // into a iterator. + #[allow(clippy::needless_collect)] + let ysegs: Vec<_> = ys + .iter() + .zip(ys.iter().skip(1)) + .map(|(a, b)| (*a, *b)) + .collect(); + + ysegs.into_iter().flat_map(move |(y0, y1)| { + xsegs + .clone() + .into_iter() + .map(move |(x0, x1)| Self { x0, y0, x1, y1 }) + }) + } + + /// Make the coordinate in the range of the rectangle + pub fn truncate(&self, p: (i32, i32)) -> (i32, i32) { + (p.0.min(self.x1).max(self.x0), p.1.min(self.y1).max(self.y0)) + } +} + +/// The abstraction of a drawing area. Plotters uses drawing area as the fundamental abstraction for the +/// high level drawing API. The major functionality provided by the drawing area is +/// 1. Layout specification - Split the parent drawing area into sub-drawing-areas +/// 2. Coordinate Translation - Allows guest coordinate system attached and used for drawing. +/// 3. Element based drawing - drawing area provides the environment the element can be drawn onto it. +pub struct DrawingArea { + backend: Rc>, + rect: Rect, + coord: CT, +} + +impl Clone for DrawingArea { + fn clone(&self) -> Self { + Self { + backend: self.backend.clone(), + rect: self.rect.clone(), + coord: self.coord.clone(), + } + } +} + +/// The error description of any drawing area API +#[derive(Debug)] +pub enum DrawingAreaErrorKind { + /// The error is due to drawing backend failure + BackendError(DrawingErrorKind), + /// We are not able to get the mutable reference of the backend, + /// which indicates the drawing backend is current used by other + /// drawing operation + SharingError, + /// The error caused by invalid layout + LayoutError, +} + +impl std::fmt::Display for DrawingAreaErrorKind { + fn fmt(&self, fmt: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { + match self { + DrawingAreaErrorKind::BackendError(e) => write!(fmt, "backend error: {}", e), + DrawingAreaErrorKind::SharingError => { + write!(fmt, "Multiple backend operation in progress") + } + DrawingAreaErrorKind::LayoutError => write!(fmt, "Bad layout"), + } + } +} + +impl Error for DrawingAreaErrorKind {} + +#[allow(type_alias_bounds)] +type DrawingAreaError = DrawingAreaErrorKind; + +impl From for DrawingArea { + fn from(backend: DB) -> Self { + Self::with_rc_cell(Rc::new(RefCell::new(backend))) + } +} + +impl<'a, DB: DrawingBackend> From<&'a Rc>> for DrawingArea { + fn from(backend: &'a Rc>) -> Self { + Self::with_rc_cell(backend.clone()) + } +} + +/// A type which can be converted into a root drawing area +pub trait IntoDrawingArea: DrawingBackend + Sized { + /// Convert the type into a root drawing area + fn into_drawing_area(self) -> DrawingArea; +} + +impl IntoDrawingArea for T { + fn into_drawing_area(self) -> DrawingArea { + self.into() + } +} + +impl DrawingArea> { + /// Draw the mesh on a area + pub fn draw_mesh( + &self, + mut draw_func: DrawFunc, + y_count_max: YH, + x_count_max: XH, + ) -> Result<(), DrawingAreaErrorKind> + where + DrawFunc: FnMut(&mut DB, MeshLine) -> Result<(), DrawingErrorKind>, + { + self.backend_ops(move |b| { + self.coord + .draw_mesh(y_count_max, x_count_max, |line| draw_func(b, line)) + }) + } + + /// Get the range of X of the guest coordinate for current drawing area + pub fn get_x_range(&self) -> Range { + self.coord.get_x_range() + } + + /// Get the range of Y of the guest coordinate for current drawing area + pub fn get_y_range(&self) -> Range { + self.coord.get_y_range() + } + + /// Get the range of X of the backend coordinate for current drawing area + pub fn get_x_axis_pixel_range(&self) -> Range { + self.coord.get_x_axis_pixel_range() + } + + /// Get the range of Y of the backend coordinate for current drawing area + pub fn get_y_axis_pixel_range(&self) -> Range { + self.coord.get_y_axis_pixel_range() + } +} + +impl DrawingArea { + /// Get the left upper conner of this area in the drawing backend + pub fn get_base_pixel(&self) -> BackendCoord { + (self.rect.x0, self.rect.y0) + } + + /// Strip the applied coordinate specification and returns a shift-based drawing area + pub fn strip_coord_spec(&self) -> DrawingArea { + DrawingArea { + rect: self.rect.clone(), + backend: self.backend.clone(), + coord: Shift((self.rect.x0, self.rect.y0)), + } + } + + /// Strip the applied coordinate specification and returns a drawing area + pub fn use_screen_coord(&self) -> DrawingArea { + DrawingArea { + rect: self.rect.clone(), + backend: self.backend.clone(), + coord: Shift((0, 0)), + } + } + + /// Get the area dimension in pixel + pub fn dim_in_pixel(&self) -> (u32, u32) { + ( + (self.rect.x1 - self.rect.x0) as u32, + (self.rect.y1 - self.rect.y0) as u32, + ) + } + + /// Compute the relative size based on the drawing area's height + pub fn relative_to_height(&self, p: f64) -> f64 { + f64::from((self.rect.y1 - self.rect.y0).max(0)) * (p.clamp(0.0, 1.0)) + } + + /// Compute the relative size based on the drawing area's width + pub fn relative_to_width(&self, p: f64) -> f64 { + f64::from((self.rect.x1 - self.rect.x0).max(0)) * (p.clamp(0.0, 1.0)) + } + + /// Get the pixel range of this area + pub fn get_pixel_range(&self) -> (Range, Range) { + (self.rect.x0..self.rect.x1, self.rect.y0..self.rect.y1) + } + + /// Perform operation on the drawing backend + fn backend_ops Result>>( + &self, + ops: O, + ) -> Result> { + if let Ok(mut db) = self.backend.try_borrow_mut() { + db.ensure_prepared() + .map_err(DrawingAreaErrorKind::BackendError)?; + ops(&mut db).map_err(DrawingAreaErrorKind::BackendError) + } else { + Err(DrawingAreaErrorKind::SharingError) + } + } + + /// Fill the entire drawing area with a color + pub fn fill(&self, color: &ColorType) -> Result<(), DrawingAreaError> { + self.backend_ops(|backend| { + backend.draw_rect( + (self.rect.x0, self.rect.y0), + (self.rect.x1, self.rect.y1), + &color.to_backend_color(), + true, + ) + }) + } + + /// Draw a single pixel + pub fn draw_pixel( + &self, + pos: CT::From, + color: &ColorType, + ) -> Result<(), DrawingAreaError> { + let pos = self.coord.translate(&pos); + self.backend_ops(|b| b.draw_pixel(pos, color.to_backend_color())) + } + + /// Present all the pending changes to the backend + pub fn present(&self) -> Result<(), DrawingAreaError> { + self.backend_ops(|b| b.present()) + } + + /// Draw an high-level element + pub fn draw<'a, E, B>(&self, element: &'a E) -> Result<(), DrawingAreaError> + where + B: CoordMapper, + &'a E: PointCollection<'a, CT::From, B>, + E: Drawable, + { + let backend_coords = element.point_iter().into_iter().map(|p| { + let b = p.borrow(); + B::map(&self.coord, b, &self.rect) + }); + self.backend_ops(move |b| element.draw(backend_coords, b, self.dim_in_pixel())) + } + + /// Map coordinate to the backend coordinate + pub fn map_coordinate(&self, coord: &CT::From) -> BackendCoord { + self.coord.translate(coord) + } + + /// Estimate the dimension of the text if drawn on this drawing area. + /// We can't get this directly from the font, since the drawing backend may or may not + /// follows the font configuration. In terminal, the font family will be dropped. + /// So the size of the text is drawing area related. + /// + /// - `text`: The text we want to estimate + /// - `font`: The font spec in which we want to draw the text + /// - **return**: The size of the text if drawn on this area + pub fn estimate_text_size( + &self, + text: &str, + style: &TextStyle, + ) -> Result<(u32, u32), DrawingAreaError> { + self.backend_ops(move |b| b.estimate_text_size(text, style)) + } +} + +impl DrawingArea { + fn with_rc_cell(backend: Rc>) -> Self { + let (x1, y1) = RefCell::borrow(backend.borrow()).get_size(); + Self { + rect: Rect { + x0: 0, + y0: 0, + x1: x1 as i32, + y1: y1 as i32, + }, + backend, + coord: Shift((0, 0)), + } + } + + /// Shrink the region, note all the locations are in guest coordinate + pub fn shrink( + mut self, + left_upper: (A, B), + dimension: (C, D), + ) -> DrawingArea { + let left_upper = (left_upper.0.in_pixels(&self), left_upper.1.in_pixels(&self)); + let dimension = (dimension.0.in_pixels(&self), dimension.1.in_pixels(&self)); + self.rect.x0 = self.rect.x1.min(self.rect.x0 + left_upper.0); + self.rect.y0 = self.rect.y1.min(self.rect.y0 + left_upper.1); + + self.rect.x1 = self.rect.x0.max(self.rect.x0 + dimension.0); + self.rect.y1 = self.rect.y0.max(self.rect.y0 + dimension.1); + + self.coord = Shift((self.rect.x0, self.rect.y0)); + + self + } + + /// Apply a new coord transformation object and returns a new drawing area + pub fn apply_coord_spec(&self, coord_spec: CT) -> DrawingArea { + DrawingArea { + rect: self.rect.clone(), + backend: self.backend.clone(), + coord: coord_spec, + } + } + + /// Create a margin for the given drawing area and returns the new drawing area + pub fn margin( + &self, + top: ST, + bottom: SB, + left: SL, + right: SR, + ) -> DrawingArea { + let left = left.in_pixels(self); + let right = right.in_pixels(self); + let top = top.in_pixels(self); + let bottom = bottom.in_pixels(self); + DrawingArea { + rect: Rect { + x0: self.rect.x0 + left, + y0: self.rect.y0 + top, + x1: self.rect.x1 - right, + y1: self.rect.y1 - bottom, + }, + backend: self.backend.clone(), + coord: Shift((self.rect.x0 + left, self.rect.y0 + top)), + } + } + + /// Split the drawing area vertically + pub fn split_vertically(&self, y: S) -> (Self, Self) { + let y = y.in_pixels(self); + let split_point = [y + self.rect.y0]; + let mut ret = self.rect.split(split_point.iter(), true).map(|rect| Self { + rect: rect.clone(), + backend: self.backend.clone(), + coord: Shift((rect.x0, rect.y0)), + }); + + (ret.next().unwrap(), ret.next().unwrap()) + } + + /// Split the drawing area horizontally + pub fn split_horizontally(&self, x: S) -> (Self, Self) { + let x = x.in_pixels(self); + let split_point = [x + self.rect.x0]; + let mut ret = self.rect.split(split_point.iter(), false).map(|rect| Self { + rect: rect.clone(), + backend: self.backend.clone(), + coord: Shift((rect.x0, rect.y0)), + }); + + (ret.next().unwrap(), ret.next().unwrap()) + } + + /// Split the drawing area evenly + pub fn split_evenly(&self, (row, col): (usize, usize)) -> Vec { + self.rect + .split_evenly((row, col)) + .map(|rect| Self { + rect: rect.clone(), + backend: self.backend.clone(), + coord: Shift((rect.x0, rect.y0)), + }) + .collect() + } + + /// Split the drawing area into a grid with specified breakpoints on both X axis and Y axis + pub fn split_by_breakpoints< + XSize: SizeDesc, + YSize: SizeDesc, + XS: AsRef<[XSize]>, + YS: AsRef<[YSize]>, + >( + &self, + xs: XS, + ys: YS, + ) -> Vec { + self.rect + .split_grid( + xs.as_ref().iter().map(|x| x.in_pixels(self)), + ys.as_ref().iter().map(|x| x.in_pixels(self)), + ) + .map(|rect| Self { + rect: rect.clone(), + backend: self.backend.clone(), + coord: Shift((rect.x0, rect.y0)), + }) + .collect() + } + + /// Draw a title of the drawing area and return the remaining drawing area + pub fn titled<'a, S: Into>>( + &self, + text: &str, + style: S, + ) -> Result> { + let style = style.into(); + + let x_padding = (self.rect.x1 - self.rect.x0) / 2; + + let (_, text_h) = self.estimate_text_size(text, &style)?; + let y_padding = (text_h / 2).min(5) as i32; + + let style = &style.pos(Pos::new(HPos::Center, VPos::Top)); + + self.backend_ops(|b| { + b.draw_text( + text, + style, + (self.rect.x0 + x_padding, self.rect.y0 + y_padding), + ) + })?; + + Ok(Self { + rect: Rect { + x0: self.rect.x0, + y0: self.rect.y0 + y_padding * 2 + text_h as i32, + x1: self.rect.x1, + y1: self.rect.y1, + }, + backend: self.backend.clone(), + coord: Shift((self.rect.x0, self.rect.y0 + y_padding * 2 + text_h as i32)), + }) + } + + /// Draw text on the drawing area + pub fn draw_text( + &self, + text: &str, + style: &TextStyle, + pos: BackendCoord, + ) -> Result<(), DrawingAreaError> { + self.backend_ops(|b| b.draw_text(text, style, (pos.0 + self.rect.x0, pos.1 + self.rect.y0))) + } +} + +impl DrawingArea { + /// Returns the coordinates by value + pub fn into_coord_spec(self) -> CT { + self.coord + } + + /// Returns the coordinates by reference + pub fn as_coord_spec(&self) -> &CT { + &self.coord + } + + /// Returns the coordinates by mutable reference + pub fn as_coord_spec_mut(&mut self) -> &mut CT { + &mut self.coord + } +} + +#[cfg(test)] +mod drawing_area_tests { + use crate::{create_mocked_drawing_area, prelude::*}; + #[test] + fn test_filling() { + let drawing_area = create_mocked_drawing_area(1024, 768, |m| { + m.check_draw_rect(|c, _, f, u, d| { + assert_eq!(c, WHITE.to_rgba()); + assert!(f); + assert_eq!(u, (0, 0)); + assert_eq!(d, (1024, 768)); + }); + + m.drop_check(|b| { + assert_eq!(b.num_draw_rect_call, 1); + assert_eq!(b.draw_count, 1); + }); + }); + + drawing_area.fill(&WHITE).expect("Drawing Failure"); + } + + #[test] + fn test_split_evenly() { + let colors = vec![ + &RED, &BLUE, &YELLOW, &WHITE, &BLACK, &MAGENTA, &CYAN, &BLUE, &RED, + ]; + let drawing_area = create_mocked_drawing_area(902, 900, |m| { + for col in 0..3 { + for row in 0..3 { + let colors = colors.clone(); + m.check_draw_rect(move |c, _, f, u, d| { + assert_eq!(c, colors[col * 3 + row].to_rgba()); + assert!(f); + assert_eq!(u, (300 * row as i32 + 2.min(row) as i32, 300 * col as i32)); + assert_eq!( + d, + ( + 300 + 300 * row as i32 + 2.min(row + 1) as i32, + 300 + 300 * col as i32 + ) + ); + }); + } + } + m.drop_check(|b| { + assert_eq!(b.num_draw_rect_call, 9); + assert_eq!(b.draw_count, 9); + }); + }); + + drawing_area + .split_evenly((3, 3)) + .iter_mut() + .zip(colors.iter()) + .for_each(|(d, c)| { + d.fill(*c).expect("Drawing Failure"); + }); + } + + #[test] + fn test_split_horizontally() { + let drawing_area = create_mocked_drawing_area(1024, 768, |m| { + m.check_draw_rect(|c, _, f, u, d| { + assert_eq!(c, RED.to_rgba()); + assert!(f); + assert_eq!(u, (0, 0)); + assert_eq!(d, (345, 768)); + }); + + m.check_draw_rect(|c, _, f, u, d| { + assert_eq!(c, BLUE.to_rgba()); + assert!(f); + assert_eq!(u, (345, 0)); + assert_eq!(d, (1024, 768)); + }); + + m.drop_check(|b| { + assert_eq!(b.num_draw_rect_call, 2); + assert_eq!(b.draw_count, 2); + }); + }); + + let (left, right) = drawing_area.split_horizontally(345); + left.fill(&RED).expect("Drawing Error"); + right.fill(&BLUE).expect("Drawing Error"); + } + + #[test] + fn test_split_vertically() { + let drawing_area = create_mocked_drawing_area(1024, 768, |m| { + m.check_draw_rect(|c, _, f, u, d| { + assert_eq!(c, RED.to_rgba()); + assert!(f); + assert_eq!(u, (0, 0)); + assert_eq!(d, (1024, 345)); + }); + + m.check_draw_rect(|c, _, f, u, d| { + assert_eq!(c, BLUE.to_rgba()); + assert!(f); + assert_eq!(u, (0, 345)); + assert_eq!(d, (1024, 768)); + }); + + m.drop_check(|b| { + assert_eq!(b.num_draw_rect_call, 2); + assert_eq!(b.draw_count, 2); + }); + }); + + let (left, right) = drawing_area.split_vertically(345); + left.fill(&RED).expect("Drawing Error"); + right.fill(&BLUE).expect("Drawing Error"); + } + + #[test] + fn test_split_grid() { + let colors = [ + &RED, &BLUE, &YELLOW, &WHITE, &BLACK, &MAGENTA, &CYAN, &BLUE, &RED, + ]; + let breaks: [i32; 5] = [100, 200, 300, 400, 500]; + + for nxb in 0..=5 { + for nyb in 0..=5 { + let drawing_area = create_mocked_drawing_area(1024, 768, |m| { + for row in 0..=nyb { + for col in 0..=nxb { + let get_bp = |full, limit, id| { + if id == 0 { + 0 + } else if id > limit { + full + } else { + breaks[id as usize - 1] + } + }; + + let expected_u = (get_bp(1024, nxb, col), get_bp(768, nyb, row)); + let expected_d = + (get_bp(1024, nxb, col + 1), get_bp(768, nyb, row + 1)); + let expected_color = + colors[(row * (nxb + 1) + col) as usize % colors.len()]; + + m.check_draw_rect(move |c, _, f, u, d| { + assert_eq!(c, expected_color.to_rgba()); + assert!(f); + assert_eq!(u, expected_u); + assert_eq!(d, expected_d); + }); + } + } + + m.drop_check(move |b| { + assert_eq!(b.num_draw_rect_call, ((nxb + 1) * (nyb + 1)) as u32); + assert_eq!(b.draw_count, ((nyb + 1) * (nxb + 1)) as u32); + }); + }); + + let result = drawing_area + .split_by_breakpoints(&breaks[0..nxb as usize], &breaks[0..nyb as usize]); + for i in 0..result.len() { + result[i] + .fill(colors[i % colors.len()]) + .expect("Drawing Error"); + } + } + } + } + #[test] + fn test_titled() { + let drawing_area = create_mocked_drawing_area(1024, 768, |m| { + m.check_draw_text(|c, font, size, _pos, text| { + assert_eq!(c, BLACK.to_rgba()); + assert_eq!(font, "serif"); + assert_eq!(size, 30.0); + assert_eq!("This is the title", text); + }); + m.check_draw_rect(|c, _, f, u, d| { + assert_eq!(c, WHITE.to_rgba()); + assert!(f); + assert_eq!(u.0, 0); + assert!(u.1 > 0); + assert_eq!(d, (1024, 768)); + }); + m.drop_check(|b| { + assert_eq!(b.num_draw_text_call, 1); + assert_eq!(b.num_draw_rect_call, 1); + assert_eq!(b.draw_count, 2); + }); + }); + + drawing_area + .titled("This is the title", ("serif", 30)) + .unwrap() + .fill(&WHITE) + .unwrap(); + } + + #[test] + fn test_margin() { + let drawing_area = create_mocked_drawing_area(1024, 768, |m| { + m.check_draw_rect(|c, _, f, u, d| { + assert_eq!(c, WHITE.to_rgba()); + assert!(f); + assert_eq!(u, (3, 1)); + assert_eq!(d, (1024 - 4, 768 - 2)); + }); + + m.drop_check(|b| { + assert_eq!(b.num_draw_rect_call, 1); + assert_eq!(b.draw_count, 1); + }); + }); + + drawing_area + .margin(1, 2, 3, 4) + .fill(&WHITE) + .expect("Drawing Failure"); + } + + #[test] + fn test_ranges() { + let drawing_area = create_mocked_drawing_area(1024, 768, |_m| {}) + .apply_coord_spec(Cartesian2d::< + crate::coord::types::RangedCoordi32, + crate::coord::types::RangedCoordu32, + >::new(-100..100, 0..200, (0..1024, 0..768))); + + let x_range = drawing_area.get_x_range(); + assert_eq!(x_range, -100..100); + + let y_range = drawing_area.get_y_range(); + assert_eq!(y_range, 0..200); + } + + #[test] + fn test_relative_size() { + let drawing_area = create_mocked_drawing_area(1024, 768, |_m| {}); + + assert_eq!(102.4, drawing_area.relative_to_width(0.1)); + assert_eq!(384.0, drawing_area.relative_to_height(0.5)); + + assert_eq!(1024.0, drawing_area.relative_to_width(1.3)); + assert_eq!(768.0, drawing_area.relative_to_height(1.5)); + + assert_eq!(0.0, drawing_area.relative_to_width(-0.2)); + assert_eq!(0.0, drawing_area.relative_to_height(-0.5)); + } + + #[test] + fn test_relative_split() { + let drawing_area = create_mocked_drawing_area(1000, 1200, |m| { + let mut counter = 0; + m.check_draw_rect(move |c, _, f, u, d| { + assert!(f); + + match counter { + 0 => { + assert_eq!(c, RED.to_rgba()); + assert_eq!(u, (0, 0)); + assert_eq!(d, (300, 600)); + } + 1 => { + assert_eq!(c, BLUE.to_rgba()); + assert_eq!(u, (300, 0)); + assert_eq!(d, (1000, 600)); + } + 2 => { + assert_eq!(c, GREEN.to_rgba()); + assert_eq!(u, (0, 600)); + assert_eq!(d, (300, 1200)); + } + 3 => { + assert_eq!(c, WHITE.to_rgba()); + assert_eq!(u, (300, 600)); + assert_eq!(d, (1000, 1200)); + } + _ => panic!("Too many draw rect"), + } + + counter += 1; + }); + + m.drop_check(|b| { + assert_eq!(b.num_draw_rect_call, 4); + assert_eq!(b.draw_count, 4); + }); + }); + + let split = + drawing_area.split_by_breakpoints([(30).percent_width()], [(50).percent_height()]); + + split[0].fill(&RED).unwrap(); + split[1].fill(&BLUE).unwrap(); + split[2].fill(&GREEN).unwrap(); + split[3].fill(&WHITE).unwrap(); + } + + #[test] + fn test_relative_shrink() { + let drawing_area = create_mocked_drawing_area(1000, 1200, |m| { + m.check_draw_rect(move |_, _, _, u, d| { + assert_eq!((100, 100), u); + assert_eq!((300, 700), d); + }); + + m.drop_check(|b| { + assert_eq!(b.num_draw_rect_call, 1); + assert_eq!(b.draw_count, 1); + }); + }) + .shrink(((10).percent_width(), 100), (200, (50).percent_height())); + + drawing_area.fill(&RED).unwrap(); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/drawing/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/drawing/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..5c055fb8b84d2f6b826a6fc5c7e35b44f1bf820f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/drawing/mod.rs @@ -0,0 +1,18 @@ +/*! +The drawing utils for Plotters. In Plotters, we have two set of drawing APIs: low-level API and +high-level API. + +The low-level drawing abstraction, the module defines the `DrawingBackend` trait from the `plotters-backend` create. +It exposes a set of functions which allows basic shape, such as pixels, lines, rectangles, circles, to be drawn on the screen. +The low-level API uses the pixel based coordinate. + +The high-level API is built on the top of high-level API. The `DrawingArea` type exposes the high-level drawing API to the remaining part +of Plotters. The basic drawing blocks are composable elements, which can be defined in logic coordinate. To learn more details +about the [coordinate abstraction](../coord/index.html) and [element system](../element/index.html). +*/ +mod area; +mod backend_impl; + +pub use area::{DrawingArea, DrawingAreaErrorKind, IntoDrawingArea, Rect}; + +pub use backend_impl::*; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/basic_shapes.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/basic_shapes.rs new file mode 100644 index 0000000000000000000000000000000000000000..c43af47399beb618954529fe5f135bf7bd14c4a8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/basic_shapes.rs @@ -0,0 +1,630 @@ +use super::{Drawable, PointCollection}; +use crate::style::{Color, ShapeStyle, SizeDesc}; +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; + +#[inline] +fn to_i((x, y): (f32, f32)) -> (i32, i32) { + (x.round() as i32, y.round() as i32) +} + +#[inline] +fn to_f((x, y): (i32, i32)) -> (f32, f32) { + (x as f32, y as f32) +} + +/** +An element representing a single pixel. + +See [`crate::element::EmptyElement`] for more information and examples. +*/ +pub struct Pixel { + pos: Coord, + style: ShapeStyle, +} + +impl Pixel { + /** + Creates a new pixel. + + See [`crate::element::EmptyElement`] for more information and examples. + */ + pub fn new, S: Into>(pos: P, style: S) -> Self { + Self { + pos: pos.into(), + style: style.into(), + } + } +} + +impl<'a, Coord> PointCollection<'a, Coord> for &'a Pixel { + type Point = &'a Coord; + type IntoIter = std::iter::Once<&'a Coord>; + fn point_iter(self) -> Self::IntoIter { + std::iter::once(&self.pos) + } +} + +impl Drawable for Pixel { + fn draw>( + &self, + mut points: I, + backend: &mut DB, + _: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + if let Some((x, y)) = points.next() { + return backend.draw_pixel((x, y), self.style.color.to_backend_color()); + } + Ok(()) + } +} + +#[cfg(test)] +#[test] +fn test_pixel_element() { + use crate::prelude::*; + let da = crate::create_mocked_drawing_area(300, 300, |m| { + m.check_draw_pixel(|c, (x, y)| { + assert_eq!(x, 150); + assert_eq!(y, 152); + assert_eq!(c, RED.to_rgba()); + }); + + m.drop_check(|b| { + assert_eq!(b.num_draw_pixel_call, 1); + assert_eq!(b.draw_count, 1); + }); + }); + da.draw(&Pixel::new((150, 152), RED)) + .expect("Drawing Failure"); +} + +/// This is a deprecated type. Please use new name [`PathElement`] instead. +#[deprecated(note = "Use new name PathElement instead")] +pub type Path = PathElement; + +/// An element of a series of connected lines +pub struct PathElement { + points: Vec, + style: ShapeStyle, +} +impl PathElement { + /// Create a new path + /// - `points`: The iterator of the points + /// - `style`: The shape style + /// - returns the created element + pub fn new>, S: Into>(points: P, style: S) -> Self { + Self { + points: points.into(), + style: style.into(), + } + } +} + +impl<'a, Coord> PointCollection<'a, Coord> for &'a PathElement { + type Point = &'a Coord; + type IntoIter = &'a [Coord]; + fn point_iter(self) -> &'a [Coord] { + &self.points + } +} + +impl Drawable for PathElement { + fn draw>( + &self, + points: I, + backend: &mut DB, + _: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + backend.draw_path(points, &self.style) + } +} + +#[cfg(test)] +#[test] +fn test_path_element() { + use crate::prelude::*; + let da = crate::create_mocked_drawing_area(300, 300, |m| { + m.check_draw_path(|c, s, path| { + assert_eq!(c, BLUE.to_rgba()); + assert_eq!(s, 5); + assert_eq!(path, vec![(100, 101), (105, 107), (150, 157)]); + }); + m.drop_check(|b| { + assert_eq!(b.num_draw_path_call, 1); + assert_eq!(b.draw_count, 1); + }); + }); + da.draw(&PathElement::new( + vec![(100, 101), (105, 107), (150, 157)], + Into::::into(BLUE).stroke_width(5), + )) + .expect("Drawing Failure"); +} + +/// An element of a series of connected lines in dash style. +/// +/// It's similar to [`PathElement`] but has a dash style. +pub struct DashedPathElement { + points: I, + size: Size, + spacing: Size, + style: ShapeStyle, +} + +impl DashedPathElement { + /// Create a new path + /// - `points`: The iterator of the points + /// - `size`: The dash size + /// - `spacing`: The dash-to-dash spacing (gap size) + /// - `style`: The shape style + /// - returns the created element + pub fn new(points: I0, size: Size, spacing: Size, style: S) -> Self + where + I0: IntoIterator, + S: Into, + { + Self { + points: points.into_iter(), + size, + spacing, + style: style.into(), + } + } +} + +impl<'a, I: Iterator + Clone, Size: SizeDesc> PointCollection<'a, I::Item> + for &'a DashedPathElement +{ + type Point = I::Item; + type IntoIter = I; + fn point_iter(self) -> Self::IntoIter { + self.points.clone() + } +} + +impl Drawable + for DashedPathElement +{ + fn draw>( + &self, + mut points: I, + backend: &mut DB, + ps: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + let mut start = match points.next() { + Some(c) => to_f(c), + None => return Ok(()), + }; + let size = self.size.in_pixels(&ps).max(0) as f32; + if size == 0. { + return Ok(()); + } + let spacing = self.spacing.in_pixels(&ps).max(0) as f32; + let mut dist = 0.; + let mut is_solid = true; + let mut queue = vec![to_i(start)]; + for curr in points { + let end = to_f(curr); + // Loop for solid and spacing + while start != end { + let (dx, dy) = (end.0 - start.0, end.1 - start.1); + let d = dx.hypot(dy); + let size = if is_solid { size } else { spacing }; + let left = size - dist; + // Set next point to `start` + if left < d { + let t = left / d; + start = (start.0 + dx * t, start.1 + dy * t); + dist += left; + } else { + start = end; + dist += d; + } + // Draw if needed + if is_solid { + queue.push(to_i(start)); + } + if size <= dist { + if is_solid { + backend.draw_path(queue.drain(..), &self.style)?; + } else { + queue.push(to_i(start)); + } + dist = 0.; + is_solid = !is_solid; + } + } + } + if queue.len() > 1 { + backend.draw_path(queue, &self.style)?; + } + Ok(()) + } +} + +#[cfg(test)] +#[test] +fn test_dashed_path_element() { + use crate::prelude::*; + let check_list = std::cell::RefCell::new(vec![ + vec![(100, 100), (100, 103), (100, 105)], + vec![(100, 107), (100, 112)], + vec![(100, 114), (100, 119)], + vec![(100, 119), (100, 120)], + ]); + let da = crate::create_mocked_drawing_area(300, 300, |m| { + m.check_draw_path(move |c, s, path| { + assert_eq!(c, BLUE.to_rgba()); + assert_eq!(s, 7); + assert_eq!(path, check_list.borrow_mut().remove(0)); + }); + m.drop_check(|b| { + assert_eq!(b.num_draw_path_call, 3); + assert_eq!(b.draw_count, 3); + }); + }); + da.draw(&DashedPathElement::new( + vec![(100, 100), (100, 103), (100, 120)], + 5., + 2., + BLUE.stroke_width(7), + )) + .expect("Drawing Failure"); +} + +/// An element of a series of connected lines in dot style for any markers. +/// +/// It's similar to [`PathElement`] but use a marker function to draw markers with spacing. +pub struct DottedPathElement { + points: I, + shift: Size, + spacing: Size, + func: Box Marker>, +} + +impl DottedPathElement { + /// Create a new path + /// - `points`: The iterator of the points + /// - `shift`: The shift of the first marker + /// - `spacing`: The spacing between markers + /// - `func`: The marker function + /// - returns the created element + pub fn new(points: I0, shift: Size, spacing: Size, func: F) -> Self + where + I0: IntoIterator, + F: Fn(BackendCoord) -> Marker + 'static, + { + Self { + points: points.into_iter(), + shift, + spacing, + func: Box::new(func), + } + } +} + +impl<'a, I: Iterator + Clone, Size: SizeDesc, Marker> PointCollection<'a, I::Item> + for &'a DottedPathElement +{ + type Point = I::Item; + type IntoIter = I; + fn point_iter(self) -> Self::IntoIter { + self.points.clone() + } +} + +impl Drawable for DottedPathElement +where + I0: Iterator + Clone, + Size: SizeDesc, + DB: DrawingBackend, + Marker: crate::element::IntoDynElement<'static, DB, BackendCoord>, +{ + fn draw>( + &self, + mut points: I, + backend: &mut DB, + ps: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + let mut shift = self.shift.in_pixels(&ps).max(0) as f32; + let mut start = match points.next() { + Some(start_i) => { + // Draw the first marker if no shift + if shift == 0. { + let mk = (self.func)(start_i).into_dyn(); + mk.draw(mk.point_iter().iter().copied(), backend, ps)?; + } + to_f(start_i) + } + None => return Ok(()), + }; + let spacing = self.spacing.in_pixels(&ps).max(0) as f32; + let mut dist = 0.; + for curr in points { + let end = to_f(curr); + // Loop for spacing + while start != end { + let (dx, dy) = (end.0 - start.0, end.1 - start.1); + let d = dx.hypot(dy); + let spacing = if shift == 0. { spacing } else { shift }; + let left = spacing - dist; + // Set next point to `start` + if left < d { + let t = left / d; + start = (start.0 + dx * t, start.1 + dy * t); + dist += left; + } else { + start = end; + dist += d; + } + // Draw if needed + if spacing <= dist { + let mk = (self.func)(to_i(start)).into_dyn(); + mk.draw(mk.point_iter().iter().copied(), backend, ps)?; + shift = 0.; + dist = 0.; + } + } + } + Ok(()) + } +} + +#[cfg(test)] +#[test] +fn test_dotted_path_element() { + use crate::prelude::*; + let da = crate::create_mocked_drawing_area(300, 300, |m| { + m.drop_check(|b| { + assert_eq!(b.num_draw_path_call, 0); + assert_eq!(b.draw_count, 7); + }); + }); + da.draw(&DottedPathElement::new( + vec![(100, 100), (105, 105), (150, 150)], + 5, + 10, + |c| Circle::new(c, 5, Into::::into(RED).filled()), + )) + .expect("Drawing Failure"); +} + +/// A rectangle element +pub struct Rectangle { + points: [Coord; 2], + style: ShapeStyle, + margin: (u32, u32, u32, u32), +} + +impl Rectangle { + /// Create a new path + /// - `points`: The left upper and right lower corner of the rectangle + /// - `style`: The shape style + /// - returns the created element + pub fn new>(points: [Coord; 2], style: S) -> Self { + Self { + points, + style: style.into(), + margin: (0, 0, 0, 0), + } + } + + /// Set the margin of the rectangle + /// - `t`: The top margin + /// - `b`: The bottom margin + /// - `l`: The left margin + /// - `r`: The right margin + pub fn set_margin(&mut self, t: u32, b: u32, l: u32, r: u32) -> &mut Self { + self.margin = (t, b, l, r); + self + } + + /// Get the points of the rectangle + /// - returns the element points + pub fn get_points(&self) -> (&Coord, &Coord) { + (&self.points[0], &self.points[1]) + } + + /// Set the style of the rectangle + /// - `style`: The shape style + /// - returns a mut reference to the rectangle + pub fn set_style>(&mut self, style: S) -> &mut Self { + self.style = style.into(); + self + } +} + +impl<'a, Coord> PointCollection<'a, Coord> for &'a Rectangle { + type Point = &'a Coord; + type IntoIter = &'a [Coord]; + fn point_iter(self) -> &'a [Coord] { + &self.points + } +} + +impl Drawable for Rectangle { + fn draw>( + &self, + mut points: I, + backend: &mut DB, + _: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + match (points.next(), points.next()) { + (Some(a), Some(b)) => { + let (mut a, mut b) = ((a.0.min(b.0), a.1.min(b.1)), (a.0.max(b.0), a.1.max(b.1))); + a.1 += self.margin.0 as i32; + b.1 -= self.margin.1 as i32; + a.0 += self.margin.2 as i32; + b.0 -= self.margin.3 as i32; + backend.draw_rect(a, b, &self.style, self.style.filled) + } + _ => Ok(()), + } + } +} + +#[cfg(test)] +#[test] +fn test_rect_element() { + use crate::prelude::*; + { + let da = crate::create_mocked_drawing_area(300, 300, |m| { + m.check_draw_rect(|c, s, f, u, d| { + assert_eq!(c, BLUE.to_rgba()); + assert!(!f); + assert_eq!(s, 5); + assert_eq!([u, d], [(100, 101), (105, 107)]); + }); + m.drop_check(|b| { + assert_eq!(b.num_draw_rect_call, 1); + assert_eq!(b.draw_count, 1); + }); + }); + da.draw(&Rectangle::new( + [(100, 101), (105, 107)], + Color::stroke_width(&BLUE, 5), + )) + .expect("Drawing Failure"); + } + + { + let da = crate::create_mocked_drawing_area(300, 300, |m| { + m.check_draw_rect(|c, _, f, u, d| { + assert_eq!(c, BLUE.to_rgba()); + assert!(f); + assert_eq!([u, d], [(100, 101), (105, 107)]); + }); + m.drop_check(|b| { + assert_eq!(b.num_draw_rect_call, 1); + assert_eq!(b.draw_count, 1); + }); + }); + da.draw(&Rectangle::new([(100, 101), (105, 107)], BLUE.filled())) + .expect("Drawing Failure"); + } +} + +/// A circle element +pub struct Circle { + center: Coord, + size: Size, + style: ShapeStyle, +} + +impl Circle { + /// Create a new circle element + /// - `coord` The center of the circle + /// - `size` The radius of the circle + /// - `style` The style of the circle + /// - Return: The newly created circle element + pub fn new>(coord: Coord, size: Size, style: S) -> Self { + Self { + center: coord, + size, + style: style.into(), + } + } +} + +impl<'a, Coord, Size: SizeDesc> PointCollection<'a, Coord> for &'a Circle { + type Point = &'a Coord; + type IntoIter = std::iter::Once<&'a Coord>; + fn point_iter(self) -> std::iter::Once<&'a Coord> { + std::iter::once(&self.center) + } +} + +impl Drawable for Circle { + fn draw>( + &self, + mut points: I, + backend: &mut DB, + ps: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + if let Some((x, y)) = points.next() { + let size = self.size.in_pixels(&ps).max(0) as u32; + return backend.draw_circle((x, y), size, &self.style, self.style.filled); + } + Ok(()) + } +} + +#[cfg(test)] +#[test] +fn test_circle_element() { + use crate::prelude::*; + let da = crate::create_mocked_drawing_area(300, 300, |m| { + m.check_draw_circle(|c, _, f, s, r| { + assert_eq!(c, BLUE.to_rgba()); + assert!(!f); + assert_eq!(s, (150, 151)); + assert_eq!(r, 20); + }); + m.drop_check(|b| { + assert_eq!(b.num_draw_circle_call, 1); + assert_eq!(b.draw_count, 1); + }); + }); + da.draw(&Circle::new((150, 151), 20, BLUE)) + .expect("Drawing Failure"); +} + +/// An element of a filled polygon +pub struct Polygon { + points: Vec, + style: ShapeStyle, +} +impl Polygon { + /// Create a new polygon + /// - `points`: The iterator of the points + /// - `style`: The shape style + /// - returns the created element + pub fn new>, S: Into>(points: P, style: S) -> Self { + Self { + points: points.into(), + style: style.into(), + } + } +} + +impl<'a, Coord> PointCollection<'a, Coord> for &'a Polygon { + type Point = &'a Coord; + type IntoIter = &'a [Coord]; + fn point_iter(self) -> &'a [Coord] { + &self.points + } +} + +impl Drawable for Polygon { + fn draw>( + &self, + points: I, + backend: &mut DB, + _: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + backend.fill_polygon(points, &self.style.color.to_backend_color()) + } +} + +#[cfg(test)] +#[test] +fn test_polygon_element() { + use crate::prelude::*; + let points = vec![(100, 100), (50, 500), (300, 400), (200, 300), (550, 200)]; + let expected_points = points.clone(); + + let da = crate::create_mocked_drawing_area(800, 800, |m| { + m.check_fill_polygon(move |c, p| { + assert_eq!(c, BLUE.to_rgba()); + assert_eq!(expected_points.len(), p.len()); + assert_eq!(expected_points, p); + }); + m.drop_check(|b| { + assert_eq!(b.num_fill_polygon_call, 1); + assert_eq!(b.draw_count, 1); + }); + }); + + da.draw(&Polygon::new(points.clone(), BLUE)) + .expect("Drawing Failure"); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/basic_shapes_3d.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/basic_shapes_3d.rs new file mode 100644 index 0000000000000000000000000000000000000000..97b15e62dd924a09c0b84ec0e045e0ac9f7b1d35 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/basic_shapes_3d.rs @@ -0,0 +1,108 @@ +use super::{BackendCoordAndZ, Drawable, PointCollection}; +use crate::style::ShapeStyle; +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; + +/** +Represents a cuboid, a six-faced solid. + +# Examples + +``` +use plotters::prelude::*; +let drawing_area = SVGBackend::new("cuboid.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(20).build_cartesian_3d(0.0..3.5, 0.0..2.5, 0.0..1.5).unwrap(); +chart_context.configure_axes().x_labels(4).y_labels(3).z_labels(2).draw().unwrap(); +let cubiod = Cubiod::new([(0.,0.,0.), (3.,2.,1.)], BLUE.mix(0.2), BLUE); +chart_context.draw_series(std::iter::once(cubiod)).unwrap(); +``` + +The result is a semi-transparent cuboid with blue edges: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@b6703f7/apidoc/cuboid.svg) +*/ +pub struct Cubiod { + face_style: ShapeStyle, + edge_style: ShapeStyle, + vert: [(X, Y, Z); 8], +} + +impl Cubiod { + /** + Creates a cuboid. + + See [`Cubiod`] for more information and examples. + */ + #[allow(clippy::redundant_clone)] + pub fn new, ES: Into>( + [(x0, y0, z0), (x1, y1, z1)]: [(X, Y, Z); 2], + face_style: FS, + edge_style: ES, + ) -> Self { + Self { + face_style: face_style.into(), + edge_style: edge_style.into(), + vert: [ + (x0.clone(), y0.clone(), z0.clone()), + (x0.clone(), y0.clone(), z1.clone()), + (x0.clone(), y1.clone(), z0.clone()), + (x0.clone(), y1.clone(), z1.clone()), + (x1.clone(), y0.clone(), z0.clone()), + (x1.clone(), y0.clone(), z1.clone()), + (x1.clone(), y1.clone(), z0.clone()), + (x1.clone(), y1.clone(), z1.clone()), + ], + } + } +} + +impl<'a, X: 'a, Y: 'a, Z: 'a> PointCollection<'a, (X, Y, Z), BackendCoordAndZ> + for &'a Cubiod +{ + type Point = &'a (X, Y, Z); + type IntoIter = &'a [(X, Y, Z)]; + fn point_iter(self) -> Self::IntoIter { + &self.vert + } +} + +impl Drawable for Cubiod { + fn draw>( + &self, + points: I, + backend: &mut DB, + _: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + let vert: Vec<_> = points.collect(); + let mut polygon = vec![]; + for mask in [1, 2, 4].iter().cloned() { + let mask_a = if mask == 4 { 1 } else { mask * 2 }; + let mask_b = if mask == 1 { 4 } else { mask / 2 }; + let a = 0; + let b = a | mask_a; + let c = a | mask_a | mask_b; + let d = a | mask_b; + polygon.push([vert[a], vert[b], vert[c], vert[d]]); + polygon.push([ + vert[a | mask], + vert[b | mask], + vert[c | mask], + vert[d | mask], + ]); + } + polygon.sort_by_cached_key(|t| std::cmp::Reverse(t[0].1 + t[1].1 + t[2].1 + t[3].1)); + + for p in polygon { + backend.fill_polygon(p.iter().map(|(coord, _)| *coord), &self.face_style)?; + backend.draw_path( + p.iter() + .map(|(coord, _)| *coord) + .chain(std::iter::once(p[0].0)), + &self.edge_style, + )?; + } + + Ok(()) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/boxplot.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/boxplot.rs new file mode 100644 index 0000000000000000000000000000000000000000..2ba20e3c3771d5ed84abd9cb273e42f713d49cb8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/boxplot.rs @@ -0,0 +1,288 @@ +use std::marker::PhantomData; + +use crate::data::Quartiles; +use crate::element::{Drawable, PointCollection}; +use crate::style::{Color, ShapeStyle, BLACK}; +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; + +/// The boxplot orientation trait +pub trait BoxplotOrient { + type XType; + type YType; + + fn make_coord(key: K, val: V) -> (Self::XType, Self::YType); + fn with_offset(coord: BackendCoord, offset: f64) -> BackendCoord; +} + +/// The vertical boxplot phantom +pub struct BoxplotOrientV(PhantomData<(K, V)>); + +/// The horizontal boxplot phantom +pub struct BoxplotOrientH(PhantomData<(K, V)>); + +impl BoxplotOrient for BoxplotOrientV { + type XType = K; + type YType = V; + + fn make_coord(key: K, val: V) -> (K, V) { + (key, val) + } + + fn with_offset(coord: BackendCoord, offset: f64) -> BackendCoord { + (coord.0 + offset as i32, coord.1) + } +} + +impl BoxplotOrient for BoxplotOrientH { + type XType = V; + type YType = K; + + fn make_coord(key: K, val: V) -> (V, K) { + (val, key) + } + + fn with_offset(coord: BackendCoord, offset: f64) -> BackendCoord { + (coord.0, coord.1 + offset as i32) + } +} + +const DEFAULT_WIDTH: u32 = 10; + +/// The boxplot element +pub struct Boxplot> { + style: ShapeStyle, + width: u32, + whisker_width: f64, + offset: f64, + key: K, + values: [f32; 5], + _p: PhantomData, +} + +impl Boxplot> { + /// Create a new vertical boxplot element. + /// + /// - `key`: The key (the X axis value) + /// - `quartiles`: The quartiles values for the Y axis + /// - **returns** The newly created boxplot element + /// + /// ```rust + /// use plotters::prelude::*; + /// + /// let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); + /// let plot = Boxplot::new_vertical("group", &quartiles); + /// ``` + pub fn new_vertical(key: K, quartiles: &Quartiles) -> Self { + Self { + style: Into::::into(BLACK), + width: DEFAULT_WIDTH, + whisker_width: 1.0, + offset: 0.0, + key, + values: quartiles.values(), + _p: PhantomData, + } + } +} + +impl Boxplot> { + /// Create a new horizontal boxplot element. + /// + /// - `key`: The key (the Y axis value) + /// - `quartiles`: The quartiles values for the X axis + /// - **returns** The newly created boxplot element + /// + /// ```rust + /// use plotters::prelude::*; + /// + /// let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); + /// let plot = Boxplot::new_horizontal("group", &quartiles); + /// ``` + pub fn new_horizontal(key: K, quartiles: &Quartiles) -> Self { + Self { + style: Into::::into(BLACK), + width: DEFAULT_WIDTH, + whisker_width: 1.0, + offset: 0.0, + key, + values: quartiles.values(), + _p: PhantomData, + } + } +} + +impl> Boxplot { + /// Set the style of the boxplot. + /// + /// - `S`: The required style + /// - **returns** The up-to-dated boxplot element + /// + /// ```rust + /// use plotters::prelude::*; + /// + /// let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); + /// let plot = Boxplot::new_horizontal("group", &quartiles).style(&BLUE); + /// ``` + pub fn style>(mut self, style: S) -> Self { + self.style = style.into(); + self + } + + /// Set the bar width. + /// + /// - `width`: The required width + /// - **returns** The up-to-dated boxplot element + /// + /// ```rust + /// use plotters::prelude::*; + /// + /// let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); + /// let plot = Boxplot::new_horizontal("group", &quartiles).width(10); + /// ``` + pub fn width(mut self, width: u32) -> Self { + self.width = width; + self + } + + /// Set the width of the whiskers as a fraction of the bar width. + /// + /// - `whisker_width`: The required fraction + /// - **returns** The up-to-dated boxplot element + /// + /// ```rust + /// use plotters::prelude::*; + /// + /// let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); + /// let plot = Boxplot::new_horizontal("group", &quartiles).whisker_width(0.5); + /// ``` + pub fn whisker_width(mut self, whisker_width: f64) -> Self { + self.whisker_width = whisker_width; + self + } + + /// Set the element offset on the key axis. + /// + /// - `offset`: The required offset (on the X axis for vertical, on the Y axis for horizontal) + /// - **returns** The up-to-dated boxplot element + /// + /// ```rust + /// use plotters::prelude::*; + /// + /// let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); + /// let plot = Boxplot::new_horizontal("group", &quartiles).offset(-5); + /// ``` + pub fn offset + Copy>(mut self, offset: T) -> Self { + self.offset = offset.into(); + self + } +} + +impl<'a, K: Clone, O: BoxplotOrient> PointCollection<'a, (O::XType, O::YType)> + for &'a Boxplot +{ + type Point = (O::XType, O::YType); + type IntoIter = Vec; + fn point_iter(self) -> Self::IntoIter { + self.values + .iter() + .map(|v| O::make_coord(self.key.clone(), *v)) + .collect() + } +} + +impl> Drawable for Boxplot { + fn draw>( + &self, + points: I, + backend: &mut DB, + _: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + let points: Vec<_> = points.take(5).collect(); + if points.len() == 5 { + let width = f64::from(self.width); + let moved = |coord| O::with_offset(coord, self.offset); + let start_bar = |coord| O::with_offset(moved(coord), -width / 2.0); + let end_bar = |coord| O::with_offset(moved(coord), width / 2.0); + let start_whisker = + |coord| O::with_offset(moved(coord), -width * self.whisker_width / 2.0); + let end_whisker = + |coord| O::with_offset(moved(coord), width * self.whisker_width / 2.0); + + // |---[ | ]----| + // ^________________ + backend.draw_line( + start_whisker(points[0]), + end_whisker(points[0]), + &self.style, + )?; + + // |---[ | ]----| + // _^^^_____________ + + backend.draw_line( + moved(points[0]), + moved(points[1]), + &self.style.color.to_backend_color(), + )?; + + // |---[ | ]----| + // ____^______^_____ + let corner1 = start_bar(points[3]); + let corner2 = end_bar(points[1]); + let upper_left = (corner1.0.min(corner2.0), corner1.1.min(corner2.1)); + let bottom_right = (corner1.0.max(corner2.0), corner1.1.max(corner2.1)); + backend.draw_rect(upper_left, bottom_right, &self.style, false)?; + + // |---[ | ]----| + // ________^________ + backend.draw_line(start_bar(points[2]), end_bar(points[2]), &self.style)?; + + // |---[ | ]----| + // ____________^^^^_ + backend.draw_line(moved(points[3]), moved(points[4]), &self.style)?; + + // |---[ | ]----| + // ________________^ + backend.draw_line( + start_whisker(points[4]), + end_whisker(points[4]), + &self.style, + )?; + } + Ok(()) + } +} + +#[cfg(test)] +mod test { + use super::*; + use crate::prelude::*; + + #[test] + fn test_draw_v() { + let root = MockedBackend::new(1024, 768).into_drawing_area(); + let chart = ChartBuilder::on(&root) + .build_cartesian_2d(0..2, 0f32..100f32) + .unwrap(); + + let values = Quartiles::new(&[6]); + assert!(chart + .plotting_area() + .draw(&Boxplot::new_vertical(1, &values)) + .is_ok()); + } + + #[test] + fn test_draw_h() { + let root = MockedBackend::new(1024, 768).into_drawing_area(); + let chart = ChartBuilder::on(&root) + .build_cartesian_2d(0f32..100f32, 0..2) + .unwrap(); + + let values = Quartiles::new(&[6]); + assert!(chart + .plotting_area() + .draw(&Boxplot::new_horizontal(1, &values)) + .is_ok()); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/candlestick.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/candlestick.rs new file mode 100644 index 0000000000000000000000000000000000000000..e28645431d8d8b62f272ec036f1996646e2afc62 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/candlestick.rs @@ -0,0 +1,100 @@ +/*! + The candlestick element, which showing the high/low/open/close price +*/ + +use std::cmp::Ordering; + +use crate::element::{Drawable, PointCollection}; +use crate::style::ShapeStyle; +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; + +/// The candlestick data point element +pub struct CandleStick { + style: ShapeStyle, + width: u32, + points: [(X, Y); 4], +} + +impl CandleStick { + /// Create a new candlestick element, which requires the Y coordinate can be compared + /// + /// - `x`: The x coordinate + /// - `open`: The open value + /// - `high`: The high value + /// - `low`: The low value + /// - `close`: The close value + /// - `gain_style`: The style for gain + /// - `loss_style`: The style for loss + /// - `width`: The width + /// - **returns** The newly created candlestick element + /// + /// ```rust + /// use chrono::prelude::*; + /// use plotters::prelude::*; + /// + /// let candlestick = CandleStick::new(Local::now(), 130.0600, 131.3700, 128.8300, 129.1500, &GREEN, &RED, 15); + /// ``` + #[allow(clippy::too_many_arguments)] + pub fn new, LS: Into>( + x: X, + open: Y, + high: Y, + low: Y, + close: Y, + gain_style: GS, + loss_style: LS, + width: u32, + ) -> Self { + Self { + style: match open.partial_cmp(&close) { + Some(Ordering::Less) => gain_style.into(), + _ => loss_style.into(), + }, + width, + points: [ + (x.clone(), open), + (x.clone(), high), + (x.clone(), low), + (x, close), + ], + } + } +} + +impl<'a, X: 'a, Y: PartialOrd + 'a> PointCollection<'a, (X, Y)> for &'a CandleStick { + type Point = &'a (X, Y); + type IntoIter = &'a [(X, Y)]; + fn point_iter(self) -> &'a [(X, Y)] { + &self.points + } +} + +impl Drawable for CandleStick { + fn draw>( + &self, + points: I, + backend: &mut DB, + _: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + let mut points: Vec<_> = points.take(4).collect(); + if points.len() == 4 { + let fill = self.style.filled; + if points[0].1 > points[3].1 { + points.swap(0, 3); + } + let (l, r) = ( + self.width as i32 / 2, + self.width as i32 - self.width as i32 / 2, + ); + + backend.draw_line(points[0], points[1], &self.style)?; + backend.draw_line(points[2], points[3], &self.style)?; + + points[0].0 -= l; + points[3].0 += r; + + backend.draw_rect(points[0], points[3], &self.style, fill)?; + } + Ok(()) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/composable.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/composable.rs new file mode 100644 index 0000000000000000000000000000000000000000..d79c505c8ab9d2480d9538a9d41c3cda8cd280f3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/composable.rs @@ -0,0 +1,242 @@ +use super::*; +use plotters_backend::DrawingBackend; +use std::borrow::Borrow; +use std::iter::{once, Once}; +use std::marker::PhantomData; +use std::ops::Add; + +/** +An empty composable element. This is the starting point of a composed element. + +# Example + +``` +use plotters::prelude::*; +let data = [(1.0, 3.3), (2., 2.1), (3., 1.5), (4., 1.9), (5., 1.0)]; +let drawing_area = SVGBackend::new("composable.svg", (300, 200)).into_drawing_area(); +drawing_area.fill(&WHITE).unwrap(); +let mut chart_builder = ChartBuilder::on(&drawing_area); +chart_builder.margin(7).set_left_and_bottom_label_area_size(20); +let mut chart_context = chart_builder.build_cartesian_2d(0.0..5.5, 0.0..5.5).unwrap(); +chart_context.configure_mesh().draw().unwrap(); +chart_context.draw_series(data.map(|(x, y)| { + EmptyElement::at((x, y)) // Use the guest coordinate system with EmptyElement + + Circle::new((0, 0), 10, BLUE) // Use backend coordinates with the rest + + Cross::new((4, 4), 3, RED) + + Pixel::new((4, -4), RED) + + TriangleMarker::new((-4, -4), 4, RED) +})).unwrap(); +``` + +The result is a data series where each point consists of a circle, a cross, a pixel, and a triangle: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@06d370f/apidoc/composable.svg) + +*/ +pub struct EmptyElement { + coord: Coord, + phantom: PhantomData, +} + +impl EmptyElement { + /** + An empty composable element. This is the starting point of a composed element. + + See [`EmptyElement`] for more information and examples. + */ + pub fn at(coord: Coord) -> Self { + Self { + coord, + phantom: PhantomData, + } + } +} + +impl Add for EmptyElement +where + Other: Drawable, + for<'a> &'a Other: PointCollection<'a, BackendCoord>, +{ + type Output = BoxedElement; + fn add(self, other: Other) -> Self::Output { + BoxedElement { + offset: self.coord, + inner: other, + phantom: PhantomData, + } + } +} + +impl<'a, Coord, DB: DrawingBackend> PointCollection<'a, Coord> for &'a EmptyElement { + type Point = &'a Coord; + type IntoIter = Once<&'a Coord>; + fn point_iter(self) -> Self::IntoIter { + once(&self.coord) + } +} + +impl Drawable for EmptyElement { + fn draw>( + &self, + _pos: I, + _backend: &mut DB, + _: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + Ok(()) + } +} + +/** +A container for one drawable element, used for composition. + +This is used internally by Plotters and should probably not be included in user code. +See [`EmptyElement`] for more information and examples. +*/ +pub struct BoxedElement> { + inner: A, + offset: Coord, + phantom: PhantomData, +} + +impl<'b, Coord, DB: DrawingBackend, A: Drawable> PointCollection<'b, Coord> + for &'b BoxedElement +{ + type Point = &'b Coord; + type IntoIter = Once<&'b Coord>; + fn point_iter(self) -> Self::IntoIter { + once(&self.offset) + } +} + +impl Drawable for BoxedElement +where + for<'a> &'a A: PointCollection<'a, BackendCoord>, + A: Drawable, +{ + fn draw>( + &self, + mut pos: I, + backend: &mut DB, + ps: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + if let Some((x0, y0)) = pos.next() { + self.inner.draw( + self.inner.point_iter().into_iter().map(|p| { + let p = p.borrow(); + (p.0 + x0, p.1 + y0) + }), + backend, + ps, + )?; + } + Ok(()) + } +} + +impl Add for BoxedElement +where + My: Drawable, + for<'a> &'a My: PointCollection<'a, BackendCoord>, + Yours: Drawable, + for<'a> &'a Yours: PointCollection<'a, BackendCoord>, +{ + type Output = ComposedElement; + fn add(self, yours: Yours) -> Self::Output { + ComposedElement { + offset: self.offset, + first: self.inner, + second: yours, + phantom: PhantomData, + } + } +} + +/** +A container for two drawable elements, used for composition. + +This is used internally by Plotters and should probably not be included in user code. +See [`EmptyElement`] for more information and examples. +*/ +pub struct ComposedElement +where + A: Drawable, + B: Drawable, +{ + first: A, + second: B, + offset: Coord, + phantom: PhantomData, +} + +impl<'b, Coord, DB: DrawingBackend, A, B> PointCollection<'b, Coord> + for &'b ComposedElement +where + A: Drawable, + B: Drawable, +{ + type Point = &'b Coord; + type IntoIter = Once<&'b Coord>; + fn point_iter(self) -> Self::IntoIter { + once(&self.offset) + } +} + +impl Drawable for ComposedElement +where + for<'a> &'a A: PointCollection<'a, BackendCoord>, + for<'b> &'b B: PointCollection<'b, BackendCoord>, + A: Drawable, + B: Drawable, +{ + fn draw>( + &self, + mut pos: I, + backend: &mut DB, + ps: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + if let Some((x0, y0)) = pos.next() { + self.first.draw( + self.first.point_iter().into_iter().map(|p| { + let p = p.borrow(); + (p.0 + x0, p.1 + y0) + }), + backend, + ps, + )?; + self.second.draw( + self.second.point_iter().into_iter().map(|p| { + let p = p.borrow(); + (p.0 + x0, p.1 + y0) + }), + backend, + ps, + )?; + } + Ok(()) + } +} + +impl Add for ComposedElement +where + A: Drawable, + for<'a> &'a A: PointCollection<'a, BackendCoord>, + B: Drawable, + for<'a> &'a B: PointCollection<'a, BackendCoord>, + C: Drawable, + for<'a> &'a C: PointCollection<'a, BackendCoord>, +{ + type Output = ComposedElement>; + fn add(self, rhs: C) -> Self::Output { + ComposedElement { + offset: self.offset, + first: self.first, + second: ComposedElement { + offset: (0, 0), + first: self.second, + second: rhs, + phantom: PhantomData, + }, + phantom: PhantomData, + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/dynelem.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/dynelem.rs new file mode 100644 index 0000000000000000000000000000000000000000..b2bd178ed9896f2cfe8993c7eff3003e3ba317e3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/dynelem.rs @@ -0,0 +1,84 @@ +use super::{Drawable, PointCollection}; +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; + +use std::borrow::Borrow; + +trait DynDrawable { + fn draw_dyn( + &self, + points: &mut dyn Iterator, + backend: &mut DB, + parent_dim: (u32, u32), + ) -> Result<(), DrawingErrorKind>; +} + +impl> DynDrawable for T { + fn draw_dyn( + &self, + points: &mut dyn Iterator, + backend: &mut DB, + parent_dim: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + T::draw(self, points, backend, parent_dim) + } +} + +/// The container for a dynamically dispatched element +pub struct DynElement<'a, DB, Coord> +where + DB: DrawingBackend, + Coord: Clone, +{ + points: Vec, + drawable: Box + 'a>, +} + +impl<'a, 'b: 'a, DB: DrawingBackend, Coord: Clone> PointCollection<'a, Coord> + for &'a DynElement<'b, DB, Coord> +{ + type Point = &'a Coord; + type IntoIter = &'a Vec; + fn point_iter(self) -> Self::IntoIter { + &self.points + } +} + +impl<'a, DB: DrawingBackend, Coord: Clone> Drawable for DynElement<'a, DB, Coord> { + fn draw>( + &self, + mut pos: I, + backend: &mut DB, + parent_dim: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + self.drawable.draw_dyn(&mut pos, backend, parent_dim) + } +} + +/// The trait that makes the conversion from the statically dispatched element +/// to the dynamically dispatched element +pub trait IntoDynElement<'a, DB: DrawingBackend, Coord: Clone> +where + Self: 'a, +{ + /// Make the conversion + fn into_dyn(self) -> DynElement<'a, DB, Coord>; +} + +impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for T +where + T: Drawable + 'b, + for<'a> &'a T: PointCollection<'a, Coord>, + Coord: Clone, + DB: DrawingBackend, +{ + fn into_dyn(self) -> DynElement<'b, DB, Coord> { + DynElement { + points: self + .point_iter() + .into_iter() + .map(|x| x.borrow().clone()) + .collect(), + drawable: Box::new(self), + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/errorbar.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/errorbar.rs new file mode 100644 index 0000000000000000000000000000000000000000..4e0acf78dd2a84cc88324c7e441e31704c6eb81c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/errorbar.rs @@ -0,0 +1,223 @@ +use std::marker::PhantomData; + +use crate::element::{Drawable, PointCollection}; +use crate::style::ShapeStyle; +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; + +/** +Used to reuse code between horizontal and vertical error bars. + +This is used internally by Plotters and should probably not be included in user code. +See [`ErrorBar`] for more information and examples. +*/ +pub trait ErrorBarOrient { + type XType; + type YType; + + fn make_coord(key: K, val: V) -> (Self::XType, Self::YType); + fn ending_coord(coord: BackendCoord, w: u32) -> (BackendCoord, BackendCoord); +} + +/** +Used for the production of horizontal error bars. + +This is used internally by Plotters and should probably not be included in user code. +See [`ErrorBar`] for more information and examples. +*/ +pub struct ErrorBarOrientH(PhantomData<(K, V)>); + +/** +Used for the production of vertical error bars. + +This is used internally by Plotters and should probably not be included in user code. +See [`ErrorBar`] for more information and examples. +*/ +pub struct ErrorBarOrientV(PhantomData<(K, V)>); + +impl ErrorBarOrient for ErrorBarOrientH { + type XType = V; + type YType = K; + + fn make_coord(key: K, val: V) -> (V, K) { + (val, key) + } + + fn ending_coord(coord: BackendCoord, w: u32) -> (BackendCoord, BackendCoord) { + ( + (coord.0, coord.1 - w as i32 / 2), + (coord.0, coord.1 + w as i32 / 2), + ) + } +} + +impl ErrorBarOrient for ErrorBarOrientV { + type XType = K; + type YType = V; + + fn make_coord(key: K, val: V) -> (K, V) { + (key, val) + } + + fn ending_coord(coord: BackendCoord, w: u32) -> (BackendCoord, BackendCoord) { + ( + (coord.0 - w as i32 / 2, coord.1), + (coord.0 + w as i32 / 2, coord.1), + ) + } +} + +/** +An error bar, which visualizes the minimum, average, and maximum of a dataset. + +Unlike [`crate::series::Histogram`], the `ErrorBar` code does not classify or aggregate data. +These operations must be done before building error bars. + +# Examples + +``` +use plotters::prelude::*; +let data = [(1.0, 3.3), (2., 2.1), (3., 1.5), (4., 1.9), (5., 1.0)]; +let drawing_area = SVGBackend::new("error_bars_vertical.svg", (300, 200)).into_drawing_area(); +drawing_area.fill(&WHITE).unwrap(); +let mut chart_builder = ChartBuilder::on(&drawing_area); +chart_builder.margin(10).set_left_and_bottom_label_area_size(20); +let mut chart_context = chart_builder.build_cartesian_2d(0.0..6.0, 0.0..6.0).unwrap(); +chart_context.configure_mesh().draw().unwrap(); +chart_context.draw_series(data.map(|(x, y)| { + ErrorBar::new_vertical(x, y - 0.4, y, y + 0.3, BLUE.filled(), 10) +})).unwrap(); +chart_context.draw_series(data.map(|(x, y)| { + ErrorBar::new_vertical(x, y + 1.0, y + 1.9, y + 2.4, RED, 10) +})).unwrap(); +``` + +This code produces two series of five error bars each, showing minima, maxima, and average values: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@06d370f/apidoc/error_bars_vertical.svg) + +[`ErrorBar::new_vertical()`] is used to create vertical error bars. Here is an example using +[`ErrorBar::new_horizontal()`] instead: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@06d370f/apidoc/error_bars_horizontal.svg) +*/ +pub struct ErrorBar> { + style: ShapeStyle, + width: u32, + key: K, + values: [V; 3], + _p: PhantomData, +} + +impl ErrorBar> { + /** + Creates a vertical error bar. + ` + - `key`: Horizontal position of the bar + - `min`: Minimum of the data + - `avg`: Average of the data + - `max`: Maximum of the data + - `style`: Color, transparency, and fill of the error bar. See [`ShapeStyle`] for more information and examples. + - `width`: Width of the error marks in backend coordinates. + + See [`ErrorBar`] for more information and examples. + */ + pub fn new_vertical>( + key: K, + min: V, + avg: V, + max: V, + style: S, + width: u32, + ) -> Self { + Self { + style: style.into(), + width, + key, + values: [min, avg, max], + _p: PhantomData, + } + } +} + +impl ErrorBar> { + /** + Creates a horizontal error bar. + + - `key`: Vertical position of the bar + - `min`: Minimum of the data + - `avg`: Average of the data + - `max`: Maximum of the data + - `style`: Color, transparency, and fill of the error bar. See [`ShapeStyle`] for more information and examples. + - `width`: Width of the error marks in backend coordinates. + + See [`ErrorBar`] for more information and examples. + */ + pub fn new_horizontal>( + key: K, + min: V, + avg: V, + max: V, + style: S, + width: u32, + ) -> Self { + Self { + style: style.into(), + width, + key, + values: [min, avg, max], + _p: PhantomData, + } + } +} + +impl<'a, K: Clone, V: Clone, O: ErrorBarOrient> PointCollection<'a, (O::XType, O::YType)> + for &'a ErrorBar +{ + type Point = (O::XType, O::YType); + type IntoIter = Vec; + fn point_iter(self) -> Self::IntoIter { + self.values + .iter() + .map(|v| O::make_coord(self.key.clone(), v.clone())) + .collect() + } +} + +impl, DB: DrawingBackend> Drawable for ErrorBar { + fn draw>( + &self, + points: I, + backend: &mut DB, + _: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + let points: Vec<_> = points.take(3).collect(); + + let (from, to) = O::ending_coord(points[0], self.width); + backend.draw_line(from, to, &self.style)?; + + let (from, to) = O::ending_coord(points[2], self.width); + backend.draw_line(from, to, &self.style)?; + + backend.draw_line(points[0], points[2], &self.style)?; + + backend.draw_circle(points[1], self.width / 2, &self.style, self.style.filled)?; + + Ok(()) + } +} + +#[cfg(test)] +#[test] +fn test_preserve_stroke_width() { + let v = ErrorBar::new_vertical(100, 20, 50, 70, WHITE.filled().stroke_width(5), 3); + let h = ErrorBar::new_horizontal(100, 20, 50, 70, WHITE.filled().stroke_width(5), 3); + + use crate::prelude::*; + let da = crate::create_mocked_drawing_area(300, 300, |m| { + m.check_draw_line(|_, w, _, _| { + assert_eq!(w, 5); + }); + }); + da.draw(&h).expect("Drawing Failure"); + da.draw(&v).expect("Drawing Failure"); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/image.rs new file mode 100644 index 0000000000000000000000000000000000000000..6c31c2d8c21ddc9589d94c610a64551aa9c1fc82 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/image.rs @@ -0,0 +1,228 @@ +#[cfg(all( + not(all(target_arch = "wasm32", not(target_os = "wasi"))), + feature = "image" +))] +use image::{DynamicImage, GenericImageView}; + +use super::{Drawable, PointCollection}; +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; + +use plotters_bitmap::bitmap_pixel::{PixelFormat, RGBPixel}; + +#[cfg(all( + not(all(target_arch = "wasm32", not(target_os = "wasi"))), + feature = "image" +))] +use plotters_bitmap::bitmap_pixel::BGRXPixel; + +use plotters_bitmap::BitMapBackend; + +use std::borrow::Borrow; +use std::marker::PhantomData; + +enum Buffer<'a> { + Owned(Vec), + Borrowed(&'a [u8]), + BorrowedMut(&'a mut [u8]), +} + +impl<'a> Borrow<[u8]> for Buffer<'a> { + fn borrow(&self) -> &[u8] { + self.as_ref() + } +} + +impl AsRef<[u8]> for Buffer<'_> { + fn as_ref(&self) -> &[u8] { + match self { + Buffer::Owned(owned) => owned.as_ref(), + Buffer::Borrowed(target) => target, + Buffer::BorrowedMut(target) => target, + } + } +} + +impl<'a> Buffer<'a> { + fn to_mut(&mut self) -> &mut [u8] { + let owned = match self { + Buffer::Owned(owned) => return &mut owned[..], + Buffer::BorrowedMut(target) => return target, + Buffer::Borrowed(target) => { + let mut value = vec![]; + value.extend_from_slice(target); + value + } + }; + + *self = Buffer::Owned(owned); + self.to_mut() + } +} + +/// The element that contains a bitmap on it +pub struct BitMapElement<'a, Coord, P: PixelFormat = RGBPixel> { + image: Buffer<'a>, + size: (u32, u32), + pos: Coord, + phantom: PhantomData

, +} + +impl<'a, Coord, P: PixelFormat> BitMapElement<'a, Coord, P> { + /// Create a new empty bitmap element. This can be use as + /// the draw and blit pattern. + /// + /// - `pos`: The left upper coordinate for the element + /// - `size`: The size of the bitmap + pub fn new(pos: Coord, size: (u32, u32)) -> Self { + Self { + image: Buffer::Owned(vec![0; (size.0 * size.1) as usize * P::PIXEL_SIZE]), + size, + pos, + phantom: PhantomData, + } + } + + /// Create a new bitmap element with an pre-allocated owned buffer, this function will + /// take the ownership of the buffer. + /// + /// - `pos`: The left upper coordinate of the elelent + /// - `size`: The size of the bitmap + /// - `buf`: The buffer to use + /// - **returns**: The newly created image element, if the buffer isn't fit the image + /// dimension, this will returns an `None`. + pub fn with_owned_buffer(pos: Coord, size: (u32, u32), buf: Vec) -> Option { + if buf.len() < (size.0 * size.1) as usize * P::PIXEL_SIZE { + return None; + } + + Some(Self { + image: Buffer::Owned(buf), + size, + pos, + phantom: PhantomData, + }) + } + + /// Create a new bitmap element with a mut borrow to an existing buffer + /// + /// - `pos`: The left upper coordinate of the elelent + /// - `size`: The size of the bitmap + /// - `buf`: The buffer to use + /// - **returns**: The newly created image element, if the buffer isn't fit the image + /// dimension, this will returns an `None`. + pub fn with_mut(pos: Coord, size: (u32, u32), buf: &'a mut [u8]) -> Option { + if buf.len() < (size.0 * size.1) as usize * P::PIXEL_SIZE { + return None; + } + + Some(Self { + image: Buffer::BorrowedMut(buf), + size, + pos, + phantom: PhantomData, + }) + } + + /// Create a new bitmap element with a shared borrowed buffer. This means if we want to modify + /// the content of the image, the buffer is automatically copied + /// + /// - `pos`: The left upper coordinate of the elelent + /// - `size`: The size of the bitmap + /// - `buf`: The buffer to use + /// - **returns**: The newly created image element, if the buffer isn't fit the image + /// dimension, this will returns an `None`. + pub fn with_ref(pos: Coord, size: (u32, u32), buf: &'a [u8]) -> Option { + if buf.len() < (size.0 * size.1) as usize * P::PIXEL_SIZE { + return None; + } + + Some(Self { + image: Buffer::Borrowed(buf), + size, + pos, + phantom: PhantomData, + }) + } + + /// Copy the existing bitmap element to another location + /// + /// - `pos`: The new location to copy + pub fn copy_to(&self, pos: Coord2) -> BitMapElement { + BitMapElement { + image: Buffer::Borrowed(self.image.borrow()), + size: self.size, + pos, + phantom: PhantomData, + } + } + + /// Move the existing bitmap element to a new position + /// + /// - `pos`: The new position + pub fn move_to(&mut self, pos: Coord) { + self.pos = pos; + } + + /// Make the bitmap element as a bitmap backend, so that we can use + /// plotters drawing functionality on the bitmap element + pub fn as_bitmap_backend(&mut self) -> BitMapBackend

{ + BitMapBackend::with_buffer_and_format(self.image.to_mut(), self.size).unwrap() + } +} + +#[cfg(all( + not(all(target_arch = "wasm32", not(target_os = "wasi"))), + feature = "image" +))] +impl<'a, Coord> From<(Coord, DynamicImage)> for BitMapElement<'a, Coord, RGBPixel> { + fn from((pos, image): (Coord, DynamicImage)) -> Self { + let (w, h) = image.dimensions(); + let rgb_image = image.to_rgb8().into_raw(); + Self { + pos, + image: Buffer::Owned(rgb_image), + size: (w, h), + phantom: PhantomData, + } + } +} + +#[cfg(all( + not(all(target_arch = "wasm32", not(target_os = "wasi"))), + feature = "image" +))] +impl<'a, Coord> From<(Coord, DynamicImage)> for BitMapElement<'a, Coord, BGRXPixel> { + fn from((pos, image): (Coord, DynamicImage)) -> Self { + let (w, h) = image.dimensions(); + let rgb_image = image.to_rgb8().into_raw(); + Self { + pos, + image: Buffer::Owned(rgb_image), + size: (w, h), + phantom: PhantomData, + } + } +} + +impl<'a, 'b, Coord> PointCollection<'a, Coord> for &'a BitMapElement<'b, Coord> { + type Point = &'a Coord; + type IntoIter = std::iter::Once<&'a Coord>; + fn point_iter(self) -> Self::IntoIter { + std::iter::once(&self.pos) + } +} + +impl<'a, Coord, DB: DrawingBackend> Drawable for BitMapElement<'a, Coord> { + fn draw>( + &self, + mut points: I, + backend: &mut DB, + _: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + if let Some((x, y)) = points.next() { + // TODO: convert the pixel format when needed + return backend.blit_bitmap((x, y), self.size, self.image.as_ref()); + } + Ok(()) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..921b2c0f55a6280f5e424e5f7015b4ca63ad64d9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/mod.rs @@ -0,0 +1,294 @@ +/*! + Defines the drawing elements, the high-level drawing unit in Plotters drawing system + + ## Introduction + An element is the drawing unit for Plotter's high-level drawing API. + Different from low-level drawing API, an element is a logic unit of component in the image. + There are few built-in elements, including `Circle`, `Pixel`, `Rectangle`, `Path`, `Text`, etc. + + All element can be drawn onto the drawing area using API `DrawingArea::draw(...)`. + Plotters use "iterator of elements" as the abstraction of any type of plot. + + ## Implementing your own element + You can also define your own element, `CandleStick` is a good sample of implementing complex + element. There are two trait required for an element: + + - `PointCollection` - the struct should be able to return an iterator of key-points under guest coordinate + - `Drawable` - the struct is a pending drawing operation on a drawing backend with pixel-based coordinate + + An example of element that draws a red "X" in a red rectangle onto the backend: + + ```rust + use std::iter::{Once, once}; + use plotters::element::{PointCollection, Drawable}; + use plotters_backend::{BackendCoord, DrawingErrorKind, BackendStyle}; + use plotters::style::IntoTextStyle; + use plotters::prelude::*; + + // Any example drawing a red X + struct RedBoxedX((i32, i32)); + + // For any reference to RedX, we can convert it into an iterator of points + impl <'a> PointCollection<'a, (i32, i32)> for &'a RedBoxedX { + type Point = &'a (i32, i32); + type IntoIter = Once<&'a (i32, i32)>; + fn point_iter(self) -> Self::IntoIter { + once(&self.0) + } + } + + // How to actually draw this element + impl Drawable for RedBoxedX { + fn draw>( + &self, + mut pos: I, + backend: &mut DB, + _: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + let pos = pos.next().unwrap(); + backend.draw_rect(pos, (pos.0 + 10, pos.1 + 12), &RED, false)?; + let text_style = &("sans-serif", 20).into_text_style(&backend.get_size()).color(&RED); + backend.draw_text("X", text_style, pos) + } + } + + fn main() -> Result<(), Box> { + let root = BitMapBackend::new( + "plotters-doc-data/element-0.png", + (640, 480) + ).into_drawing_area(); + root.draw(&RedBoxedX((200, 200)))?; + Ok(()) + } + ``` + ![](https://plotters-rs.github.io/plotters-doc-data/element-0.png) + + ## Composable Elements + You also have an convenient way to build an element that isn't built into the Plotters library by + combining existing elements into a logic group. To build an composable element, you need to use an + logic empty element that draws nothing to the backend but denotes the relative zero point of the logical + group. Any element defined with pixel based offset coordinate can be added into the group later using + the `+` operator. + + For example, the red boxed X element can be implemented with Composable element in the following way: + ```rust + use plotters::prelude::*; + fn main() -> Result<(), Box> { + let root = BitMapBackend::new( + "plotters-doc-data/element-1.png", + (640, 480) + ).into_drawing_area(); + let font:FontDesc = ("sans-serif", 20).into(); + root.draw(&(EmptyElement::at((200, 200)) + + Text::new("X", (0, 0), &"sans-serif".into_font().resize(20.0).color(&RED)) + + Rectangle::new([(0,0), (10, 12)], &RED) + ))?; + Ok(()) + } + ``` + ![](https://plotters-rs.github.io/plotters-doc-data/element-1.png) + + ## Dynamic Elements + By default, Plotters uses static dispatch for all the elements and series. For example, + the `ChartContext::draw_series` method accepts an iterator of `T` where type `T` implements + all the traits a element should implement. Although, we can use the series of composable element + for complex series drawing. But sometimes, we still want to make the series heterogynous, which means + the iterator should be able to holds elements in different type. + For example, a point series with cross and circle. This requires the dynamically dispatched elements. + In plotters, all the elements can be converted into `DynElement`, the dynamic dispatch container for + all elements (include external implemented ones). + Plotters automatically implements `IntoDynElement` for all elements, by doing so, any dynamic element should have + `into_dyn` function which would wrap the element into a dynamic element wrapper. + + For example, the following code counts the number of factors of integer and mark all prime numbers in cross. + ```rust + use plotters::prelude::*; + fn num_of_factor(n: i32) -> i32 { + let mut ret = 2; + for i in 2..n { + if i * i > n { + break; + } + + if n % i == 0 { + if i * i != n { + ret += 2; + } else { + ret += 1; + } + } + } + return ret; + } + fn main() -> Result<(), Box> { + let root = + BitMapBackend::new("plotters-doc-data/element-3.png", (640, 480)) + .into_drawing_area(); + root.fill(&WHITE)?; + let mut chart = ChartBuilder::on(&root) + .x_label_area_size(40) + .y_label_area_size(40) + .margin(5) + .build_cartesian_2d(0..50, 0..10)?; + + chart + .configure_mesh() + .disable_x_mesh() + .disable_y_mesh() + .draw()?; + + chart.draw_series((0..50).map(|x| { + let center = (x, num_of_factor(x)); + // Although the arms of if statement has different types, + // but they can be placed into a dynamic element wrapper, + // by doing so, the type is unified. + if center.1 == 2 { + Cross::new(center, 4, Into::::into(&RED).filled()).into_dyn() + } else { + Circle::new(center, 4, Into::::into(&GREEN).filled()).into_dyn() + } + }))?; + + Ok(()) + } + ``` + ![](https://plotters-rs.github.io/plotters-doc-data/element-3.png) +*/ +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; +use std::borrow::Borrow; + +mod basic_shapes; +pub use basic_shapes::*; + +mod basic_shapes_3d; +pub use basic_shapes_3d::*; + +mod text; +pub use text::*; + +mod points; +pub use points::*; + +mod composable; +pub use composable::{ComposedElement, EmptyElement}; + +#[cfg(feature = "candlestick")] +mod candlestick; +#[cfg(feature = "candlestick")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "candlestick")))] +pub use candlestick::CandleStick; + +#[cfg(feature = "errorbar")] +mod errorbar; +#[cfg(feature = "errorbar")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "errorbar")))] +pub use errorbar::{ErrorBar, ErrorBarOrientH, ErrorBarOrientV}; + +#[cfg(feature = "boxplot")] +mod boxplot; +#[cfg(feature = "boxplot")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "boxplot")))] +pub use boxplot::Boxplot; + +#[cfg(feature = "bitmap_backend")] +mod image; +#[cfg(feature = "bitmap_backend")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "bitmap_backend")))] +pub use self::image::BitMapElement; + +mod dynelem; +pub use dynelem::{DynElement, IntoDynElement}; + +mod pie; +pub use pie::Pie; + +use crate::coord::CoordTranslate; +use crate::drawing::Rect; + +/// A type which is logically a collection of points, under any given coordinate system. +/// Note: Ideally, a point collection trait should be any type of which coordinate elements can be +/// iterated. This is similar to `iter` method of many collection types in std. +/// +/// ```ignore +/// trait PointCollection { +/// type PointIter<'a> : Iterator; +/// fn iter(&self) -> PointIter<'a>; +/// } +/// ``` +/// +/// However, +/// [Generic Associated Types](https://github.com/rust-lang/rfcs/blob/master/text/1598-generic_associated_types.md) +/// is far away from stabilize. +/// So currently we have the following workaround: +/// +/// Instead of implement the PointCollection trait on the element type itself, it implements on the +/// reference to the element. By doing so, we now have a well-defined lifetime for the iterator. +/// +/// In addition, for some element, the coordinate is computed on the fly, thus we can't hard-code +/// the iterator's return type is `&'a Coord`. +/// `Borrow` trait seems to strict in this case, since we don't need the order and hash +/// preservation properties at this point. However, `AsRef` doesn't work with `Coord` +/// +/// This workaround also leads overly strict lifetime bound on `ChartContext::draw_series`. +/// +/// TODO: Once GAT is ready on stable Rust, we should simplify the design. +/// +pub trait PointCollection<'a, Coord, CM = BackendCoordOnly> { + /// The item in point iterator + type Point: Borrow + 'a; + + /// The point iterator + type IntoIter: IntoIterator; + + /// framework to do the coordinate mapping + fn point_iter(self) -> Self::IntoIter; +} +/// The trait indicates we are able to draw it on a drawing area +pub trait Drawable { + /// Actually draws the element. The key points is already translated into the + /// image coordinate and can be used by DC directly + fn draw>( + &self, + pos: I, + backend: &mut DB, + parent_dim: (u32, u32), + ) -> Result<(), DrawingErrorKind>; +} + +/// Useful to translate from guest coordinates to backend coordinates +pub trait CoordMapper { + /// Specifies the output data from the translation + type Output; + /// Performs the translation from guest coordinates to backend coordinates + fn map(coord_trans: &CT, from: &CT::From, rect: &Rect) -> Self::Output; +} + +/// Used for 2d coordinate transformations. +pub struct BackendCoordOnly; + +impl CoordMapper for BackendCoordOnly { + type Output = BackendCoord; + fn map(coord_trans: &CT, from: &CT::From, rect: &Rect) -> BackendCoord { + rect.truncate(coord_trans.translate(from)) + } +} + +/** +Used for 3d coordinate transformations. + +See [`Cubiod`] for more information and an example. +*/ +pub struct BackendCoordAndZ; + +impl CoordMapper for BackendCoordAndZ { + type Output = (BackendCoord, i32); + fn map( + coord_trans: &CT, + from: &CT::From, + rect: &Rect, + ) -> (BackendCoord, i32) { + let coord = rect.truncate(coord_trans.translate(from)); + let z = coord_trans.depth(from); + (coord, z) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/pie.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/pie.rs new file mode 100644 index 0000000000000000000000000000000000000000..964fe959cb3db5ab3fd1e49ee9376ba1c5c116e0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/pie.rs @@ -0,0 +1,267 @@ +use crate::{ + element::{Drawable, PointCollection}, + style::{IntoFont, RGBColor, TextStyle, BLACK}, +}; +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; +use std::{error::Error, f64::consts::PI, fmt::Display}; + +#[derive(Debug)] +enum PieError { + LengthMismatch, +} +impl Display for PieError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + &PieError::LengthMismatch => write!(f, "Length Mismatch"), + } + } +} + +impl Error for PieError {} + +/// A Pie Graph +pub struct Pie<'a, Coord, Label: Display> { + center: &'a Coord, // cartesian coord + radius: &'a f64, + sizes: &'a [f64], + colors: &'a [RGBColor], + labels: &'a [Label], + total: f64, + start_radian: f64, + label_style: TextStyle<'a>, + label_offset: f64, + percentage_style: Option>, + donut_hole: f64, // radius of the hole in case of a donut chart +} + +impl<'a, Label: Display> Pie<'a, (i32, i32), Label> { + /// Build a Pie object. + /// Assumes a start angle at 0.0, which is aligned to the horizontal axis. + pub fn new( + center: &'a (i32, i32), + radius: &'a f64, + sizes: &'a [f64], + colors: &'a [RGBColor], + labels: &'a [Label], + ) -> Self { + // fold iterator to pre-calculate total from given slice sizes + let total = sizes.iter().sum(); + + // default label style and offset as 5% of the radius + let radius_5pct = radius * 0.05; + + // strong assumption that the background is white for legibility. + let label_style = TextStyle::from(("sans-serif", radius_5pct).into_font()).color(&BLACK); + Self { + center, + radius, + sizes, + colors, + labels, + total, + start_radian: 0.0, + label_style, + label_offset: radius_5pct, + percentage_style: None, + donut_hole: 0.0, + } + } + + /// Pass an angle in degrees to change the default. + /// Default is set to start at 0, which is aligned on the x axis. + /// ``` + /// use plotters::prelude::*; + /// let mut pie = Pie::new(&(50,50), &10.0, &[50.0, 25.25, 20.0, 5.5], &[RED, BLUE, GREEN, WHITE], &["Red", "Blue", "Green", "White"]); + /// pie.start_angle(-90.0); // retract to a right angle, so it starts aligned to a vertical Y axis. + /// ``` + pub fn start_angle(&mut self, start_angle: f64) { + // angle is more intuitive in degrees as an API, but we use it as radian offset internally. + self.start_radian = start_angle.to_radians(); + } + + /// Set the label style. + pub fn label_style>>(&mut self, label_style: T) { + self.label_style = label_style.into(); + } + + /// Sets the offset to labels, to distanciate them further/closer from the center. + pub fn label_offset(&mut self, offset_to_radius: f64) { + self.label_offset = offset_to_radius + } + + /// enables drawing the wedge's percentage in the middle of the wedge, with the given style + pub fn percentages>>(&mut self, label_style: T) { + self.percentage_style = Some(label_style.into()); + } + + /// Enables creating a donut chart with a hole of the specified radius. + /// + /// The passed value must be greater than zero and lower than the chart overall radius, otherwise it'll be ignored. + pub fn donut_hole(&mut self, hole_radius: f64) { + if hole_radius > 0.0 && hole_radius < *self.radius { + self.donut_hole = hole_radius; + } + } +} + +impl<'a, DB: DrawingBackend, Label: Display> Drawable for Pie<'a, (i32, i32), Label> { + fn draw>( + &self, + _pos: I, + backend: &mut DB, + _parent_dim: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + let mut offset_theta = self.start_radian; + + // const reused for every radian calculation + // the bigger the radius, the more fine-grained it should calculate + // to avoid being aliasing from being too noticeable. + // this all could be avoided if backend could draw a curve/bezier line as part of a polygon. + let radian_increment = PI / 180.0 / self.radius.sqrt() * 2.0; + let mut perc_labels = Vec::new(); + for (index, slice) in self.sizes.iter().enumerate() { + let slice_style = self + .colors + .get(index) + .ok_or_else(|| DrawingErrorKind::FontError(Box::new(PieError::LengthMismatch)))?; + let label = self + .labels + .get(index) + .ok_or_else(|| DrawingErrorKind::FontError(Box::new(PieError::LengthMismatch)))?; + // start building wedge line against the previous edge + let mut points = if self.donut_hole == 0.0 { + vec![*self.center] + } else { + vec![] + }; + let ratio = slice / self.total; + let theta_final = ratio * 2.0 * PI + offset_theta; // end radian for the wedge + + // calculate middle for labels before mutating offset + let middle_theta = ratio * PI + offset_theta; + + let slice_start = offset_theta; + + // calculate every fraction of radian for the wedge, offsetting for every iteration, clockwise + // + // a custom Range such as `for theta in offset_theta..=theta_final` would be more elegant + // but f64 doesn't implement the Range trait, and it would requires the Step trait (increment by 1.0 or 0.0001?) + // which is unstable therefore cannot be implemented outside of std, even as a newtype for radians. + while offset_theta <= theta_final { + let coord = theta_to_ordinal_coord(*self.radius, offset_theta, self.center); + points.push(coord); + offset_theta += radian_increment; + } + // final point of the wedge may not fall exactly on a radian, so add it extra + let final_coord = theta_to_ordinal_coord(*self.radius, theta_final, self.center); + points.push(final_coord); + + if self.donut_hole > 0.0 { + while offset_theta >= slice_start { + let coord = theta_to_ordinal_coord(self.donut_hole, offset_theta, self.center); + points.push(coord); + offset_theta -= radian_increment; + } + // final point of the wedge may not fall exactly on a radian, so add it extra + let final_coord_inner = + theta_to_ordinal_coord(self.donut_hole, slice_start, self.center); + points.push(final_coord_inner); + } + + // next wedge calculation will start from previous wedges's last radian + offset_theta = theta_final; + + // draw wedge + // TODO: Currently the backend doesn't have API to draw an arc. We need add that in the + // future + backend.fill_polygon(points, slice_style)?; + + // label coords from the middle + let mut mid_coord = + theta_to_ordinal_coord(self.radius + self.label_offset, middle_theta, self.center); + + // ensure label's doesn't fall in the circle + let label_size = backend.estimate_text_size(&label.to_string(), &self.label_style)?; + // if on the left hand side of the pie, offset whole label to the left + if mid_coord.0 <= self.center.0 { + mid_coord.0 -= label_size.0 as i32; + } + // put label + backend.draw_text(&label.to_string(), &self.label_style, mid_coord)?; + if let Some(percentage_style) = &self.percentage_style { + let perc_label = format!("{:.1}%", (ratio * 100.0)); + let label_size = backend.estimate_text_size(&perc_label, percentage_style)?; + let text_x_mid = (label_size.0 as f64 / 2.0).round() as i32; + let text_y_mid = (label_size.1 as f64 / 2.0).round() as i32; + let perc_radius = (self.radius + self.donut_hole) / 2.0; + let perc_coord = theta_to_ordinal_coord( + perc_radius, + middle_theta, + &(self.center.0 - text_x_mid, self.center.1 - text_y_mid), + ); + // perc_coord.0 -= middle_label_size.0.round() as i32; + perc_labels.push((perc_label, perc_coord)); + } + } + // while percentages are generated during the first main iterations, + // they have to go on top of the already drawn wedges, so require a new iteration. + for (label, coord) in perc_labels { + let style = self.percentage_style.as_ref().unwrap(); + backend.draw_text(&label, style, coord)?; + } + Ok(()) + } +} + +impl<'a, Label: Display> PointCollection<'a, (i32, i32)> for &'a Pie<'a, (i32, i32), Label> { + type Point = &'a (i32, i32); + type IntoIter = std::iter::Once<&'a (i32, i32)>; + fn point_iter(self) -> std::iter::Once<&'a (i32, i32)> { + std::iter::once(self.center) + } +} + +fn theta_to_ordinal_coord(radius: f64, theta: f64, ordinal_offset: &(i32, i32)) -> (i32, i32) { + // polar coordinates are (r, theta) + // convert to (x, y) coord, with center as offset + + let (sin, cos) = theta.sin_cos(); + ( + // casting f64 to discrete i32 pixels coordinates is inevitably going to lose precision + // if plotters can support float coordinates, this place would surely benefit, especially for small sizes. + // so far, the result isn't so bad though + (radius * cos + ordinal_offset.0 as f64).round() as i32, // x + (radius * sin + ordinal_offset.1 as f64).round() as i32, // y + ) +} +#[cfg(test)] +mod test { + use super::*; + // use crate::prelude::*; + + #[test] + fn polar_coord_to_cartestian_coord() { + let coord = theta_to_ordinal_coord(800.0, 1.5_f64.to_radians(), &(5, 5)); + // rounded tends to be more accurate. this gets truncated to (804, 25) without rounding. + assert_eq!(coord, (805, 26)); //coord calculated from theta + } + #[test] + fn pie_calculations() { + let mut center = (5, 5); + let mut radius = 800.0; + + let sizes = vec![50.0, 25.0]; + // length isn't validated in new() + let colors = vec![]; + let labels: Vec<&str> = vec![]; + let pie = Pie::new(¢er, &radius, &sizes, &colors, &labels); + assert_eq!(pie.total, 75.0); // total calculated from sizes + + // not ownership greedy + center.1 += 1; + radius += 1.0; + assert!(colors.get(0).is_none()); + assert!(labels.first().is_none()); + assert_eq!(radius, 801.0); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/points.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/points.rs new file mode 100644 index 0000000000000000000000000000000000000000..423625b0820e1bc8895efad8856f8fd076262886 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/points.rs @@ -0,0 +1,154 @@ +use super::*; +use super::{Drawable, PointCollection}; +use crate::style::{Color, ShapeStyle, SizeDesc}; +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; + +/** +A common trait for elements that can be interpreted as points: A cross, a circle, a triangle marker... + +This is used internally by Plotters and should probably not be included in user code. +See [`EmptyElement`] for more information and examples. +*/ +pub trait PointElement { + /** + Point creator. + + This is used internally by Plotters and should probably not be included in user code. + See [`EmptyElement`] for more information and examples. + */ + fn make_point(pos: Coord, size: Size, style: ShapeStyle) -> Self; +} + +/** +A cross marker for visualizing data series. + +See [`EmptyElement`] for more information and examples. +*/ +pub struct Cross { + center: Coord, + size: Size, + style: ShapeStyle, +} + +impl Cross { + /** + Creates a cross marker. + + See [`EmptyElement`] for more information and examples. + */ + pub fn new>(coord: Coord, size: Size, style: T) -> Self { + Self { + center: coord, + size, + style: style.into(), + } + } +} + +impl<'a, Coord: 'a, Size: SizeDesc> PointCollection<'a, Coord> for &'a Cross { + type Point = &'a Coord; + type IntoIter = std::iter::Once<&'a Coord>; + fn point_iter(self) -> std::iter::Once<&'a Coord> { + std::iter::once(&self.center) + } +} + +impl Drawable for Cross { + fn draw>( + &self, + mut points: I, + backend: &mut DB, + ps: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + if let Some((x, y)) = points.next() { + let size = self.size.in_pixels(&ps); + let (x0, y0) = (x - size, y - size); + let (x1, y1) = (x + size, y + size); + backend.draw_line((x0, y0), (x1, y1), &self.style)?; + backend.draw_line((x0, y1), (x1, y0), &self.style)?; + } + Ok(()) + } +} + +/** +A triangle marker for visualizing data series. + +See [`EmptyElement`] for more information and examples. +*/ +pub struct TriangleMarker { + center: Coord, + size: Size, + style: ShapeStyle, +} + +impl TriangleMarker { + /** + Creates a triangle marker. + + See [`EmptyElement`] for more information and examples. + */ + pub fn new>(coord: Coord, size: Size, style: T) -> Self { + Self { + center: coord, + size, + style: style.into(), + } + } +} + +impl<'a, Coord: 'a, Size: SizeDesc> PointCollection<'a, Coord> for &'a TriangleMarker { + type Point = &'a Coord; + type IntoIter = std::iter::Once<&'a Coord>; + fn point_iter(self) -> std::iter::Once<&'a Coord> { + std::iter::once(&self.center) + } +} + +impl Drawable for TriangleMarker { + fn draw>( + &self, + mut points: I, + backend: &mut DB, + ps: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + if let Some((x, y)) = points.next() { + let size = self.size.in_pixels(&ps); + let points = [-90, -210, -330] + .iter() + .map(|deg| f64::from(*deg) * std::f64::consts::PI / 180.0) + .map(|rad| { + ( + (rad.cos() * f64::from(size) + f64::from(x)).ceil() as i32, + (rad.sin() * f64::from(size) + f64::from(y)).ceil() as i32, + ) + }); + backend.fill_polygon(points, &self.style.color.to_backend_color())?; + } + Ok(()) + } +} + +impl PointElement for Cross { + fn make_point(pos: Coord, size: Size, style: ShapeStyle) -> Self { + Self::new(pos, size, style) + } +} + +impl PointElement for TriangleMarker { + fn make_point(pos: Coord, size: Size, style: ShapeStyle) -> Self { + Self::new(pos, size, style) + } +} + +impl PointElement for Circle { + fn make_point(pos: Coord, size: Size, style: ShapeStyle) -> Self { + Self::new(pos, size, style) + } +} + +impl PointElement for Pixel { + fn make_point(pos: Coord, _: Size, style: ShapeStyle) -> Self { + Self::new(pos, style) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/text.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/text.rs new file mode 100644 index 0000000000000000000000000000000000000000..9baa201677b82dd8ca532e656a509ac3fca06058 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/element/text.rs @@ -0,0 +1,274 @@ +use std::borrow::Borrow; + +use super::{Drawable, PointCollection}; +use crate::style::{FontDesc, FontResult, LayoutBox, TextStyle}; +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; + +/// A single line text element. This can be owned or borrowed string, dependents on +/// `String` or `str` moved into. +pub struct Text<'a, Coord, T: Borrow> { + text: T, + coord: Coord, + style: TextStyle<'a>, +} + +impl<'a, Coord, T: Borrow> Text<'a, Coord, T> { + /// Create a new text element + /// - `text`: The text for the element + /// - `points`: The upper left conner for the text element + /// - `style`: The text style + /// - Return the newly created text element + pub fn new>>(text: T, points: Coord, style: S) -> Self { + Self { + text, + coord: points, + style: style.into(), + } + } +} + +impl<'b, 'a, Coord: 'a, T: Borrow + 'a> PointCollection<'a, Coord> for &'a Text<'b, Coord, T> { + type Point = &'a Coord; + type IntoIter = std::iter::Once<&'a Coord>; + fn point_iter(self) -> Self::IntoIter { + std::iter::once(&self.coord) + } +} + +impl<'a, Coord: 'a, DB: DrawingBackend, T: Borrow> Drawable for Text<'a, Coord, T> { + fn draw>( + &self, + mut points: I, + backend: &mut DB, + _: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + if let Some(a) = points.next() { + return backend.draw_text(self.text.borrow(), &self.style, a); + } + Ok(()) + } +} + +/// An multi-line text element. The `Text` element allows only single line text +/// and the `MultiLineText` supports drawing multiple lines +pub struct MultiLineText<'a, Coord, T: Borrow> { + lines: Vec, + coord: Coord, + style: TextStyle<'a>, + line_height: f64, +} + +impl<'a, Coord, T: Borrow> MultiLineText<'a, Coord, T> { + /// Create an empty multi-line text element. + /// Lines can be append to the empty multi-line by calling `push_line` method + /// + /// `pos`: The upper left corner + /// `style`: The style of the text + pub fn new>>(pos: Coord, style: S) -> Self { + MultiLineText { + lines: vec![], + coord: pos, + style: style.into(), + line_height: 1.25, + } + } + + /// Set the line height of the multi-line text element + pub fn set_line_height(&mut self, value: f64) -> &mut Self { + self.line_height = value; + self + } + + /// Push a new line into the given multi-line text + /// `line`: The line to be pushed + pub fn push_line>(&mut self, line: L) { + self.lines.push(line.into()); + } + + /// Estimate the multi-line text element's dimension + pub fn estimate_dimension(&self) -> FontResult<(i32, i32)> { + let (mut mx, mut my) = (0, 0); + + for ((x, y), t) in self.layout_lines((0, 0)).zip(self.lines.iter()) { + let (dx, dy) = self.style.font.box_size(t.borrow())?; + mx = mx.max(x + dx as i32); + my = my.max(y + dy as i32); + } + + Ok((mx, my)) + } + + /// Move the location to the specified location + pub fn relocate(&mut self, coord: Coord) { + self.coord = coord + } + + fn layout_lines(&self, (x0, y0): BackendCoord) -> impl Iterator { + let font_height = self.style.font.get_size(); + let actual_line_height = font_height * self.line_height; + (0..self.lines.len() as u32).map(move |idx| { + let y = f64::from(y0) + f64::from(idx) * actual_line_height; + // TODO: Support text alignment as well, currently everything is left aligned + let x = f64::from(x0); + (x.round() as i32, y.round() as i32) + }) + } +} + +// Rewrite of the layout function for multiline-text. It crashes when UTF-8 is used +// instead of ASCII. Solution taken from: +// https://stackoverflow.com/questions/68122526/splitting-a-utf-8-string-into-chunks +// and modified for our purposes. +fn layout_multiline_text<'a, F: FnMut(&'a str)>( + text: &'a str, + max_width: u32, + font: FontDesc<'a>, + mut func: F, +) { + for line in text.lines() { + if max_width == 0 || line.is_empty() { + func(line); + } else { + let mut indices = line.char_indices().map(|(idx, _)| idx).peekable(); + + let it = std::iter::from_fn(|| { + let start_idx = match indices.next() { + Some(idx) => idx, + None => return None, + }; + + // iterate over indices + for idx in indices.by_ref() { + let substring = &line[start_idx..idx]; + let width = font.box_size(substring).unwrap_or((0, 0)).0 as i32; + if width > max_width as i32 { + break; + } + } + + let end_idx = match indices.peek() { + Some(idx) => *idx, + None => line.bytes().len(), + }; + + Some(&line[start_idx..end_idx]) + }); + + for chunk in it { + func(chunk); + } + } + } +} + +// Only run the test on Linux because the default font is different +// on other platforms, causing different multiline splits. +#[cfg(all(feature = "ttf", target_os = "linux"))] +#[test] +fn test_multi_layout() { + use plotters_backend::{FontFamily, FontStyle}; + + let font = FontDesc::new(FontFamily::SansSerif, 20 as f64, FontStyle::Bold); + + layout_multiline_text("öäabcde", 40, font, |txt| { + println!("Got: {}", txt); + assert!(txt == "öäabc" || txt == "de"); + }); + + let font = FontDesc::new(FontFamily::SansSerif, 20 as f64, FontStyle::Bold); + layout_multiline_text("öä", 100, font, |txt| { + // This does not divide the line, but still crashed in the previous implementation + // of layout_multiline_text. So this test should be reliable + println!("Got: {}", txt); + assert_eq!(txt, "öä") + }); +} + +impl<'a, T: Borrow> MultiLineText<'a, BackendCoord, T> { + /// Compute the line layout + pub fn compute_line_layout(&self) -> FontResult> { + let mut ret = vec![]; + for ((x, y), t) in self.layout_lines(self.coord).zip(self.lines.iter()) { + let (dx, dy) = self.style.font.box_size(t.borrow())?; + ret.push(((x, y), (x + dx as i32, y + dy as i32))); + } + Ok(ret) + } +} + +impl<'a, Coord> MultiLineText<'a, Coord, &'a str> { + /// Parse a multi-line text into an multi-line element. + /// + /// `text`: The text that is parsed + /// `pos`: The position of the text + /// `style`: The style for this text + /// `max_width`: The width of the multi-line text element, the line will break + /// into two lines if the line is wider than the max_width. If 0 is given, do not + /// do any line wrapping + pub fn from_str, S: Into>>( + text: ST, + pos: Coord, + style: S, + max_width: u32, + ) -> Self { + let text = text.into(); + let mut ret = MultiLineText::new(pos, style); + + layout_multiline_text(text, max_width, ret.style.font.clone(), |l| { + ret.push_line(l) + }); + ret + } +} + +impl<'a, Coord> MultiLineText<'a, Coord, String> { + /// Parse a multi-line text into an multi-line element. + /// + /// `text`: The text that is parsed + /// `pos`: The position of the text + /// `style`: The style for this text + /// `max_width`: The width of the multi-line text element, the line will break + /// into two lines if the line is wider than the max_width. If 0 is given, do not + /// do any line wrapping + pub fn from_string>>( + text: String, + pos: Coord, + style: S, + max_width: u32, + ) -> Self { + let mut ret = MultiLineText::new(pos, style); + + layout_multiline_text(text.as_str(), max_width, ret.style.font.clone(), |l| { + ret.push_line(l.to_string()) + }); + ret + } +} + +impl<'b, 'a, Coord: 'a, T: Borrow + 'a> PointCollection<'a, Coord> + for &'a MultiLineText<'b, Coord, T> +{ + type Point = &'a Coord; + type IntoIter = std::iter::Once<&'a Coord>; + fn point_iter(self) -> Self::IntoIter { + std::iter::once(&self.coord) + } +} + +impl<'a, Coord: 'a, DB: DrawingBackend, T: Borrow> Drawable + for MultiLineText<'a, Coord, T> +{ + fn draw>( + &self, + mut points: I, + backend: &mut DB, + _: (u32, u32), + ) -> Result<(), DrawingErrorKind> { + if let Some(a) = points.next() { + for (point, text) in self.layout_lines(a).zip(self.lines.iter()) { + backend.draw_text(text.borrow(), &self.style, point)?; + } + } + Ok(()) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/evcxr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/evcxr.rs new file mode 100644 index 0000000000000000000000000000000000000000..9d7b9666b18ebbf81fc59a3cf1f410bfb23e7fc9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/evcxr.rs @@ -0,0 +1,92 @@ +use crate::coord::Shift; +use crate::drawing::{DrawingArea, IntoDrawingArea}; +use plotters_backend::DrawingBackend; +use plotters_svg::SVGBackend; +use std::fs::File; +use std::io::Write; + +#[cfg(feature = "evcxr_bitmap")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "evcxr_bitmap")))] +use plotters_bitmap::BitMapBackend; + +/// The wrapper for the generated SVG +pub struct SVGWrapper(String, String); + +impl SVGWrapper { + /// Displays the contents of the `SVGWrapper` struct. + pub fn evcxr_display(&self) { + println!("{:?}", self); + } + /// Sets the style of the `SVGWrapper` struct. + pub fn style>(mut self, style: S) -> Self { + self.1 = style.into(); + self + } +} + +impl std::fmt::Debug for SVGWrapper { + fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result { + let svg = self.0.as_str(); + write!( + formatter, + "EVCXR_BEGIN_CONTENT text/html\n

{}
\nEVCXR_END_CONTENT", + self.1, svg + ) + } +} + +/// Start drawing an evcxr figure +pub fn evcxr_figure< + Draw: FnOnce(DrawingArea) -> Result<(), Box>, +>( + size: (u32, u32), + draw: Draw, +) -> SVGWrapper { + let mut buffer = "".to_string(); + let root = SVGBackend::with_string(&mut buffer, size).into_drawing_area(); + draw(root).expect("Drawing failure"); + SVGWrapper(buffer, "".to_string()) +} + +/// An evcxr figure that can save to the local file system and render in a notebook. +pub fn evcxr_figure_with_saving< + Draw: FnOnce(DrawingArea) -> Result<(), Box>, +>( + filename: &str, + size: (u32, u32), + draw: Draw, +) -> SVGWrapper { + let mut buffer = "".to_string(); + let root = SVGBackend::with_string(&mut buffer, size).into_drawing_area(); + draw(root).expect("Drawing failure"); + + let mut file = File::create(filename).expect("Unable to create file"); + file.write_all(buffer.as_bytes()) + .expect("Unable to write data"); + + SVGWrapper(buffer, "".to_string()) +} +/// Start drawing an evcxr figure +#[cfg(feature = "evcxr_bitmap")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "evcxr_bitmap")))] +pub fn evcxr_bitmap_figure< + Draw: FnOnce(DrawingArea) -> Result<(), Box>, +>( + size: (u32, u32), + draw: Draw, +) -> SVGWrapper { + const PIXEL_SIZE: usize = 3; + + let mut buf = vec![0; (size.0 as usize) * (size.1 as usize) * PIXEL_SIZE]; + + let root = BitMapBackend::with_buffer(&mut buf, size).into_drawing_area(); + draw(root).expect("Drawing failure"); + let mut buffer = "".to_string(); + { + let mut svg_root = SVGBackend::with_string(&mut buffer, size); + svg_root + .blit_bitmap((0, 0), size, &buf) + .expect("Failure converting to SVG"); + } + SVGWrapper(buffer, "".to_string()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/lib.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/lib.rs new file mode 100644 index 0000000000000000000000000000000000000000..230c679f1b204c2c056bd535d7f020caca9feeb6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/lib.rs @@ -0,0 +1,937 @@ +#![warn(missing_docs)] +#![allow(clippy::type_complexity)] +#![cfg_attr(doc_cfg, feature(doc_cfg))] +/*! + +# Plotters - A Rust drawing library focusing on data plotting for both WASM and native applications 🦀📈🚀 + + + + + + + + + + + + + + +Plotters is a drawing library designed for rendering figures, plots, and charts, in pure Rust. Plotters supports various types of back-ends, +including bitmap, vector graph, piston window, GTK/Cairo and WebAssembly. + +- A new Plotters Developer's Guide is a work in progress. The preview version is available [here](https://plotters-rs.github.io/book). +- Try Plotters with an interactive Jupyter notebook, or view [here](https://plotters-rs.github.io/plotters-doc-data/evcxr-jupyter-integration.html) for the static HTML version. +- To view the WASM example, go to this [link](https://plotters-rs.github.io/wasm-demo/www/index.html) +- Currently we have all the internal code ready for console plotting, but a console based backend is still not ready. See [this example](https://github.com/plotters-rs/plotters/blob/master/plotters/examples/console.rs) for how to plot on console with a customized backend. +- Plotters has moved all backend code to separate repositories, check [FAQ list](#faq-list) for details +- Some interesting [demo projects](#demo-projects) are available, feel free to try them out. + +## Gallery + +
+ + + +
+ Multiple Plot + [code] +
+
+ +
+ + + +
+ Candlestick Plot + [code] +
+
+ +
+ + + +
+ Histogram + [code] +
+
+ +
+ + + +
+ Simple Chart +
+
+ +
+ + + +
+ Plotting the Console +
+
+ +
+ + + +
+ Mandelbrot set + [code] +
+
+ + +
+ + + +
+ Jupyter Support +
+
+ +
+ + + +
+ Real-time Rendering + [code] +
+
+ +
+ + + +
+ Histogram with Scatter + [code] +
+
+ +
+ + + +
+ Dual Y-Axis Example + [code] +
+
+ +
+ + + +
+ The Matplotlib Matshow Example + [code] +
+
+ +
+ + + +
+ The Sierpinski Carpet + [code] +
+
+ +
+ + + +
+ The 1D Gaussian Distribution + [code] +
+
+ +
+ + + +
+ The 1D Gaussian Distribution + [code] +
+
+ +
+ + + +
+ Monthly Time Coordinate + [code] +
+
+ +
+ + + +
+ Monthly Time Coordinate + [code] +
+
+ +
+ + + +
+ Koch Snowflake + [code] +
+
+ + +
+ + + +
+ Koch Snowflake Animation + [code] +
+
+ + +
+ + + +
+ Drawing on a Console + [code] +
+
+ +
+ + + +
+ Drawing bitmap on chart + [code] +
+
+ +
+ + + +
+ The boxplot demo + [code] +
+
+ +
+ + + +
+ 3D plot rendering + [code] +
+
+ +
+ + + +
+ 2-Var Gussian Distribution PDF + [code] +
+
+ +
+ + + +
+ COVID-19 Visualization + [code] +
+
+ + +## Table of Contents + * [Gallery](#gallery) + * [Dependencies](#dependencies) + + [Ubuntu Linux](#ubuntu-linux) + * [Quick Start](#quick-start) + * [Demo Projects](#demo-projects) + * [Trying with Jupyter evcxr Kernel Interactively](#trying-with-jupyter-evcxr-kernel-interactively) + * [Interactive Tutorial with Jupyter Notebook](#interactive-tutorial-with-jupyter-notebook) + * [Plotting in Rust](#plotting-in-rust) + * [Plotting on HTML5 canvas with WASM Backend](#plotting-on-html5-canvas-with-wasm-backend) + * [What types of figure are supported?](#what-types-of-figure-are-supported) + * [Concepts by example](#concepts-by-example) + + [Drawing Backends](#drawing-backends) + + [Drawing Area](#drawing-area) + + [Elements](#elements) + + [Composable Elements](#composable-elements) + + [Chart Context](#chart-context) + * [Misc](#misc) + + [Development Version](#development-version) + + [Reducing Depending Libraries && Turning Off Backends](#reducing-depending-libraries--turning-off-backends) + + [List of Features](#list-of-features) + * [FAQ List](#faq-list) + +## Dependencies + +### Ubuntu Linux + + ```sudo apt install pkg-config libfreetype6-dev libfontconfig1-dev``` + +## Quick Start + +To use Plotters, you can simply add Plotters into your `Cargo.toml` +```toml +[dependencies] +plotters = "0.3.3" +``` + +And the following code draws a quadratic function. `src/main.rs`, + +```rust +use plotters::prelude::*; +fn main() -> Result<(), Box> { + let root = BitMapBackend::new("plotters-doc-data/0.png", (640, 480)).into_drawing_area(); + root.fill(&WHITE)?; + let mut chart = ChartBuilder::on(&root) + .caption("y=x^2", ("sans-serif", 50).into_font()) + .margin(5) + .x_label_area_size(30) + .y_label_area_size(30) + .build_cartesian_2d(-1f32..1f32, -0.1f32..1f32)?; + + chart.configure_mesh().draw()?; + + chart + .draw_series(LineSeries::new( + (-50..=50).map(|x| x as f32 / 50.0).map(|x| (x, x * x)), + &RED, + ))? + .label("y = x^2") + .legend(|(x, y)| PathElement::new(vec![(x, y), (x + 20, y)], &RED)); + + chart + .configure_series_labels() + .background_style(&WHITE.mix(0.8)) + .border_style(&BLACK) + .draw()?; + + root.present()?; + + Ok(()) +} +``` + +![](https://plotters-rs.github.io/plotters-doc-data/0.png) + +## Demo Projects + +To learn how to use Plotters in different scenarios, check out the following demo projects: + +- WebAssembly + Plotters: [plotters-wasm-demo](https://github.com/plotters-rs/plotters-wasm-demo) +- minifb + Plotters: [plotters-minifb-demo](https://github.com/plotters-rs/plotters-minifb-demo) +- GTK + Plotters: [plotters-gtk-demo](https://github.com/plotters-rs/plotters-gtk-demo) + + +## Trying with Jupyter evcxr Kernel Interactively + +Plotters now supports integration with `evcxr` and is able to interactively draw plots in Jupyter Notebook. +The feature `evcxr` should be enabled when including Plotters to Jupyter Notebook. + +The following code shows a minimal example of this. + +```text +:dep plotters = { version = "^0.3.6", default-features = false, features = ["evcxr", "all_series", "all_elements"] } +extern crate plotters; +use plotters::prelude::*; + +let figure = evcxr_figure((640, 480), |root| { + root.fill(&WHITE)?; + let mut chart = ChartBuilder::on(&root) + .caption("y=x^2", ("Arial", 50).into_font()) + .margin(5) + .x_label_area_size(30) + .y_label_area_size(30) + .build_cartesian_2d(-1f32..1f32, -0.1f32..1f32)?; + + chart.configure_mesh().draw()?; + + chart.draw_series(LineSeries::new( + (-50..=50).map(|x| x as f32 / 50.0).map(|x| (x, x * x)), + &RED, + )).unwrap() + .label("y = x^2") + .legend(|(x,y)| PathElement::new(vec![(x,y), (x + 20,y)], &RED)); + + chart.configure_series_labels() + .background_style(&WHITE.mix(0.8)) + .border_style(&BLACK) + .draw()?; + Ok(()) +}); +figure +``` + + + +## Interactive Tutorial with Jupyter Notebook + +*This tutorial is a work in progress and isn't complete* + +Thanks to the evcxr, now we have an interactive tutorial for Plotters! +To use the interactive notebook, you must have Jupyter and evcxr installed on your computer. +Follow the instruction on [this page](https://github.com/google/evcxr/tree/master/evcxr_jupyter) below to install it. + +After that, you should be able to start your Jupyter server locally and load the tutorial! + +```bash +git clone https://github.com/38/plotters-doc-data +cd plotters-doc-data +jupyter notebook +``` + +And select the notebook called `evcxr-jupyter-integration.ipynb`. + +Also, there's a static HTML version of this notebook available at [this location](https://plotters-rs.github.io/plotters-doc-data/evcxr-jupyter-integration.html) + +## Plotting in Rust + +Rust is a perfect language for data visualization. Although there are many mature visualization libraries in many different languages, Rust is one of the best languages that fits the need. + +* **Easy to use** Rust has a very good iterator system built into the standard library. With the help of iterators, + plotting in Rust can be as easy as most of the high-level programming languages. The Rust based plotting library + can be very easy to use. + +* **Fast** If you need to render a figure with trillions of data points, + Rust is a good choice. Rust's performance allows you to combine the data processing step + and rendering step into a single application. When plotting in high-level programming languages, + e.g. Javascript or Python, data points must be down-sampled before feeding into the plotting + program because of the performance considerations. Rust is fast enough to do the data processing and visualization + within a single program. You can also integrate the + figure rendering code into your application to handle a huge amount of data and visualize it in real-time. + +* **WebAssembly Support** Rust is one of the languages with the best WASM support. Plotting in Rust could be + very useful for visualization on a web page and would have a huge performance improvement comparing to Javascript. + +## Plotting on HTML5 canvas with WASM Backend + +Plotters currently supports a backend that uses the HTML5 canvas. To use WASM, you can simply use +`CanvasBackend` instead of other backend and all other API remains the same! + +There's a small demo for Plotters + WASM available at [here](https://github.com/plotters-rs/plotters-wasm-demo). +To play with the deployed version, follow this [link](https://plotters-rs.github.io/wasm-demo/www/index.html). + +## What types of figure are supported? + +Plotters is not limited to any specific type of figure. +You can create your own types of figures easily with the Plotters API. + +Plotters does provide some built-in figure types for convenience. +Currently, we support line series, point series, candlestick series, and histogram. +And the library is designed to be able to render multiple figure into a single image. +But Plotter is aimed to be a platform that is fully extendable to support any other types of figure. + +## Concepts by example + +### Drawing Backends +Plotters can use different drawing backends, including SVG, BitMap, and even real-time rendering. For example, a bitmap drawing backend. + +```rust +use plotters::prelude::*; +fn main() -> Result<(), Box> { + // Create a 800*600 bitmap and start drawing + let mut backend = BitMapBackend::new("plotters-doc-data/1.png", (300, 200)); + // And if we want SVG backend + // let backend = SVGBackend::new("output.svg", (800, 600)); + backend.draw_rect((50, 50), (200, 150), &RED, true)?; + backend.present()?; + Ok(()) +} +``` + +![](https://plotters-rs.github.io/plotters-doc-data/1.png) + +### Drawing Area +Plotters uses a concept called drawing area for layout purpose. +Plotters supports integrating multiple figures into a single image. +This is done by creating sub-drawing-areas. + +Besides that, the drawing area also allows for a customized coordinate system, by doing so, the coordinate mapping is done by the drawing area automatically. + +```rust +use plotters::prelude::*; +fn main() -> Result<(), Box> { + let root_drawing_area = + BitMapBackend::new("plotters-doc-data/2.png", (300, 200)).into_drawing_area(); + // And we can split the drawing area into 3x3 grid + let child_drawing_areas = root_drawing_area.split_evenly((3, 3)); + // Then we fill the drawing area with different color + for (area, color) in child_drawing_areas.into_iter().zip(0..) { + area.fill(&Palette99::pick(color))?; + } + root_drawing_area.present()?; + Ok(()) +} +``` + +![](https://plotters-rs.github.io/plotters-doc-data/2.png) + +### Elements + +In Plotters, elements are the building blocks of figures. All elements are able to be drawn on a drawing area. +There are different types of built-in elements, like lines, texts, circles, etc. +You can also define your own element in the application code. + +You may also combine existing elements to build a complex element. + +To learn more about the element system, please read the [element module documentation](./element/index.html). + +```rust +use plotters::prelude::*; +fn main() -> Result<(), Box> { + let root = BitMapBackend::new("plotters-doc-data/3.png", (300, 200)).into_drawing_area(); + root.fill(&WHITE)?; + // Draw an circle on the drawing area + root.draw(&Circle::new( + (100, 100), + 50, + Into::::into(&GREEN).filled(), + ))?; + root.present()?; + Ok(()) +} +``` + +![](https://plotters-rs.github.io/plotters-doc-data/3.png) + +### Composable Elements + +Besides the built-in elements, elements can be composed into a logical group we called composed elements. +When composing new elements, the upper-left corner is given in the target coordinate, and a new pixel-based +coordinate which has the upper-left corner defined as `(0,0)` is used for further element composition. + +For example, we can have an element which includes a dot and its coordinate. + +```rust +use plotters::prelude::*; +use plotters::coord::types::RangedCoordf32; + +fn main() -> Result<(), Box> { + let root = BitMapBackend::new("plotters-doc-data/4.png", (640, 480)).into_drawing_area(); + + root.fill(&RGBColor(240, 200, 200))?; + + let root = root.apply_coord_spec(Cartesian2d::::new( + 0f32..1f32, + 0f32..1f32, + (0..640, 0..480), + )); + + let dot_and_label = |x: f32, y: f32| { + return EmptyElement::at((x, y)) + + Circle::new((0, 0), 3, ShapeStyle::from(&BLACK).filled()) + + Text::new( + format!("({:.2},{:.2})", x, y), + (10, 0), + ("sans-serif", 15.0).into_font(), + ); + }; + + root.draw(&dot_and_label(0.5, 0.6))?; + root.draw(&dot_and_label(0.25, 0.33))?; + root.draw(&dot_and_label(0.8, 0.8))?; + root.present()?; + Ok(()) +} +``` + +![](https://plotters-rs.github.io/plotters-doc-data/4.png) + +### Chart Context + +In order to draw a chart, Plotters needs a data object built on top of the drawing area called `ChartContext`. +The chart context defines even higher level constructs compare to the drawing area. +For example, you can define the label areas, meshes, and put a data series onto the drawing area with the help +of the chart context object. + +```rust +use plotters::prelude::*; +fn main() -> Result<(), Box> { + let root = BitMapBackend::new("plotters-doc-data/5.png", (640, 480)).into_drawing_area(); + root.fill(&WHITE); + let root = root.margin(10, 10, 10, 10); + // After this point, we should be able to construct a chart context + let mut chart = ChartBuilder::on(&root) + // Set the caption of the chart + .caption("This is our first plot", ("sans-serif", 40).into_font()) + // Set the size of the label region + .x_label_area_size(20) + .y_label_area_size(40) + // Finally attach a coordinate on the drawing area and make a chart context + .build_cartesian_2d(0f32..10f32, 0f32..10f32)?; + + // Then we can draw a mesh + chart + .configure_mesh() + // We can customize the maximum number of labels allowed for each axis + .x_labels(5) + .y_labels(5) + // We can also change the format of the label text + .y_label_formatter(&|x| format!("{:.3}", x)) + .draw()?; + + // And we can draw something in the drawing area + chart.draw_series(LineSeries::new( + vec![(0.0, 0.0), (5.0, 5.0), (8.0, 7.0)], + &RED, + ))?; + // Similarly, we can draw point series + chart.draw_series(PointSeries::of_element( + vec![(0.0, 0.0), (5.0, 5.0), (8.0, 7.0)], + 5, + &RED, + &|c, s, st| { + return EmptyElement::at(c) // We want to construct a composed element on-the-fly + + Circle::new((0,0),s,st.filled()) // At this point, the new pixel coordinate is established + + Text::new(format!("{:?}", c), (10, 0), ("sans-serif", 10).into_font()); + }, + ))?; + root.present()?; + Ok(()) +} +``` + +![](https://plotters-rs.github.io/plotters-doc-data/5.png) + +## Misc + +### Development Version + +Find the latest development version of Plotters on [GitHub](https://github.com/plotters-rs/plotters.git). +Clone the repository and learn more about the Plotters API and ways to contribute. Your help is needed! + +If you want to add the development version of Plotters to your project, add the following to your `Cargo.toml`: + +```toml +[dependencies] +plotters = { git = "https://github.com/plotters-rs/plotters.git" } +``` + +### Reducing Depending Libraries && Turning Off Backends +Plotters now supports use features to control the backend dependencies. By default, `BitMapBackend` and `SVGBackend` are supported, +use `default-features = false` in the dependency description in `Cargo.toml` and you can cherry-pick the backend implementations. + +- `svg` Enable the `SVGBackend` +- `bitmap` Enable the `BitMapBackend` + +For example, the following dependency description would avoid compiling with bitmap support: + +```toml +[dependencies] +plotters = { git = "https://github.com/plotters-rs/plotters.git", default-features = false, features = ["svg"] } +``` + +The library also allows consumers to make use of the [`Palette`](https://crates.io/crates/palette/) crate's color types by default. +This behavior can also be turned off by setting `default-features = false`. + +### List of Features + +This is the full list of features that is defined by `Plotters` crate. +Use `default-features = false` to disable those default enabled features, +and then you should be able to cherry-pick what features you want to include into `Plotters` crate. +By doing so, you can minimize the number of dependencies down to only `itertools` and compile time is less than 6s. + +The following list is a complete list of features that can be opted in or out. + +- Tier 1 drawing backends + +| Name | Description | Additional Dependency |Default?| +|---------|--------------|--------|------------| +| bitmap\_encoder | Allow `BitMapBackend` to save the result to bitmap files | image, rusttype, font-kit | Yes | +| svg\_backend | Enable `SVGBackend` Support | None | Yes | +| bitmap\_gif| Opt-in GIF animation Rendering support for `BitMapBackend`, implies `bitmap` enabled | gif | Yes | + +- Font manipulation features + +| Name | Description | Additional Dependency | Default? | +|----------|------------------------------------------|-----------------------|----------| +| ttf | Allows TrueType font support | font-kit | Yes | +| ab_glyph | Skips loading system fonts, unlike `ttf` | ab_glyph | No | + +`ab_glyph` supports TrueType and OpenType fonts, but does not attempt to +load fonts provided by the system on which it is running. +It is pure Rust, and easier to cross compile. +To use this, you *must* call `plotters::style::register_font` before +using any `plotters` functions which require the ability to render text. +This function only exists when the `ab_glyph` feature is enabled. +```rust,ignore +/// 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> +``` + +- Coordinate features + +| Name | Description | Additional Dependency |Default?| +|---------|--------------|--------|------------| +| datetime | Enable the date and time coordinate support | chrono | Yes | + +- Element, series and util functions + +| Name | Description | Additional Dependency |Default?| +|---------|--------------|--------|------------| +| errorbar | The errorbar element support | None | Yes | +| candlestick | The candlestick element support | None | Yes | +| boxplot | The boxplot element support | None | Yes | +| area\_series | The area series support | None | Yes | +| line\_series | The line series support | None | Yes | +| histogram | The histogram series support | None | Yes | +| point\_series| The point series support | None | Yes | + +- Misc + +| Name | Description | Additional Dependency |Default?| +|---------|--------------|--------|------------| +| deprecated\_items | This feature allows use of deprecated items which is going to be removed in the future | None | Yes | +| debug | Enable the code used for debugging | None | No | + + +## FAQ List + +* Why does the WASM example break on my machine ? + + The WASM example requires using `wasm32` target to build. Using `cargo build` is likely to use the default target + which in most of the case is any of the x86 target. Thus you need add `--target=wasm32-unknown-unknown` in the cargo + parameter list to build it. + +* How to draw text/circle/point/rectangle/... on the top of chart ? + + As you may have realized, Plotters is a drawing library rather than a traditional data plotting library, + you have the freedom to draw anything you want on the drawing area. + Use `DrawingArea::draw` to draw any element on the drawing area. + +* Where can I find the backend code ? + + Since Plotters 0.3, all drawing backends are independent crate from the main Plotters crate. + Use the following link to find the backend code: + + - [Bitmap Backend](https://github.com/plotters-rs/plotters-bitmap.git) + - [SVG Backend](https://github.com/plotters-rs/plotters-svg.git) + - [HTML5 Canvas Backend](https://github.com/plotters-rs/plotters-canvas.git) + - [GTK/Cairo Backend](https://github.com/plotters-rs/plotters-cairo.git) + +* How to check if a backend writes to a file successfully ? + + The behavior of Plotters backend is consistent with the standard library. + When the backend instance is dropped, [`crate::drawing::DrawingArea::present()`] or `Backend::present()` is called automatically + whenever is needed. When the `present()` method is called from `drop`, any error will be silently ignored. + + In the case that error handling is important, you need manually call the `present()` method before the backend gets dropped. + For more information, please see the examples. + + + + + +*/ +pub mod chart; +pub mod coord; +pub mod data; +pub mod drawing; +pub mod element; +pub mod series; +pub mod style; + +/// Evaluation Context for Rust. See [the evcxr crate](https://crates.io/crates/evcxr) for more information. +#[cfg(feature = "evcxr")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "evcxr")))] +pub mod evcxr; + +#[cfg(test)] +pub use crate::drawing::{check_color, create_mocked_drawing_area}; + +/// The module imports the most commonly used types and modules in Plotters +pub mod prelude { + // Chart related types + pub use crate::chart::{ChartBuilder, ChartContext, LabelAreaPosition, SeriesLabelPosition}; + + // Coordinates + pub use crate::coord::{ + cartesian::Cartesian2d, + combinators::{ + make_partial_axis, BindKeyPointMethod, BindKeyPoints, BuildNestedCoord, GroupBy, + IntoLinspace, IntoLogRange, IntoPartialAxis, Linspace, LogCoord, LogScalable, + NestedRange, NestedValue, ToGroupByRange, + }, + ranged1d::{DiscreteRanged, IntoSegmentedCoord, Ranged, SegmentValue}, + CoordTranslate, + }; + + #[allow(deprecated)] + pub use crate::coord::combinators::LogRange; + + #[cfg(feature = "chrono")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "chrono")))] + pub use crate::coord::types::{ + IntoMonthly, IntoYearly, RangedDate, RangedDateTime, RangedDuration, + }; + + // Re-export the backend for backward compatibility + pub use plotters_backend::DrawingBackend; + + pub use crate::drawing::*; + + // Series helpers + #[cfg(feature = "area_series")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "area_series")))] + pub use crate::series::AreaSeries; + #[cfg(feature = "histogram")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "histogram")))] + pub use crate::series::Histogram; + #[cfg(feature = "point_series")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "point_series")))] + pub use crate::series::PointSeries; + #[cfg(feature = "surface_series")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "surface_series")))] + pub use crate::series::SurfaceSeries; + #[cfg(feature = "line_series")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "line_series")))] + pub use crate::series::{DashedLineSeries, DottedLineSeries, LineSeries}; + + // Styles + pub use crate::style::{BLACK, BLUE, CYAN, GREEN, MAGENTA, RED, TRANSPARENT, WHITE, YELLOW}; + + #[cfg(feature = "full_palette")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "full_palette")))] + pub use crate::style::full_palette; + + #[cfg(feature = "colormaps")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "colormaps")))] + pub use crate::style::colors::colormaps::*; + + pub use crate::style::{ + AsRelative, Color, FontDesc, FontFamily, FontStyle, FontTransform, HSLColor, IntoFont, + IntoTextStyle, Palette, Palette100, Palette99, Palette9999, PaletteColor, RGBAColor, + RGBColor, ShapeStyle, TextStyle, + }; + + // Elements + pub use crate::element::{ + Circle, Cross, Cubiod, DynElement, EmptyElement, IntoDynElement, MultiLineText, + PathElement, Pie, Pixel, Polygon, Rectangle, Text, TriangleMarker, + }; + + #[cfg(feature = "boxplot")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "boxplot")))] + pub use crate::element::Boxplot; + #[cfg(feature = "candlestick")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "candlestick")))] + pub use crate::element::CandleStick; + #[cfg(feature = "errorbar")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "errorbar")))] + pub use crate::element::ErrorBar; + + #[cfg(feature = "bitmap_backend")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "bitmap_backend")))] + pub use crate::element::BitMapElement; + + // Data + pub use crate::data::Quartiles; + + // TODO: This should be deprecated and completely removed + #[cfg(feature = "deprecated_items")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "deprecated_items")))] + #[allow(deprecated)] + pub use crate::element::Path; + + #[allow(type_alias_bounds)] + /// The type used to returns a drawing operation that can be failed + /// - `T`: The return type + /// - `D`: The drawing backend type + pub type DrawResult = + Result>; + + #[cfg(feature = "evcxr")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "evcxr")))] + pub use crate::evcxr::evcxr_figure; + + // Re-export tier 1 backends for backward compatibility + #[cfg(feature = "bitmap_backend")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "bitmap_backend")))] + pub use plotters_bitmap::BitMapBackend; + + #[cfg(feature = "svg_backend")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "svg_backend")))] + pub use plotters_svg::SVGBackend; +} + +/// This module contains some useful re-export of backend related types. +pub mod backend { + pub use plotters_backend::DrawingBackend; + #[cfg(feature = "bitmap_backend")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "bitmap_backend")))] + pub use plotters_bitmap::{ + bitmap_pixel::{BGRXPixel, PixelFormat, RGBPixel}, + BitMapBackend, + }; + #[cfg(feature = "svg_backend")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "svg_backend")))] + pub use plotters_svg::SVGBackend; +} + +#[cfg(test)] +mod test; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/area_series.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/area_series.rs new file mode 100644 index 0000000000000000000000000000000000000000..92c92619c5cacb6925a2fbb6e0101448943ad0de --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/area_series.rs @@ -0,0 +1,96 @@ +use crate::element::{DynElement, IntoDynElement, PathElement, Polygon}; +use crate::style::colors::TRANSPARENT; +use crate::style::ShapeStyle; +use plotters_backend::DrawingBackend; + +/** +An area series is similar to a line series but uses a filled polygon. +It takes an iterator of data points in guest coordinate system +and creates appropriate lines and points with the given style. + +# Example + +``` +use plotters::prelude::*; +let x_values = [0.0f64, 1., 2., 3., 4.]; +let drawing_area = SVGBackend::new("area_series.svg", (300, 200)).into_drawing_area(); +drawing_area.fill(&WHITE).unwrap(); +let mut chart_builder = ChartBuilder::on(&drawing_area); +chart_builder.margin(10).set_left_and_bottom_label_area_size(20); +let mut chart_context = chart_builder.build_cartesian_2d(0.0..4.0, 0.0..3.0).unwrap(); +chart_context.configure_mesh().draw().unwrap(); +chart_context.draw_series(AreaSeries::new(x_values.map(|x| (x, 0.3 * x)), 0., BLACK.mix(0.2))).unwrap(); +chart_context.draw_series(AreaSeries::new(x_values.map(|x| (x, 2.5 - 0.05 * x * x)), 0., RED.mix(0.2))).unwrap(); +chart_context.draw_series(AreaSeries::new(x_values.map(|x| (x, 2. - 0.1 * x * x)), 0., BLUE.mix(0.2)).border_style(BLUE)).unwrap(); +``` + +The result is a chart with three line series; one of them has a highlighted blue border: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@b6703f7/apidoc/area_series.svg) +*/ +pub struct AreaSeries { + area_style: ShapeStyle, + border_style: ShapeStyle, + baseline: Y, + data: Vec<(X, Y)>, + state: u32, + _p: std::marker::PhantomData, +} + +impl AreaSeries { + /** + Creates an area series with transparent border. + + See [`AreaSeries`] for more information and examples. + */ + pub fn new, I: IntoIterator>( + iter: I, + baseline: Y, + area_style: S, + ) -> Self { + Self { + area_style: area_style.into(), + baseline, + data: iter.into_iter().collect(), + state: 0, + border_style: (&TRANSPARENT).into(), + _p: std::marker::PhantomData, + } + } + + /** + Sets the border style of the area series. + + See [`AreaSeries`] for more information and examples. + */ + pub fn border_style>(mut self, style: S) -> Self { + self.border_style = style.into(); + self + } +} + +impl Iterator for AreaSeries { + type Item = DynElement<'static, DB, (X, Y)>; + fn next(&mut self) -> Option { + if self.state == 0 { + let mut data: Vec<_> = self.data.clone(); + + if !data.is_empty() { + data.push((data[data.len() - 1].0.clone(), self.baseline.clone())); + data.push((data[0].0.clone(), self.baseline.clone())); + } + + self.state = 1; + + Some(Polygon::new(data, self.area_style).into_dyn()) + } else if self.state == 1 { + let data: Vec<_> = self.data.clone(); + + self.state = 2; + + Some(PathElement::new(data, self.border_style).into_dyn()) + } else { + None + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/histogram.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/histogram.rs new file mode 100644 index 0000000000000000000000000000000000000000..2574727f2e4229682dda965e46a587c56f80a42a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/histogram.rs @@ -0,0 +1,280 @@ +use std::collections::{hash_map::IntoIter as HashMapIter, HashMap}; +use std::marker::PhantomData; +use std::ops::AddAssign; + +use crate::chart::ChartContext; +use crate::coord::cartesian::Cartesian2d; +use crate::coord::ranged1d::{DiscreteRanged, Ranged}; +use crate::element::Rectangle; +use crate::style::{Color, ShapeStyle, GREEN}; +use plotters_backend::DrawingBackend; + +pub trait HistogramType {} +pub struct Vertical; +pub struct Horizontal; + +impl HistogramType for Vertical {} +impl HistogramType for Horizontal {} + +/** +Presents data in a histogram. Input data can be raw or aggregated. + +# Examples + +``` +use plotters::prelude::*; +let data = [1, 1, 2, 2, 1, 3, 3, 2, 2, 1, 1, 2, 2, 2, 3, 3, 1, 2, 3]; +let drawing_area = SVGBackend::new("histogram_vertical.svg", (300, 200)).into_drawing_area(); +drawing_area.fill(&WHITE).unwrap(); +let mut chart_builder = ChartBuilder::on(&drawing_area); +chart_builder.margin(5).set_left_and_bottom_label_area_size(20); +let mut chart_context = chart_builder.build_cartesian_2d((1..3).into_segmented(), 0..9).unwrap(); +chart_context.configure_mesh().draw().unwrap(); +chart_context.draw_series(Histogram::vertical(&chart_context).style(BLUE.filled()).margin(10) + .data(data.map(|x| (x, 1)))).unwrap(); +``` + +The result is a histogram counting the occurrences of 1, 2, and 3 in `data`: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@a617d37/apidoc/histogram_vertical.svg) + +Here is a variation with [`Histogram::horizontal()`], replacing `(1..3).into_segmented(), 0..9` with +`0..9, (1..3).into_segmented()`: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@a617d37/apidoc/histogram_horizontal.svg) + +The spacing between histogram bars is adjusted with [`Histogram::margin()`]. +Here is a version of the figure where `.margin(10)` has been replaced by `.margin(20)`; +the resulting bars are narrow and more spaced: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@a617d37/apidoc/histogram_margin20.svg) + +[`crate::coord::ranged1d::IntoSegmentedCoord::into_segmented()`] is useful for discrete data; it makes sure the histogram bars +are centered on each data value. Here is another variation with `(1..3).into_segmented()` +replaced by `1..4`: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@a617d37/apidoc/histogram_not_segmented.svg) + +[`Histogram::style()`] sets the style of the bars. Here is a histogram without `.filled()`: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@a617d37/apidoc/histogram_hollow.svg) + +The following version uses [`Histogram::style_func()`] for finer control. Let's replace `.style(BLUE.filled())` with +`.style_func(|x, _bar_height| if let SegmentValue::Exact(v) = x {[BLACK, RED, GREEN, BLUE][*v as usize].filled()} else {BLACK.filled()})`. +The resulting bars come in different colors: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@a617d37/apidoc/histogram_style_func.svg) + +[`Histogram::baseline()`] adjusts the base of the bars. The following figure adds `.baseline(1)` +to the right of `.margin(10)`. The lower portion of the bars are removed: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@a617d37/apidoc/histogram_baseline.svg) + +The following figure uses [`Histogram::baseline_func()`] for finer control. Let's add +`.baseline_func(|x| if let SegmentValue::Exact(v) = x {*v as i32} else {0})` +to the right of `.margin(10)`. The lower portion of the bars are removed; the removed portion is taller +to the right: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@a617d37/apidoc/histogram_baseline_func.svg) +*/ +pub struct Histogram<'a, BR, A, Tag = Vertical> +where + BR: DiscreteRanged, + A: AddAssign + Default, + Tag: HistogramType, +{ + style: Box ShapeStyle + 'a>, + margin: u32, + iter: HashMapIter, + baseline: Box A + 'a>, + br: BR, + _p: PhantomData, +} + +impl<'a, BR, A, Tag> Histogram<'a, BR, A, Tag> +where + BR: DiscreteRanged + Clone, + A: AddAssign + Default + 'a, + Tag: HistogramType, +{ + fn empty(br: &BR) -> Self { + Self { + style: Box::new(|_, _| GREEN.filled()), + margin: 5, + iter: HashMap::new().into_iter(), + baseline: Box::new(|_| A::default()), + br: br.clone(), + _p: PhantomData, + } + } + /** + Sets the style of the histogram bars. + + See [`Histogram`] for more information and examples. + */ + pub fn style>(mut self, style: S) -> Self { + let style = style.into(); + self.style = Box::new(move |_, _| style); + self + } + + /** + Sets the style of histogram using a closure. + + The closure takes the position of the bar in guest coordinates as argument. + The argument may need some processing if the data range has been transformed by + [`crate::coord::ranged1d::IntoSegmentedCoord::into_segmented()`] as shown in the [`Histogram`] example. + */ + pub fn style_func( + mut self, + style_func: impl Fn(&BR::ValueType, &A) -> ShapeStyle + 'a, + ) -> Self { + self.style = Box::new(style_func); + self + } + + /** + Sets the baseline of the histogram. + + See [`Histogram`] for more information and examples. + */ + pub fn baseline(mut self, baseline: A) -> Self + where + A: Clone, + { + self.baseline = Box::new(move |_| baseline.clone()); + self + } + + /** + Sets the histogram bar baselines using a closure. + + The closure takes the bar position and height as argument. + The argument may need some processing if the data range has been transformed by + [`crate::coord::ranged1d::IntoSegmentedCoord::into_segmented()`] as shown in the [`Histogram`] example. + */ + pub fn baseline_func(mut self, func: impl Fn(&BR::ValueType) -> A + 'a) -> Self { + self.baseline = Box::new(func); + self + } + + /** + Sets the margin for each bar, in backend pixels. + + See [`Histogram`] for more information and examples. + */ + pub fn margin(mut self, value: u32) -> Self { + self.margin = value; + self + } + + /** + Specifies the input data for the histogram through an appropriate data iterator. + + See [`Histogram`] for more information and examples. + */ + pub fn data, I: IntoIterator>( + mut self, + iter: I, + ) -> Self { + let mut buffer = HashMap::::new(); + for (x, y) in iter.into_iter() { + if let Some(x) = self.br.index_of(&x.into()) { + *buffer.entry(x).or_default() += y; + } + } + self.iter = buffer.into_iter(); + self + } +} + +impl<'a, BR, A> Histogram<'a, BR, A, Vertical> +where + BR: DiscreteRanged + Clone, + A: AddAssign + Default + 'a, +{ + /** + Creates a vertical histogram. + + See [`Histogram`] for more information and examples. + */ + pub fn vertical( + parent: &ChartContext>, + ) -> Self + where + ACoord: Ranged, + { + let dp = parent.as_coord_spec().x_spec(); + + Self::empty(dp) + } +} + +impl<'a, BR, A> Histogram<'a, BR, A, Horizontal> +where + BR: DiscreteRanged + Clone, + A: AddAssign + Default + 'a, +{ + /** + Creates a horizontal histogram. + + See [`Histogram`] for more information and examples. + */ + pub fn horizontal( + parent: &ChartContext>, + ) -> Self + where + ACoord: Ranged, + { + let dp = parent.as_coord_spec().y_spec(); + Self::empty(dp) + } +} + +impl<'a, BR, A> Iterator for Histogram<'a, BR, A, Vertical> +where + BR: DiscreteRanged, + A: AddAssign + Default, +{ + type Item = Rectangle<(BR::ValueType, A)>; + fn next(&mut self) -> Option { + while let Some((x, y)) = self.iter.next() { + if let Some((x, Some(nx))) = self + .br + .from_index(x) + .map(|v| (v, self.br.from_index(x + 1))) + { + let base = (self.baseline)(&x); + let style = (self.style)(&x, &y); + let mut rect = Rectangle::new([(x, y), (nx, base)], style); + rect.set_margin(0, 0, self.margin, self.margin); + return Some(rect); + } + } + None + } +} + +impl<'a, BR, A> Iterator for Histogram<'a, BR, A, Horizontal> +where + BR: DiscreteRanged, + A: AddAssign + Default, +{ + type Item = Rectangle<(A, BR::ValueType)>; + fn next(&mut self) -> Option { + while let Some((y, x)) = self.iter.next() { + if let Some((y, Some(ny))) = self + .br + .from_index(y) + .map(|v| (v, self.br.from_index(y + 1))) + { + let base = (self.baseline)(&y); + let style = (self.style)(&y, &x); + let mut rect = Rectangle::new([(x, y), (base, ny)], style); + rect.set_margin(self.margin, self.margin, 0, 0); + return Some(rect); + } + } + None + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/line_series.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/line_series.rs new file mode 100644 index 0000000000000000000000000000000000000000..913366a70df437967b6115a1d86af4f9286db4af --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/line_series.rs @@ -0,0 +1,258 @@ +use crate::element::{ + Circle, DashedPathElement, DottedPathElement, DynElement, IntoDynElement, PathElement, +}; +use crate::style::{ShapeStyle, SizeDesc}; +use plotters_backend::{BackendCoord, DrawingBackend}; +use std::marker::PhantomData; + +/** +The line series object, which takes an iterator of data points in guest coordinate system +and creates appropriate lines and points with the given style. + +# Example + +``` +use plotters::prelude::*; +let x_values = [0.0f64, 1., 2., 3., 4.]; +let drawing_area = SVGBackend::new("line_series_point_size.svg", (300, 200)).into_drawing_area(); +drawing_area.fill(&WHITE).unwrap(); +let mut chart_builder = ChartBuilder::on(&drawing_area); +chart_builder.margin(10).set_left_and_bottom_label_area_size(20); +let mut chart_context = chart_builder.build_cartesian_2d(0.0..4.0, 0.0..3.0).unwrap(); +chart_context.configure_mesh().draw().unwrap(); +chart_context.draw_series(LineSeries::new(x_values.map(|x| (x, 0.3 * x)), BLACK)).unwrap(); +chart_context.draw_series(LineSeries::new(x_values.map(|x| (x, 2.5 - 0.05 * x * x)), RED) + .point_size(5)).unwrap(); +chart_context.draw_series(LineSeries::new(x_values.map(|x| (x, 2. - 0.1 * x * x)), BLUE.filled()) + .point_size(4)).unwrap(); +``` + +The result is a chart with three line series; two of them have their data points highlighted: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@64e0a28/apidoc/line_series_point_size.svg) +*/ +pub struct LineSeries { + style: ShapeStyle, + data: Vec, + point_idx: usize, + point_size: u32, + phantom: PhantomData, +} + +impl Iterator for LineSeries { + type Item = DynElement<'static, DB, Coord>; + fn next(&mut self) -> Option { + if !self.data.is_empty() { + if self.point_size > 0 && self.point_idx < self.data.len() { + let idx = self.point_idx; + self.point_idx += 1; + return Some( + Circle::new(self.data[idx].clone(), self.point_size, self.style).into_dyn(), + ); + } + let mut data = vec![]; + std::mem::swap(&mut self.data, &mut data); + Some(PathElement::new(data, self.style).into_dyn()) + } else { + None + } + } +} + +impl LineSeries { + /** + Creates a new line series based on a data iterator and a given style. + + See [`LineSeries`] for more information and examples. + */ + pub fn new, S: Into>(iter: I, style: S) -> Self { + Self { + style: style.into(), + data: iter.into_iter().collect(), + point_size: 0, + point_idx: 0, + phantom: PhantomData, + } + } + + /** + Sets the size of the points in the series, in pixels. + + See [`LineSeries`] for more information and examples. + */ + pub fn point_size(mut self, size: u32) -> Self { + self.point_size = size; + self + } +} + +/// A dashed line series, map an iterable object to the dashed line element. Can be used to draw simple dashed and dotted lines. +/// +/// If you want to use more complex shapes as points in the line, you can use `plotters::series::line_series::DottedLineSeries`. +/// +/// # Examples +/// +/// Dashed line: +/// ```Rust +/// chart_context +/// .draw_series(DashedLineSeries::new( +/// data_series, +/// 5, /* size = length of dash */ +/// 10, /* spacing */ +/// ShapeStyle { +/// color: BLACK.mix(1.0), +/// filled: false, +/// stroke_width: 1, +/// }, +/// )) +/// .unwrap(); +/// ``` +/// +/// Dotted line: (keep `size` and `stroke_width` the same to achieve dots) +/// ```Rust +/// chart_context +/// .draw_series(DashedLineSeries::new( +/// data_series, +/// 1, /* size = length of dash */ +/// 4, /* spacing, best to keep this at least 1 larger than size */ +/// ShapeStyle { +/// color: BLACK.mix(1.0), +/// filled: false, +/// stroke_width: 1, +/// }, +/// )) +/// .unwrap(); +/// ``` +pub struct DashedLineSeries { + points: I, + size: Size, + spacing: Size, + style: ShapeStyle, +} + +impl DashedLineSeries { + /// Create a new line series from + /// - `points`: The iterator of the points + /// - `size`: The dash size + /// - `spacing`: The dash-to-dash spacing (gap size) + /// - `style`: The shape style + /// - returns the created element + pub fn new(points: I0, size: Size, spacing: Size, style: ShapeStyle) -> Self + where + I0: IntoIterator, + { + Self { + points: points.into_iter(), + size, + spacing, + style, + } + } +} + +impl IntoIterator for DashedLineSeries { + type Item = DashedPathElement; + type IntoIter = std::iter::Once; + + fn into_iter(self) -> Self::IntoIter { + std::iter::once(DashedPathElement::new( + self.points, + self.size, + self.spacing, + self.style, + )) + } +} + +/// A dotted line series, map an iterable object to the dotted line element. +pub struct DottedLineSeries { + points: I, + shift: Size, + spacing: Size, + func: Box Marker>, +} + +impl DottedLineSeries { + /// Create a new line series from + /// - `points`: The iterator of the points + /// - `shift`: The shift of the first marker + /// - `spacing`: The spacing between markers + /// - `func`: The marker function + /// - returns the created element + pub fn new(points: I0, shift: Size, spacing: Size, func: F) -> Self + where + I0: IntoIterator, + F: Fn(BackendCoord) -> Marker + 'static, + { + Self { + points: points.into_iter(), + shift, + spacing, + func: Box::new(func), + } + } +} + +impl IntoIterator + for DottedLineSeries +{ + type Item = DottedPathElement; + type IntoIter = std::iter::Once; + + fn into_iter(self) -> Self::IntoIter { + std::iter::once(DottedPathElement::new( + self.points, + self.shift, + self.spacing, + self.func, + )) + } +} + +#[cfg(test)] +mod test { + use crate::prelude::*; + + #[test] + fn test_line_series() { + let drawing_area = create_mocked_drawing_area(200, 200, |m| { + m.check_draw_path(|c, s, _path| { + assert_eq!(c, RED.to_rgba()); + assert_eq!(s, 3); + // TODO when cleanup the backend coordinate definition, then we uncomment the + // following check + //for i in 0..100 { + // assert_eq!(path[i], (i as i32 * 2, 199 - i as i32 * 2)); + //} + }); + + m.drop_check(|b| { + assert_eq!(b.num_draw_path_call, 8); + assert_eq!(b.draw_count, 27); + }); + }); + + let mut chart = ChartBuilder::on(&drawing_area) + .build_cartesian_2d(0..100, 0..100) + .expect("Build chart error"); + + chart + .draw_series(LineSeries::new( + (0..100).map(|x| (x, x)), + Into::::into(RED).stroke_width(3), + )) + .expect("Drawing Error"); + chart + .draw_series(DashedLineSeries::new( + (0..=50).map(|x| (0, x)), + 10, + 5, + Into::::into(RED).stroke_width(3), + )) + .expect("Drawing Error"); + let mk_f = |c| Circle::new(c, 3, Into::::into(RED).filled()); + chart + .draw_series(DottedLineSeries::new((0..=50).map(|x| (x, 0)), 5, 5, mk_f)) + .expect("Drawing Error"); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..706bd211b0938e75b43469c174f8aab9797b87f9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/mod.rs @@ -0,0 +1,38 @@ +/*! + This module contains predefined types of series. + The series in Plotters is actually an iterator of elements, which + can be taken by `ChartContext::draw_series` function. + + This module defines some "iterator transformer", which transform the data + iterator to the element iterator. + + Any type that implements iterator emitting drawable elements are acceptable series. + So iterator combinator such as `map`, `zip`, etc can also be used. +*/ + +#[cfg(feature = "area_series")] +mod area_series; +#[cfg(feature = "histogram")] +mod histogram; +#[cfg(feature = "line_series")] +mod line_series; +#[cfg(feature = "point_series")] +mod point_series; +#[cfg(feature = "surface_series")] +mod surface; + +#[cfg(feature = "area_series")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "area_series")))] +pub use area_series::AreaSeries; +#[cfg(feature = "histogram")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "histogram")))] +pub use histogram::Histogram; +#[cfg(feature = "line_series")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "line_series")))] +pub use line_series::{DashedLineSeries, DottedLineSeries, LineSeries}; +#[cfg(feature = "point_series")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "point_series")))] +pub use point_series::PointSeries; +#[cfg(feature = "surface_series")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "surface_series")))] +pub use surface::SurfaceSeries; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/point_series.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/point_series.rs new file mode 100644 index 0000000000000000000000000000000000000000..a1e2107d5e5f378324a270b08f18d08712b8218a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/point_series.rs @@ -0,0 +1,61 @@ +use crate::element::PointElement; +use crate::style::{ShapeStyle, SizeDesc}; + +/// The point plot object, which takes an iterator of points in guest coordinate system +/// and create an element for each point +pub struct PointSeries<'a, Coord, I: IntoIterator, E, Size: SizeDesc + Clone> { + style: ShapeStyle, + size: Size, + data_iter: I::IntoIter, + make_point: &'a dyn Fn(Coord, Size, ShapeStyle) -> E, +} + +impl<'a, Coord, I: IntoIterator, E, Size: SizeDesc + Clone> Iterator + for PointSeries<'a, Coord, I, E, Size> +{ + type Item = E; + fn next(&mut self) -> Option { + self.data_iter + .next() + .map(|x| (self.make_point)(x, self.size.clone(), self.style)) + } +} + +impl<'a, Coord, I: IntoIterator, E, Size: SizeDesc + Clone> + PointSeries<'a, Coord, I, E, Size> +where + E: PointElement, +{ + /// Create a new point series with the element that implements point trait. + /// You may also use a more general way to create a point series with `of_element` + /// function which allows a customized element construction function + pub fn new>(iter: I, size: Size, style: S) -> Self { + Self { + data_iter: iter.into_iter(), + size, + style: style.into(), + make_point: &|a, b, c| E::make_point(a, b, c), + } + } +} + +impl<'a, Coord, I: IntoIterator, E, Size: SizeDesc + Clone> + PointSeries<'a, Coord, I, E, Size> +{ + /// Create a new point series. Similar to `PointSeries::new` but it doesn't + /// requires the element implements point trait. So instead of using the point + /// constructor, it uses the customized function for element creation + pub fn of_element, F: Fn(Coord, Size, ShapeStyle) -> E>( + iter: I, + size: Size, + style: S, + cons: &'a F, + ) -> Self { + Self { + data_iter: iter.into_iter(), + size, + style: style.into(), + make_point: cons, + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/surface.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/surface.rs new file mode 100644 index 0000000000000000000000000000000000000000..2621f4f17dc1f2fa7cc5a12ad744f6497e0ab76b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/series/surface.rs @@ -0,0 +1,250 @@ +use crate::element::Polygon; +use crate::style::{colors::BLUE, Color, ShapeStyle}; +use std::marker::PhantomData; + +/// Any type that describe a surface orientation +pub trait Direction { + /// The type for the first input argument + type Input1Type; + /// The type for the second input argument + type Input2Type; + /// The output of the surface function + type OutputType; + + /// The function that maps a point on surface into the coordinate system + fn make_coord( + free_vars: (Self::Input1Type, Self::Input2Type), + result: Self::OutputType, + ) -> (X, Y, Z); +} + +macro_rules! define_panel_descriptor { + ($name: ident, $var1: ident, $var2: ident, $out: ident, ($first: ident, $second:ident) -> $result: ident = $output: expr) => { + #[allow(clippy::upper_case_acronyms)] + pub struct $name; + impl Direction for $name { + type Input1Type = $var1; + type Input2Type = $var2; + type OutputType = $out; + fn make_coord( + ($first, $second): (Self::Input1Type, Self::Input2Type), + $result: Self::OutputType, + ) -> (X, Y, Z) { + $output + } + } + }; +} + +define_panel_descriptor!(XOY, X, Y, Z, (x, y) -> z = (x,y,z)); +define_panel_descriptor!(XOZ, X, Z, Y, (x, z) -> y = (x,y,z)); +define_panel_descriptor!(YOZ, Y, Z, X, (y, z) -> x = (x,y,z)); + +enum StyleConfig<'a, T> { + Fixed(ShapeStyle), + Function(&'a dyn Fn(&T) -> ShapeStyle), +} + +impl StyleConfig<'_, T> { + fn get_style(&self, v: &T) -> ShapeStyle { + match self { + StyleConfig::Fixed(s) => *s, + StyleConfig::Function(f) => f(v), + } + } +} + +/** +Represents functions of two variables. + +# Examples + +``` +use plotters::prelude::*; +let drawing_area = SVGBackend::new("surface_series_xoz.svg", (640, 480)).into_drawing_area(); +drawing_area.fill(&WHITE).unwrap(); +let mut chart_context = ChartBuilder::on(&drawing_area) + .margin(10) + .build_cartesian_3d(-3.0..3.0f64, -3.0..3.0f64, -3.0..3.0f64) + .unwrap(); +chart_context.configure_axes().draw().unwrap(); +let axis_title_style = ("sans-serif", 20, &BLACK).into_text_style(&drawing_area); +chart_context.draw_series([("x", (3., -3., -3.)), ("y", (-3., 3., -3.)), ("z", (-3., -3., 3.))] +.map(|(label, position)| Text::new(label, position, &axis_title_style))).unwrap(); +chart_context.draw_series(SurfaceSeries::xoz( + (-30..30).map(|v| v as f64 / 10.0), + (-30..30).map(|v| v as f64 / 10.0), + |x:f64,z:f64|(0.7 * (x * x + z * z)).cos()).style(&BLUE.mix(0.5)) +).unwrap(); +``` + +The code above with [`SurfaceSeries::xoy()`] produces a surface that depends on x and y and +points in the z direction: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@10ace42/apidoc/surface_series_xoy.svg) + +The code above with [`SurfaceSeries::xoz()`] produces a surface that depends on x and z and +points in the y direction: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@10ace42/apidoc/surface_series_xoz.svg) + +The code above with [`SurfaceSeries::yoz()`] produces a surface that depends on y and z and +points in the x direction: + +![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@10ace42/apidoc/surface_series_yoz.svg) +*/ +pub struct SurfaceSeries<'a, X, Y, Z, D, SurfaceFunc> +where + D: Direction, + SurfaceFunc: Fn(D::Input1Type, D::Input2Type) -> D::OutputType, +{ + free_var_1: Vec, + free_var_2: Vec, + surface_f: SurfaceFunc, + style: StyleConfig<'a, D::OutputType>, + vidx_1: usize, + vidx_2: usize, + _phantom: PhantomData<(X, Y, Z, D)>, +} + +impl<'a, X, Y, Z, D, SurfaceFunc> SurfaceSeries<'a, X, Y, Z, D, SurfaceFunc> +where + D: Direction, + SurfaceFunc: Fn(D::Input1Type, D::Input2Type) -> D::OutputType, +{ + /// Create a new surface series, the surface orientation is determined by D + pub fn new, IterB: Iterator>( + first_iter: IterA, + second_iter: IterB, + func: SurfaceFunc, + ) -> Self { + Self { + free_var_1: first_iter.collect(), + free_var_2: second_iter.collect(), + surface_f: func, + style: StyleConfig::Fixed(BLUE.mix(0.4).filled()), + vidx_1: 0, + vidx_2: 0, + _phantom: PhantomData, + } + } + + /** + Sets the style as a function of the value of the dependent coordinate of the surface. + + # Examples + + ``` + use plotters::prelude::*; + let drawing_area = SVGBackend::new("surface_series_style_func.svg", (640, 480)).into_drawing_area(); + drawing_area.fill(&WHITE).unwrap(); + let mut chart_context = ChartBuilder::on(&drawing_area) + .margin(10) + .build_cartesian_3d(-3.0..3.0f64, -3.0..3.0f64, -3.0..3.0f64) + .unwrap(); + chart_context.configure_axes().draw().unwrap(); + let axis_title_style = ("sans-serif", 20, &BLACK).into_text_style(&drawing_area); + chart_context.draw_series([("x", (3., -3., -3.)), ("y", (-3., 3., -3.)), ("z", (-3., -3., 3.))] + .map(|(label, position)| Text::new(label, position, &axis_title_style))).unwrap(); + chart_context.draw_series(SurfaceSeries::xoz( + (-30..30).map(|v| v as f64 / 10.0), + (-30..30).map(|v| v as f64 / 10.0), + |x:f64,z:f64|(0.4 * (x * x + z * z)).cos()).style_func( + &|y| HSLColor(0.6666, y + 0.5, 0.5).mix(0.8).filled() + ) + ).unwrap(); + ``` + + The resulting style varies from gray to blue according to the value of y: + + ![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@da8400f/apidoc/surface_series_style_func.svg) + */ + pub fn style_func ShapeStyle>(mut self, f: &'a F) -> Self { + self.style = StyleConfig::Function(f); + self + } + + /// Sets the style of the plot. See [`SurfaceSeries`] for more information and examples. + pub fn style>(mut self, s: S) -> Self { + self.style = StyleConfig::Fixed(s.into()); + self + } +} + +macro_rules! impl_constructor { + ($dir: ty, $name: ident) => { + impl<'a, X, Y, Z, SurfaceFunc> SurfaceSeries<'a, X, Y, Z, $dir, SurfaceFunc> + where + SurfaceFunc: Fn( + <$dir as Direction>::Input1Type, + <$dir as Direction>::Input2Type, + ) -> <$dir as Direction>::OutputType, + { + /// Implements the constructor. See [`SurfaceSeries`] for more information and examples. + pub fn $name(a: IterA, b: IterB, f: SurfaceFunc) -> Self + where + IterA: Iterator>::Input1Type>, + IterB: Iterator>::Input2Type>, + { + Self::new(a, b, f) + } + } + }; +} + +impl_constructor!(XOY, xoy); +impl_constructor!(XOZ, xoz); +impl_constructor!(YOZ, yoz); +impl<'a, X, Y, Z, D, SurfaceFunc> Iterator for SurfaceSeries<'a, X, Y, Z, D, SurfaceFunc> +where + D: Direction, + D::Input1Type: Clone, + D::Input2Type: Clone, + SurfaceFunc: Fn(D::Input1Type, D::Input2Type) -> D::OutputType, +{ + type Item = Polygon<(X, Y, Z)>; + fn next(&mut self) -> Option { + let (b0, b1) = if let (Some(b0), Some(b1)) = ( + self.free_var_2.get(self.vidx_2), + self.free_var_2.get(self.vidx_2 + 1), + ) { + self.vidx_2 += 1; + (b0, b1) + } else { + self.vidx_1 += 1; + self.vidx_2 = 1; + if let (Some(b0), Some(b1)) = (self.free_var_2.first(), self.free_var_2.get(1)) { + (b0, b1) + } else { + return None; + } + }; + + match ( + self.free_var_1.get(self.vidx_1), + self.free_var_1.get(self.vidx_1 + 1), + ) { + (Some(a0), Some(a1)) => { + let value = (self.surface_f)(a0.clone(), b0.clone()); + let style = self.style.get_style(&value); + let vert = vec![ + D::make_coord((a0.clone(), b0.clone()), value), + D::make_coord( + (a0.clone(), b1.clone()), + (self.surface_f)(a0.clone(), b1.clone()), + ), + D::make_coord( + (a1.clone(), b1.clone()), + (self.surface_f)(a1.clone(), b1.clone()), + ), + D::make_coord( + (a1.clone(), b0.clone()), + (self.surface_f)(a1.clone(), b0.clone()), + ), + ]; + Some(Polygon::new(vert, style)) + } + _ => None, + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/color.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/color.rs new file mode 100644 index 0000000000000000000000000000000000000000..2a5fbf02c91e05ec31efb6a06bd6572f39b50812 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/color.rs @@ -0,0 +1,184 @@ +use super::palette::Palette; +use super::ShapeStyle; + +use plotters_backend::{BackendColor, BackendStyle}; + +use std::marker::PhantomData; + +/// Any color representation +pub trait Color { + /// Normalize this color representation to the backend color + fn to_backend_color(&self) -> BackendColor; + + /// Convert the RGB representation to the standard RGB tuple + #[inline(always)] + fn rgb(&self) -> (u8, u8, u8) { + self.to_backend_color().rgb + } + + /// Get the alpha channel of the color + #[inline(always)] + fn alpha(&self) -> f64 { + self.to_backend_color().alpha + } + + /// Mix the color with given opacity + fn mix(&self, value: f64) -> RGBAColor { + let (r, g, b) = self.rgb(); + let a = self.alpha() * value; + RGBAColor(r, g, b, a) + } + + /// Convert the color into the RGBA color which is internally used by Plotters + fn to_rgba(&self) -> RGBAColor { + let (r, g, b) = self.rgb(); + let a = self.alpha(); + RGBAColor(r, g, b, a) + } + + /// Make a filled style form the color + fn filled(&self) -> ShapeStyle + where + Self: Sized, + { + Into::::into(self).filled() + } + + /// Make a shape style with stroke width from a color + fn stroke_width(&self, width: u32) -> ShapeStyle + where + Self: Sized, + { + Into::::into(self).stroke_width(width) + } +} + +impl Color for &'_ T { + fn to_backend_color(&self) -> BackendColor { + ::to_backend_color(*self) + } +} + +/// The RGBA representation of the color, Plotters use RGBA as the internal representation +/// of color +/// +/// If you want to directly create a RGB color with transparency use [RGBColor::mix] +#[derive(Copy, Clone, PartialEq, Debug, Default)] +pub struct RGBAColor(pub u8, pub u8, pub u8, pub f64); + +impl Color for RGBAColor { + #[inline(always)] + fn to_backend_color(&self) -> BackendColor { + BackendColor { + rgb: (self.0, self.1, self.2), + alpha: self.3, + } + } +} + +impl From for RGBAColor { + fn from(rgb: RGBColor) -> Self { + Self(rgb.0, rgb.1, rgb.2, 1.0) + } +} + +/// A color in the given palette +#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug, Default)] +pub struct PaletteColor(usize, PhantomData

); + +impl PaletteColor

{ + /// Pick a color from the palette + pub fn pick(idx: usize) -> PaletteColor

{ + PaletteColor(idx % P::COLORS.len(), PhantomData) + } +} + +impl Color for PaletteColor

{ + #[inline(always)] + fn to_backend_color(&self) -> BackendColor { + BackendColor { + rgb: P::COLORS[self.0], + alpha: 1.0, + } + } +} + +/// The color described by its RGB value +#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug, Default)] +pub struct RGBColor(pub u8, pub u8, pub u8); + +impl BackendStyle for RGBAColor { + fn color(&self) -> BackendColor { + self.to_backend_color() + } +} + +impl Color for RGBColor { + #[inline(always)] + fn to_backend_color(&self) -> BackendColor { + BackendColor { + rgb: (self.0, self.1, self.2), + alpha: 1.0, + } + } +} +impl BackendStyle for RGBColor { + fn color(&self) -> BackendColor { + self.to_backend_color() + } +} + +/// The color described by HSL color space +#[derive(Copy, Clone, PartialEq, Debug, Default)] +pub struct HSLColor(pub f64, pub f64, pub f64); + +impl Color for HSLColor { + #[inline(always)] + #[allow(clippy::many_single_char_names)] + fn to_backend_color(&self) -> BackendColor { + let (h, s, l) = ( + self.0.clamp(0.0, 1.0), + self.1.clamp(0.0, 1.0), + self.2.clamp(0.0, 1.0), + ); + + if s == 0.0 { + let value = (l * 255.0).round() as u8; + return BackendColor { + rgb: (value, value, value), + alpha: 1.0, + }; + } + + let q = if l < 0.5 { + l * (1.0 + s) + } else { + l + s - l * s + }; + let p = 2.0 * l - q; + + let cvt = |mut t| { + if t < 0.0 { + t += 1.0; + } + if t > 1.0 { + t -= 1.0; + } + let value = if t < 1.0 / 6.0 { + p + (q - p) * 6.0 * t + } else if t < 1.0 / 2.0 { + q + } else if t < 2.0 / 3.0 { + p + (q - p) * (2.0 / 3.0 - t) * 6.0 + } else { + p + }; + (value * 255.0).round() as u8 + }; + + BackendColor { + rgb: (cvt(h + 1.0 / 3.0), cvt(h), cvt(h - 1.0 / 3.0)), + alpha: 1.0, + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..90bed9f343c9059f23956d923964fa60389954a9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/mod.rs @@ -0,0 +1,30 @@ +/*! + The style for shapes and text, font, color, etc. +*/ +mod color; +pub mod colors; +mod font; +mod palette; +mod shape; +mod size; +mod text; + +/// Definitions of palettes of accessibility +pub use self::palette::*; +pub use color::{Color, HSLColor, PaletteColor, RGBAColor, RGBColor}; +pub use colors::{BLACK, BLUE, CYAN, GREEN, MAGENTA, RED, TRANSPARENT, WHITE, YELLOW}; + +#[cfg(feature = "full_palette")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "full_palette")))] +pub use colors::full_palette; + +#[cfg(all(not(target_arch = "wasm32"), feature = "ab_glyph"))] +pub use font::register_font; +pub use font::{ + FontDesc, FontError, FontFamily, FontResult, FontStyle, FontTransform, IntoFont, LayoutBox, +}; + +pub use shape::ShapeStyle; +pub use size::{AsRelative, RelativeSize, SizeDesc}; +pub use text::text_anchor; +pub use text::{IntoTextStyle, TextStyle}; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/test.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/test.rs new file mode 100644 index 0000000000000000000000000000000000000000..2c94f08247301f3c2bd1cb410e4e03016e734565 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/test.rs @@ -0,0 +1,22 @@ +use crate::prelude::*; + +#[cfg(feature = "svg_backend")] +#[test] +fn regression_test_issue_267() { + let p1 = (338, 122); + let p2 = (365, 122); + + let mut backend = SVGBackend::new("blub.png", (800, 600)); + + backend + .draw_line(p1, p2, &RGBColor(0, 0, 0).stroke_width(0)) + .unwrap(); +} + +#[test] +fn from_trait_impl_rgba_color() { + let rgb = RGBColor(1, 2, 3); + let c = RGBAColor::from(rgb); + + assert_eq!(c.rgb(), rgb.rgb()); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/lib.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/lib.rs new file mode 100644 index 0000000000000000000000000000000000000000..0b35d1a3ea2b217f23edb9d7b419cba53f06fc3d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/lib.rs @@ -0,0 +1,329 @@ +/*! + The Plotters backend API crate. This is a part of Plotters, the Rust drawing and plotting library, for more details regarding the entire + Plotters project, please check the [main crate](https://crates.io/crates/plotters). + + This is the crate that used as the connector between Plotters and different backend crates. Since Plotters 0.3, all the backends has been + hosted as separate crates for the usability and maintainability reasons. + + At the same time, Plotters is now supporting third-party backends and all the backends are now supports "plug-and-play": + To use a external backend, just depends on both the Plotters main crate and the third-party backend crate. + + # Notes for implementing Backend for Plotters + + To create a new Plotters backend, this crate should be imported to the crate and the trait [DrawingBackend](trait.DrawingBackend.html) should + be implemented. It's highly recommended that the third-party backend uses `plotters-backend` by version specification `^x.y.*`. + For more details, see the [compatibility note](#compatibility-note). + + If the backend only implements [DrawingBackend::draw_pixel](trait.DrawingBackend.html#tymethod.draw_pixel), the default CPU rasterizer will be + used to give your backend ability of drawing different shapes. For those backend that supports advanced drawing instructions, such as, GPU + accelerated shape drawing, all the provided trait method can be overridden from the specific backend code. + + If your backend have text rendering ability, you may want to override the [DrawingBackend::estimate_text_size](trait.DrawingBackend.html#tymethod.estimate_text_size) + to avoid wrong spacing, since the Plotters default text handling code may behaves differently from the backend in terms of text rendering. + + ## Animated or Realtime Rendering + Backend might render the image realtimely/animated, for example, a GTK backend for realtime display or a GIF image rendering. To support these + features, you need to play with `ensure_prepared` and `present` method. The following figure illustrates how Plotters operates a drawing backend. + + - `ensure_prepared` - Called before each time when plotters want to draw. This function should initialize the backend for current frame, if the backend is already prepared + for a frame, this function should simply do nothing. + - `present` - Called when plotters want to finish current frame drawing + + + ```text + .ensure_prepared() && + +-------------+ +-------------+ .draw_pixels() +--------------+ drop + |Start drawing|--->|Ready to draw| ------------------------+---->|Finish 1 frame| ---------> + +-------------+ +-------------+ | +--------------+ + ^ ^ | | + | +------------------------------- + | + | continue drawing | + +----------------------------------------------------------------+ + start render the next frame + .present() + ``` + - For both animated and static drawing, `DrawingBackend::present` indicates current frame should be flushed. + - For both animated and static drawing, `DrawingBackend::ensure_prepared` is called every time when plotters need to draw. + - For static drawing, the `DrawingBackend::present` is only called once manually, or from the Drop impl for the backend. + - For dynamic drawing, frames are defined by invocation of `DrawingBackend::present`, everything prior the invocation should belongs to previous frame + + # Compatibility Note + Since Plotters v0.3, plotters use the "plug-and-play" schema to import backends, this requires both Plotters and the backend crates depends on a + same version of `plotters-backend` crate. This crate (`plotters-backend`) will enforce that any revision (means the last number in a version number) + won't contains breaking change - both on the Plotters side and backend side. + + Plotters main crate is always importing the backend crate with version specification `plotters-backend = "^.*"`. + It's highly recommended that all the external crates follows the same rule to import `plotters-backend` dependency, to avoid potential breaking + caused by `plotters-backend` crates gets a revision update. + + We also impose a versioning rule with `plotters` and some backends: + The compatible main crate (`plotters`) and this crate (`plotters-backend`) are always use the same major and minor version number. + All the plotters main crate and second-party backends with version "x.y.*" should be compatible, and they should depens on the latest version of `plotters-backend x.y.*` + +*/ +use std::error::Error; + +pub mod rasterizer; +mod style; +mod text; + +pub use style::{BackendColor, BackendStyle}; +pub use text::{text_anchor, BackendTextStyle, FontFamily, FontStyle, FontTransform}; + +use text_anchor::{HPos, VPos}; + +/// A coordinate in the pixel-based backend. The coordinate follows the framebuffer's convention, +/// which defines the top-left point as (0, 0). +pub type BackendCoord = (i32, i32); + +/// The error produced by a drawing backend. +#[derive(Debug)] +pub enum DrawingErrorKind { + /// A drawing backend error + DrawingError(E), + /// A font rendering error + FontError(Box), +} + +impl std::fmt::Display for DrawingErrorKind { + fn fmt(&self, fmt: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { + match self { + DrawingErrorKind::DrawingError(e) => write!(fmt, "Drawing backend error: {}", e), + DrawingErrorKind::FontError(e) => write!(fmt, "Font loading error: {}", e), + } + } +} + +impl Error for DrawingErrorKind {} + +/// The drawing backend trait, which implements the low-level drawing APIs. +/// This trait has a set of default implementation. And the minimal requirement of +/// implementing a drawing backend is implementing the `draw_pixel` function. +/// +/// If the drawing backend supports vector graphics, the other drawing APIs should be +/// override by the backend specific implementation. Otherwise, the default implementation +/// will use the pixel-based approach to draw other types of low-level shapes. +pub trait DrawingBackend: Sized { + /// The error type reported by the backend + type ErrorType: Error + Send + Sync; + + /// Get the dimension of the drawing backend in pixels + fn get_size(&self) -> (u32, u32); + + /// Ensure the backend is ready to draw + fn ensure_prepared(&mut self) -> Result<(), DrawingErrorKind>; + + /// Finalize the drawing step and present all the changes. + /// This is used as the real-time rendering support. + /// The backend may implement in the following way, when `ensure_prepared` is called + /// it checks if it needs a fresh buffer and `present` is called rendering all the + /// pending changes on the screen. + fn present(&mut self) -> Result<(), DrawingErrorKind>; + + /// Draw a pixel on the drawing backend + /// - `point`: The backend pixel-based coordinate to draw + /// - `color`: The color of the pixel + fn draw_pixel( + &mut self, + point: BackendCoord, + color: BackendColor, + ) -> Result<(), DrawingErrorKind>; + + /// Draw a line on the drawing backend + /// - `from`: The start point of the line + /// - `to`: The end point of the line + /// - `style`: The style of the line + fn draw_line( + &mut self, + from: BackendCoord, + to: BackendCoord, + style: &S, + ) -> Result<(), DrawingErrorKind> { + rasterizer::draw_line(self, from, to, style) + } + + /// Draw a rectangle on the drawing backend + /// - `upper_left`: The coordinate of the upper-left corner of the rect + /// - `bottom_right`: The coordinate of the bottom-right corner of the rect + /// - `style`: The style + /// - `fill`: If the rectangle should be filled + fn draw_rect( + &mut self, + upper_left: BackendCoord, + bottom_right: BackendCoord, + style: &S, + fill: bool, + ) -> Result<(), DrawingErrorKind> { + rasterizer::draw_rect(self, upper_left, bottom_right, style, fill) + } + + /// Draw a path on the drawing backend + /// - `path`: The iterator of key points of the path + /// - `style`: The style of the path + fn draw_path>( + &mut self, + path: I, + style: &S, + ) -> Result<(), DrawingErrorKind> { + if style.color().alpha == 0.0 { + return Ok(()); + } + + if style.stroke_width() == 1 { + let mut begin: Option = None; + for end in path.into_iter() { + if let Some(begin) = begin { + let result = self.draw_line(begin, end, style); + #[allow(clippy::question_mark)] + if result.is_err() { + return result; + } + } + begin = Some(end); + } + } else { + let p: Vec<_> = path.into_iter().collect(); + let v = rasterizer::polygonize(&p[..], style.stroke_width()); + return self.fill_polygon(v, &style.color()); + } + Ok(()) + } + + /// Draw a circle on the drawing backend + /// - `center`: The center coordinate of the circle + /// - `radius`: The radius of the circle + /// - `style`: The style of the shape + /// - `fill`: If the circle should be filled + fn draw_circle( + &mut self, + center: BackendCoord, + radius: u32, + style: &S, + fill: bool, + ) -> Result<(), DrawingErrorKind> { + rasterizer::draw_circle(self, center, radius, style, fill) + } + + fn fill_polygon>( + &mut self, + vert: I, + style: &S, + ) -> Result<(), DrawingErrorKind> { + let vert_buf: Vec<_> = vert.into_iter().collect(); + + rasterizer::fill_polygon(self, &vert_buf[..], style) + } + + /// Draw a text on the drawing backend + /// - `text`: The text to draw + /// - `style`: The text style + /// - `pos` : The text anchor point + fn draw_text( + &mut self, + text: &str, + style: &TStyle, + pos: BackendCoord, + ) -> Result<(), DrawingErrorKind> { + let color = style.color(); + if color.alpha == 0.0 { + return Ok(()); + } + + let layout = style + .layout_box(text) + .map_err(|e| DrawingErrorKind::FontError(Box::new(e)))?; + let ((min_x, min_y), (max_x, max_y)) = layout; + let width = max_x - min_x; + let height = max_y - min_y; + let dx = match style.anchor().h_pos { + HPos::Left => 0, + HPos::Right => -width, + HPos::Center => -width / 2, + }; + let dy = match style.anchor().v_pos { + VPos::Top => 0, + VPos::Center => -height / 2, + VPos::Bottom => -height, + }; + let trans = style.transform(); + let (w, h) = self.get_size(); + let drawing_result = style.draw(text, (0, 0), |x, y, color| { + let (x, y) = trans.transform(x + dx - min_x, y + dy - min_y); + let (x, y) = (pos.0 + x, pos.1 + y); + if x >= 0 && x < w as i32 && y >= 0 && y < h as i32 { + self.draw_pixel((x, y), color) + } else { + Ok(()) + } + }); + match drawing_result { + Ok(drawing_result) => drawing_result, + Err(font_error) => Err(DrawingErrorKind::FontError(Box::new(font_error))), + } + } + + /// Estimate the size of the horizontal text if rendered on this backend. + /// This is important because some of the backend may not have font ability. + /// Thus this allows those backend reports proper value rather than ask the + /// font rasterizer for that. + /// + /// - `text`: The text to estimate + /// - `font`: The font to estimate + /// - *Returns* The estimated text size + fn estimate_text_size( + &self, + text: &str, + style: &TStyle, + ) -> Result<(u32, u32), DrawingErrorKind> { + let layout = style + .layout_box(text) + .map_err(|e| DrawingErrorKind::FontError(Box::new(e)))?; + Ok(( + ((layout.1).0 - (layout.0).0) as u32, + ((layout.1).1 - (layout.0).1) as u32, + )) + } + + /// Blit a bitmap on to the backend. + /// + /// - `text`: pos the left upper conner of the bitmap to blit + /// - `src`: The source of the image + /// + /// TODO: The default implementation of bitmap blitting assumes that the bitmap is RGB, but + /// this may not be the case. But for bitmap backend it's actually ok if we use the bitmap + /// element that matches the pixel format, but we need to fix this. + fn blit_bitmap( + &mut self, + pos: BackendCoord, + (iw, ih): (u32, u32), + src: &[u8], + ) -> Result<(), DrawingErrorKind> { + let (w, h) = self.get_size(); + + for dx in 0..iw { + if pos.0 + dx as i32 >= w as i32 { + break; + } + for dy in 0..ih { + if pos.1 + dy as i32 >= h as i32 { + break; + } + // FIXME: This assume we have RGB image buffer + let r = src[(dx + dy * iw) as usize * 3]; + let g = src[(dx + dy * iw) as usize * 3 + 1]; + let b = src[(dx + dy * iw) as usize * 3 + 2]; + let color = BackendColor { + alpha: 1.0, + rgb: (r, g, b), + }; + let result = self.draw_pixel((pos.0 + dx as i32, pos.1 + dy as i32), color); + #[allow(clippy::question_mark)] + if result.is_err() { + return result; + } + } + } + + Ok(()) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/circle.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/circle.rs new file mode 100644 index 0000000000000000000000000000000000000000..fa7fc50d73076f6485c420f78be8f41aa837b553 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/circle.rs @@ -0,0 +1,341 @@ +use crate::{BackendCoord, BackendStyle, DrawingBackend, DrawingErrorKind}; + +fn draw_part_a< + B: DrawingBackend, + Draw: FnMut(i32, (f64, f64)) -> Result<(), DrawingErrorKind>, +>( + height: f64, + radius: u32, + mut draw: Draw, +) -> Result<(), DrawingErrorKind> { + let half_width = (radius as f64 * radius as f64 + - (radius as f64 - height) * (radius as f64 - height)) + .sqrt(); + + let x0 = (-half_width).ceil() as i32; + let x1 = half_width.floor() as i32; + + let y0 = (radius as f64 - height).ceil(); + + for x in x0..=x1 { + let y1 = (radius as f64 * radius as f64 - x as f64 * x as f64).sqrt(); + check_result!(draw(x, (y0, y1))); + } + + Ok(()) +} + +fn draw_part_b< + B: DrawingBackend, + Draw: FnMut(i32, (f64, f64)) -> Result<(), DrawingErrorKind>, +>( + from: f64, + size: f64, + mut draw: Draw, +) -> Result<(), DrawingErrorKind> { + let from = from.floor(); + for x in (from - size).floor() as i32..=from as i32 { + check_result!(draw(x, (-x as f64, x as f64))); + } + Ok(()) +} + +fn draw_part_c< + B: DrawingBackend, + Draw: FnMut(i32, (f64, f64)) -> Result<(), DrawingErrorKind>, +>( + r: i32, + r_limit: i32, + mut draw: Draw, +) -> Result<(), DrawingErrorKind> { + let half_size = r as f64 / (2f64).sqrt(); + + let (x0, x1) = ((-half_size).ceil() as i32, half_size.floor() as i32); + + for x in x0..x1 { + let outer_y0 = ((r_limit as f64) * (r_limit as f64) - x as f64 * x as f64).sqrt(); + let inner_y0 = r as f64 - 1.0; + let mut y1 = outer_y0.min(inner_y0); + let y0 = ((r as f64) * (r as f64) - x as f64 * x as f64).sqrt(); + + if y0 > y1 { + y1 = y0.ceil(); + if y1 >= r as f64 { + continue; + } + } + + check_result!(draw(x, (y0, y1))); + } + + for x in x1 + 1..r { + let outer_y0 = ((r_limit as f64) * (r_limit as f64) - x as f64 * x as f64).sqrt(); + let inner_y0 = r as f64 - 1.0; + let y0 = outer_y0.min(inner_y0); + let y1 = x as f64; + + if y1 < y0 { + check_result!(draw(x, (y0, y1 + 1.0))); + check_result!(draw(-x, (y0, y1 + 1.0))); + } + } + + Ok(()) +} + +fn draw_sweep_line( + b: &mut B, + style: &S, + (x0, y0): BackendCoord, + (dx, dy): (i32, i32), + p0: i32, + (s, e): (f64, f64), +) -> Result<(), DrawingErrorKind> { + let mut s = if dx < 0 || dy < 0 { -s } else { s }; + let mut e = if dx < 0 || dy < 0 { -e } else { e }; + if s > e { + std::mem::swap(&mut s, &mut e); + } + + let vs = s.ceil() - s; + let ve = e - e.floor(); + + if dx == 0 { + check_result!(b.draw_line( + (p0 + x0, s.ceil() as i32 + y0), + (p0 + x0, e.floor() as i32 + y0), + &style.color() + )); + check_result!(b.draw_pixel((p0 + x0, s.ceil() as i32 + y0 - 1), style.color().mix(vs))); + check_result!(b.draw_pixel((p0 + x0, e.floor() as i32 + y0 + 1), style.color().mix(ve))); + } else { + check_result!(b.draw_line( + (s.ceil() as i32 + x0, p0 + y0), + (e.floor() as i32 + x0, p0 + y0), + &style.color() + )); + check_result!(b.draw_pixel((s.ceil() as i32 + x0 - 1, p0 + y0), style.color().mix(vs))); + check_result!(b.draw_pixel((e.floor() as i32 + x0 + 1, p0 + y0), style.color().mix(ve))); + } + + Ok(()) +} + +fn draw_annulus( + b: &mut B, + center: BackendCoord, + radius: (u32, u32), + style: &S, +) -> Result<(), DrawingErrorKind> { + let a0 = ((radius.0 - radius.1) as f64).min(radius.0 as f64 * (1.0 - 1.0 / (2f64).sqrt())); + let a1 = (radius.0 as f64 - a0 - radius.1 as f64).max(0.0); + + check_result!(draw_part_a::(a0, radius.0, |p, r| draw_sweep_line( + b, + style, + center, + (0, 1), + p, + r + ))); + check_result!(draw_part_a::(a0, radius.0, |p, r| draw_sweep_line( + b, + style, + center, + (0, -1), + p, + r + ))); + check_result!(draw_part_a::(a0, radius.0, |p, r| draw_sweep_line( + b, + style, + center, + (1, 0), + p, + r + ))); + check_result!(draw_part_a::(a0, radius.0, |p, r| draw_sweep_line( + b, + style, + center, + (-1, 0), + p, + r + ))); + + if a1 > 0.0 { + check_result!(draw_part_b::( + radius.0 as f64 - a0, + a1.floor(), + |h, (f, t)| { + let f = f as i32; + let t = t as i32; + check_result!(b.draw_line( + (center.0 + h, center.1 + f), + (center.0 + h, center.1 + t), + &style.color() + )); + check_result!(b.draw_line( + (center.0 - h, center.1 + f), + (center.0 - h, center.1 + t), + &style.color() + )); + + check_result!(b.draw_line( + (center.0 + f + 1, center.1 + h), + (center.0 + t - 1, center.1 + h), + &style.color() + )); + check_result!(b.draw_line( + (center.0 + f + 1, center.1 - h), + (center.0 + t - 1, center.1 - h), + &style.color() + )); + + Ok(()) + } + )); + } + + check_result!(draw_part_c::( + radius.1 as i32, + radius.0 as i32, + |p, r| draw_sweep_line(b, style, center, (0, 1), p, r) + )); + check_result!(draw_part_c::( + radius.1 as i32, + radius.0 as i32, + |p, r| draw_sweep_line(b, style, center, (0, -1), p, r) + )); + check_result!(draw_part_c::( + radius.1 as i32, + radius.0 as i32, + |p, r| draw_sweep_line(b, style, center, (1, 0), p, r) + )); + check_result!(draw_part_c::( + radius.1 as i32, + radius.0 as i32, + |p, r| draw_sweep_line(b, style, center, (-1, 0), p, r) + )); + + let d_inner = ((radius.1 as f64) / (2f64).sqrt()) as i32; + let d_outer = (((radius.0 as f64) / (2f64).sqrt()) as i32).min(radius.1 as i32 - 1); + let d_outer_actually = (radius.1 as i32).min( + (radius.0 as f64 * radius.0 as f64 - radius.1 as f64 * radius.1 as f64 / 2.0) + .sqrt() + .ceil() as i32, + ); + + check_result!(b.draw_line( + (center.0 - d_inner, center.1 - d_inner), + (center.0 - d_outer, center.1 - d_outer), + &style.color() + )); + check_result!(b.draw_line( + (center.0 + d_inner, center.1 - d_inner), + (center.0 + d_outer, center.1 - d_outer), + &style.color() + )); + check_result!(b.draw_line( + (center.0 - d_inner, center.1 + d_inner), + (center.0 - d_outer, center.1 + d_outer), + &style.color() + )); + check_result!(b.draw_line( + (center.0 + d_inner, center.1 + d_inner), + (center.0 + d_outer, center.1 + d_outer), + &style.color() + )); + + check_result!(b.draw_line( + (center.0 - d_inner, center.1 + d_inner), + (center.0 - d_outer_actually, center.1 + d_inner), + &style.color() + )); + check_result!(b.draw_line( + (center.0 + d_inner, center.1 - d_inner), + (center.0 + d_inner, center.1 - d_outer_actually), + &style.color() + )); + check_result!(b.draw_line( + (center.0 + d_inner, center.1 + d_inner), + (center.0 + d_inner, center.1 + d_outer_actually), + &style.color() + )); + check_result!(b.draw_line( + (center.0 + d_inner, center.1 + d_inner), + (center.0 + d_outer_actually, center.1 + d_inner), + &style.color() + )); + + Ok(()) +} + +pub fn draw_circle( + b: &mut B, + center: BackendCoord, + mut radius: u32, + style: &S, + mut fill: bool, +) -> Result<(), DrawingErrorKind> { + if style.color().alpha == 0.0 { + return Ok(()); + } + + if !fill && style.stroke_width() != 1 { + let inner_radius = radius - (style.stroke_width() / 2).min(radius); + radius += style.stroke_width() / 2; + if inner_radius > 0 { + return draw_annulus(b, center, (radius, inner_radius), style); + } else { + fill = true; + } + } + + let min = (f64::from(radius) * (1.0 - (2f64).sqrt() / 2.0)).ceil() as i32; + let max = (f64::from(radius) * (1.0 + (2f64).sqrt() / 2.0)).floor() as i32; + + let range = min..=max; + + let (up, down) = ( + range.start() + center.1 - radius as i32, + range.end() + center.1 - radius as i32, + ); + + for dy in range { + let dy = dy - radius as i32; + let y = center.1 + dy; + + let lx = (f64::from(radius) * f64::from(radius) + - (f64::from(dy) * f64::from(dy)).max(1e-5)) + .sqrt(); + + let left = center.0 - lx.floor() as i32; + let right = center.0 + lx.floor() as i32; + + let v = lx - lx.floor(); + + let x = center.0 + dy; + let top = center.1 - lx.floor() as i32; + let bottom = center.1 + lx.floor() as i32; + + if fill { + check_result!(b.draw_line((left, y), (right, y), &style.color())); + check_result!(b.draw_line((x, top), (x, up - 1), &style.color())); + check_result!(b.draw_line((x, down + 1), (x, bottom), &style.color())); + } else { + check_result!(b.draw_pixel((left, y), style.color().mix(1.0 - v))); + check_result!(b.draw_pixel((right, y), style.color().mix(1.0 - v))); + + check_result!(b.draw_pixel((x, top), style.color().mix(1.0 - v))); + check_result!(b.draw_pixel((x, bottom), style.color().mix(1.0 - v))); + } + + check_result!(b.draw_pixel((left - 1, y), style.color().mix(v))); + check_result!(b.draw_pixel((right + 1, y), style.color().mix(v))); + check_result!(b.draw_pixel((x, top - 1), style.color().mix(v))); + check_result!(b.draw_pixel((x, bottom + 1), style.color().mix(v))); + } + + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/line.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/line.rs new file mode 100644 index 0000000000000000000000000000000000000000..ae1ddd4cf2fc0eadbbb9521093922805e0a3e3fa --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/line.rs @@ -0,0 +1,123 @@ +use crate::{BackendCoord, BackendStyle, DrawingBackend, DrawingErrorKind}; + +pub fn draw_line( + back: &mut DB, + mut from: BackendCoord, + mut to: BackendCoord, + style: &S, +) -> Result<(), DrawingErrorKind> { + if style.color().alpha == 0.0 || style.stroke_width() == 0 { + return Ok(()); + } + + if style.stroke_width() != 1 { + // If the line is wider than 1px, then we need to make it a polygon + let v = (i64::from(to.0 - from.0), i64::from(to.1 - from.1)); + let l = ((v.0 * v.0 + v.1 * v.1) as f64).sqrt(); + + if l < 1e-5 { + return Ok(()); + } + + let v = (v.0 as f64 / l, v.1 as f64 / l); + + let r = f64::from(style.stroke_width()) / 2.0; + let mut trans = [(v.1 * r, -v.0 * r), (-v.1 * r, v.0 * r)]; + let mut vertices = vec![]; + + for point in [from, to].iter() { + for t in trans.iter() { + vertices.push(( + (f64::from(point.0) + t.0) as i32, + (f64::from(point.1) + t.1) as i32, + )) + } + + trans.swap(0, 1); + } + + return back.fill_polygon(vertices, style); + } + + if from.0 == to.0 { + if from.1 > to.1 { + std::mem::swap(&mut from, &mut to); + } + for y in from.1..=to.1 { + check_result!(back.draw_pixel((from.0, y), style.color())); + } + return Ok(()); + } + + if from.1 == to.1 { + if from.0 > to.0 { + std::mem::swap(&mut from, &mut to); + } + for x in from.0..=to.0 { + check_result!(back.draw_pixel((x, from.1), style.color())); + } + return Ok(()); + } + + let steep = (from.0 - to.0).abs() < (from.1 - to.1).abs(); + + if steep { + from = (from.1, from.0); + to = (to.1, to.0); + } + + let (from, to) = if from.0 > to.0 { + (to, from) + } else { + (from, to) + }; + + let mut size_limit = back.get_size(); + + if steep { + size_limit = (size_limit.1, size_limit.0); + } + + let grad = f64::from(to.1 - from.1) / f64::from(to.0 - from.0); + + let mut put_pixel = |(x, y): BackendCoord, b: f64| { + if steep { + back.draw_pixel((y, x), style.color().mix(b)) + } else { + back.draw_pixel((x, y), style.color().mix(b)) + } + }; + + let y_step_limit = + (f64::from(to.1.min(size_limit.1 as i32 - 1).max(0) - from.1) / grad).floor() as i32; + + let batch_start = (f64::from(from.1.min(size_limit.1 as i32 - 2).max(0) - from.1) / grad) + .abs() + .ceil() as i32 + + from.0; + + let batch_limit = + to.0.min(size_limit.0 as i32 - 2) + .min(from.0 + y_step_limit - 1); + + let mut y = f64::from(from.1) + f64::from(batch_start - from.0) * grad; + + for x in batch_start..=batch_limit { + check_result!(put_pixel((x, y as i32), 1.0 + y.floor() - y)); + check_result!(put_pixel((x, y as i32 + 1), y - y.floor())); + + y += grad; + } + + if to.0 > batch_limit && y < f64::from(to.1) { + let x = batch_limit + 1; + if 1.0 + y.floor() - y > 1e-5 { + check_result!(put_pixel((x, y as i32), 1.0 + y.floor() - y)); + } + if y - y.floor() > 1e-5 && y + 1.0 < f64::from(to.1) { + check_result!(put_pixel((x, y as i32 + 1), y - y.floor())); + } + } + + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..b475acd24886bc1b3849623715350a82e305976d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/mod.rs @@ -0,0 +1,41 @@ +/*! # The built-in rasterizers. + + Plotters make a minimal backend ability assumption - which is drawing a pixel on + backend. And this is the rasterizer that utilize this minimal ability to build a + fully functioning backend. + +*/ + +// TODO: We need to revisit this. It has been a long time since last time we figured out +// the question mark operator has a huge performance impact due to LLVM unable to handle it. +// So the question is if this trick is still useful, or LLVM is smart enough to handle it since +// then. +// +// -- +// Original comment: +// +// ? operator is very slow. See issue #58 for details +macro_rules! check_result { + ($e:expr) => { + let result = $e; + #[allow(clippy::question_mark)] + if result.is_err() { + return result; + } + }; +} + +mod line; +pub use line::draw_line; + +mod rect; +pub use rect::draw_rect; + +mod circle; +pub use circle::draw_circle; + +mod polygon; +pub use polygon::fill_polygon; + +mod path; +pub use path::polygonize; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/path.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/path.rs new file mode 100644 index 0000000000000000000000000000000000000000..004461c28e579875ba9cf504831e638c725dfdd5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/path.rs @@ -0,0 +1,172 @@ +use crate::BackendCoord; + +// Compute the tanginal and normal vectors of the given straight line. +fn get_dir_vector(from: BackendCoord, to: BackendCoord, flag: bool) -> ((f64, f64), (f64, f64)) { + let v = (i64::from(to.0 - from.0), i64::from(to.1 - from.1)); + let l = ((v.0 * v.0 + v.1 * v.1) as f64).sqrt(); + + let v = (v.0 as f64 / l, v.1 as f64 / l); + + if flag { + (v, (v.1, -v.0)) + } else { + (v, (-v.1, v.0)) + } +} + +// Compute the polygonized vertex of the given angle +// d is the distance between the polygon edge and the actual line. +// d can be negative, this will emit a vertex on the other side of the line. +fn compute_polygon_vertex(triple: &[BackendCoord; 3], d: f64, buf: &mut Vec) { + buf.clear(); + + // Compute the tanginal and normal vectors of the given straight line. + let (a_t, a_n) = get_dir_vector(triple[0], triple[1], false); + let (b_t, b_n) = get_dir_vector(triple[2], triple[1], true); + + // Compute a point that is d away from the line for line a and line b. + let a_p = ( + f64::from(triple[1].0) + d * a_n.0, + f64::from(triple[1].1) + d * a_n.1, + ); + let b_p = ( + f64::from(triple[1].0) + d * b_n.0, + f64::from(triple[1].1) + d * b_n.1, + ); + + // Check if 3 points are colinear, up to precision. If so, just emit the point. + if (a_t.1 * b_t.0 - a_t.0 * b_t.1).abs() <= f64::EPSILON { + buf.push((a_p.0 as i32, a_p.1 as i32)); + return; + } + + // So we are actually computing the intersection of two lines: + // a_p + u * a_t and b_p + v * b_t. + // We can solve the following vector equation: + // u * a_t + a_p = v * b_t + b_p + // + // which is actually a equation system: + // u * a_t.0 - v * b_t.0 = b_p.0 - a_p.0 + // u * a_t.1 - v * b_t.1 = b_p.1 - a_p.1 + + // The following vars are coefficients of the linear equation system. + // a0*u + b0*v = c0 + // a1*u + b1*v = c1 + // in which x and y are the coordinates that two polygon edges intersect. + + let a0 = a_t.0; + let b0 = -b_t.0; + let c0 = b_p.0 - a_p.0; + let a1 = a_t.1; + let b1 = -b_t.1; + let c1 = b_p.1 - a_p.1; + + // Since the points are not collinear, the determinant is not 0, and we can get a intersection point. + let u = (c0 * b1 - c1 * b0) / (a0 * b1 - a1 * b0); + let x = a_p.0 + u * a_t.0; + let y = a_p.1 + u * a_t.1; + + let cross_product = a_t.0 * b_t.1 - a_t.1 * b_t.0; + if (cross_product < 0.0 && d < 0.0) || (cross_product > 0.0 && d > 0.0) { + // Then we are at the outer side of the angle, so we need to consider a cap. + let dist_square = (x - triple[1].0 as f64).powi(2) + (y - triple[1].1 as f64).powi(2); + // If the point is too far away from the line, we need to cap it. + if dist_square > d * d * 16.0 { + buf.push((a_p.0.round() as i32, a_p.1.round() as i32)); + buf.push((b_p.0.round() as i32, b_p.1.round() as i32)); + return; + } + } + + buf.push((x.round() as i32, y.round() as i32)); +} + +fn traverse_vertices<'a>( + mut vertices: impl Iterator, + width: u32, + mut op: impl FnMut(BackendCoord), +) { + let mut a = vertices.next().unwrap(); + let mut b = vertices.next().unwrap(); + + while a == b { + a = b; + if let Some(new_b) = vertices.next() { + b = new_b; + } else { + return; + } + } + + let (_, n) = get_dir_vector(*a, *b, false); + + op(( + (f64::from(a.0) + n.0 * f64::from(width) / 2.0).round() as i32, + (f64::from(a.1) + n.1 * f64::from(width) / 2.0).round() as i32, + )); + + let mut recent = [(0, 0), *a, *b]; + let mut vertex_buf = Vec::with_capacity(3); + + for p in vertices { + if *p == recent[2] { + continue; + } + recent.swap(0, 1); + recent.swap(1, 2); + recent[2] = *p; + compute_polygon_vertex(&recent, f64::from(width) / 2.0, &mut vertex_buf); + vertex_buf.iter().cloned().for_each(&mut op); + } + + let b = recent[1]; + let a = recent[2]; + + let (_, n) = get_dir_vector(a, b, true); + + op(( + (f64::from(a.0) + n.0 * f64::from(width) / 2.0).round() as i32, + (f64::from(a.1) + n.1 * f64::from(width) / 2.0).round() as i32, + )); +} + +/// Covert a path with >1px stroke width into polygon. +pub fn polygonize(vertices: &[BackendCoord], stroke_width: u32) -> Vec { + if vertices.len() < 2 { + return vec![]; + } + + let mut ret = vec![]; + + traverse_vertices(vertices.iter(), stroke_width, |v| ret.push(v)); + traverse_vertices(vertices.iter().rev(), stroke_width, |v| ret.push(v)); + + ret +} + +#[cfg(test)] +mod test { + use super::*; + + /// Test for regression with respect to https://github.com/plotters-rs/plotters/issues/562 + #[test] + fn test_no_inf_in_compute_polygon_vertex() { + let path = [(335, 386), (338, 326), (340, 286)]; + let mut buf = Vec::new(); + compute_polygon_vertex(&path, 2.0, buf.as_mut()); + assert!(!buf.is_empty()); + let nani32 = f64::INFINITY as i32; + assert!(!buf.iter().any(|&v| v.0 == nani32 || v.1 == nani32)); + } + + /// Correct 90 degree turn to the right + #[test] + fn standard_corner() { + let path = [(10, 10), (20, 10), (20, 20)]; + let mut buf = Vec::new(); + compute_polygon_vertex(&path, 2.0, buf.as_mut()); + assert!(!buf.is_empty()); + let buf2 = vec![(18, 12)]; + assert_eq!(buf, buf2); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/polygon.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/polygon.rs new file mode 100644 index 0000000000000000000000000000000000000000..a91baf530cdac0795b30e103c09f50b6385e9045 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/polygon.rs @@ -0,0 +1,242 @@ +use crate::{BackendCoord, BackendStyle, DrawingBackend, DrawingErrorKind}; + +use std::cmp::{Ord, Ordering, PartialOrd}; + +#[derive(Clone, Debug)] +struct Edge { + epoch: u32, + total_epoch: u32, + slave_begin: i32, + slave_end: i32, +} + +impl Edge { + fn horizontal_sweep(mut from: BackendCoord, mut to: BackendCoord) -> Option { + if from.0 == to.0 { + return None; + } + + if from.0 > to.0 { + std::mem::swap(&mut from, &mut to); + } + + Some(Edge { + epoch: 0, + total_epoch: (to.0 - from.0) as u32, + slave_begin: from.1, + slave_end: to.1, + }) + } + + fn vertical_sweep(from: BackendCoord, to: BackendCoord) -> Option { + Edge::horizontal_sweep((from.1, from.0), (to.1, to.0)) + } + + fn get_master_pos(&self) -> i32 { + (self.total_epoch - self.epoch) as i32 + } + + fn inc_epoch(&mut self) { + self.epoch += 1; + } + + fn get_slave_pos(&self) -> f64 { + f64::from(self.slave_begin) + + (i64::from(self.slave_end - self.slave_begin) * i64::from(self.epoch)) as f64 + / f64::from(self.total_epoch) + } +} + +impl PartialOrd for Edge { + fn partial_cmp(&self, other: &Self) -> Option { + Some(self.cmp(other)) + } +} + +impl PartialEq for Edge { + fn eq(&self, other: &Self) -> bool { + self.get_slave_pos() == other.get_slave_pos() + } +} + +impl Eq for Edge {} + +impl Ord for Edge { + fn cmp(&self, other: &Self) -> Ordering { + self.get_slave_pos() + .partial_cmp(&other.get_slave_pos()) + .unwrap() + } +} + +pub fn fill_polygon( + back: &mut DB, + vertices: &[BackendCoord], + style: &S, +) -> Result<(), DrawingErrorKind> { + if let Some((x_span, y_span)) = + vertices + .iter() + .fold(None, |res: Option<((i32, i32), (i32, i32))>, (x, y)| { + Some( + res.map(|((min_x, max_x), (min_y, max_y))| { + ( + (min_x.min(*x), max_x.max(*x)), + (min_y.min(*y), max_y.max(*y)), + ) + }) + .unwrap_or(((*x, *x), (*y, *y))), + ) + }) + { + // First of all, let's handle the case that all the points is in a same vertical or + // horizontal line + if x_span.0 == x_span.1 || y_span.0 == y_span.1 { + return back.draw_line((x_span.0, y_span.0), (x_span.1, y_span.1), style); + } + + let horizontal_sweep = x_span.1 - x_span.0 > y_span.1 - y_span.0; + + let mut edges: Vec<_> = vertices + .iter() + .zip(vertices.iter().skip(1)) + .map(|(a, b)| (*a, *b)) + .collect(); + edges.push((vertices[vertices.len() - 1], vertices[0])); + edges.sort_by_key(|((x1, y1), (x2, y2))| { + if horizontal_sweep { + *x1.min(x2) + } else { + *y1.min(y2) + } + }); + + for edge in &mut edges.iter_mut() { + if horizontal_sweep { + if (edge.0).0 > (edge.1).0 { + std::mem::swap(&mut edge.0, &mut edge.1); + } + } else if (edge.0).1 > (edge.1).1 { + std::mem::swap(&mut edge.0, &mut edge.1); + } + } + + let (low, high) = if horizontal_sweep { x_span } else { y_span }; + + let mut idx = 0; + + let mut active_edge: Vec = vec![]; + + for sweep_line in low..=high { + let mut new_vec = vec![]; + + for mut e in active_edge { + if e.get_master_pos() > 0 { + e.inc_epoch(); + new_vec.push(e); + } + } + + active_edge = new_vec; + + loop { + if idx >= edges.len() { + break; + } + let line = if horizontal_sweep { + (edges[idx].0).0 + } else { + (edges[idx].0).1 + }; + if line > sweep_line { + break; + } + + let edge_obj = if horizontal_sweep { + Edge::horizontal_sweep(edges[idx].0, edges[idx].1) + } else { + Edge::vertical_sweep(edges[idx].0, edges[idx].1) + }; + + if let Some(edge_obj) = edge_obj { + active_edge.push(edge_obj); + } + + idx += 1; + } + + active_edge.sort(); + + let mut first = None; + let mut second = None; + + for edge in active_edge.iter() { + if first.is_none() { + first = Some(edge.clone()) + } else if second.is_none() { + second = Some(edge.clone()) + } + + if let Some(a) = first.clone() { + if let Some(b) = second.clone() { + if a.get_master_pos() == 0 && b.get_master_pos() != 0 { + first = Some(b); + second = None; + continue; + } + + if a.get_master_pos() != 0 && b.get_master_pos() == 0 { + first = Some(a); + second = None; + continue; + } + + let from = a.get_slave_pos(); + let to = b.get_slave_pos(); + + if a.get_master_pos() == 0 && b.get_master_pos() == 0 && to - from > 1.0 { + first = None; + second = None; + continue; + } + + if horizontal_sweep { + check_result!(back.draw_line( + (sweep_line, from.ceil() as i32), + (sweep_line, to.floor() as i32), + &style.color(), + )); + check_result!(back.draw_pixel( + (sweep_line, from.floor() as i32), + style.color().mix(from.ceil() - from), + )); + check_result!(back.draw_pixel( + (sweep_line, to.ceil() as i32), + style.color().mix(to - to.floor()), + )); + } else { + check_result!(back.draw_line( + (from.ceil() as i32, sweep_line), + (to.floor() as i32, sweep_line), + &style.color(), + )); + check_result!(back.draw_pixel( + (from.floor() as i32, sweep_line), + style.color().mix(from.ceil() - from), + )); + check_result!(back.draw_pixel( + (to.ceil() as i32, sweep_line), + style.color().mix(to.floor() - to), + )); + } + + first = None; + second = None; + } + } + } + } + } + + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/rect.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/rect.rs new file mode 100644 index 0000000000000000000000000000000000000000..cd6c77400fd4ae11c590f25cd991bba3a4099ce7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/rasterizer/rect.rs @@ -0,0 +1,57 @@ +use crate::{BackendCoord, BackendStyle, DrawingBackend, DrawingErrorKind}; + +pub fn draw_rect( + b: &mut B, + upper_left: BackendCoord, + bottom_right: BackendCoord, + style: &S, + fill: bool, +) -> Result<(), DrawingErrorKind> { + if style.color().alpha == 0.0 { + return Ok(()); + } + let (upper_left, bottom_right) = ( + ( + upper_left.0.min(bottom_right.0), + upper_left.1.min(bottom_right.1), + ), + ( + upper_left.0.max(bottom_right.0), + upper_left.1.max(bottom_right.1), + ), + ); + + if fill { + if bottom_right.0 - upper_left.0 < bottom_right.1 - upper_left.1 { + for x in upper_left.0..=bottom_right.0 { + check_result!(b.draw_line((x, upper_left.1), (x, bottom_right.1), style)); + } + } else { + for y in upper_left.1..=bottom_right.1 { + check_result!(b.draw_line((upper_left.0, y), (bottom_right.0, y), style)); + } + } + } else { + b.draw_line( + (upper_left.0, upper_left.1), + (upper_left.0, bottom_right.1), + style, + )?; + b.draw_line( + (upper_left.0, upper_left.1), + (bottom_right.0, upper_left.1), + style, + )?; + b.draw_line( + (bottom_right.0, bottom_right.1), + (upper_left.0, bottom_right.1), + style, + )?; + b.draw_line( + (bottom_right.0, bottom_right.1), + (bottom_right.0, upper_left.1), + style, + )?; + } + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/style.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/style.rs new file mode 100644 index 0000000000000000000000000000000000000000..028a06bcb9093db01291583cfa6784d72ba38f50 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/style.rs @@ -0,0 +1,33 @@ +/// The color type that is used by all the backend +#[derive(Clone, Copy)] +pub struct BackendColor { + pub alpha: f64, + pub rgb: (u8, u8, u8), +} + +impl BackendColor { + #[inline(always)] + pub fn mix(&self, alpha: f64) -> Self { + Self { + alpha: self.alpha * alpha, + rgb: self.rgb, + } + } +} + +/// The style data for the backend drawing API +pub trait BackendStyle { + /// Get the color of current style + fn color(&self) -> BackendColor; + + /// Get the stroke width of current style + fn stroke_width(&self) -> u32 { + 1 + } +} + +impl BackendStyle for BackendColor { + fn color(&self) -> BackendColor { + *self + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/text.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/text.rs new file mode 100644 index 0000000000000000000000000000000000000000..98fe4befd681bc4b23c2e21987b1a2950b7b3cb0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-backend-0.3.7/src/text.rs @@ -0,0 +1,231 @@ +use super::{BackendColor, BackendCoord}; +use std::error::Error; + +/// Describes font family. +/// This can be either a specific font family name, such as "arial", +/// or a general font family class, such as "serif" and "sans-serif" +#[derive(Clone, Copy)] +pub enum FontFamily<'a> { + /// The system default serif font family + Serif, + /// The system default sans-serif font family + SansSerif, + /// The system default monospace font + Monospace, + /// A specific font family name + Name(&'a str), +} + +impl<'a> FontFamily<'a> { + /// Make a CSS compatible string for the font family name. + /// This can be used as the value of `font-family` attribute in SVG. + pub fn as_str(&self) -> &str { + match self { + FontFamily::Serif => "serif", + FontFamily::SansSerif => "sans-serif", + FontFamily::Monospace => "monospace", + FontFamily::Name(face) => face, + } + } +} + +impl<'a> From<&'a str> for FontFamily<'a> { + fn from(from: &'a str) -> FontFamily<'a> { + match from.to_lowercase().as_str() { + "serif" => FontFamily::Serif, + "sans-serif" => FontFamily::SansSerif, + "monospace" => FontFamily::Monospace, + _ => FontFamily::Name(from), + } + } +} + +/// Text anchor attributes are used to properly position the text. +/// +/// # Examples +/// +/// In the example below, the text anchor (X) position is `Pos::new(HPos::Right, VPos::Center)`. +/// ```text +/// ***** X +/// ``` +/// The position is always relative to the text regardless of its rotation. +/// In the example below, the text has style +/// `style.transform(FontTransform::Rotate90).pos(Pos::new(HPos::Center, VPos::Top))`. +/// ```text +/// * +/// * +/// * X +/// * +/// * +/// ``` +pub mod text_anchor { + /// The horizontal position of the anchor point relative to the text. + #[derive(Clone, Copy, Default)] + pub enum HPos { + /// Anchor point is on the left side of the text + #[default] + Left, + /// Anchor point is on the right side of the text + Right, + /// Anchor point is in the horizontal center of the text + Center, + } + + /// The vertical position of the anchor point relative to the text. + #[derive(Clone, Copy, Default)] + pub enum VPos { + /// Anchor point is on the top of the text + #[default] + Top, + /// Anchor point is in the vertical center of the text + Center, + /// Anchor point is on the bottom of the text + Bottom, + } + + /// The text anchor position. + #[derive(Clone, Copy, Default)] + pub struct Pos { + /// The horizontal position of the anchor point + pub h_pos: HPos, + /// The vertical position of the anchor point + pub v_pos: VPos, + } + + impl Pos { + /// Create a new text anchor position. + /// + /// - `h_pos`: The horizontal position of the anchor point + /// - `v_pos`: The vertical position of the anchor point + /// - **returns** The newly created text anchor position + /// + /// ```rust + /// use plotters_backend::text_anchor::{Pos, HPos, VPos}; + /// + /// let pos = Pos::new(HPos::Left, VPos::Top); + /// ``` + pub fn new(h_pos: HPos, v_pos: VPos) -> Self { + Pos { h_pos, v_pos } + } + } +} + +/// Specifying text transformations +#[derive(Clone)] +pub enum FontTransform { + /// Nothing to transform + None, + /// Rotating the text 90 degree clockwise + Rotate90, + /// Rotating the text 180 degree clockwise + Rotate180, + /// Rotating the text 270 degree clockwise + Rotate270, +} + +impl FontTransform { + /// Transform the coordinate to perform the rotation + /// + /// - `x`: The x coordinate in pixels before transform + /// - `y`: The y coordinate in pixels before transform + /// - **returns**: The coordinate after transform + pub fn transform(&self, x: i32, y: i32) -> (i32, i32) { + match self { + FontTransform::None => (x, y), + FontTransform::Rotate90 => (-y, x), + FontTransform::Rotate180 => (-x, -y), + FontTransform::Rotate270 => (y, -x), + } + } +} + +/// Describes the font style. Such as Italic, Oblique, etc. +#[derive(Clone, Copy)] +pub enum FontStyle { + /// The normal style + Normal, + /// The oblique style + Oblique, + /// The italic style + Italic, + /// The bold style + Bold, +} + +impl FontStyle { + /// Convert the font style into a CSS compatible string which can be used in `font-style` attribute. + pub fn as_str(&self) -> &str { + match self { + FontStyle::Normal => "normal", + FontStyle::Italic => "italic", + FontStyle::Oblique => "oblique", + FontStyle::Bold => "bold", + } + } +} + +impl<'a> From<&'a str> for FontStyle { + fn from(from: &'a str) -> FontStyle { + match from.to_lowercase().as_str() { + "normal" => FontStyle::Normal, + "italic" => FontStyle::Italic, + "oblique" => FontStyle::Oblique, + "bold" => FontStyle::Bold, + _ => FontStyle::Normal, + } + } +} + +/// The trait that abstracts a style of a text. +/// +/// This is used because the the backend crate have no knowledge about how +/// the text handling is implemented in plotters. +/// +/// But the backend still wants to know some information about the font, for +/// the backend doesn't handles text drawing, may want to call the `draw` method which +/// is implemented by the plotters main crate. While for the backend that handles the +/// text drawing, those font information provides instructions about how the text should be +/// rendered: color, size, slant, anchor, font, etc. +/// +/// This trait decouples the detailed implementation about the font and the backend code which +/// wants to perform some operation on the font. +/// +pub trait BackendTextStyle { + /// The error type of this text style implementation + type FontError: Error + Sync + Send + 'static; + + fn color(&self) -> BackendColor { + BackendColor { + alpha: 1.0, + rgb: (0, 0, 0), + } + } + + fn size(&self) -> f64 { + 1.0 + } + + fn transform(&self) -> FontTransform { + FontTransform::None + } + + fn style(&self) -> FontStyle { + FontStyle::Normal + } + + fn anchor(&self) -> text_anchor::Pos { + text_anchor::Pos::default() + } + + fn family(&self) -> FontFamily; + + #[allow(clippy::type_complexity)] + fn layout_box(&self, text: &str) -> Result<((i32, i32), (i32, i32)), Self::FontError>; + + fn draw Result<(), E>>( + &self, + text: &str, + pos: BackendCoord, + draw: DrawFunc, + ) -> Result, Self::FontError>; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/src/arc.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/src/arc.rs new file mode 100644 index 0000000000000000000000000000000000000000..ee0be1022228d17d5442c1810654f89177f4e983 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/src/arc.rs @@ -0,0 +1,3410 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + +// This module is based on alloc::sync::Arc. +// +// The code has been adjusted to work with stable Rust (and optionally support some unstable features). +// +// Source: https://github.com/rust-lang/rust/blob/1.93.0/library/alloc/src/sync.rs +// +// Copyright & License of the original code: +// - https://github.com/rust-lang/rust/blob/1.93.0/COPYRIGHT +// - https://github.com/rust-lang/rust/blob/1.93.0/LICENSE-APACHE +// - https://github.com/rust-lang/rust/blob/1.93.0/LICENSE-MIT + +#![allow(clippy::must_use_candidate)] // align to alloc::sync::Arc +#![allow(clippy::undocumented_unsafe_blocks)] // TODO: most of the unsafe codes were inherited from alloc::sync::Arc + +use alloc::{ + alloc::handle_alloc_error, + borrow::{Cow, ToOwned}, + boxed::Box, +}; +#[cfg(not(portable_atomic_no_maybe_uninit))] +use alloc::{string::String, vec::Vec}; +#[cfg(not(portable_atomic_no_min_const_generics))] +use core::convert::TryFrom; +use core::{ + alloc::Layout, + any::Any, + borrow, + cmp::Ordering, + fmt, + hash::{Hash, Hasher}, + isize, + marker::PhantomData, + mem::{self, ManuallyDrop}, + ops::Deref, + pin::Pin, + ptr::{self, NonNull}, + usize, +}; +#[cfg(not(portable_atomic_no_maybe_uninit))] +use core::{iter::FromIterator, slice}; +#[cfg(portable_atomic_unstable_coerce_unsized)] +use core::{marker::Unsize, ops::CoerceUnsized}; + +use portable_atomic::{ + self as atomic, + Ordering::{Acquire, Relaxed, Release}, + hint, +}; + +use crate::utils::ptr as strict; +#[cfg(portable_atomic_no_strict_provenance)] +use crate::utils::ptr::PtrExt as _; + +/// A soft limit on the amount of references that may be made to an `Arc`. +/// +/// Going above this limit will abort your program (although not +/// necessarily) at _exactly_ `MAX_REFCOUNT + 1` references. +/// Trying to go above it might call a `panic` (if not actually going above it). +/// +/// This is a global invariant, and also applies when using a compare-exchange loop. +/// +/// See comment in `Arc::clone`. +const MAX_REFCOUNT: usize = isize::MAX as usize; + +/// The error in case either counter reaches above `MAX_REFCOUNT`, and we can `panic` safely. +const INTERNAL_OVERFLOW_ERROR: &str = "Arc counter overflow"; + +#[cfg(not(portable_atomic_sanitize_thread))] +macro_rules! acquire { + ($x:expr) => { + atomic::fence(Acquire) + }; +} + +// ThreadSanitizer does not support memory fences. To avoid false positive +// reports in Arc / Weak implementation use atomic loads for synchronization +// instead. +#[cfg(portable_atomic_sanitize_thread)] +macro_rules! acquire { + ($x:expr) => { + $x.load(Acquire) + }; +} + +/// A thread-safe reference-counting pointer. 'Arc' stands for 'Atomically +/// Reference Counted'. +/// +/// This is an equivalent to [`std::sync::Arc`], but using [portable-atomic] for synchronization. +/// See the documentation for [`std::sync::Arc`] for more details. +/// +/// **Note:** Unlike `std::sync::Arc`, coercing `Arc` to `Arc` is only possible if +/// the optional cfg `portable_atomic_unstable_coerce_unsized` is enabled, as documented at the crate-level documentation, +/// and this optional cfg item is only supported with Rust nightly version. +/// This is because coercing the pointee requires the +/// [unstable `CoerceUnsized` trait](https://doc.rust-lang.org/nightly/core/ops/trait.CoerceUnsized.html). +/// See [this issue comment](https://github.com/taiki-e/portable-atomic/issues/143#issuecomment-1866488569) +/// for a workaround that works without depending on unstable features. +/// +/// [portable-atomic]: https://crates.io/crates/portable-atomic +/// +/// # Examples +/// +/// ``` +/// use portable_atomic_util::Arc; +/// use std::thread; +/// +/// let five = Arc::new(5); +/// +/// for _ in 0..10 { +/// let five = Arc::clone(&five); +/// +/// thread::spawn(move || { +/// assert_eq!(*five, 5); +/// }); +/// } +/// # if cfg!(miri) { std::thread::sleep(std::time::Duration::from_millis(500)); } // wait for background threads closed: https://github.com/rust-lang/miri/issues/1371 +/// ``` +pub struct Arc { + ptr: NonNull>, + phantom: PhantomData>, +} + +unsafe impl Send for Arc {} +unsafe impl Sync for Arc {} + +#[cfg(not(portable_atomic_no_core_unwind_safe))] +impl core::panic::UnwindSafe for Arc {} +#[cfg(all(portable_atomic_no_core_unwind_safe, feature = "std"))] +impl std::panic::UnwindSafe for Arc {} + +#[cfg(portable_atomic_unstable_coerce_unsized)] +impl, U: ?Sized> CoerceUnsized> for Arc {} + +impl Arc { + #[inline] + fn into_inner_non_null(this: Self) -> NonNull> { + let this = mem::ManuallyDrop::new(this); + this.ptr + } + + #[inline] + unsafe fn from_inner(ptr: NonNull>) -> Self { + Self { ptr, phantom: PhantomData } + } + + #[inline] + unsafe fn from_ptr(ptr: *mut ArcInner) -> Self { + // SAFETY: the caller must uphold the safety contract. + unsafe { Self::from_inner(NonNull::new_unchecked(ptr)) } + } +} + +/// `Weak` is a version of [`Arc`] that holds a non-owning reference to the +/// managed allocation. +/// +/// The allocation is accessed by calling [`upgrade`] on the `Weak` +/// pointer, which returns an [Option]<[Arc]\>. +/// +/// This is an equivalent to [`std::sync::Weak`], but using [portable-atomic] for synchronization. +/// See the documentation for [`std::sync::Weak`] for more details. +/// +/// +/// **Note:** Unlike `std::sync::Weak`, coercing `Weak` to `Weak` is not possible, not even if +/// the optional cfg `portable_atomic_unstable_coerce_unsized` is enabled. +/// +/// [`upgrade`]: Weak::upgrade +/// [portable-atomic]: https://crates.io/crates/portable-atomic +/// +/// # Examples +/// +/// ``` +/// use portable_atomic_util::Arc; +/// use std::thread; +/// +/// let five = Arc::new(5); +/// let weak_five = Arc::downgrade(&five); +/// +/// # let t = +/// thread::spawn(move || { +/// let five = weak_five.upgrade().unwrap(); +/// assert_eq!(*five, 5); +/// }); +/// # t.join().unwrap(); // join thread to avoid https://github.com/rust-lang/miri/issues/1371 +/// ``` +pub struct Weak { + // This is a `NonNull` to allow optimizing the size of this type in enums, + // but it is not necessarily a valid pointer. + // `Weak::new` sets this to `usize::MAX` so that it doesn’t need + // to allocate space on the heap. That's not a value a real pointer + // will ever have because ArcInner has alignment at least 2. + ptr: NonNull>, +} + +unsafe impl Send for Weak {} +unsafe impl Sync for Weak {} + +impl fmt::Debug for Weak { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.write_str("(Weak)") + } +} + +// This is repr(C) to future-proof against possible field-reordering, which +// would interfere with otherwise safe [into|from]_raw() of transmutable +// inner types. +// Unlike RcInner, repr(align(2)) is not strictly required because atomic types +// have the alignment same as its size, but we use it for consistency and clarity. +#[repr(C, align(2))] +struct ArcInner { + strong: atomic::AtomicUsize, + + // the value usize::MAX acts as a sentinel for temporarily "locking" the + // ability to upgrade weak pointers or downgrade strong ones; this is used + // to avoid races in `make_mut` and `get_mut`. + weak: atomic::AtomicUsize, + + data: T, +} + +/// Calculate layout for `ArcInner` using the inner value's layout +fn arc_inner_layout_for_value_layout(layout: Layout) -> Layout { + // Calculate layout using the given value layout. + // Previously, layout was calculated on the expression + // `&*(ptr as *const ArcInner)`, but this created a misaligned + // reference (see #54908). + layout::pad_to_align(layout::extend(Layout::new::>(), layout).unwrap().0) +} + +unsafe impl Send for ArcInner {} +unsafe impl Sync for ArcInner {} + +impl Arc { + /// Constructs a new `Arc`. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// ``` + #[inline] + pub fn new(data: T) -> Self { + // Start the weak pointer count as 1 which is the weak pointer that's + // held by all the strong pointers (kinda), see std/rc.rs for more info + let x: Box<_> = Box::new(ArcInner { + strong: atomic::AtomicUsize::new(1), + weak: atomic::AtomicUsize::new(1), + data, + }); + unsafe { Self::from_inner(Box::leak(x).into()) } + } + + /// Constructs a new `Arc` while giving you a `Weak` to the allocation, + /// to allow you to construct a `T` which holds a weak pointer to itself. + /// + /// Generally, a structure circularly referencing itself, either directly or + /// indirectly, should not hold a strong reference to itself to prevent a memory leak. + /// Using this function, you get access to the weak pointer during the + /// initialization of `T`, before the `Arc` is created, such that you can + /// clone and store it inside the `T`. + /// + /// `new_cyclic` first allocates the managed allocation for the `Arc`, + /// then calls your closure, giving it a `Weak` to this allocation, + /// and only afterwards completes the construction of the `Arc` by placing + /// the `T` returned from your closure into the allocation. + /// + /// Since the new `Arc` is not fully-constructed until `Arc::new_cyclic` + /// returns, calling [`upgrade`] on the weak reference inside your closure will + /// fail and result in a `None` value. + /// + /// # Panics + /// + /// If `data_fn` panics, the panic is propagated to the caller, and the + /// temporary [`Weak`] is dropped normally. + /// + /// # Example + /// + /// ``` + /// use portable_atomic_util::{Arc, Weak}; + /// + /// struct Gadget { + /// me: Weak, + /// } + /// + /// impl Gadget { + /// /// Constructs a reference counted Gadget. + /// fn new() -> Arc { + /// // `me` is a `Weak` pointing at the new allocation of the + /// // `Arc` we're constructing. + /// Arc::new_cyclic(|me| { + /// // Create the actual struct here. + /// Gadget { me: me.clone() } + /// }) + /// } + /// + /// /// Returns a reference counted pointer to Self. + /// fn me(&self) -> Arc { + /// self.me.upgrade().unwrap() + /// } + /// } + /// ``` + /// [`upgrade`]: Weak::upgrade + #[inline] + pub fn new_cyclic(data_fn: F) -> Self + where + F: FnOnce(&Weak) -> T, + { + // Construct the inner in the "uninitialized" state with a single + // weak reference. + let init_ptr = Weak::new_uninit_ptr(); + + let weak = Weak { ptr: init_ptr }; + + // It's important we don't give up ownership of the weak pointer, or + // else the memory might be freed by the time `data_fn` returns. If + // we really wanted to pass ownership, we could create an additional + // weak pointer for ourselves, but this would result in additional + // updates to the weak reference count which might not be necessary + // otherwise. + let data = data_fn(&weak); + + // Now we can properly initialize the inner value and turn our weak + // reference into a strong reference. + unsafe { + let inner = init_ptr.as_ptr(); + ptr::write(data_ptr::(inner, &data), data); + + // The above write to the data field must be visible to any threads which + // observe a non-zero strong count. Therefore we need at least "Release" ordering + // in order to synchronize with the `compare_exchange_weak` in `Weak::upgrade`. + // + // "Acquire" ordering is not required. When considering the possible behaviors + // of `data_fn` we only need to look at what it could do with a reference to a + // non-upgradeable `Weak`: + // - It can *clone* the `Weak`, increasing the weak reference count. + // - It can drop those clones, decreasing the weak reference count (but never to zero). + // + // These side effects do not impact us in any way, and no other side effects are + // possible with safe code alone. + let prev_value = (*inner).strong.fetch_add(1, Release); + debug_assert_eq!(prev_value, 0, "No prior strong references should exist"); + + // Strong references should collectively own a shared weak reference, + // so don't run the destructor for our old weak reference. + mem::forget(weak); + + Self::from_inner(init_ptr) + } + } + + /// Constructs a new `Arc` with uninitialized contents. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let mut five = Arc::::new_uninit(); + /// + /// // Deferred initialization: + /// Arc::get_mut(&mut five).unwrap().write(5); + /// + /// let five = unsafe { five.assume_init() }; + /// + /// assert_eq!(*five, 5) + /// ``` + #[cfg(not(portable_atomic_no_maybe_uninit))] + #[inline] + #[must_use] + pub fn new_uninit() -> Arc> { + unsafe { + Arc::from_ptr(Arc::allocate_for_layout( + Layout::new::(), + |layout| Global.allocate(layout), + |ptr| ptr as *mut _, + )) + } + } + + /// Constructs a new `Arc` with uninitialized contents, with the memory + /// being filled with `0` bytes. + /// + /// See [`MaybeUninit::zeroed`][zeroed] for examples of correct and incorrect usage + /// of this method. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let zero = Arc::::new_zeroed(); + /// let zero = unsafe { zero.assume_init() }; + /// + /// assert_eq!(*zero, 0) + /// ``` + /// + /// [zeroed]: mem::MaybeUninit::zeroed + #[cfg(not(portable_atomic_no_maybe_uninit))] + #[inline] + #[must_use] + pub fn new_zeroed() -> Arc> { + unsafe { + Arc::from_ptr(Arc::allocate_for_layout( + Layout::new::(), + |layout| Global.allocate_zeroed(layout), + |ptr| ptr as *mut _, + )) + } + } + + /// Constructs a new `Pin>`. If `T` does not implement `Unpin`, then + /// `data` will be pinned in memory and unable to be moved. + #[must_use] + pub fn pin(data: T) -> Pin { + unsafe { Pin::new_unchecked(Self::new(data)) } + } + + /// Returns the inner value, if the `Arc` has exactly one strong reference. + /// + /// Otherwise, an [`Err`] is returned with the same `Arc` that was + /// passed in. + /// + /// This will succeed even if there are outstanding weak references. + /// + /// It is strongly recommended to use [`Arc::into_inner`] instead if you don't + /// keep the `Arc` in the [`Err`] case. + /// Immediately dropping the [`Err`]-value, as the expression + /// `Arc::try_unwrap(this).ok()` does, can cause the strong count to + /// drop to zero and the inner value of the `Arc` to be dropped. + /// For instance, if two threads execute such an expression in parallel, + /// there is a race condition without the possibility of unsafety: + /// The threads could first both check whether they own the last instance + /// in `Arc::try_unwrap`, determine that they both do not, and then both + /// discard and drop their instance in the call to [`ok`][`Result::ok`]. + /// In this scenario, the value inside the `Arc` is safely destroyed + /// by exactly one of the threads, but neither thread will ever be able + /// to use the value. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let x = Arc::new(3); + /// assert_eq!(Arc::try_unwrap(x), Ok(3)); + /// + /// let x = Arc::new(4); + /// let _y = Arc::clone(&x); + /// assert_eq!(*Arc::try_unwrap(x).unwrap_err(), 4); + /// ``` + #[inline] + pub fn try_unwrap(this: Self) -> Result { + if this.inner().strong.compare_exchange(1, 0, Relaxed, Relaxed).is_err() { + return Err(this); + } + + acquire!(this.inner().strong); + + let this = ManuallyDrop::new(this); + let elem: T = unsafe { ptr::read(&this.ptr.as_ref().data) }; + + // Make a weak pointer to clean up the implicit strong-weak reference + let _weak = Weak { ptr: this.ptr }; + + Ok(elem) + } + + /// Returns the inner value, if the `Arc` has exactly one strong reference. + /// + /// Otherwise, [`None`] is returned and the `Arc` is dropped. + /// + /// This will succeed even if there are outstanding weak references. + /// + /// If `Arc::into_inner` is called on every clone of this `Arc`, + /// it is guaranteed that exactly one of the calls returns the inner value. + /// This means in particular that the inner value is not dropped. + /// + /// [`Arc::try_unwrap`] is conceptually similar to `Arc::into_inner`, but it + /// is meant for different use-cases. If used as a direct replacement + /// for `Arc::into_inner` anyway, such as with the expression + /// [Arc::try_unwrap]\(this).[ok][Result::ok](), then it does + /// **not** give the same guarantee as described in the previous paragraph. + /// For more information, see the examples below and read the documentation + /// of [`Arc::try_unwrap`]. + /// + /// # Examples + /// + /// Minimal example demonstrating the guarantee that `Arc::into_inner` gives. + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let x = Arc::new(3); + /// let y = Arc::clone(&x); + /// + /// // Two threads calling `Arc::into_inner` on both clones of an `Arc`: + /// let x_thread = std::thread::spawn(|| Arc::into_inner(x)); + /// let y_thread = std::thread::spawn(|| Arc::into_inner(y)); + /// + /// let x_inner_value = x_thread.join().unwrap(); + /// let y_inner_value = y_thread.join().unwrap(); + /// + /// // One of the threads is guaranteed to receive the inner value: + /// assert!(matches!((x_inner_value, y_inner_value), (None, Some(3)) | (Some(3), None))); + /// // The result could also be `(None, None)` if the threads called + /// // `Arc::try_unwrap(x).ok()` and `Arc::try_unwrap(y).ok()` instead. + /// ``` + /// + /// A more practical example demonstrating the need for `Arc::into_inner`: + /// ``` + /// use portable_atomic_util::Arc; + /// + /// // Definition of a simple singly linked list using `Arc`: + /// #[derive(Clone)] + /// struct LinkedList(Option>>); + /// struct Node(T, Option>>); + /// + /// // Dropping a long `LinkedList` relying on the destructor of `Arc` + /// // can cause a stack overflow. To prevent this, we can provide a + /// // manual `Drop` implementation that does the destruction in a loop: + /// impl Drop for LinkedList { + /// fn drop(&mut self) { + /// let mut link = self.0.take(); + /// while let Some(arc_node) = link.take() { + /// if let Some(Node(_value, next)) = Arc::into_inner(arc_node) { + /// link = next; + /// } + /// } + /// } + /// } + /// + /// // Implementation of `new` and `push` omitted + /// impl LinkedList { + /// /* ... */ + /// # fn new() -> Self { + /// # LinkedList(None) + /// # } + /// # fn push(&mut self, x: T) { + /// # self.0 = Some(Arc::new(Node(x, self.0.take()))); + /// # } + /// } + /// + /// // The following code could have still caused a stack overflow + /// // despite the manual `Drop` impl if that `Drop` impl had used + /// // `Arc::try_unwrap(arc).ok()` instead of `Arc::into_inner(arc)`. + /// + /// // Create a long list and clone it + /// let mut x = LinkedList::new(); + /// let size = 100000; + /// # let size = if cfg!(miri) { 100 } else { size }; + /// for i in 0..size { + /// x.push(i); // Adds i to the front of x + /// } + /// let y = x.clone(); + /// + /// // Drop the clones in parallel + /// let x_thread = std::thread::spawn(|| drop(x)); + /// let y_thread = std::thread::spawn(|| drop(y)); + /// x_thread.join().unwrap(); + /// y_thread.join().unwrap(); + /// ``` + #[inline] + pub fn into_inner(this: Self) -> Option { + // Make sure that the ordinary `Drop` implementation isn’t called as well + let mut this = mem::ManuallyDrop::new(this); + + // Following the implementation of `drop` and `drop_slow` + if this.inner().strong.fetch_sub(1, Release) != 1 { + return None; + } + + acquire!(this.inner().strong); + + // SAFETY: This mirrors the line + // + // unsafe { ptr::drop_in_place(Self::get_mut_unchecked(self)) }; + // + // in `drop_slow`. Instead of dropping the value behind the pointer, + // it is read and eventually returned; `ptr::read` has the same + // safety conditions as `ptr::drop_in_place`. + let inner = unsafe { ptr::read(Self::get_mut_unchecked(&mut this)) }; + + drop(Weak { ptr: this.ptr }); + + Some(inner) + } +} + +#[cfg(not(portable_atomic_no_maybe_uninit))] +impl Arc<[T]> { + /// Constructs a new atomically reference-counted slice with uninitialized contents. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let mut values = Arc::<[u32]>::new_uninit_slice(3); + /// + /// // Deferred initialization: + /// let data = Arc::get_mut(&mut values).unwrap(); + /// data[0].write(1); + /// data[1].write(2); + /// data[2].write(3); + /// + /// let values = unsafe { values.assume_init() }; + /// + /// assert_eq!(*values, [1, 2, 3]) + /// ``` + #[inline] + #[must_use] + pub fn new_uninit_slice(len: usize) -> Arc<[mem::MaybeUninit]> { + unsafe { Arc::from_ptr(Arc::allocate_for_slice(len)) } + } + + /// Constructs a new atomically reference-counted slice with uninitialized contents, with the memory being + /// filled with `0` bytes. + /// + /// See [`MaybeUninit::zeroed`][zeroed] for examples of correct and + /// incorrect usage of this method. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let values = Arc::<[u32]>::new_zeroed_slice(3); + /// let values = unsafe { values.assume_init() }; + /// + /// assert_eq!(*values, [0, 0, 0]) + /// ``` + /// + /// [zeroed]: mem::MaybeUninit::zeroed + #[inline] + #[must_use] + #[allow(clippy::missing_panics_doc)] + pub fn new_zeroed_slice(len: usize) -> Arc<[mem::MaybeUninit]> { + unsafe { + Arc::from_ptr(Arc::allocate_for_layout( + layout::array::(len).unwrap(), + |layout| Global.allocate_zeroed(layout), + |mem| { + // We create a slice just for metadata (we must use `[mem::MaybeUninit]` + // instead of `[T]` because values behind `mem` is not valid initialized `T`s. + // there is no size/alignment issue thanks to layout::array), and create a + // pointer from `mem` and slice's metadata. + // + // We cannot use other ways here: + // - ptr::slice_from_raw_parts_mut is best way here, but requires Rust 1.42. + // - We cannot use slice::from_raw_parts_mut then casting to its pointer to + // ArcInner due to provenance because the actual size of valid allocation + // behind `mem` is `layout.size()` bytes (counters + values + padding) but the + // allocation from the pointer from slice::from_raw_parts_mut only valid for + // `size_of:: * len` bytes (only values). + let meta: *const _ = + slice::from_raw_parts(mem as *const mem::MaybeUninit, len); + strict::with_metadata_of(mem, meta) as *mut ArcInner<[mem::MaybeUninit]> + }, + )) + } + } +} + +#[cfg(not(portable_atomic_no_maybe_uninit))] +impl Arc> { + /// Converts to `Arc`. + /// + /// # Safety + /// + /// As with [`MaybeUninit::assume_init`], + /// it is up to the caller to guarantee that the inner value + /// really is in an initialized state. + /// Calling this when the content is not yet fully initialized + /// causes immediate undefined behavior. + /// + /// [`MaybeUninit::assume_init`]: mem::MaybeUninit::assume_init + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let mut five = Arc::::new_uninit(); + /// + /// // Deferred initialization: + /// Arc::get_mut(&mut five).unwrap().write(5); + /// + /// let five = unsafe { five.assume_init() }; + /// + /// assert_eq!(*five, 5) + /// ``` + #[inline] + #[must_use = "`self` will be dropped if the result is not used"] + pub unsafe fn assume_init(self) -> Arc { + let ptr = Arc::into_inner_non_null(self); + // SAFETY: MaybeUninit has the same layout as T, and + // the caller must guarantee that the data is initialized. + unsafe { Arc::from_inner(ptr.cast::>()) } + } +} + +impl Arc { + fn clone_from_ref(value: &T) -> Self { + // `in_progress` drops the allocation if we panic before finishing initializing it. + let mut in_progress: UniqueArcUninit = UniqueArcUninit::new(value); + + // Initialize with clone of value. + unsafe { + // Clone. If the clone panics, `in_progress` will be dropped and clean up. + value.clone_to_uninit(in_progress.data_ptr() as *mut u8); + // Cast type of pointer, now that it is initialized. + in_progress.into_arc() + } + } +} + +#[cfg(not(portable_atomic_no_maybe_uninit))] +impl Arc<[mem::MaybeUninit]> { + /// Converts to `Arc<[T]>`. + /// + /// # Safety + /// + /// As with [`MaybeUninit::assume_init`], + /// it is up to the caller to guarantee that the inner value + /// really is in an initialized state. + /// Calling this when the content is not yet fully initialized + /// causes immediate undefined behavior. + /// + /// [`MaybeUninit::assume_init`]: mem::MaybeUninit::assume_init + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let mut values = Arc::<[u32]>::new_uninit_slice(3); + /// + /// // Deferred initialization: + /// let data = Arc::get_mut(&mut values).unwrap(); + /// data[0].write(1); + /// data[1].write(2); + /// data[2].write(3); + /// + /// let values = unsafe { values.assume_init() }; + /// + /// assert_eq!(*values, [1, 2, 3]) + /// ``` + #[inline] + #[must_use = "`self` will be dropped if the result is not used"] + pub unsafe fn assume_init(self) -> Arc<[T]> { + let ptr = Arc::into_inner_non_null(self); + // SAFETY: [MaybeUninit] has the same layout as [T], and + // the caller must guarantee that the data is initialized. + unsafe { Arc::from_ptr(ptr.as_ptr() as *mut ArcInner<[T]>) } + } +} + +impl Arc { + /// Constructs an `Arc` from a raw pointer. + /// + /// # Safety + /// + /// The raw pointer must have been previously returned by a call to + /// [`Arc::into_raw`][into_raw] with the following requirements: + /// + /// * If `U` is sized, it must have the same size and alignment as `T`. This + /// is trivially true if `U` is `T`. + /// * If `U` is unsized, its data pointer must have the same size and + /// alignment as `T`. This is trivially true if `Arc` was constructed + /// through `Arc` and then converted to `Arc` through an [unsized + /// coercion]. + /// + /// Note that if `U` or `U`'s data pointer is not `T` but has the same size + /// and alignment, this is basically like transmuting references of + /// different types. See [`mem::transmute`] for more information + /// on what restrictions apply in this case. + /// + /// The raw pointer must point to a block of memory allocated by the global allocator. + /// + /// The user of `from_raw` has to make sure a specific value of `T` is only + /// dropped once. + /// + /// This function is unsafe because improper use may lead to memory unsafety, + /// even if the returned `Arc` is never accessed. + /// + /// [into_raw]: Arc::into_raw + /// [unsized coercion]: https://doc.rust-lang.org/reference/type-coercions.html#unsized-coercions + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let x = Arc::new("hello".to_owned()); + /// let x_ptr = Arc::into_raw(x); + /// + /// unsafe { + /// // Convert back to an `Arc` to prevent leak. + /// let x = Arc::from_raw(x_ptr); + /// assert_eq!(&*x, "hello"); + /// + /// // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe. + /// } + /// + /// // The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling! + /// ``` + /// + /// Convert a slice back into its original array: + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let x: Arc<[u32]> = Arc::from([1, 2, 3]); + /// let x_ptr: *const [u32] = Arc::into_raw(x); + /// + /// unsafe { + /// let x: Arc<[u32; 3]> = Arc::from_raw(x_ptr.cast::<[u32; 3]>()); + /// assert_eq!(&*x, &[1, 2, 3]); + /// } + /// ``` + #[inline] + pub unsafe fn from_raw(ptr: *const T) -> Self { + unsafe { + let offset = data_offset::(&*ptr); + + // Reverse the offset to find the original ArcInner. + let arc_ptr = strict::byte_sub(ptr as *mut T, offset) as *mut ArcInner; + + Self::from_ptr(arc_ptr) + } + } + + /// Consumes the `Arc`, returning the wrapped pointer. + /// + /// To avoid a memory leak the pointer must be converted back to an `Arc` using + /// [`Arc::from_raw`]. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let x = Arc::new("hello".to_owned()); + /// let x_ptr = Arc::into_raw(x); + /// assert_eq!(unsafe { &*x_ptr }, "hello"); + /// # // Prevent leaks for Miri. + /// # drop(unsafe { Arc::from_raw(x_ptr) }); + /// ``` + #[must_use = "losing the pointer will leak memory"] + pub fn into_raw(this: Self) -> *const T { + let this = ManuallyDrop::new(this); + Self::as_ptr(&*this) + } + + /// Increments the strong reference count on the `Arc` associated with the + /// provided pointer by one. + /// + /// # Safety + /// + /// The pointer must have been obtained through `Arc::into_raw` and must satisfy the + /// same layout requirements specified in [`Arc::from_raw`]. + /// The associated `Arc` instance must be valid (i.e. the strong count must be at + /// least 1) for the duration of this method, and `ptr` must point to a block of memory + /// allocated by the global allocator. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// + /// unsafe { + /// let ptr = Arc::into_raw(five); + /// Arc::increment_strong_count(ptr); + /// + /// // This assertion is deterministic because we haven't shared + /// // the `Arc` between threads. + /// let five = Arc::from_raw(ptr); + /// assert_eq!(2, Arc::strong_count(&five)); + /// # // Prevent leaks for Miri. + /// # Arc::decrement_strong_count(ptr); + /// } + /// ``` + #[inline] + pub unsafe fn increment_strong_count(ptr: *const T) { + // Retain Arc, but don't touch refcount by wrapping in ManuallyDrop + let arc = unsafe { mem::ManuallyDrop::new(Self::from_raw(ptr)) }; + // Now increase refcount, but don't drop new refcount either + let _arc_clone: mem::ManuallyDrop<_> = arc.clone(); + } + + /// Decrements the strong reference count on the `Arc` associated with the + /// provided pointer by one. + /// + /// # Safety + /// + /// The pointer must have been obtained through `Arc::into_raw` and must satisfy the + /// same layout requirements specified in [`Arc::from_raw`]. + /// The associated `Arc` instance must be valid (i.e. the strong count must be at + /// least 1) when invoking this method, and `ptr` must point to a block of memory + /// allocated by the global allocator. This method can be used to release the final + /// `Arc` and backing storage, but **should not** be called after the final `Arc` has been + /// released. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// + /// unsafe { + /// let ptr = Arc::into_raw(five); + /// Arc::increment_strong_count(ptr); + /// + /// // Those assertions are deterministic because we haven't shared + /// // the `Arc` between threads. + /// let five = Arc::from_raw(ptr); + /// assert_eq!(2, Arc::strong_count(&five)); + /// Arc::decrement_strong_count(ptr); + /// assert_eq!(1, Arc::strong_count(&five)); + /// } + /// ``` + #[inline] + pub unsafe fn decrement_strong_count(ptr: *const T) { + // SAFETY: the caller must uphold the safety contract. + unsafe { drop(Self::from_raw(ptr)) } + } + + /// Provides a raw pointer to the data. + /// + /// The counts are not affected in any way and the `Arc` is not consumed. The pointer is valid for + /// as long as there are strong counts in the `Arc`. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let x = Arc::new("hello".to_owned()); + /// let y = Arc::clone(&x); + /// let x_ptr = Arc::as_ptr(&x); + /// assert_eq!(x_ptr, Arc::as_ptr(&y)); + /// assert_eq!(unsafe { &*x_ptr }, "hello"); + /// ``` + #[must_use] + pub fn as_ptr(this: &Self) -> *const T { + let ptr: *mut ArcInner = NonNull::as_ptr(this.ptr); + + // SAFETY: This cannot go through Deref::deref or ArcInnerPtr::inner because + // this is required to retain raw/mut provenance such that e.g. `get_mut` can + // write through the pointer after the Arc is recovered through `from_raw`. + unsafe { data_ptr::(ptr, &**this) } + } + + /// Creates a new [`Weak`] pointer to this allocation. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// + /// let weak_five = Arc::downgrade(&five); + /// ``` + #[must_use = "this returns a new `Weak` pointer, \ + without modifying the original `Arc`"] + #[allow(clippy::missing_panics_doc)] + pub fn downgrade(this: &Self) -> Weak { + // This Relaxed is OK because we're checking the value in the CAS + // below. + let mut cur = this.inner().weak.load(Relaxed); + + loop { + // check if the weak counter is currently "locked"; if so, spin. + if cur == usize::MAX { + hint::spin_loop(); + cur = this.inner().weak.load(Relaxed); + continue; + } + + // We can't allow the refcount to increase much past `MAX_REFCOUNT`. + assert!(cur <= MAX_REFCOUNT, "{}", INTERNAL_OVERFLOW_ERROR); + + // NOTE: this code currently ignores the possibility of overflow + // into usize::MAX; in general both Rc and Arc need to be adjusted + // to deal with overflow. + + // Unlike with Clone(), we need this to be an Acquire read to + // synchronize with the write coming from `is_unique`, so that the + // events prior to that write happen before this read. + match this.inner().weak.compare_exchange_weak(cur, cur + 1, Acquire, Relaxed) { + Ok(_) => { + // Make sure we do not create a dangling Weak + debug_assert!(!is_dangling(this.ptr.as_ptr())); + return Weak { ptr: this.ptr }; + } + Err(old) => cur = old, + } + } + } + + /// Gets the number of [`Weak`] pointers to this allocation. + /// + /// # Safety + /// + /// This method by itself is safe, but using it correctly requires extra care. + /// Another thread can change the weak count at any time, + /// including potentially between calling this method and acting on the result. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// let _weak_five = Arc::downgrade(&five); + /// + /// // This assertion is deterministic because we haven't shared + /// // the `Arc` or `Weak` between threads. + /// assert_eq!(1, Arc::weak_count(&five)); + /// ``` + #[inline] + #[must_use] + pub fn weak_count(this: &Self) -> usize { + let cnt = this.inner().weak.load(Relaxed); + // If the weak count is currently locked, the value of the + // count was 0 just before taking the lock. + if cnt == usize::MAX { 0 } else { cnt - 1 } + } + + /// Gets the number of strong (`Arc`) pointers to this allocation. + /// + /// # Safety + /// + /// This method by itself is safe, but using it correctly requires extra care. + /// Another thread can change the strong count at any time, + /// including potentially between calling this method and acting on the result. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// let _also_five = Arc::clone(&five); + /// + /// // This assertion is deterministic because we haven't shared + /// // the `Arc` between threads. + /// assert_eq!(2, Arc::strong_count(&five)); + /// ``` + #[inline] + #[must_use] + pub fn strong_count(this: &Self) -> usize { + this.inner().strong.load(Relaxed) + } + + #[inline] + fn inner(&self) -> &ArcInner { + // This unsafety is ok because while this arc is alive we're guaranteed + // that the inner pointer is valid. Furthermore, we know that the + // `ArcInner` structure itself is `Sync` because the inner data is + // `Sync` as well, so we're ok loaning out an immutable pointer to these + // contents. + unsafe { self.ptr.as_ref() } + } + + // Non-inlined part of `drop`. + #[inline(never)] + unsafe fn drop_slow(&mut self) { + // Drop the weak ref collectively held by all strong references when this + // variable goes out of scope. This ensures that the memory is deallocated + // even if the destructor of `T` panics. + // Take a reference to `self.alloc` instead of cloning because 1. it'll last long + // enough, and 2. you should be able to drop `Arc`s with unclonable allocators + let _weak = Weak { ptr: self.ptr }; + + // Destroy the data at this time, even though we must not free the box + // allocation itself (there might still be weak pointers lying around). + // We cannot use `get_mut_unchecked` here, because `self.alloc` is borrowed. + unsafe { ptr::drop_in_place(&mut (*self.ptr.as_ptr()).data) }; + } + + /// Returns `true` if the two `Arc`s point to the same allocation in a vein similar to + /// [`ptr::eq`]. This function ignores the metadata of `dyn Trait` pointers. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// let same_five = Arc::clone(&five); + /// let other_five = Arc::new(5); + /// + /// assert!(Arc::ptr_eq(&five, &same_five)); + /// assert!(!Arc::ptr_eq(&five, &other_five)); + /// ``` + /// + /// [`ptr::eq`]: core::ptr::eq "ptr::eq" + #[inline] + #[must_use] + pub fn ptr_eq(this: &Self, other: &Self) -> bool { + ptr::eq(this.ptr.as_ptr() as *const (), other.ptr.as_ptr() as *const ()) + } +} + +impl Arc { + /// Allocates an `ArcInner` with sufficient space for + /// a possibly-unsized inner value where the value has the layout provided. + /// + /// The function `mem_to_arc_inner` is called with the data pointer + /// and must return back a (potentially fat)-pointer for the `ArcInner`. + unsafe fn allocate_for_layout( + value_layout: Layout, + allocate: impl FnOnce(Layout) -> Option>, + mem_to_arc_inner: impl FnOnce(*mut u8) -> *mut ArcInner, + ) -> *mut ArcInner { + let layout = arc_inner_layout_for_value_layout(value_layout); + + let ptr = allocate(layout).unwrap_or_else(|| handle_alloc_error(layout)); + + unsafe { Self::initialize_arc_inner(ptr, layout, mem_to_arc_inner) } + } + + unsafe fn initialize_arc_inner( + ptr: NonNull, + _layout: Layout, + mem_to_arc_inner: impl FnOnce(*mut u8) -> *mut ArcInner, + ) -> *mut ArcInner { + let inner: *mut ArcInner = mem_to_arc_inner(ptr.as_ptr()); + // debug_assert_eq!(unsafe { Layout::for_value_raw(inner) }, layout); // for_value_raw is unstable + + // SAFETY: mem_to_arc_inner return a valid pointer to uninitialized ArcInner. + // ArcInner is repr(C), and strong and weak are the first and second fields and + // are the same type, so `inner as *mut atomic::AtomicUsize` is strong and + // `(inner as *mut atomic::AtomicUsize).add(1)` is weak. + unsafe { + let strong = inner as *mut atomic::AtomicUsize; + strong.write(atomic::AtomicUsize::new(1)); + let weak = strong.add(1); + weak.write(atomic::AtomicUsize::new(1)); + } + + inner + } +} + +impl Arc { + /// Allocates an `ArcInner` with sufficient space for an unsized inner value. + #[inline] + unsafe fn allocate_for_value(value: &T) -> *mut ArcInner { + let ptr: *const T = value; + // Allocate for the `ArcInner` using the given value. + unsafe { + Self::allocate_for_layout( + Layout::for_value(value), + |layout| Global.allocate(layout), + |mem| strict::with_metadata_of(mem, ptr as *const ArcInner), + ) + } + } + + fn from_box(src: Box) -> Arc { + unsafe { + let value_size = mem::size_of_val(&*src); + let ptr = Self::allocate_for_value(&*src); + + // Copy value as bytes + ptr::copy_nonoverlapping( + &*src as *const T as *const u8, + data_ptr::(ptr, &*src) as *mut u8, + value_size, + ); + + // Free the allocation without dropping its contents + let box_ptr = Box::into_raw(src); + let src = Box::from_raw(box_ptr as *mut mem::ManuallyDrop); + drop(src); + + Self::from_ptr(ptr) + } + } +} + +#[cfg(not(portable_atomic_no_maybe_uninit))] +impl Arc<[T]> { + /// Allocates an `ArcInner<[mem::MaybeUninit]>` with the given length. + unsafe fn allocate_for_slice(len: usize) -> *mut ArcInner<[mem::MaybeUninit]> { + unsafe { + Arc::allocate_for_layout( + layout::array::(len).unwrap(), + |layout| Global.allocate(layout), + |mem| { + // We create a slice just for metadata (we must use `[mem::MaybeUninit]` + // instead of `[T]` because values behind `mem` is not valid initialized `T`s. + // there is no size/alignment issue thanks to layout::array), and create a + // pointer from `mem` and slice's metadata. + // + // We cannot use other ways here: + // - ptr::slice_from_raw_parts_mut is best way here, but requires Rust 1.42. + // - We cannot use slice::from_raw_parts_mut then casting to its pointer to + // ArcInner due to provenance because the actual size of valid allocation + // behind `mem` is `layout.size()` bytes (counters + values + padding) but the + // allocation from the pointer from slice::from_raw_parts_mut only valid for + // `size_of:: * len` bytes (only values). + let meta: *const _ = + slice::from_raw_parts(mem as *const mem::MaybeUninit, len); + strict::with_metadata_of(mem, meta) as *mut ArcInner<[mem::MaybeUninit]> + }, + ) + } + } + + /// Constructs an `Arc<[T]>` from an iterator known to be of a certain size. + /// + /// Behavior is undefined should the size be wrong. + unsafe fn from_iter_exact(iter: impl Iterator, len: usize) -> Self { + // Panic guard while cloning T elements. + // In the event of a panic, elements that have been written + // into the new ArcInner will be dropped, then the memory freed. + struct Guard { + mem: NonNull, + elems: *mut T, + layout: Layout, + n_elems: usize, + } + + impl Drop for Guard { + fn drop(&mut self) { + unsafe { + let slice = slice::from_raw_parts_mut(self.elems, self.n_elems); + ptr::drop_in_place(slice); + + Global.deallocate(self.mem, self.layout); + } + } + } + + unsafe { + let ptr: *mut ArcInner<[mem::MaybeUninit]> = Arc::allocate_for_slice(len); + + let mem = ptr as *mut _ as *mut u8; + let layout = Layout::for_value(&*ptr); + + // Pointer to first element + let elems = (*ptr).data.as_mut_ptr() as *mut T; + + let mut guard = Guard { mem: NonNull::new_unchecked(mem), elems, layout, n_elems: 0 }; + + for (i, item) in iter.enumerate() { + ptr::write(elems.add(i), item); + guard.n_elems += 1; + } + + // All clear. Forget the guard so it doesn't free the new ArcInner. + mem::forget(guard); + + Arc::from_ptr(ptr).assume_init() + } + } +} + +impl Clone for Arc { + /// Makes a clone of the `Arc` pointer. + /// + /// This creates another pointer to the same allocation, increasing the + /// strong reference count. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// + /// let _ = Arc::clone(&five); + /// ``` + #[inline] + fn clone(&self) -> Self { + // Using a relaxed ordering is alright here, as knowledge of the + // original reference prevents other threads from erroneously deleting + // the object. + // + // As explained in the [Boost documentation][1], Increasing the + // reference counter can always be done with memory_order_relaxed: New + // references to an object can only be formed from an existing + // reference, and passing an existing reference from one thread to + // another must already provide any required synchronization. + // + // [1]: (www.boost.org/doc/libs/1_55_0/doc/html/atomic/usage_examples.html) + let old_size = self.inner().strong.fetch_add(1, Relaxed); + + // However we need to guard against massive refcounts in case someone is `mem::forget`ing + // Arcs. If we don't do this the count can overflow and users will use-after free. This + // branch will never be taken in any realistic program. We abort because such a program is + // incredibly degenerate, and we don't care to support it. + // + // This check is not 100% water-proof: we error when the refcount grows beyond `isize::MAX`. + // But we do that check *after* having done the increment, so there is a chance here that + // the worst already happened and we actually do overflow the `usize` counter. However, that + // requires the counter to grow from `isize::MAX` to `usize::MAX` between the increment + // above and the `abort` below, which seems exceedingly unlikely. + // + // This is a global invariant, and also applies when using a compare-exchange loop to increment + // counters in other methods. + // Otherwise, the counter could be brought to an almost-overflow using a compare-exchange loop, + // and then overflow using a few `fetch_add`s. + if old_size > MAX_REFCOUNT { + abort(); + } + + unsafe { Self::from_inner(self.ptr) } + } +} + +impl Deref for Arc { + type Target = T; + + #[inline] + fn deref(&self) -> &Self::Target { + &self.inner().data + } +} + +impl Arc { + /// Makes a mutable reference into the given `Arc`. + /// + /// If there are other `Arc` pointers to the same allocation, then `make_mut` will + /// [`clone`] the inner value to a new allocation to ensure unique ownership. This is also + /// referred to as clone-on-write. + /// + /// However, if there are no other `Arc` pointers to this allocation, but some [`Weak`] + /// pointers, then the [`Weak`] pointers will be dissociated and the inner value will not + /// be cloned. + /// + /// See also [`get_mut`], which will fail rather than cloning the inner value + /// or dissociating [`Weak`] pointers. + /// + /// [`clone`]: Clone::clone + /// [`get_mut`]: Arc::get_mut + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let mut data = Arc::new(5); + /// + /// *Arc::make_mut(&mut data) += 1; // Won't clone anything + /// let mut other_data = Arc::clone(&data); // Won't clone inner data + /// *Arc::make_mut(&mut data) += 1; // Clones inner data + /// *Arc::make_mut(&mut data) += 1; // Won't clone anything + /// *Arc::make_mut(&mut other_data) *= 2; // Won't clone anything + /// + /// // Now `data` and `other_data` point to different allocations. + /// assert_eq!(*data, 8); + /// assert_eq!(*other_data, 12); + /// ``` + /// + /// [`Weak`] pointers will be dissociated: + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let mut data = Arc::new(75); + /// let weak = Arc::downgrade(&data); + /// + /// assert!(75 == *data); + /// assert!(75 == *weak.upgrade().unwrap()); + /// + /// *Arc::make_mut(&mut data) += 1; + /// + /// assert!(76 == *data); + /// assert!(weak.upgrade().is_none()); + /// ``` + #[inline] + pub fn make_mut(this: &mut Self) -> &mut T { + let size_of_val = mem::size_of_val::(&**this); + + // Note that we hold both a strong reference and a weak reference. + // Thus, releasing our strong reference only will not, by itself, cause + // the memory to be deallocated. + // + // Use Acquire to ensure that we see any writes to `weak` that happen + // before release writes (i.e., decrements) to `strong`. Since we hold a + // weak count, there's no chance the ArcInner itself could be + // deallocated. + if this.inner().strong.compare_exchange(1, 0, Acquire, Relaxed).is_err() { + // Another strong pointer exists, so we must clone. + *this = Arc::clone_from_ref(&**this); + } else if this.inner().weak.load(Relaxed) != 1 { + // Relaxed suffices in the above because this is fundamentally an + // optimization: we are always racing with weak pointers being + // dropped. Worst case, we end up allocated a new Arc unnecessarily. + + // We removed the last strong ref, but there are additional weak + // refs remaining. We'll move the contents to a new Arc, and + // invalidate the other weak refs. + + // Note that it is not possible for the read of `weak` to yield + // usize::MAX (i.e., locked), since the weak count can only be + // locked by a thread with a strong reference. + + // Materialize our own implicit weak pointer, so that it can clean + // up the ArcInner as needed. + let _weak = Weak { ptr: this.ptr }; + + // Can just steal the data, all that's left is `Weak`s + // + // We don't need panic-protection like the above branch does, but we might as well + // use the same mechanism. + let mut in_progress: UniqueArcUninit = UniqueArcUninit::new(&**this); + unsafe { + // Initialize `in_progress` with move of **this. + // We have to express this in terms of bytes because `T: ?Sized`; there is no + // operation that just copies a value based on its `size_of_val()`. + ptr::copy_nonoverlapping( + &**this as *const T as *const u8, + in_progress.data_ptr() as *mut u8, + size_of_val, + ); + + ptr::write(this, in_progress.into_arc()); + } + } else { + // We were the sole reference of either kind; bump back up the + // strong ref count. + this.inner().strong.store(1, Release); + } + + // As with `get_mut()`, the unsafety is ok because our reference was + // either unique to begin with, or became one upon cloning the contents. + unsafe { Self::get_mut_unchecked(this) } + } +} + +impl Arc { + /// If we have the only reference to `T` then unwrap it. Otherwise, clone `T` and return the + /// clone. + /// + /// Assuming `arc_t` is of type `Arc`, this function is functionally equivalent to + /// `(*arc_t).clone()`, but will avoid cloning the inner value where possible. + /// + /// # Examples + /// + /// ``` + /// use std::ptr; + /// + /// use portable_atomic_util::Arc; + /// + /// let inner = String::from("test"); + /// let ptr = inner.as_ptr(); + /// + /// let arc = Arc::new(inner); + /// let inner = Arc::unwrap_or_clone(arc); + /// // The inner value was not cloned + /// assert!(ptr::eq(ptr, inner.as_ptr())); + /// + /// let arc = Arc::new(inner); + /// let arc2 = arc.clone(); + /// let inner = Arc::unwrap_or_clone(arc); + /// // Because there were 2 references, we had to clone the inner value. + /// assert!(!ptr::eq(ptr, inner.as_ptr())); + /// // `arc2` is the last reference, so when we unwrap it we get back + /// // the original `String`. + /// let inner = Arc::unwrap_or_clone(arc2); + /// assert!(ptr::eq(ptr, inner.as_ptr())); + /// ``` + #[inline] + pub fn unwrap_or_clone(this: Self) -> T { + Self::try_unwrap(this).unwrap_or_else(|arc| (*arc).clone()) + } +} + +impl Arc { + /// Returns a mutable reference into the given `Arc`, if there are + /// no other `Arc` or [`Weak`] pointers to the same allocation. + /// + /// Returns [`None`] otherwise, because it is not safe to + /// mutate a shared value. + /// + /// See also [`make_mut`][make_mut], which will [`clone`][clone] + /// the inner value when there are other `Arc` pointers. + /// + /// [make_mut]: Arc::make_mut + /// [clone]: Clone::clone + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let mut x = Arc::new(3); + /// *Arc::get_mut(&mut x).unwrap() = 4; + /// assert_eq!(*x, 4); + /// + /// let _y = Arc::clone(&x); + /// assert!(Arc::get_mut(&mut x).is_none()); + /// ``` + #[inline] + pub fn get_mut(this: &mut Self) -> Option<&mut T> { + if Self::is_unique(this) { + // This unsafety is ok because we're guaranteed that the pointer + // returned is the *only* pointer that will ever be returned to T. Our + // reference count is guaranteed to be 1 at this point, and we required + // the Arc itself to be `mut`, so we're returning the only possible + // reference to the inner data. + unsafe { Some(Self::get_mut_unchecked(this)) } + } else { + None + } + } + + #[inline] + unsafe fn get_mut_unchecked(this: &mut Self) -> &mut T { + // We are careful to *not* create a reference covering the "count" fields, as + // this would alias with concurrent access to the reference counts (e.g. by `Weak`). + unsafe { &mut (*this.ptr.as_ptr()).data } + } + + #[inline] + fn is_unique(this: &Self) -> bool { + // lock the weak pointer count if we appear to be the sole weak pointer + // holder. + // + // The acquire label here ensures a happens-before relationship with any + // writes to `strong` (in particular in `Weak::upgrade`) prior to decrements + // of the `weak` count (via `Weak::drop`, which uses release). If the upgraded + // weak ref was never dropped, the CAS here will fail so we do not care to synchronize. + if this.inner().weak.compare_exchange(1, usize::MAX, Acquire, Relaxed).is_ok() { + // This needs to be an `Acquire` to synchronize with the decrement of the `strong` + // counter in `drop` -- the only access that happens when any but the last reference + // is being dropped. + let unique = this.inner().strong.load(Acquire) == 1; + + // The release write here synchronizes with a read in `downgrade`, + // effectively preventing the above read of `strong` from happening + // after the write. + this.inner().weak.store(1, Release); // release the lock + unique + } else { + false + } + } +} + +impl Drop for Arc { + /// Drops the `Arc`. + /// + /// This will decrement the strong reference count. If the strong reference + /// count reaches zero then the only other references (if any) are + /// [`Weak`], so we `drop` the inner value. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// struct Foo; + /// + /// impl Drop for Foo { + /// fn drop(&mut self) { + /// println!("dropped!"); + /// } + /// } + /// + /// let foo = Arc::new(Foo); + /// let foo2 = Arc::clone(&foo); + /// + /// drop(foo); // Doesn't print anything + /// drop(foo2); // Prints "dropped!" + /// ``` + #[inline] + fn drop(&mut self) { + // Because `fetch_sub` is already atomic, we do not need to synchronize + // with other threads unless we are going to delete the object. This + // same logic applies to the below `fetch_sub` to the `weak` count. + if self.inner().strong.fetch_sub(1, Release) != 1 { + return; + } + + // This fence is needed to prevent reordering of use of the data and + // deletion of the data. Because it is marked `Release`, the decreasing + // of the reference count synchronizes with this `Acquire` fence. This + // means that use of the data happens before decreasing the reference + // count, which happens before this fence, which happens before the + // deletion of the data. + // + // As explained in the [Boost documentation][1], + // + // > It is important to enforce any possible access to the object in one + // > thread (through an existing reference) to *happen before* deleting + // > the object in a different thread. This is achieved by a "release" + // > operation after dropping a reference (any access to the object + // > through this reference must obviously happened before), and an + // > "acquire" operation before deleting the object. + // + // In particular, while the contents of an Arc are usually immutable, it's + // possible to have interior writes to something like a Mutex. Since a + // Mutex is not acquired when it is deleted, we can't rely on its + // synchronization logic to make writes in thread A visible to a destructor + // running in thread B. + // + // Also note that the Acquire fence here could probably be replaced with an + // Acquire load, which could improve performance in highly-contended + // situations. See [2]. + // + // [1]: (www.boost.org/doc/libs/1_55_0/doc/html/atomic/usage_examples.html) + // [2]: (https://github.com/rust-lang/rust/pull/41714) + acquire!(self.inner().strong); + + unsafe { + self.drop_slow(); + } + } +} + +impl Arc { + /// Attempts to downcast the `Arc` to a concrete type. + /// + /// # Examples + /// + /// ``` + /// use std::any::Any; + /// + /// use portable_atomic_util::Arc; + /// + /// fn print_if_string(value: Arc) { + /// if let Ok(string) = value.downcast::() { + /// println!("String ({}): {}", string.len(), string); + /// } + /// } + /// + /// let my_string = "Hello World".to_string(); + /// print_if_string(Arc::from(Box::new(my_string) as Box)); + /// print_if_string(Arc::from(Box::new(0i8) as Box)); + /// // or with "--cfg portable_atomic_unstable_coerce_unsized" in RUSTFLAGS (requires Rust nightly): + /// // print_if_string(Arc::new(my_string)); + /// // print_if_string(Arc::new(0i8)); + /// ``` + #[inline] + pub fn downcast(self) -> Result, Self> + where + T: Any + Send + Sync, + { + if (*self).is::() { + unsafe { + let ptr = Arc::into_inner_non_null(self); + Ok(Arc::from_inner(ptr.cast::>())) + } + } else { + Err(self) + } + } +} + +impl Weak { + /// Constructs a new `Weak`, without allocating any memory. + /// Calling [`upgrade`] on the return value always gives [`None`]. + /// + /// [`upgrade`]: Weak::upgrade + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Weak; + /// + /// let empty: Weak = Weak::new(); + /// assert!(empty.upgrade().is_none()); + /// ``` + #[inline] + #[must_use] + pub const fn new() -> Self { + Self { + ptr: unsafe { + NonNull::new_unchecked(strict::without_provenance_mut::>(usize::MAX)) + }, + } + } + + #[inline] + #[must_use] + fn new_uninit_ptr() -> NonNull> { + unsafe { + NonNull::new_unchecked(Self::allocate_for_layout( + Layout::new::(), + |layout| Global.allocate(layout), + |ptr| ptr as *mut _, + )) + } + } +} + +/// Helper type to allow accessing the reference counts without +/// making any assertions about the data field. +struct WeakInner<'a> { + weak: &'a atomic::AtomicUsize, + strong: &'a atomic::AtomicUsize, +} + +// TODO: See todo comment in Weak::from_raw +impl Weak { + /// Converts a raw pointer previously created by [`into_raw`] back into `Weak`. + /// + /// This can be used to safely get a strong reference (by calling [`upgrade`] + /// later) or to deallocate the weak count by dropping the `Weak`. + /// + /// It takes ownership of one weak reference (with the exception of pointers created by [`new`], + /// as these don't own anything; the method still works on them). + /// + /// # Safety + /// + /// The pointer must have originated from the [`into_raw`] and must still own its potential + /// weak reference, and must point to a block of memory allocated by global allocator. + /// + /// It is allowed for the strong count to be 0 at the time of calling this. Nevertheless, this + /// takes ownership of one weak reference currently represented as a raw pointer (the weak + /// count is not modified by this operation) and therefore it must be paired with a previous + /// call to [`into_raw`]. + /// # Examples + /// + /// ``` + /// use portable_atomic_util::{Arc, Weak}; + /// + /// let strong = Arc::new("hello".to_owned()); + /// + /// let raw_1 = Arc::downgrade(&strong).into_raw(); + /// let raw_2 = Arc::downgrade(&strong).into_raw(); + /// + /// assert_eq!(2, Arc::weak_count(&strong)); + /// + /// assert_eq!("hello", &*unsafe { Weak::from_raw(raw_1) }.upgrade().unwrap()); + /// assert_eq!(1, Arc::weak_count(&strong)); + /// + /// drop(strong); + /// + /// // Decrement the last weak count. + /// assert!(unsafe { Weak::from_raw(raw_2) }.upgrade().is_none()); + /// ``` + /// + /// [`new`]: Weak::new + /// [`into_raw`]: Weak::into_raw + /// [`upgrade`]: Weak::upgrade + #[inline] + pub unsafe fn from_raw(ptr: *const T) -> Self { + // See Weak::as_ptr for context on how the input pointer is derived. + + let ptr = if is_dangling(ptr) { + // This is a dangling Weak. + ptr as *mut ArcInner + } else { + // Otherwise, we're guaranteed the pointer came from a non-dangling Weak. + // TODO: data_offset calls align_of_val which needs to create a reference + // to data but we cannot create a reference to data here since data in Weak + // can be dropped concurrently from another thread. Therefore, we can + // only support sized types that can avoid references to data + // unless align_of_val_raw is stabilized. + // // SAFETY: data_offset is safe to call, as ptr references a real (potentially dropped) T. + // let offset = unsafe { data_offset(ptr) }; + let offset = data_offset_align(mem::align_of::()); + // Thus, we reverse the offset to get the whole ArcInner. + // SAFETY: the pointer originated from a Weak, so this offset is safe. + unsafe { strict::byte_sub(ptr as *mut T, offset) as *mut ArcInner } + }; + + // SAFETY: we now have recovered the original Weak pointer, so can create the Weak. + Self { ptr: unsafe { NonNull::new_unchecked(ptr) } } + } + + /// Consumes the `Weak` and turns it into a raw pointer. + /// + /// This converts the weak pointer into a raw pointer, while still preserving the ownership of + /// one weak reference (the weak count is not modified by this operation). It can be turned + /// back into the `Weak` with [`from_raw`]. + /// + /// The same restrictions of accessing the target of the pointer as with + /// [`as_ptr`] apply. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::{Arc, Weak}; + /// + /// let strong = Arc::new("hello".to_owned()); + /// let weak = Arc::downgrade(&strong); + /// let raw = weak.into_raw(); + /// + /// assert_eq!(1, Arc::weak_count(&strong)); + /// assert_eq!("hello", unsafe { &*raw }); + /// + /// drop(unsafe { Weak::from_raw(raw) }); + /// assert_eq!(0, Arc::weak_count(&strong)); + /// ``` + /// + /// [`from_raw`]: Weak::from_raw + /// [`as_ptr`]: Weak::as_ptr + #[must_use = "losing the pointer will leak memory"] + pub fn into_raw(self) -> *const T { + ManuallyDrop::new(self).as_ptr() + } +} + +// TODO: See todo comment in Weak::from_raw +impl Weak { + /// Returns a raw pointer to the object `T` pointed to by this `Weak`. + /// + /// The pointer is valid only if there are some strong references. The pointer may be dangling, + /// unaligned or even [`null`] otherwise. + /// + /// # Examples + /// + /// ``` + /// use std::ptr; + /// + /// use portable_atomic_util::Arc; + /// + /// let strong = Arc::new("hello".to_owned()); + /// let weak = Arc::downgrade(&strong); + /// // Both point to the same object + /// assert!(ptr::eq(&*strong, weak.as_ptr())); + /// // The strong here keeps it alive, so we can still access the object. + /// assert_eq!("hello", unsafe { &*weak.as_ptr() }); + /// + /// drop(strong); + /// // But not any more. We can do weak.as_ptr(), but accessing the pointer would lead to + /// // undefined behavior. + /// // assert_eq!("hello", unsafe { &*weak.as_ptr() }); + /// ``` + /// + /// [`null`]: core::ptr::null "ptr::null" + #[must_use] + pub fn as_ptr(&self) -> *const T { + let ptr: *mut ArcInner = NonNull::as_ptr(self.ptr); + + if is_dangling(ptr) { + // If the pointer is dangling, we return the sentinel directly. This cannot be + // a valid payload address, as the payload is at least as aligned as ArcInner (usize). + ptr as *const T + } else { + // TODO: See todo comment in Weak::from_raw + // // SAFETY: if is_dangling returns false, then the pointer is dereferenceable. + // // The payload may be dropped at this point, and we have to maintain provenance, + // // so use raw pointer manipulation. + // unsafe { data_ptr::(ptr, &(*ptr).data) } + unsafe { + let offset = data_offset_align(mem::align_of::()); + strict::byte_add(ptr, offset) as *const T + } + } + } +} + +impl Weak { + /// Attempts to upgrade the `Weak` pointer to an [`Arc`], delaying + /// dropping of the inner value if successful. + /// + /// Returns [`None`] if the inner value has since been dropped. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// + /// let weak_five = Arc::downgrade(&five); + /// + /// let strong_five: Option> = weak_five.upgrade(); + /// assert!(strong_five.is_some()); + /// + /// // Destroy all strong pointers. + /// drop(strong_five); + /// drop(five); + /// + /// assert!(weak_five.upgrade().is_none()); + /// ``` + #[must_use = "this returns a new `Arc`, \ + without modifying the original weak pointer"] + pub fn upgrade(&self) -> Option> { + #[inline] + fn checked_increment(n: usize) -> Option { + // Any write of 0 we can observe leaves the field in permanently zero state. + if n == 0 { + return None; + } + // See comments in `Arc::clone` for why we do this (for `mem::forget`). + assert!(n <= MAX_REFCOUNT, "{}", INTERNAL_OVERFLOW_ERROR); + Some(n + 1) + } + + // We use a CAS loop to increment the strong count instead of a + // fetch_add as this function should never take the reference count + // from zero to one. + // + // Relaxed is fine for the failure case because we don't have any expectations about the new state. + // Acquire is necessary for the success case to synchronize with `Arc::new_cyclic`, when the inner + // value can be initialized after `Weak` references have already been created. In that case, we + // expect to observe the fully initialized value. + if self.inner()?.strong.fetch_update(Acquire, Relaxed, checked_increment).is_ok() { + // SAFETY: pointer is not null, verified in checked_increment + unsafe { Some(Arc::from_inner(self.ptr)) } + } else { + None + } + } + + /// Gets the number of strong (`Arc`) pointers pointing to this allocation. + /// + /// If `self` was created using [`Weak::new`], this will return 0. + #[must_use] + pub fn strong_count(&self) -> usize { + if let Some(inner) = self.inner() { inner.strong.load(Relaxed) } else { 0 } + } + + /// Gets an approximation of the number of `Weak` pointers pointing to this + /// allocation. + /// + /// If `self` was created using [`Weak::new`], or if there are no remaining + /// strong pointers, this will return 0. + /// + /// # Accuracy + /// + /// Due to implementation details, the returned value can be off by 1 in + /// either direction when other threads are manipulating any `Arc`s or + /// `Weak`s pointing to the same allocation. + #[must_use] + pub fn weak_count(&self) -> usize { + if let Some(inner) = self.inner() { + let weak = inner.weak.load(Acquire); + let strong = inner.strong.load(Relaxed); + if strong == 0 { + 0 + } else { + // Since we observed that there was at least one strong pointer + // after reading the weak count, we know that the implicit weak + // reference (present whenever any strong references are alive) + // was still around when we observed the weak count, and can + // therefore safely subtract it. + weak - 1 + } + } else { + 0 + } + } + + /// Returns `None` when the pointer is dangling and there is no allocated `ArcInner`, + /// (i.e., when this `Weak` was created by `Weak::new`). + #[inline] + fn inner(&self) -> Option> { + let ptr = self.ptr.as_ptr(); + if is_dangling(ptr) { + None + } else { + // SAFETY: non-dangling Weak has a valid pointer. + // We are careful to *not* create a reference covering the "data" field, as + // the field may be mutated concurrently (for example, if the last `Arc` + // is dropped, the data field will be dropped in-place). + Some(unsafe { WeakInner { strong: &(*ptr).strong, weak: &(*ptr).weak } }) + } + } + + /// Returns `true` if the two `Weak`s point to the same allocation similar to [`ptr::eq`], or if + /// both don't point to any allocation (because they were created with `Weak::new()`). However, + /// this function ignores the metadata of `dyn Trait` pointers. + /// + /// # Notes + /// + /// Since this compares pointers it means that `Weak::new()` will equal each + /// other, even though they don't point to any allocation. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let first_rc = Arc::new(5); + /// let first = Arc::downgrade(&first_rc); + /// let second = Arc::downgrade(&first_rc); + /// + /// assert!(first.ptr_eq(&second)); + /// + /// let third_rc = Arc::new(5); + /// let third = Arc::downgrade(&third_rc); + /// + /// assert!(!first.ptr_eq(&third)); + /// ``` + /// + /// Comparing `Weak::new`. + /// + /// ``` + /// use portable_atomic_util::{Arc, Weak}; + /// + /// let first = Weak::new(); + /// let second = Weak::new(); + /// assert!(first.ptr_eq(&second)); + /// + /// let third_rc = Arc::new(()); + /// let third = Arc::downgrade(&third_rc); + /// assert!(!first.ptr_eq(&third)); + /// ``` + /// + /// [`ptr::eq`]: core::ptr::eq "ptr::eq" + #[inline] + #[must_use] + pub fn ptr_eq(&self, other: &Self) -> bool { + ptr::eq(self.ptr.as_ptr() as *const (), other.ptr.as_ptr() as *const ()) + } +} + +impl Weak { + /// Allocates an `ArcInner` with sufficient space for + /// a possibly-unsized inner value where the value has the layout provided. + /// + /// The function `mem_to_arc_inner` is called with the data pointer + /// and must return back a (potentially fat)-pointer for the `ArcInner`. + unsafe fn allocate_for_layout( + value_layout: Layout, + allocate: impl FnOnce(Layout) -> Option>, + mem_to_arc_inner: impl FnOnce(*mut u8) -> *mut ArcInner, + ) -> *mut ArcInner { + let layout = arc_inner_layout_for_value_layout(value_layout); + + let ptr = allocate(layout).unwrap_or_else(|| handle_alloc_error(layout)); + + unsafe { Self::initialize_arc_inner(ptr, layout, mem_to_arc_inner) } + } + + unsafe fn initialize_arc_inner( + ptr: NonNull, + _layout: Layout, + mem_to_arc_inner: impl FnOnce(*mut u8) -> *mut ArcInner, + ) -> *mut ArcInner { + let inner: *mut ArcInner = mem_to_arc_inner(ptr.as_ptr()); + // debug_assert_eq!(unsafe { Layout::for_value_raw(inner) }, layout); // for_value_raw is unstable + + // SAFETY: mem_to_arc_inner return a valid pointer to uninitialized ArcInner. + // ArcInner is repr(C), and strong and weak are the first and second fields and + // are the same type, so `inner as *mut atomic::AtomicUsize` is strong and + // `(inner as *mut atomic::AtomicUsize).add(1)` is weak. + unsafe { + let strong = inner as *mut atomic::AtomicUsize; + strong.write(atomic::AtomicUsize::new(0)); + let weak = strong.add(1); + weak.write(atomic::AtomicUsize::new(1)); + } + + inner + } +} + +impl Clone for Weak { + /// Makes a clone of the `Weak` pointer that points to the same allocation. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::{Arc, Weak}; + /// + /// let weak_five = Arc::downgrade(&Arc::new(5)); + /// + /// let _ = Weak::clone(&weak_five); + /// ``` + #[inline] + fn clone(&self) -> Self { + if let Some(inner) = self.inner() { + // See comments in Arc::clone() for why this is relaxed. This can use a + // fetch_add (ignoring the lock) because the weak count is only locked + // where are *no other* weak pointers in existence. (So we can't be + // running this code in that case). + let old_size = inner.weak.fetch_add(1, Relaxed); + + // See comments in Arc::clone() for why we do this (for mem::forget). + if old_size > MAX_REFCOUNT { + abort(); + } + } + + Self { ptr: self.ptr } + } +} + +impl Default for Weak { + /// Constructs a new `Weak`, without allocating memory. + /// Calling [`upgrade`] on the return value always + /// gives [`None`]. + /// + /// [`upgrade`]: Weak::upgrade + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Weak; + /// + /// let empty: Weak = Default::default(); + /// assert!(empty.upgrade().is_none()); + /// ``` + fn default() -> Self { + Self::new() + } +} + +impl Drop for Weak { + /// Drops the `Weak` pointer. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::{Arc, Weak}; + /// + /// struct Foo; + /// + /// impl Drop for Foo { + /// fn drop(&mut self) { + /// println!("dropped!"); + /// } + /// } + /// + /// let foo = Arc::new(Foo); + /// let weak_foo = Arc::downgrade(&foo); + /// let other_weak_foo = Weak::clone(&weak_foo); + /// + /// drop(weak_foo); // Doesn't print anything + /// drop(foo); // Prints "dropped!" + /// + /// assert!(other_weak_foo.upgrade().is_none()); + /// ``` + fn drop(&mut self) { + // If we find out that we were the last weak pointer, then its time to + // deallocate the data entirely. See the discussion in Arc::drop() about + // the memory orderings + // + // It's not necessary to check for the locked state here, because the + // weak count can only be locked if there was precisely one weak ref, + // meaning that drop could only subsequently run ON that remaining weak + // ref, which can only happen after the lock is released. + let inner = if let Some(inner) = self.inner() { inner } else { return }; + + if inner.weak.fetch_sub(1, Release) == 1 { + acquire!(inner.weak); + // Free the allocation without dropping T + let ptr = self.ptr.as_ptr() as *mut ArcInner>; + drop(unsafe { Box::from_raw(ptr) }); + } + } +} + +impl PartialEq for Arc { + /// Equality for two `Arc`s. + /// + /// Two `Arc`s are equal if their inner values are equal, even if they are + /// stored in different allocation. + /// + /// If `T` also implements `Eq` (implying reflexivity of equality), + /// two `Arc`s that point to the same allocation are always equal. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// + /// assert!(five == Arc::new(5)); + /// ``` + #[inline] + fn eq(&self, other: &Self) -> bool { + **self == **other + } + + /// Inequality for two `Arc`s. + /// + /// Two `Arc`s are not equal if their inner values are not equal. + /// + /// If `T` also implements `Eq` (implying reflexivity of equality), + /// two `Arc`s that point to the same value are always equal. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// + /// assert!(five != Arc::new(6)); + /// ``` + #[allow(clippy::partialeq_ne_impl)] + #[inline] + fn ne(&self, other: &Self) -> bool { + **self != **other + } +} + +impl PartialOrd for Arc { + /// Partial comparison for two `Arc`s. + /// + /// The two are compared by calling `partial_cmp()` on their inner values. + /// + /// # Examples + /// + /// ``` + /// use std::cmp::Ordering; + /// + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// + /// assert_eq!(Some(Ordering::Less), five.partial_cmp(&Arc::new(6))); + /// ``` + fn partial_cmp(&self, other: &Self) -> Option { + (**self).partial_cmp(&**other) + } + + /// Less-than comparison for two `Arc`s. + /// + /// The two are compared by calling `<` on their inner values. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// + /// assert!(five < Arc::new(6)); + /// ``` + fn lt(&self, other: &Self) -> bool { + *(*self) < *(*other) + } + + /// 'Less than or equal to' comparison for two `Arc`s. + /// + /// The two are compared by calling `<=` on their inner values. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// + /// assert!(five <= Arc::new(5)); + /// ``` + fn le(&self, other: &Self) -> bool { + *(*self) <= *(*other) + } + + /// Greater-than comparison for two `Arc`s. + /// + /// The two are compared by calling `>` on their inner values. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// + /// assert!(five > Arc::new(4)); + /// ``` + fn gt(&self, other: &Self) -> bool { + *(*self) > *(*other) + } + + /// 'Greater than or equal to' comparison for two `Arc`s. + /// + /// The two are compared by calling `>=` on their inner values. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// + /// assert!(five >= Arc::new(5)); + /// ``` + fn ge(&self, other: &Self) -> bool { + *(*self) >= *(*other) + } +} +impl Ord for Arc { + /// Comparison for two `Arc`s. + /// + /// The two are compared by calling `cmp()` on their inner values. + /// + /// # Examples + /// + /// ``` + /// use std::cmp::Ordering; + /// + /// use portable_atomic_util::Arc; + /// + /// let five = Arc::new(5); + /// + /// assert_eq!(Ordering::Less, five.cmp(&Arc::new(6))); + /// ``` + fn cmp(&self, other: &Self) -> Ordering { + (**self).cmp(&**other) + } +} +impl Eq for Arc {} + +impl fmt::Display for Arc { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + fmt::Display::fmt(&**self, f) + } +} + +impl fmt::Debug for Arc { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + fmt::Debug::fmt(&**self, f) + } +} + +impl fmt::Pointer for Arc { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + fmt::Pointer::fmt(&(&**self as *const T), f) + } +} + +impl Default for Arc { + /// Creates a new `Arc`, with the `Default` value for `T`. + /// + /// # Examples + /// + /// ``` + /// use portable_atomic_util::Arc; + /// + /// let x: Arc = Default::default(); + /// assert_eq!(*x, 0); + /// ``` + fn default() -> Self { + // TODO: https://github.com/rust-lang/rust/pull/131460 / https://github.com/rust-lang/rust/pull/132031 + Self::new(T::default()) + } +} + +#[cfg(not(portable_atomic_no_min_const_generics))] +impl Default for Arc { + /// Creates an empty str inside an Arc. + /// + /// This may or may not share an allocation with other Arcs. + #[inline] + fn default() -> Self { + let arc: Arc<[u8]> = Arc::default(); + debug_assert!(core::str::from_utf8(&arc).is_ok()); + let ptr = Arc::into_inner_non_null(arc); + unsafe { Arc::from_ptr(ptr.as_ptr() as *mut ArcInner) } + } +} + +#[cfg(not(portable_atomic_no_min_const_generics))] +impl Default for Arc<[T]> { + /// Creates an empty `[T]` inside an Arc. + /// + /// This may or may not share an allocation with other Arcs. + #[inline] + fn default() -> Self { + // TODO: we cannot use non-allocation optimization (https://github.com/rust-lang/rust/blob/1.93.0/library/alloc/src/sync.rs#L3807) + // for now since casting Arc<[T; N]> -> Arc<[T]> requires unstable CoerceUnsized. + let arr: [T; 0] = []; + Arc::from(arr) + } +} + +impl Default for Pin> +where + T: ?Sized, + Arc: Default, +{ + #[inline] + fn default() -> Self { + unsafe { Pin::new_unchecked(Arc::::default()) } + } +} + +impl Hash for Arc { + fn hash(&self, state: &mut H) { + (**self).hash(state); + } +} + +impl From for Arc { + /// Converts a `T` into an `Arc` + /// + /// The conversion moves the value into a + /// newly allocated `Arc`. It is equivalent to + /// calling `Arc::new(t)`. + /// + /// # Example + /// + /// ``` + /// use portable_atomic_util::Arc; + /// let x = 5; + /// let arc = Arc::new(5); + /// + /// assert_eq!(Arc::from(x), arc); + /// ``` + fn from(t: T) -> Self { + Self::new(t) + } +} + +// This just outputs the input as is, but can be used like an item-level block by using it with cfg. +// Note: This macro is items!({ }), not items! { }. +// An extra brace is used in input to make contents rustfmt-able. +#[cfg(not(portable_atomic_no_min_const_generics))] +macro_rules! items { + ({$($tt:tt)*}) => { + $($tt)* + }; +} + +#[cfg(not(portable_atomic_no_min_const_generics))] +items!({ + impl From<[T; N]> for Arc<[T]> { + /// Converts a [`[T; N]`](prim@array) into an `Arc<[T]>`. + /// + /// The conversion moves the array into a newly allocated `Arc`. + /// + /// # Example + /// + /// ``` + /// use portable_atomic_util::Arc; + /// let original: [i32; 3] = [1, 2, 3]; + /// let shared: Arc<[i32]> = Arc::from(original); + /// assert_eq!(&[1, 2, 3], &shared[..]); + /// ``` + #[inline] + fn from(v: [T; N]) -> Self { + // Casting Arc<[T; N]> -> Arc<[T]> requires unstable CoerceUnsized, so we convert via Box. + // Since the compiler knows the actual size and metadata, the intermediate allocation is + // optimized and generates the same code as when using CoerceUnsized and convert Arc<[T; N]> to Arc<[T]>. + // https://github.com/taiki-e/portable-atomic/issues/143#issuecomment-1866488569 + let v: Box<[T]> = Box::<[T; N]>::from(v); + v.into() + } + } +}); + +#[cfg(not(portable_atomic_no_maybe_uninit))] +impl From<&[T]> for Arc<[T]> { + /// Allocates a reference-counted slice and fills it by cloning `v`'s items. + /// + /// # Example + /// + /// ``` + /// use portable_atomic_util::Arc; + /// let original: &[i32] = &[1, 2, 3]; + /// let shared: Arc<[i32]> = Arc::from(original); + /// assert_eq!(&[1, 2, 3], &shared[..]); + /// ``` + #[inline] + fn from(v: &[T]) -> Self { + unsafe { Self::from_iter_exact(v.iter().cloned(), v.len()) } + } +} + +#[cfg(not(portable_atomic_no_maybe_uninit))] +impl From<&mut [T]> for Arc<[T]> { + /// Allocates a reference-counted slice and fills it by cloning `v`'s items. + /// + /// # Example + /// + /// ``` + /// use portable_atomic_util::Arc; + /// let mut original = [1, 2, 3]; + /// let original: &mut [i32] = &mut original; + /// let shared: Arc<[i32]> = Arc::from(original); + /// assert_eq!(&[1, 2, 3], &shared[..]); + /// ``` + #[inline] + fn from(v: &mut [T]) -> Self { + Self::from(&*v) + } +} + +#[cfg(not(portable_atomic_no_maybe_uninit))] +impl From<&str> for Arc { + /// Allocates a reference-counted `str` and copies `v` into it. + /// + /// # Example + /// + /// ``` + /// use portable_atomic_util::Arc; + /// let shared: Arc = Arc::from("eggplant"); + /// assert_eq!("eggplant", &shared[..]); + /// ``` + #[inline] + fn from(v: &str) -> Self { + let arc = Arc::<[u8]>::from(v.as_bytes()); + // SAFETY: `str` has the same layout as `[u8]`. + // https://doc.rust-lang.org/nightly/reference/type-layout.html#str-layout + unsafe { Self::from_raw(Arc::into_raw(arc) as *const str) } + } +} + +#[cfg(not(portable_atomic_no_maybe_uninit))] +impl From<&mut str> for Arc { + /// Allocates a reference-counted `str` and copies `v` into it. + /// + /// # Example + /// + /// ``` + /// use portable_atomic_util::Arc; + /// let mut original = String::from("eggplant"); + /// let original: &mut str = &mut original; + /// let shared: Arc = Arc::from(original); + /// assert_eq!("eggplant", &shared[..]); + /// ``` + #[inline] + fn from(v: &mut str) -> Self { + Self::from(&*v) + } +} + +#[cfg(not(portable_atomic_no_maybe_uninit))] +impl From for Arc { + /// Allocates a reference-counted `str` and copies `v` into it. + /// + /// # Example + /// + /// ``` + /// use portable_atomic_util::Arc; + /// let unique: String = "eggplant".to_owned(); + /// let shared: Arc = Arc::from(unique); + /// assert_eq!("eggplant", &shared[..]); + /// ``` + #[inline] + fn from(v: String) -> Self { + Self::from(&v[..]) + } +} + +impl From> for Arc { + /// Move a boxed object to a new, reference-counted allocation. + /// + /// # Example + /// + /// ``` + /// use portable_atomic_util::Arc; + /// let unique: Box = Box::from("eggplant"); + /// let shared: Arc = Arc::from(unique); + /// assert_eq!("eggplant", &shared[..]); + /// ``` + #[inline] + fn from(v: Box) -> Self { + Self::from_box(v) + } +} + +#[cfg(not(portable_atomic_no_maybe_uninit))] +impl From> for Arc<[T]> { + /// Allocates a reference-counted slice and moves `v`'s items into it. + /// + /// # Example + /// + /// ``` + /// use portable_atomic_util::Arc; + /// let unique: Vec = vec![1, 2, 3]; + /// let shared: Arc<[i32]> = Arc::from(unique); + /// assert_eq!(&[1, 2, 3], &shared[..]); + /// ``` + #[inline] + fn from(v: Vec) -> Self { + unsafe { + let len = v.len(); + let cap = v.capacity(); + let vec_ptr = mem::ManuallyDrop::new(v).as_mut_ptr(); + + let mut arc = Self::new_uninit_slice(len); + let data = Arc::get_mut_unchecked(&mut arc); + ptr::copy_nonoverlapping(vec_ptr, data.as_mut_ptr() as *mut T, len); + + // Create a `Vec` with length 0, to deallocate the buffer + // without dropping its contents or the allocator + let _ = Vec::from_raw_parts(vec_ptr, 0, cap); + + arc.assume_init() + } + } +} + +impl<'a, B> From> for Arc +where + B: ?Sized + ToOwned, + Arc: From<&'a B> + From, +{ + /// Creates an atomically reference-counted pointer from a clone-on-write + /// pointer by copying its content. + /// + /// # Example + /// + /// ``` + /// use std::borrow::Cow; + /// + /// use portable_atomic_util::Arc; + /// + /// let cow: Cow<'_, str> = Cow::Borrowed("eggplant"); + /// let shared: Arc = Arc::from(cow); + /// assert_eq!("eggplant", &shared[..]); + /// ``` + #[inline] + fn from(cow: Cow<'a, B>) -> Self { + match cow { + Cow::Borrowed(s) => Self::from(s), + Cow::Owned(s) => Self::from(s), + } + } +} + +impl From> for Arc<[u8]> { + /// Converts an atomically reference-counted string slice into a byte slice. + /// + /// # Example + /// + /// ``` + /// use portable_atomic_util::Arc; + /// let string: Arc = Arc::from("eggplant"); + /// let bytes: Arc<[u8]> = Arc::from(string); + /// assert_eq!("eggplant".as_bytes(), bytes.as_ref()); + /// ``` + #[inline] + fn from(rc: Arc) -> Self { + // SAFETY: `str` has the same layout as `[u8]`. + // https://doc.rust-lang.org/nightly/reference/type-layout.html#str-layout + unsafe { Self::from_raw(Arc::into_raw(rc) as *const [u8]) } + } +} + +#[cfg(not(portable_atomic_no_min_const_generics))] +items!({ + impl TryFrom> for Arc<[T; N]> { + type Error = Arc<[T]>; + + fn try_from(boxed_slice: Arc<[T]>) -> Result { + if boxed_slice.len() == N { + let ptr = Arc::into_inner_non_null(boxed_slice); + Ok(unsafe { Self::from_inner(ptr.cast::>()) }) + } else { + Err(boxed_slice) + } + } + } +}); + +#[cfg(not(portable_atomic_no_maybe_uninit))] +impl FromIterator for Arc<[T]> { + /// Takes each element in the `Iterator` and collects it into an `Arc<[T]>`. + /// + /// # Performance characteristics + /// + /// ## The general case + /// + /// In the general case, collecting into `Arc<[T]>` is done by first + /// collecting into a `Vec`. That is, when writing the following: + /// + /// ``` + /// use portable_atomic_util::Arc; + /// let evens: Arc<[u8]> = (0..10).filter(|&x| x % 2 == 0).collect(); + /// # assert_eq!(&*evens, &[0, 2, 4, 6, 8]); + /// ``` + /// + /// this behaves as if we wrote: + /// + /// ``` + /// use portable_atomic_util::Arc; + /// let evens: Arc<[u8]> = (0..10).filter(|&x| x % 2 == 0) + /// .collect::>() // The first set of allocations happens here. + /// .into(); // A second allocation for `Arc<[T]>` happens here. + /// + /// assert_eq!(&*evens, &[0, 2, 4, 6, 8]); + /// ``` + /// + /// This will allocate as many times as needed for constructing the `Vec` + /// and then it will allocate once for turning the `Vec` into the `Arc<[T]>`. + /// + /// ## Iterators of known length + /// + /// When your `Iterator` implements `TrustedLen` and is of an exact size, + /// a single allocation will be made for the `Arc<[T]>`. For example: + /// + /// ``` + /// use portable_atomic_util::Arc; + /// let evens: Arc<[u8]> = (0..10).collect(); // Just a single allocation happens here. + /// + /// assert_eq!(&*evens, &*(0..10).collect::>()); + /// ``` + fn from_iter>(iter: I) -> Self { + iter.into_iter().collect::>().into() + } +} + +impl borrow::Borrow for Arc { + fn borrow(&self) -> &T { + self + } +} + +impl AsRef for Arc { + fn as_ref(&self) -> &T { + self + } +} + +impl Unpin for Arc {} + +/// Gets the pointer to data within the given an `ArcInner`. +/// +/// # Safety +/// +/// `arc` must uphold the safety requirements for `.byte_add(data_offset)`. +/// This is automatically satisfied if it is a pointer to a valid `ArcInner`. +unsafe fn data_ptr(arc: *mut ArcInner, data: &T) -> *mut T { + // SAFETY: the caller must uphold the safety contract. + unsafe { + let offset = data_offset::(data); + strict::byte_add(arc, offset) as *mut T + } +} + +/// Gets the offset within an `ArcInner` for the payload behind a pointer. +fn data_offset(ptr: &T) -> usize { + // Align the unsized value to the end of the ArcInner. + // Because ArcInner is repr(C), it will always be the last field in memory. + data_offset_align(mem::align_of_val::(ptr)) +} + +#[inline] +fn data_offset_align(align: usize) -> usize { + let layout = Layout::new::>(); + layout.size() + layout::padding_needed_for(layout, align) +} + +/// A unique owning pointer to an [`ArcInner`] **that does not imply the contents are initialized,** +/// but will deallocate it (without dropping the value) when dropped. +/// +/// This is a helper for [`Arc::make_mut()`] to ensure correct cleanup on panic. +struct UniqueArcUninit { + ptr: NonNull>, + layout_for_value: Layout, +} + +impl UniqueArcUninit { + /// Allocates an ArcInner with layout suitable to contain `for_value` or a clone of it. + fn new(for_value: &T) -> Self { + let layout = Layout::for_value(for_value); + let ptr = unsafe { Arc::allocate_for_value(for_value) }; + Self { ptr: NonNull::new(ptr).unwrap(), layout_for_value: layout } + } + + /// Returns the pointer to be written into to initialize the [`Arc`]. + fn data_ptr(&mut self) -> *mut T { + let offset = data_offset_align(self.layout_for_value.align()); + unsafe { strict::byte_add(self.ptr.as_ptr(), offset) as *mut T } + } + + /// Upgrade this into a normal [`Arc`]. + /// + /// # Safety + /// + /// The data must have been initialized (by writing to [`Self::data_ptr()`]). + unsafe fn into_arc(self) -> Arc { + let this = ManuallyDrop::new(self); + let ptr = this.ptr.as_ptr(); + + // SAFETY: The pointer is valid as per `UniqueArcUninit::new`, and the caller is responsible + // for having initialized the data. + unsafe { Arc::from_ptr(ptr) } + } +} + +impl Drop for UniqueArcUninit { + fn drop(&mut self) { + // SAFETY: + // * new() produced a pointer safe to deallocate. + // * We own the pointer unless into_arc() was called, which forgets us. + unsafe { + Global.deallocate( + self.ptr.cast::(), + arc_inner_layout_for_value_layout(self.layout_for_value), + ); + } + } +} + +#[cfg(not(portable_atomic_no_error_in_core))] +use core::error; +#[cfg(all(portable_atomic_no_error_in_core, feature = "std"))] +use std::error; +#[cfg(any(not(portable_atomic_no_error_in_core), feature = "std"))] +impl error::Error for Arc { + #[allow(deprecated)] + fn cause(&self) -> Option<&dyn error::Error> { + error::Error::cause(&**self) + } + fn source(&self) -> Option<&(dyn error::Error + 'static)> { + error::Error::source(&**self) + } +} + +#[cfg(feature = "std")] +mod std_impls { + // TODO: Other trait implementations that are stable but we currently don't provide: + // - alloc::ffi + // - https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html#impl-From%3C%26CStr%3E-for-Arc%3CCStr%3E + // - https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html#impl-From%3C%26mut+CStr%3E-for-Arc%3CCStr%3E + // - https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html#impl-From%3CCString%3E-for-Arc%3CCStr%3E + // - https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html#impl-Default-for-Arc%3CCStr%3E + // - Currently, we cannot implement these since CStr layout is not stable. + // - std::ffi + // - https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#impl-From%3C%26OsStr%3E-for-Arc%3COsStr%3E + // - https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#impl-From%3C%26mut+OsStr%3E-for-Arc%3COsStr%3E + // - https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#impl-From%3COsString%3E-for-Arc%3COsStr%3E + // - Currently, we cannot implement these since OsStr layout is not stable. + // - std::path + // - https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#impl-From%3C%26Path%3E-for-Arc%3CPath%3E + // - https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#impl-From%3C%26mut+Path%3E-for-Arc%3CPath%3E + // - https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#impl-From%3CPathBuf%3E-for-Arc%3CPath%3E + // - Currently, we cannot implement these since Path layout is not stable. + + use std::io; + // https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#impl-AsFd-for-Arc%3CT%3E + // https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#impl-AsHandle-for-Arc%3CT%3E + // https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#impl-AsRawFd-for-Arc%3CT%3E + // https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#impl-AsSocket-for-Arc%3CT%3E + // Note: + // - T: ?Sized is currently only allowed on AsFd/AsHandle: https://github.com/rust-lang/rust/pull/114655#issuecomment-1977994288 + // - std doesn't implement AsRawHandle/AsRawSocket for Arc as of Rust 1.90. + // - std::os::unix::io::AsRawFd and std::os::windows::io::{AsRawHandle, AsRawSocket} are available in all versions + // - std::os::wasi::prelude::AsRawFd requires 1.56 (https://github.com/rust-lang/rust/commit/e555003e6d6b6d71ce5509a6b6c7a15861208d6c) + // - std::os::unix::io::AsFd, std::os::wasi::prelude::AsFd, and std::os::windows::io::{AsHandle, AsSocket} require Rust 1.63 + // - std::os::wasi::io::AsFd requires Rust 1.65 (https://github.com/rust-lang/rust/pull/103308) + // - std::os::fd requires Rust 1.66 (https://github.com/rust-lang/rust/pull/98368) + // - std::os::hermit::io::AsFd requires Rust 1.69 (https://github.com/rust-lang/rust/commit/b5fb4f3d9b1b308d59cab24ef2f9bf23dad948aa) + // - std::os::fd for HermitOS requires Rust 1.81 (https://github.com/rust-lang/rust/pull/126346) + // - std::os::fd for Trusty requires Rust 1.87 (no std support before it, https://github.com/rust-lang/rust/commit/7f6ee12526700e037ef34912b2b0c628028d382c) + // - std::os::solid::io::AsFd is unstable (solid_ext, https://github.com/rust-lang/rust/pull/115159) + // Note: we don't implement unstable ones. + #[cfg(not(portable_atomic_no_io_safety))] + #[cfg(target_os = "trusty")] + use std::os::fd; + #[cfg(not(portable_atomic_no_io_safety))] + #[cfg(target_os = "hermit")] + use std::os::hermit::io as fd; + #[cfg(unix)] + use std::os::unix::io as fd; + #[cfg(not(portable_atomic_no_io_safety))] + #[cfg(target_os = "wasi")] + use std::os::wasi::prelude as fd; + + use super::Arc; + + /// This impl allows implementing traits that require `AsRawFd` on Arc. + /// ``` + /// # #[cfg(target_os = "hermit")] + /// # use std::os::hermit::io::AsRawFd; + /// # #[cfg(target_os = "wasi")] + /// # use std::os::wasi::prelude::AsRawFd; + /// # #[cfg(unix)] + /// # use std::os::unix::io::AsRawFd; + /// use std::net::UdpSocket; + /// + /// use portable_atomic_util::Arc; + /// + /// trait MyTrait: AsRawFd {} + /// impl MyTrait for Arc {} + /// ``` + #[cfg(any( + unix, + all( + not(portable_atomic_no_io_safety), + any(target_os = "hermit", target_os = "trusty", target_os = "wasi"), + ), + ))] + impl fd::AsRawFd for Arc { + #[inline] + fn as_raw_fd(&self) -> fd::RawFd { + (**self).as_raw_fd() + } + } + /// This impl allows implementing traits that require `AsFd` on Arc. + /// ``` + /// # #[cfg(target_os = "hermit")] + /// # use std::os::hermit::io::AsFd; + /// # #[cfg(target_os = "wasi")] + /// # use std::os::wasi::prelude::AsFd; + /// # #[cfg(unix)] + /// # use std::os::unix::io::AsFd; + /// use std::net::UdpSocket; + /// + /// use portable_atomic_util::Arc; + /// + /// trait MyTrait: AsFd {} + /// impl MyTrait for Arc {} + /// ``` + #[cfg(not(portable_atomic_no_io_safety))] + #[cfg(any(unix, target_os = "hermit", target_os = "trusty", target_os = "wasi"))] + impl fd::AsFd for Arc { + #[inline] + fn as_fd(&self) -> fd::BorrowedFd<'_> { + (**self).as_fd() + } + } + /// This impl allows implementing traits that require `AsHandle` on Arc. + /// ``` + /// # use std::os::windows::io::AsHandle; + /// use std::fs::File; + /// + /// use portable_atomic_util::Arc; + /// + /// trait MyTrait: AsHandle {} + /// impl MyTrait for Arc {} + /// ``` + #[cfg(not(portable_atomic_no_io_safety))] + #[cfg(windows)] + impl std::os::windows::io::AsHandle for Arc { + #[inline] + fn as_handle(&self) -> std::os::windows::io::BorrowedHandle<'_> { + (**self).as_handle() + } + } + /// This impl allows implementing traits that require `AsSocket` on Arc. + /// ``` + /// # use std::os::windows::io::AsSocket; + /// use std::net::UdpSocket; + /// + /// use portable_atomic_util::Arc; + /// + /// trait MyTrait: AsSocket {} + /// impl MyTrait for Arc {} + /// ``` + #[cfg(not(portable_atomic_no_io_safety))] + #[cfg(windows)] + impl std::os::windows::io::AsSocket for Arc { + #[inline] + fn as_socket(&self) -> std::os::windows::io::BorrowedSocket<'_> { + (**self).as_socket() + } + } + + // https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#impl-Read-for-Arc%3CFile%3E + // https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#impl-Seek-for-Arc%3CFile%3E + // https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#impl-Write-for-Arc%3CFile%3E + impl io::Read for Arc { + fn read(&mut self, buf: &mut [u8]) -> io::Result { + (&**self).read(buf) + } + #[cfg(not(portable_atomic_no_io_vec))] + fn read_vectored(&mut self, bufs: &mut [io::IoSliceMut<'_>]) -> io::Result { + (&**self).read_vectored(bufs) + } + // fn read_buf(&mut self, cursor: io::BorrowedCursor<'_>) -> io::Result<()> { + // (&**self).read_buf(cursor) + // } + // #[inline] + // fn is_read_vectored(&self) -> bool { + // (&**self).is_read_vectored() + // } + fn read_to_end(&mut self, buf: &mut alloc::vec::Vec) -> io::Result { + (&**self).read_to_end(buf) + } + fn read_to_string(&mut self, buf: &mut alloc::string::String) -> io::Result { + (&**self).read_to_string(buf) + } + } + impl io::Write for Arc { + fn write(&mut self, buf: &[u8]) -> io::Result { + (&**self).write(buf) + } + #[cfg(not(portable_atomic_no_io_vec))] + fn write_vectored(&mut self, bufs: &[io::IoSlice<'_>]) -> io::Result { + (&**self).write_vectored(bufs) + } + // #[inline] + // fn is_write_vectored(&self) -> bool { + // (&**self).is_write_vectored() + // } + #[inline] + fn flush(&mut self) -> io::Result<()> { + (&**self).flush() + } + } + impl io::Seek for Arc { + fn seek(&mut self, pos: io::SeekFrom) -> io::Result { + (&**self).seek(pos) + } + } + // TODO: TcpStream and UnixStream: https://github.com/rust-lang/rust/pull/134190 + // impl io::Read for Arc { + // fn read(&mut self, buf: &mut [u8]) -> io::Result { + // (&**self).read(buf) + // } + // // fn read_buf(&mut self, buf: io::BorrowedCursor<'_>) -> io::Result<()> { + // // (&**self).read_buf(buf) + // // } + // #[cfg(not(portable_atomic_no_io_vec))] + // fn read_vectored(&mut self, bufs: &mut [io::IoSliceMut<'_>]) -> io::Result { + // (&**self).read_vectored(bufs) + // } + // // #[inline] + // // fn is_read_vectored(&self) -> bool { + // // (&**self).is_read_vectored() + // // } + // } + // impl io::Write for Arc { + // fn write(&mut self, buf: &[u8]) -> io::Result { + // (&**self).write(buf) + // } + // #[cfg(not(portable_atomic_no_io_vec))] + // fn write_vectored(&mut self, bufs: &[io::IoSlice<'_>]) -> io::Result { + // (&**self).write_vectored(bufs) + // } + // // #[inline] + // // fn is_write_vectored(&self) -> bool { + // // (&**self).is_write_vectored() + // // } + // #[inline] + // fn flush(&mut self) -> io::Result<()> { + // (&**self).flush() + // } + // } + // #[cfg(unix)] + // impl io::Read for Arc { + // fn read(&mut self, buf: &mut [u8]) -> io::Result { + // (&**self).read(buf) + // } + // // fn read_buf(&mut self, buf: io::BorrowedCursor<'_>) -> io::Result<()> { + // // (&**self).read_buf(buf) + // // } + // #[cfg(not(portable_atomic_no_io_vec))] + // fn read_vectored(&mut self, bufs: &mut [io::IoSliceMut<'_>]) -> io::Result { + // (&**self).read_vectored(bufs) + // } + // // #[inline] + // // fn is_read_vectored(&self) -> bool { + // // (&**self).is_read_vectored() + // // } + // } + // #[cfg(unix)] + // impl io::Write for Arc { + // fn write(&mut self, buf: &[u8]) -> io::Result { + // (&**self).write(buf) + // } + // #[cfg(not(portable_atomic_no_io_vec))] + // fn write_vectored(&mut self, bufs: &[io::IoSlice<'_>]) -> io::Result { + // (&**self).write_vectored(bufs) + // } + // // #[inline] + // // fn is_write_vectored(&self) -> bool { + // // (&**self).is_write_vectored() + // // } + // #[inline] + // fn flush(&mut self) -> io::Result<()> { + // (&**self).flush() + // } + // } +} + +use self::clone::CloneToUninit; +mod clone { + use core::ptr; + #[cfg(not(portable_atomic_no_maybe_uninit))] + use core::{ + mem::{self, MaybeUninit}, + slice, + }; + + #[cfg(not(portable_atomic_no_maybe_uninit))] + use super::strict; + + // Based on unstable core::clone::CloneToUninit. + // This trait is private and cannot be implemented for types outside of `portable-atomic-util`. + #[doc(hidden)] // private API + #[allow(unknown_lints, unnameable_types)] // Not public API. unnameable_types is available on Rust 1.79+ + pub unsafe trait CloneToUninit { + unsafe fn clone_to_uninit(&self, dest: *mut u8); + } + unsafe impl CloneToUninit for T { + #[inline] + unsafe fn clone_to_uninit(&self, dest: *mut u8) { + // SAFETY: we're calling a specialization with the same contract + unsafe { clone_one(self, dest as *mut T) } + } + } + #[cfg(not(portable_atomic_no_maybe_uninit))] + unsafe impl CloneToUninit for [T] { + #[inline] + #[cfg_attr(all(debug_assertions, not(portable_atomic_no_track_caller)), track_caller)] + unsafe fn clone_to_uninit(&self, dest: *mut u8) { + let dest: *mut [T] = strict::with_metadata_of(dest, self); + // SAFETY: we're calling a specialization with the same contract + unsafe { clone_slice(self, dest) } + } + } + #[cfg(not(portable_atomic_no_maybe_uninit))] + unsafe impl CloneToUninit for str { + #[inline] + #[cfg_attr(all(debug_assertions, not(portable_atomic_no_track_caller)), track_caller)] + unsafe fn clone_to_uninit(&self, dest: *mut u8) { + // SAFETY: str is just a [u8] with UTF-8 invariant + unsafe { self.as_bytes().clone_to_uninit(dest) } + } + } + // Note: Currently, we cannot implement this for CStr/OsStr/Path since theirs layout is not stable. + + #[inline] + unsafe fn clone_one(src: &T, dst: *mut T) { + // SAFETY: The safety conditions of clone_to_uninit() are a superset of those of + // ptr::write(). + unsafe { + // We hope the optimizer will figure out to create the cloned value in-place, + // skipping ever storing it on the stack and the copy to the destination. + ptr::write(dst, src.clone()); + } + } + #[cfg(not(portable_atomic_no_maybe_uninit))] + #[inline] + #[cfg_attr(all(debug_assertions, not(portable_atomic_no_track_caller)), track_caller)] + unsafe fn clone_slice(src: &[T], dst: *mut [T]) { + let len = src.len(); + + // SAFETY: The produced `&mut` is valid because: + // * The caller is obligated to provide a pointer which is valid for writes. + // * All bytes pointed to are in MaybeUninit, so we don't care about the memory's + // initialization status. + let uninit_ref = unsafe { &mut *(dst as *mut [MaybeUninit]) }; + + // This is the most likely mistake to make, so check it as a debug assertion. + debug_assert_eq!( + len, + uninit_ref.len(), // <*const [T]>::len is unstable + "clone_to_uninit() source and destination must have equal lengths", + ); + + // Copy the elements + let mut initializing = InitializingSlice::from_fully_uninit(uninit_ref); + for element_ref in src { + // If the clone() panics, `initializing` will take care of the cleanup. + initializing.push(element_ref.clone()); + } + // If we reach here, then the entire slice is initialized, and we've satisfied our + // responsibilities to the caller. Disarm the cleanup guard by forgetting it. + mem::forget(initializing); + } + + /// Ownership of a collection of values stored in a non-owned `[MaybeUninit]`, some of which + /// are not yet initialized. This is sort of like a `Vec` that doesn't own its allocation. + /// Its responsibility is to provide cleanup on unwind by dropping the values that *are* + /// initialized, unless disarmed by forgetting. + /// + /// This is a helper for `impl CloneToUninit for [T]`. + #[cfg(not(portable_atomic_no_maybe_uninit))] + struct InitializingSlice<'a, T> { + data: &'a mut [MaybeUninit], + /// Number of elements of `*self.data` that are initialized. + initialized_len: usize, + } + #[cfg(not(portable_atomic_no_maybe_uninit))] + impl<'a, T> InitializingSlice<'a, T> { + #[inline] + fn from_fully_uninit(data: &'a mut [MaybeUninit]) -> Self { + Self { data, initialized_len: 0 } + } + /// Push a value onto the end of the initialized part of the slice. + /// + /// # Panics + /// + /// Panics if the slice is already fully initialized. + #[inline] + fn push(&mut self, value: T) { + self.data[self.initialized_len] = MaybeUninit::new(value); + self.initialized_len += 1; + } + } + #[cfg(not(portable_atomic_no_maybe_uninit))] + impl Drop for InitializingSlice<'_, T> { + #[cold] // will only be invoked on unwind + fn drop(&mut self) { + let initialized_slice = unsafe { + slice::from_raw_parts_mut(self.data.as_mut_ptr() as *mut T, self.initialized_len) + }; + // SAFETY: + // * the pointer is valid because it was made from a mutable reference + // * `initialized_len` counts the initialized elements as an invariant of this type, + // so each of the pointed-to elements is initialized and may be dropped. + unsafe { + ptr::drop_in_place::<[T]>(initialized_slice); + } + } + } +} + +mod layout { + #[cfg(not(portable_atomic_no_maybe_uninit))] + use core::isize; + use core::{alloc::Layout, cmp, usize}; + + // Based on unstable Layout::padding_needed_for. + #[inline] + #[must_use] + pub(super) fn padding_needed_for(layout: Layout, align: usize) -> usize { + // FIXME: Can we just change the type on this to `Alignment`? + if !align.is_power_of_two() { + return usize::MAX; + } + let len_rounded_up = size_rounded_up_to_custom_align(layout, align); + // SAFETY: Cannot overflow because the rounded-up value is never less + len_rounded_up.wrapping_sub(layout.size()) // can use unchecked_sub + } + + /// Returns the smallest multiple of `align` greater than or equal to `self.size()`. + /// + /// This can return at most `Alignment::MAX` (aka `isize::MAX + 1`) + /// because the original size is at most `isize::MAX`. + #[inline] + fn size_rounded_up_to_custom_align(layout: Layout, align: usize) -> usize { + // Rounded up value is: + // size_rounded_up = (size + align - 1) & !(align - 1); + // + // The arithmetic we do here can never overflow: + // + // 1. align is guaranteed to be > 0, so align - 1 is always + // valid. + // + // 2. size is at most `isize::MAX`, so adding `align - 1` (which is at + // most `isize::MAX`) can never overflow a `usize`. + // + // 3. masking by the alignment can remove at most `align - 1`, + // which is what we just added, thus the value we return is never + // less than the original `size`. + // + // (Size 0 Align MAX is already aligned, so stays the same, but things like + // Size 1 Align MAX or Size isize::MAX Align 2 round up to `isize::MAX + 1`.) + let align_m1 = align.wrapping_sub(1); + layout.size().wrapping_add(align_m1) & !align_m1 + } + + // Based on Layout::pad_to_align stabilized in Rust 1.44. + #[inline] + #[must_use] + pub(super) fn pad_to_align(layout: Layout) -> Layout { + // This cannot overflow. Quoting from the invariant of Layout: + // > `size`, when rounded up to the nearest multiple of `align`, + // > must not overflow isize (i.e., the rounded value must be + // > less than or equal to `isize::MAX`) + let new_size = size_rounded_up_to_custom_align(layout, layout.align()); + + // SAFETY: padded size is guaranteed to not exceed `isize::MAX`. + unsafe { Layout::from_size_align_unchecked(new_size, layout.align()) } + } + + // Based on Layout::extend stabilized in Rust 1.44. + #[inline] + pub(super) fn extend(layout: Layout, next: Layout) -> Option<(Layout, usize)> { + let new_align = cmp::max(layout.align(), next.align()); + let offset = size_rounded_up_to_custom_align(layout, next.align()); + + // SAFETY: `offset` is at most `isize::MAX + 1` (such as from aligning + // to `Alignment::MAX`) and `next.size` is at most `isize::MAX` (from the + // `Layout` type invariant). Thus the largest possible `new_size` is + // `isize::MAX + 1 + isize::MAX`, which is `usize::MAX`, and cannot overflow. + let new_size = offset.wrapping_add(next.size()); // can use unchecked_add + + let layout = Layout::from_size_align(new_size, new_align).ok()?; + Some((layout, offset)) + } + + // Based on Layout::array stabilized in Rust 1.44. + #[cfg(not(portable_atomic_no_maybe_uninit))] + #[inline] + pub(super) fn array(n: usize) -> Option { + #[inline(always)] + const fn max_size_for_align(align: usize) -> usize { + // (power-of-two implies align != 0.) + + // Rounded up size is: + // size_rounded_up = (size + align - 1) & !(align - 1); + // + // We know from above that align != 0. If adding (align - 1) + // does not overflow, then rounding up will be fine. + // + // Conversely, &-masking with !(align - 1) will subtract off + // only low-order-bits. Thus if overflow occurs with the sum, + // the &-mask cannot subtract enough to undo that overflow. + // + // Above implies that checking for summation overflow is both + // necessary and sufficient. + + // SAFETY: the maximum possible alignment is `isize::MAX + 1`, + // so the subtraction cannot overflow. + (isize::MAX as usize + 1).wrapping_sub(align) + } + + #[inline] + fn inner(element_layout: Layout, n: usize) -> Option { + let element_size = element_layout.size(); + let align = element_layout.align(); + + // We need to check two things about the size: + // - That the total size won't overflow a `usize`, and + // - That the total size still fits in an `isize`. + // By using division we can check them both with a single threshold. + // That'd usually be a bad idea, but thankfully here the element size + // and alignment are constants, so the compiler will fold all of it. + if element_size != 0 && n > max_size_for_align(align) / element_size { + return None; + } + + // SAFETY: We just checked that we won't overflow `usize` when we multiply. + // This is a useless hint inside this function, but after inlining this helps + // deduplicate checks for whether the overall capacity is zero (e.g., in `RawVec`'s + // allocation path) before/after this multiplication. + let array_size = element_size.wrapping_mul(n); // can use unchecked_mul + + // SAFETY: We just checked above that the `array_size` will not + // exceed `isize::MAX` even when rounded up to the alignment. + // And `Alignment` guarantees it's a power of two. + unsafe { Some(Layout::from_size_align_unchecked(array_size, align)) } + } + + // Reduce the amount of code we need to monomorphize per `T`. + inner(Layout::new::(), n) + } +} + +#[cfg(feature = "std")] +use std::process::abort; +#[cfg(not(feature = "std"))] +#[cold] +fn abort() -> ! { + struct Abort; + impl Drop for Abort { + fn drop(&mut self) { + panic!(); + } + } + + let _abort = Abort; + panic!("abort") +} + +fn is_dangling(ptr: *const T) -> bool { + (ptr as *const ()).addr() == usize::MAX +} + +// Based on unstable alloc::alloc::Global. +// +// Note: unlike alloc::alloc::Global that returns NonNull<[u8]>, +// this returns NonNull. +struct Global; +#[allow(clippy::unused_self)] +impl Global { + #[inline] + #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces + fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Option> { + // Layout::dangling is unstable + #[inline] + #[must_use] + fn dangling(layout: Layout) -> NonNull { + // SAFETY: align is guaranteed to be non-zero + unsafe { NonNull::new_unchecked(strict::without_provenance_mut::(layout.align())) } + } + + match layout.size() { + 0 => Some(dangling(layout)), + // SAFETY: `layout` is non-zero in size, + _size => unsafe { + let raw_ptr = if zeroed { + alloc::alloc::alloc_zeroed(layout) + } else { + alloc::alloc::alloc(layout) + }; + NonNull::new(raw_ptr) + }, + } + } + #[inline] + #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces + fn allocate(self, layout: Layout) -> Option> { + self.alloc_impl(layout, false) + } + #[cfg(not(portable_atomic_no_maybe_uninit))] + #[inline] + #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces + fn allocate_zeroed(self, layout: Layout) -> Option> { + self.alloc_impl(layout, true) + } + #[inline] + #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces + unsafe fn deallocate(self, ptr: NonNull, layout: Layout) { + if layout.size() != 0 { + // SAFETY: + // * We have checked that `layout` is non-zero in size. + // * The caller is obligated to provide a layout that "fits", and in this case, + // "fit" always means a layout that is equal to the original, because our + // `allocate()`, `grow()`, and `shrink()` implementations never returns a larger + // allocation than requested. + // * Other conditions must be upheld by the caller, as per `Allocator::deallocate()`'s + // safety documentation. + unsafe { alloc::alloc::dealloc(ptr.as_ptr(), layout) } + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/src/lib.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/src/lib.rs new file mode 100644 index 0000000000000000000000000000000000000000..992ff6480742d68b2c5d5d86d361708f904f2944 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/src/lib.rs @@ -0,0 +1,117 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + +/*! + + + +Synchronization primitives built with [portable-atomic]. + +- Provide `Arc`. (optional, requires the `std` or `alloc` feature) +- Provide `task::Wake`. (optional, requires the `std` or `alloc` feature) + + +See [#1] for other primitives being considered for addition to this crate. + +## Optional features + +- **`std`**
+ Use `std`. + + Note: + - This implicitly enables the `alloc` feature. + +- **`alloc`**
+ Use `alloc`. + + Note: + - The MSRV when this feature is enabled and the `std` feature is *not* enabled is Rust 1.36 that `alloc` crate stabilized. + + + +[portable-atomic]: https://github.com/taiki-e/portable-atomic +[#1]: https://github.com/taiki-e/portable-atomic/issues/1 + +## Optional cfg + +One of the ways to enable cfg is to set [rustflags in the cargo config](https://doc.rust-lang.org/cargo/reference/config.html#targettriplerustflags): + +```toml +# .cargo/config.toml +[target.] +rustflags = ["--cfg", "portable_atomic_unstable_coerce_unsized"] +``` + +Or set environment variable: + +```sh +RUSTFLAGS="--cfg portable_atomic_unstable_coerce_unsized" cargo ... +``` + +-
**`--cfg portable_atomic_unstable_coerce_unsized`**
+ Support coercing of `Arc` to `Arc` as in `std::sync::Arc`. + + + + This cfg requires Rust nightly because this coercing requires [unstable `CoerceUnsized` trait](https://doc.rust-lang.org/nightly/core/ops/trait.CoerceUnsized.html). + + See [this issue comment](https://github.com/taiki-e/portable-atomic/issues/143#issuecomment-1866488569) for another known workaround. + + **Note:** This cfg is unstable and outside of the normal semver guarantees and minor or patch versions of portable-atomic-util may make breaking changes to them at any time. + + +*/ + +#![no_std] +#![doc(test( + no_crate_inject, + attr( + deny(warnings, rust_2018_idioms, single_use_lifetimes), + allow(dead_code, unused_variables) + ) +))] +#![cfg_attr(not(portable_atomic_no_unsafe_op_in_unsafe_fn), warn(unsafe_op_in_unsafe_fn))] // unsafe_op_in_unsafe_fn requires Rust 1.52 +#![cfg_attr(portable_atomic_no_unsafe_op_in_unsafe_fn, allow(unused_unsafe))] +#![warn( + // Lints that may help when writing public library. + missing_debug_implementations, + missing_docs, + clippy::alloc_instead_of_core, + clippy::exhaustive_enums, + clippy::exhaustive_structs, + clippy::impl_trait_in_params, + // clippy::missing_inline_in_public_items, + clippy::std_instead_of_alloc, + clippy::std_instead_of_core, +)] +#![cfg_attr(portable_atomic_no_strict_provenance, allow(unstable_name_collisions))] +#![allow(clippy::inline_always)] +// docs.rs only (cfg is enabled by docs.rs, not build script) +#![cfg_attr(docsrs, feature(doc_cfg))] +#![cfg_attr(docsrs, doc(auto_cfg = false))] +// Enable custom unsized coercions if the user explicitly opts-in to unstable cfg +#![cfg_attr(portable_atomic_unstable_coerce_unsized, feature(coerce_unsized, unsize))] + +#[cfg(all(feature = "alloc", not(portable_atomic_no_alloc)))] +extern crate alloc; +#[cfg(feature = "std")] +extern crate std; +#[cfg(all(feature = "std", portable_atomic_no_alloc))] +extern crate std as alloc; + +#[macro_use] +mod utils; + +#[cfg(any(all(feature = "alloc", not(portable_atomic_no_alloc)), feature = "std"))] +#[cfg_attr(docsrs, doc(cfg(any(feature = "alloc", feature = "std"))))] +mod arc; +#[cfg(any(all(feature = "alloc", not(portable_atomic_no_alloc)), feature = "std"))] +pub use self::arc::{Arc, Weak}; + +#[cfg(not(portable_atomic_no_futures_api))] +#[cfg(any(all(feature = "alloc", not(portable_atomic_no_alloc)), feature = "std"))] +#[cfg_attr(docsrs, doc(cfg(any(feature = "alloc", feature = "std"))))] +pub mod task; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/src/task.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/src/task.rs new file mode 100644 index 0000000000000000000000000000000000000000..ef2c5ce09b09bb99e7f6fe7ec6f992b1037f2ff5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/src/task.rs @@ -0,0 +1,166 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + +//! Types and Traits for working with asynchronous tasks. + +// This module is based on alloc::task::Wake. +// +// The code has been adjusted to work with stable Rust. +// +// Source: https://github.com/rust-lang/rust/blob/1.84.0/library/alloc/src/task.rs. +// +// Copyright & License of the original code: +// - https://github.com/rust-lang/rust/blob/1.84.0/COPYRIGHT +// - https://github.com/rust-lang/rust/blob/1.84.0/LICENSE-APACHE +// - https://github.com/rust-lang/rust/blob/1.84.0/LICENSE-MIT + +use core::{ + mem::ManuallyDrop, + task::{RawWaker, RawWakerVTable, Waker}, +}; + +use crate::Arc; + +/// The implementation of waking a task on an executor. +/// +/// This is an equivalent to [`std::task::Wake`], but using [`portable_atomic_util::Arc`](crate::Arc) +/// as a reference-counted pointer. See the documentation for [`std::task::Wake`] for more details. +/// +/// **Note:** Unlike `std::task::Wake`, all methods take `this:` instead of `self:`. +/// This is because using `portable_atomic_util::Arc` as a receiver requires the +/// [unstable `arbitrary_self_types` feature](https://github.com/rust-lang/rust/issues/44874). +/// +/// # Examples +/// +/// A basic `block_on` function that takes a future and runs it to completion on +/// the current thread. +/// +/// **Note:** This example trades correctness for simplicity. In order to prevent +/// deadlocks, production-grade implementations will also need to handle +/// intermediate calls to `thread::unpark` as well as nested invocations. +/// +/// ``` +/// use std::{ +/// future::Future, +/// task::{Context, Poll}, +/// thread::{self, Thread}, +/// }; +/// +/// use portable_atomic_util::{Arc, task::Wake}; +/// +/// /// A waker that wakes up the current thread when called. +/// struct ThreadWaker(Thread); +/// +/// impl Wake for ThreadWaker { +/// fn wake(this: Arc) { +/// this.0.unpark(); +/// } +/// } +/// +/// /// Run a future to completion on the current thread. +/// fn block_on(fut: impl Future) -> T { +/// // Pin the future so it can be polled. +/// let mut fut = Box::pin(fut); +/// +/// // Create a new context to be passed to the future. +/// let t = thread::current(); +/// let waker = Arc::new(ThreadWaker(t)).into(); +/// let mut cx = Context::from_waker(&waker); +/// +/// // Run the future to completion. +/// loop { +/// match fut.as_mut().poll(&mut cx) { +/// Poll::Ready(res) => return res, +/// Poll::Pending => thread::park(), +/// } +/// } +/// } +/// +/// block_on(async { +/// println!("Hi from inside a future!"); +/// }); +/// ``` +pub trait Wake { + /// Wake this task. + fn wake(this: Arc); + + /// Wake this task without consuming the waker. + /// + /// If an executor supports a cheaper way to wake without consuming the + /// waker, it should override this method. By default, it clones the + /// [`Arc`] and calls [`wake`] on the clone. + /// + /// [`wake`]: Wake::wake + fn wake_by_ref(this: &Arc) { + Self::wake(this.clone()); + } +} +impl From> for Waker { + /// Use a [`Wake`]-able type as a `Waker`. + /// + /// No heap allocations or atomic operations are used for this conversion. + fn from(waker: Arc) -> Self { + // SAFETY: This is safe because raw_waker safely constructs + // a RawWaker from Arc. + unsafe { Self::from_raw(raw_waker(waker)) } + } +} +impl From> for RawWaker { + /// Use a `Wake`-able type as a `RawWaker`. + /// + /// No heap allocations or atomic operations are used for this conversion. + fn from(waker: Arc) -> Self { + raw_waker(waker) + } +} + +// NB: This private function for constructing a RawWaker is used, rather than +// inlining this into the `From> for RawWaker` impl, to ensure that +// the safety of `From> for Waker` does not depend on the correct +// trait dispatch - instead both impls call this function directly and +// explicitly. +#[inline(always)] +fn raw_waker(waker: Arc) -> RawWaker { + // Increment the reference count of the arc to clone it. + // + // The #[inline(always)] is to ensure that raw_waker and clone_waker are + // always generated in the same code generation unit as one another, and + // therefore that the structurally identical const-promoted RawWakerVTable + // within both functions is deduplicated at LLVM IR code generation time. + // This allows optimizing Waker::will_wake to a single pointer comparison of + // the vtable pointers, rather than comparing all four function pointers + // within the vtables. + #[inline(always)] + unsafe fn clone_waker(waker: *const ()) -> RawWaker { + // SAFETY: the caller must uphold the safety contract. + unsafe { Arc::increment_strong_count(waker as *const W) } + RawWaker::new( + waker, + &RawWakerVTable::new(clone_waker::, wake::, wake_by_ref::, drop_waker::), + ) + } + + // Wake by value, moving the Arc into the Wake::wake function + unsafe fn wake(waker: *const ()) { + // SAFETY: the caller must uphold the safety contract. + let waker = unsafe { Arc::from_raw(waker as *const W) }; + ::wake(waker); + } + + // Wake by reference, wrap the waker in ManuallyDrop to avoid dropping it + unsafe fn wake_by_ref(waker: *const ()) { + // SAFETY: the caller must uphold the safety contract. + let waker = unsafe { ManuallyDrop::new(Arc::from_raw(waker as *const W)) }; + ::wake_by_ref(&waker); + } + + // Decrement the reference count of the Arc on drop + unsafe fn drop_waker(waker: *const ()) { + // SAFETY: the caller must uphold the safety contract. + unsafe { Arc::decrement_strong_count(waker as *const W) } + } + + RawWaker::new( + Arc::into_raw(waker) as *const (), + &RawWakerVTable::new(clone_waker::, wake::, wake_by_ref::, drop_waker::), + ) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/src/utils.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/src/utils.rs new file mode 100644 index 0000000000000000000000000000000000000000..1771f8be7b80020075974943701466d6666c0e14 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/src/utils.rs @@ -0,0 +1,107 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + +#![cfg_attr( + not(any(all(feature = "alloc", not(portable_atomic_no_alloc)), feature = "std")), + allow(dead_code, unused_macros, unused_imports) +)] + +// rustfmt-compatible cfg_select/cfg_if alternative +// Note: This macro is cfg_sel!({ }), not cfg_sel! { }. +// An extra brace is used in input to make contents rustfmt-able. +macro_rules! cfg_sel { + ({#[cfg(else)] { $($output:tt)* }}) => { + $($output)* + }; + ({ + #[cfg($cfg:meta)] + { $($output:tt)* } + $($( $rest:tt )+)? + }) => { + #[cfg($cfg)] + cfg_sel! {{#[cfg(else)] { $($output)* }}} + $( + #[cfg(not($cfg))] + cfg_sel! {{ $($rest)+ }} + )? + }; +} + +// This module provides core::ptr strict_provenance/exposed_provenance polyfill for pre-1.84 rustc. +pub(crate) mod ptr { + cfg_sel!({ + #[cfg(not(portable_atomic_no_strict_provenance))] + { + pub(crate) use core::ptr::without_provenance_mut; + } + #[cfg(else)] + { + use core::mem; + + #[inline(always)] + #[must_use] + pub(crate) const fn without_provenance_mut(addr: usize) -> *mut T { + // An int-to-pointer transmute currently has exactly the intended semantics: it creates a + // pointer without provenance. Note that this is *not* a stable guarantee about transmute + // semantics, it relies on sysroot crates having special status. + // SAFETY: every valid integer is also a valid pointer (as long as you don't dereference that + // pointer). + #[cfg(miri)] + unsafe { + mem::transmute(addr) + } + // const transmute requires Rust 1.56. + #[cfg(not(miri))] + { + addr as *mut T + } + } + + pub(crate) trait PtrExt: Copy { + #[must_use] + fn addr(self) -> usize; + } + impl PtrExt for *const T { + #[inline(always)] + #[must_use] + fn addr(self) -> usize { + // A pointer-to-integer transmute currently has exactly the right semantics: it returns the + // address without exposing the provenance. Note that this is *not* a stable guarantee about + // transmute semantics, it relies on sysroot crates having special status. + // SAFETY: Pointer-to-integer transmutes are valid (if you are okay with losing the + // provenance). + unsafe { mem::transmute(self as *const ()) } + } + } + } + }); + + /// Creates a new pointer with the metadata of `other`. + #[inline] + #[must_use] + pub(crate) fn with_metadata_of(this: *mut T, mut other: *const U) -> *mut U { + let target = &mut other as *mut *const U as *mut *const u8; + + // SAFETY: In case of a thin pointer, this operations is identical + // to a simple assignment. In case of a fat pointer, with the current + // fat pointer layout implementation, the first field of such a + // pointer is always the data pointer, which is likewise assigned. + unsafe { *target = this as *const u8 } + other as *mut U + } + + // Based on ::byte_add stabilized in Rust 1.75. + #[inline] + #[must_use] + pub(crate) unsafe fn byte_add(ptr: *mut T, count: usize) -> *mut T { + // SAFETY: the caller must uphold the safety contract for `add`. + unsafe { with_metadata_of((ptr as *mut u8).add(count), ptr) } + } + + // Based on ::byte_sub stabilized in Rust 1.75. + #[inline] + #[must_use] + pub(crate) unsafe fn byte_sub(ptr: *mut T, count: usize) -> *mut T { + // SAFETY: the caller must uphold the safety contract for `sub`. + unsafe { with_metadata_of((ptr as *mut u8).sub(count), ptr) } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/tests/arc.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/tests/arc.rs new file mode 100644 index 0000000000000000000000000000000000000000..e68690e7f9b5d7b7537411cc19a479e72c0a0c49 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/portable-atomic-util-0.2.5/tests/arc.rs @@ -0,0 +1,822 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + +#![cfg(any(feature = "std", feature = "alloc"))] +#![allow(clippy::undocumented_unsafe_blocks)] + +use std::{borrow::Cow, panic}; + +use portable_atomic_util::{Arc, Weak}; + +#[derive(Debug, PartialEq)] +#[repr(align(128))] +struct Aligned(u32); + +// https://github.com/taiki-e/portable-atomic/issues/37 +#[test] +fn over_aligned() { + let value = Arc::new(Aligned(128)); + let ptr = Arc::into_raw(value); + // SAFETY: `ptr` should always be a valid `Aligned`. + assert_eq!(unsafe { (*ptr).0 }, 128); + // SAFETY: `ptr` is a valid reference to an `Arc`. + let value = unsafe { Arc::from_raw(ptr) }; + assert_eq!(value.0, 128); +} + +#[test] +fn default() { + let v = Arc::<[Aligned]>::default(); + assert_eq!(v[..], []); + let v = Arc::<[()]>::default(); + assert_eq!(v[..], []); + let v = Arc::::default(); + assert_eq!(&v[..], ""); +} + +#[test] +fn cow_from() { + let o = Cow::Owned("abc".to_owned()); + let b = Cow::Borrowed("def"); + let o: Arc = Arc::from(o); + let b: Arc = Arc::from(b); + assert_eq!(&*o, "abc"); + assert_eq!(&*b, "def"); +} + +#[test] +fn make_mut_unsized() { + let mut v: Arc<[i32]> = Arc::from([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); + Arc::make_mut(&mut v)[0] += 10; + assert_eq!(&*v, [11, 2, 3, 4, 5, 6, 7, 8, 9, 10]); + let v1 = Arc::clone(&v); + let v2 = Arc::make_mut(&mut v); + v2[1] += 10; + assert_eq!(&*v1, [11, 2, 3, 4, 5, 6, 7, 8, 9, 10]); + assert_eq!(&*v2, [11, 12, 3, 4, 5, 6, 7, 8, 9, 10]); + assert_eq!(&*v, [11, 12, 3, 4, 5, 6, 7, 8, 9, 10]); + drop(v1); + let w = Arc::downgrade(&v); + Arc::make_mut(&mut v)[2] += 10; + assert_eq!(&*v, [11, 12, 13, 4, 5, 6, 7, 8, 9, 10]); + assert!(w.upgrade().is_none()); +} + +#[test] +fn make_mut_clone_panic() { + struct C(#[allow(dead_code)] Box); + impl Clone for C { + fn clone(&self) -> Self { + panic!() + } + } + let mut v: Arc<[C]> = Arc::from([C(Box::new(1)), C(Box::new(2))]); + let _v = Arc::make_mut(&mut v); + let v1 = Arc::clone(&v); + if !is_panic_abort() { + panic::catch_unwind(panic::AssertUnwindSafe(|| { + let _v = Arc::make_mut(&mut v); + })) + .unwrap_err(); + } + drop(v1); +} + +/// Test that a panic from a destructor does not leak the allocation. +#[test] +fn panic_no_leak() { + // use std::alloc::{AllocError, Allocator, Global, Layout}; + use std::panic::{AssertUnwindSafe, catch_unwind}; + // use std::ptr::NonNull; + + // TODO: no custom allocator support + // struct AllocCount(Cell); + // unsafe impl Allocator for AllocCount { + // fn allocate(&self, layout: Layout) -> Result, AllocError> { + // self.0.set(self.0.get() + 1); + // Global.allocate(layout) + // } + // unsafe fn deallocate(&self, ptr: NonNull, layout: Layout) { + // self.0.set(self.0.get() - 1); + // unsafe { Global.deallocate(ptr, layout) } + // } + // } + + struct PanicOnDrop; + impl Drop for PanicOnDrop { + fn drop(&mut self) { + panic!("PanicOnDrop"); + } + } + + if !is_panic_abort() { + // let alloc = AllocCount(Cell::new(0)); + // let rc = Arc::new_in(PanicOnDrop, &alloc); + let rc = Arc::new(PanicOnDrop); + // assert_eq!(alloc.0.get(), 1); + + let panic_message = catch_unwind(AssertUnwindSafe(|| drop(rc))).unwrap_err(); + assert_eq!(*panic_message.downcast_ref::<&'static str>().unwrap(), "PanicOnDrop"); + // assert_eq!(alloc.0.get(), 0); + } +} + +#[test] +fn weak_dangling() { + let w = Weak::::new(); + let p = Weak::into_raw(w); + let w = unsafe { Weak::from_raw(p) }; + let w2 = Weak::clone(&w); + assert!(w.upgrade().is_none()); + assert!(w2.upgrade().is_none()); +} + +// For -C panic=abort -Z panic_abort_tests: https://github.com/rust-lang/rust/issues/67650 +fn is_panic_abort() -> bool { + !matches!(build_context::PANIC, "unwind" | "") // cfg(panic) requires Rust 1.60 +} + +// https://github.com/rust-lang/rust/blob/1.84.0/library/alloc/src/sync/tests.rs +#[allow(clippy::many_single_char_names)] +mod alloc_tests { + use std::{ + convert::TryInto as _, + sync::{Mutex, mpsc::channel}, + thread, + }; + + use portable_atomic::{ + AtomicBool, AtomicUsize, + Ordering::{Acquire, SeqCst}, + }; + use portable_atomic_util::{Arc, Weak}; + + struct Canary(*mut AtomicUsize); + + impl Drop for Canary { + fn drop(&mut self) { + unsafe { + match *self { + Canary(c) => { + (*c).fetch_add(1, SeqCst); + } + } + } + } + } + + #[test] + #[cfg_attr(target_os = "emscripten", ignore = "thread::spawn doesn't work on emscripten")] + fn manually_share_arc() { + let v = vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; + let arc_v = Arc::new(v); + + let (tx, rx) = channel(); + + let _t = thread::spawn(move || { + let arc_v: Arc> = rx.recv().unwrap(); + assert_eq!((*arc_v)[3], 4); + }); + + tx.send(arc_v.clone()).unwrap(); + + assert_eq!((*arc_v)[2], 3); + assert_eq!((*arc_v)[4], 5); + } + + #[test] + fn test_arc_get_mut() { + let mut x = Arc::new(3); + *Arc::get_mut(&mut x).unwrap() = 4; + assert_eq!(*x, 4); + let y = x.clone(); + assert!(Arc::get_mut(&mut x).is_none()); + drop(y); + assert!(Arc::get_mut(&mut x).is_some()); + let _w = Arc::downgrade(&x); + assert!(Arc::get_mut(&mut x).is_none()); + } + + #[test] + fn weak_counts() { + assert_eq!(Weak::weak_count(&Weak::::new()), 0); + assert_eq!(Weak::strong_count(&Weak::::new()), 0); + + let a = Arc::new(0); + let w = Arc::downgrade(&a); + assert_eq!(Weak::strong_count(&w), 1); + assert_eq!(Weak::weak_count(&w), 1); + let w2 = w.clone(); + assert_eq!(Weak::strong_count(&w), 1); + assert_eq!(Weak::weak_count(&w), 2); + assert_eq!(Weak::strong_count(&w2), 1); + assert_eq!(Weak::weak_count(&w2), 2); + drop(w); + assert_eq!(Weak::strong_count(&w2), 1); + assert_eq!(Weak::weak_count(&w2), 1); + let a2 = a.clone(); + assert_eq!(Weak::strong_count(&w2), 2); + assert_eq!(Weak::weak_count(&w2), 1); + drop(a2); + drop(a); + assert_eq!(Weak::strong_count(&w2), 0); + assert_eq!(Weak::weak_count(&w2), 0); + drop(w2); + } + + #[test] + fn try_unwrap() { + let x = Arc::new(3); + assert_eq!(Arc::try_unwrap(x), Ok(3)); + let x = Arc::new(4); + let _y = x.clone(); + assert_eq!(Arc::try_unwrap(x), Err(Arc::new(4))); + let x = Arc::new(5); + let _w = Arc::downgrade(&x); + assert_eq!(Arc::try_unwrap(x), Ok(5)); + } + + #[test] + fn into_inner() { + for _ in 0..100 + // ^ Increase chances of hitting potential race conditions + { + let x = Arc::new(3); + let y = Arc::clone(&x); + let r_thread = std::thread::spawn(|| Arc::into_inner(x)); + let s_thread = std::thread::spawn(|| Arc::into_inner(y)); + let r = r_thread.join().expect("r_thread panicked"); + let s = s_thread.join().expect("s_thread panicked"); + assert!( + matches!((r, s), (None, Some(3)) | (Some(3), None)), + "assertion failed: unexpected result `{:?}`\ + \n expected `(None, Some(3))` or `(Some(3), None)`", + (r, s), + ); + } + + let x = Arc::new(3); + assert_eq!(Arc::into_inner(x), Some(3)); + + let x = Arc::new(4); + let y = Arc::clone(&x); + assert_eq!(Arc::into_inner(x), None); + assert_eq!(Arc::into_inner(y), Some(4)); + + let x = Arc::new(5); + let _w = Arc::downgrade(&x); + assert_eq!(Arc::into_inner(x), Some(5)); + } + + #[test] + fn into_from_raw() { + let x = Arc::new(Box::new("hello")); + let y = x.clone(); + + let x_ptr = Arc::into_raw(x); + drop(y); + unsafe { + assert_eq!(**x_ptr, "hello"); + + let x = Arc::from_raw(x_ptr); + assert_eq!(**x, "hello"); + + assert_eq!(Arc::try_unwrap(x).map(|x| *x), Ok("hello")); + } + } + + #[test] + fn test_into_from_raw_unsized() { + use std::fmt::Display; + + let arc: Arc = Arc::from("foo"); + + let ptr = Arc::into_raw(arc.clone()); + let arc2 = unsafe { Arc::from_raw(ptr) }; + + assert_eq!(unsafe { &*ptr }, "foo"); + assert_eq!(arc, arc2); + + #[cfg(portable_atomic_unstable_coerce_unsized)] + let arc: Arc = Arc::new(123); + // TODO: This is a workaround in case CoerceUnsized is not available - remove this once it is no longer needed + #[cfg(not(portable_atomic_unstable_coerce_unsized))] + let arc: Arc = Arc::from(Box::new(123) as Box); + + let ptr = Arc::into_raw(arc.clone()); + let arc2 = unsafe { Arc::from_raw(ptr) }; + + assert_eq!(unsafe { &*ptr }.to_string(), "123"); + assert_eq!(arc2.to_string(), "123"); + } + + #[test] + fn into_from_weak_raw() { + let x = Arc::new(Box::new("hello")); + let y = Arc::downgrade(&x); + + let y_ptr = Weak::into_raw(y); + unsafe { + assert_eq!(**y_ptr, "hello"); + + let y = Weak::from_raw(y_ptr); + let y_up = Weak::upgrade(&y).unwrap(); + assert_eq!(**y_up, "hello"); + drop(y_up); + + assert_eq!(Arc::try_unwrap(x).map(|x| *x), Ok("hello")); + } + } + + // TODO: See Weak::from_raw + // #[test] + // fn test_into_from_weak_raw_unsized() { + // use std::fmt::Display; + + // let arc: Arc = Arc::from("foo"); + // let weak: Weak = Arc::downgrade(&arc); + + // let ptr = Weak::into_raw(weak.clone()); + // let weak2 = unsafe { Weak::from_raw(ptr) }; + + // assert_eq!(unsafe { &*ptr }, "foo"); + // assert!(weak.ptr_eq(&weak2)); + + // // TODO: CoerceUnsized is needed to cast to Arc + // // (may be possible to support this with portable_atomic_unstable_coerce_unsized cfg option) + // // let arc: Arc = Arc::new(123); + // let arc: Arc = Arc::from(Box::new(123) as Box); + // let weak: Weak = Arc::downgrade(&arc); + + // let ptr = Weak::into_raw(weak.clone()); + // let weak2 = unsafe { Weak::from_raw(ptr) }; + + // assert_eq!(unsafe { &*ptr }.to_string(), "123"); + // assert!(weak.ptr_eq(&weak2)); + // } + + #[test] + fn test_cow_arc_clone_make_mut() { + let mut cow0 = Arc::new(75); + let mut cow1 = cow0.clone(); + let mut cow2 = cow1.clone(); + + assert!(75 == *Arc::make_mut(&mut cow0)); + assert!(75 == *Arc::make_mut(&mut cow1)); + assert!(75 == *Arc::make_mut(&mut cow2)); + + *Arc::make_mut(&mut cow0) += 1; + *Arc::make_mut(&mut cow1) += 2; + *Arc::make_mut(&mut cow2) += 3; + + assert!(76 == *cow0); + assert!(77 == *cow1); + assert!(78 == *cow2); + + // none should point to the same backing memory + assert!(*cow0 != *cow1); + assert!(*cow0 != *cow2); + assert!(*cow1 != *cow2); + } + + #[test] + fn test_cow_arc_clone_unique2() { + let mut cow0 = Arc::new(75); + let cow1 = cow0.clone(); + let cow2 = cow1.clone(); + + assert!(75 == *cow0); + assert!(75 == *cow1); + assert!(75 == *cow2); + + *Arc::make_mut(&mut cow0) += 1; + assert!(76 == *cow0); + assert!(75 == *cow1); + assert!(75 == *cow2); + + // cow1 and cow2 should share the same contents + // cow0 should have a unique reference + assert!(*cow0 != *cow1); + assert!(*cow0 != *cow2); + assert!(*cow1 == *cow2); + } + + #[test] + fn test_cow_arc_clone_weak() { + let mut cow0 = Arc::new(75); + let cow1_weak = Arc::downgrade(&cow0); + + assert!(75 == *cow0); + assert!(75 == *cow1_weak.upgrade().unwrap()); + + *Arc::make_mut(&mut cow0) += 1; + + assert!(76 == *cow0); + assert!(cow1_weak.upgrade().is_none()); + } + + #[test] + fn test_live() { + let x = Arc::new(5); + let y = Arc::downgrade(&x); + assert!(y.upgrade().is_some()); + } + + #[test] + fn test_dead() { + let x = Arc::new(5); + let y = Arc::downgrade(&x); + drop(x); + assert!(y.upgrade().is_none()); + } + + #[test] + fn weak_self_cyclic() { + struct Cycle { + x: Mutex>>, + } + + let a = Arc::new(Cycle { x: Mutex::new(None) }); + let b = Arc::downgrade(&a.clone()); + *a.x.lock().unwrap() = Some(b); + + // hopefully we don't double-free (or leak)... + } + + #[test] + fn drop_arc() { + let mut canary = AtomicUsize::new(0); + let x = Arc::new(Canary(&mut canary as *mut AtomicUsize)); + drop(x); + assert!(canary.load(Acquire) == 1); + } + + #[test] + fn drop_arc_weak() { + let mut canary = AtomicUsize::new(0); + let arc = Arc::new(Canary(&mut canary as *mut AtomicUsize)); + let arc_weak = Arc::downgrade(&arc); + assert!(canary.load(Acquire) == 0); + drop(arc); + assert!(canary.load(Acquire) == 1); + drop(arc_weak); + } + + #[test] + fn test_strong_count() { + let a = Arc::new(0); + assert!(Arc::strong_count(&a) == 1); + let w = Arc::downgrade(&a); + assert!(Arc::strong_count(&a) == 1); + let b = w.upgrade().expect(""); + assert!(Arc::strong_count(&b) == 2); + assert!(Arc::strong_count(&a) == 2); + drop(w); + drop(a); + assert!(Arc::strong_count(&b) == 1); + let c = b.clone(); + assert!(Arc::strong_count(&b) == 2); + assert!(Arc::strong_count(&c) == 2); + } + + #[test] + fn test_weak_count() { + let a = Arc::new(0); + assert!(Arc::strong_count(&a) == 1); + assert!(Arc::weak_count(&a) == 0); + let w = Arc::downgrade(&a); + assert!(Arc::strong_count(&a) == 1); + assert!(Arc::weak_count(&a) == 1); + let x = w.clone(); + assert!(Arc::weak_count(&a) == 2); + drop(w); + drop(x); + assert!(Arc::strong_count(&a) == 1); + assert!(Arc::weak_count(&a) == 0); + let c = a.clone(); + assert!(Arc::strong_count(&a) == 2); + assert!(Arc::weak_count(&a) == 0); + let d = Arc::downgrade(&c); + assert!(Arc::weak_count(&c) == 1); + assert!(Arc::strong_count(&c) == 2); + + drop(a); + drop(c); + drop(d); + } + + #[test] + fn show_arc() { + let a = Arc::new(5); + assert_eq!(format!("{:?}", a), "5"); + } + + // Make sure deriving works with Arc + #[derive(Eq, Ord, PartialEq, PartialOrd, Clone, Debug, Default)] + struct _Foo { + inner: Arc, + } + + #[test] + fn test_unsized() { + #[cfg(portable_atomic_unstable_coerce_unsized)] + let x: Arc<[i32]> = Arc::new([1, 2, 3]); + // TODO: This is a workaround in case CoerceUnsized is not available - remove this once it is no longer needed + #[cfg(not(portable_atomic_unstable_coerce_unsized))] + let x: Arc<[i32]> = Arc::from(Box::new([1, 2, 3]) as Box<[i32]>); + assert_eq!(format!("{:?}", x), "[1, 2, 3]"); + let y = Arc::downgrade(&x.clone()); + drop(x); + assert!(y.upgrade().is_none()); + } + + #[test] + fn test_maybe_thin_unsized() { + // If/when custom thin DSTs exist, this test should be updated to use one + use std::ffi::{CStr, CString}; + + let x: Arc = Arc::from(CString::new("swordfish").unwrap().into_boxed_c_str()); + assert_eq!(format!("{:?}", x), "\"swordfish\""); + let y: Weak = Arc::downgrade(&x); + drop(x); + + // At this point, the weak points to a dropped DST + assert!(y.upgrade().is_none()); + // But we still need to be able to get the alloc layout to drop. + // CStr has no drop glue, but custom DSTs might, and need to work. + drop(y); + } + + #[test] + fn test_from_owned() { + let foo = 123; + let foo_arc = Arc::from(foo); + assert!(123 == *foo_arc); + } + + #[test] + fn test_new_weak() { + let foo: Weak = Weak::new(); + assert!(foo.upgrade().is_none()); + } + + #[test] + fn test_ptr_eq() { + let five = Arc::new(5); + let same_five = five.clone(); + let other_five = Arc::new(5); + + assert!(Arc::ptr_eq(&five, &same_five)); + assert!(!Arc::ptr_eq(&five, &other_five)); + } + + #[test] + #[cfg_attr(target_os = "emscripten", ignore = "thread::spawn doesn't work on emscripten")] + fn test_weak_count_locked() { + let mut a = Arc::new(AtomicBool::new(false)); + let a2 = a.clone(); + let t = thread::spawn(move || { + // Miri is too slow + let count = if cfg!(miri) { 1_000 } else { 1_000_000 }; + for _i in 0..count { + Arc::get_mut(&mut a); + } + a.store(true, SeqCst); + }); + + while !a2.load(SeqCst) { + let n = Arc::weak_count(&a2); + assert!(n < 2, "bad weak count: {}", n); + #[cfg(miri)] // Miri's scheduler does not guarantee liveness, and thus needs this hint. + std::hint::spin_loop(); + } + t.join().unwrap(); + } + + #[test] + fn test_from_str() { + let r: Arc = Arc::from("foo"); + + assert_eq!(&r[..], "foo"); + } + + #[test] + fn test_copy_from_slice() { + let s: &[u32] = &[1, 2, 3]; + let r: Arc<[u32]> = Arc::from(s); + + assert_eq!(&r[..], [1, 2, 3]); + } + + #[test] + fn test_clone_from_slice() { + #[derive(Clone, Debug, Eq, PartialEq)] + struct X(u32); + + let s: &[X] = &[X(1), X(2), X(3)]; + let r: Arc<[X]> = Arc::from(s); + + assert_eq!(&r[..], s); + } + + #[test] + #[should_panic = "test_clone_from_slice_panic"] + fn test_clone_from_slice_panic() { + struct Fail(u32, String); + + impl Clone for Fail { + fn clone(&self) -> Fail { + if self.0 == 2 { + panic!("test_clone_from_slice_panic"); + } + Fail(self.0, self.1.clone()) + } + } + + let s: &[Fail] = + &[Fail(0, "foo".to_owned()), Fail(1, "bar".to_owned()), Fail(2, "baz".to_owned())]; + + // Should panic, but not cause memory corruption + let _r: Arc<[Fail]> = Arc::from(s); + } + + #[test] + fn test_from_box() { + let b: Box = Box::new(123); + let r: Arc = Arc::from(b); + + assert_eq!(*r, 123); + } + + #[test] + fn test_from_box_str() { + let s = String::from("foo").into_boxed_str(); + let r: Arc = Arc::from(s); + + assert_eq!(&r[..], "foo"); + } + + #[test] + fn test_from_box_slice() { + let s = vec![1, 2, 3].into_boxed_slice(); + let r: Arc<[u32]> = Arc::from(s); + + assert_eq!(&r[..], [1, 2, 3]); + } + + #[test] + fn test_from_box_trait() { + use std::fmt::Display; + + let b: Box = Box::new(123); + let r: Arc = Arc::from(b); + + assert_eq!(r.to_string(), "123"); + } + + #[test] + fn test_from_box_trait_zero_sized() { + use std::fmt::Debug; + + let b: Box = Box::new(()); + let r: Arc = Arc::from(b); + + assert_eq!(format!("{:?}", r), "()"); + } + + #[test] + fn test_from_vec() { + let v = vec![1, 2, 3]; + let r: Arc<[u32]> = Arc::from(v); + + assert_eq!(&r[..], [1, 2, 3]); + } + + #[test] + fn test_downcast() { + use std::any::Any; + + #[cfg(portable_atomic_unstable_coerce_unsized)] + let r1: Arc = Arc::new(i32::MAX); + // TODO: This is a workaround in case CoerceUnsized is not available - remove this once it is no longer needed + #[cfg(not(portable_atomic_unstable_coerce_unsized))] + let r1: Arc = + Arc::from(Box::new(i32::MAX) as Box); + + #[cfg(portable_atomic_unstable_coerce_unsized)] + let r2: Arc = Arc::new("abc"); + // TODO: This is a workaround in case CoerceUnsized is not available - remove this once it is no longer needed + #[cfg(not(portable_atomic_unstable_coerce_unsized))] + let r2: Arc = + Arc::from(Box::new("abc") as Box); + + assert!(r1.clone().downcast::().is_err()); + + let r1i32 = r1.downcast::(); + assert!(r1i32.is_ok()); + assert_eq!(r1i32.unwrap(), Arc::new(i32::MAX)); + + assert!(r2.clone().downcast::().is_err()); + + let r2str = r2.downcast::<&'static str>(); + assert!(r2str.is_ok()); + assert_eq!(r2str.unwrap(), Arc::new("abc")); + } + + #[test] + fn test_array_from_slice() { + let v = vec![1, 2, 3]; + let r: Arc<[u32]> = Arc::from(v); + + let a: Result, _> = r.clone().try_into(); + assert!(a.is_ok()); + + let a: Result, _> = r.clone().try_into(); + assert!(a.is_err()); + } + + #[test] + fn test_arc_cyclic_with_zero_refs() { + struct ZeroRefs { + inner: Weak, + } + let zero_refs = Arc::new_cyclic(|inner| { + assert_eq!(inner.strong_count(), 0); + assert!(inner.upgrade().is_none()); + ZeroRefs { inner: Weak::new() } + }); + + assert_eq!(Arc::strong_count(&zero_refs), 1); + assert_eq!(Arc::weak_count(&zero_refs), 0); + assert_eq!(zero_refs.inner.strong_count(), 0); + assert_eq!(zero_refs.inner.weak_count(), 0); + } + + #[test] + fn test_arc_new_cyclic_one_ref() { + struct OneRef { + inner: Weak, + } + let one_ref = Arc::new_cyclic(|inner| { + assert_eq!(inner.strong_count(), 0); + assert!(inner.upgrade().is_none()); + OneRef { inner: inner.clone() } + }); + + assert_eq!(Arc::strong_count(&one_ref), 1); + assert_eq!(Arc::weak_count(&one_ref), 1); + + let one_ref2 = Weak::upgrade(&one_ref.inner).unwrap(); + assert!(Arc::ptr_eq(&one_ref, &one_ref2)); + + assert_eq!(Arc::strong_count(&one_ref), 2); + assert_eq!(Arc::weak_count(&one_ref), 1); + } + + #[test] + fn test_arc_cyclic_two_refs() { + struct TwoRefs { + inner1: Weak, + inner2: Weak, + } + let two_refs = Arc::new_cyclic(|inner| { + assert_eq!(inner.strong_count(), 0); + assert!(inner.upgrade().is_none()); + + let inner1 = inner.clone(); + let inner2 = inner1.clone(); + + TwoRefs { inner1, inner2 } + }); + + assert_eq!(Arc::strong_count(&two_refs), 1); + assert_eq!(Arc::weak_count(&two_refs), 2); + + let two_refs1 = Weak::upgrade(&two_refs.inner1).unwrap(); + assert!(Arc::ptr_eq(&two_refs, &two_refs1)); + + let two_refs2 = Weak::upgrade(&two_refs.inner2).unwrap(); + assert!(Arc::ptr_eq(&two_refs, &two_refs2)); + + assert_eq!(Arc::strong_count(&two_refs), 3); + assert_eq!(Arc::weak_count(&two_refs), 2); + } + + /// Test for Arc::drop bug (https://github.com/rust-lang/rust/issues/55005) + #[test] + #[cfg(miri)] // relies on Stacked Borrows in Miri + fn arc_drop_dereferenceable_race() { + // The bug seems to take up to 700 iterations to reproduce with most seeds (tested 0-9). + for _ in 0..750 { + let arc_1 = Arc::new(()); + let arc_2 = arc_1.clone(); + let thread = thread::spawn(|| drop(arc_2)); + // Spin a bit; makes the race more likely to appear + let mut i = 0; + while i < 256 { + i += 1; + } + drop(arc_1); + thread.join().unwrap(); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/buf.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/buf.rs new file mode 100644 index 0000000000000000000000000000000000000000..5a57a60a3539aa65fe60b93004c0daf63a69bc36 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/buf.rs @@ -0,0 +1,198 @@ +//! A buffer for constructing a string while avoiding heap allocation. + +use core::hash::{Hash, Hasher}; +use core::mem::MaybeUninit; +use core::{fmt, str}; + +use crate::smart_display::{FormatterOptions, Metadata, SmartDisplay}; + +/// A buffer for construct a string while avoiding heap allocation. +/// +/// The only requirement is that the buffer is large enough to hold the formatted string. +pub struct WriteBuffer { + buf: [MaybeUninit; SIZE], + len: usize, +} + +impl fmt::Debug for WriteBuffer { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("DisplayBuffer") + .field("buf", &self.as_str()) + .field("remaining_capacity", &self.remaining_capacity()) + .finish() + } +} + +impl WriteBuffer { + /// Creates an empty buffer. + pub const fn new() -> Self { + Self { + buf: maybe_uninit_uninit_array::<_, SIZE>(), + len: 0, + } + } + + /// Obtain the contents of the buffer as a string. + pub fn as_str(&self) -> &str { + self + } + + /// Determine how many bytes are remaining in the buffer. + pub const fn remaining_capacity(&self) -> usize { + SIZE - self.len + } +} + +impl Default for WriteBuffer { + fn default() -> Self { + Self::new() + } +} + +impl PartialOrd> + for WriteBuffer +{ + fn partial_cmp(&self, other: &WriteBuffer) -> Option { + self.as_str().partial_cmp(other.as_str()) + } +} + +impl PartialEq> + for WriteBuffer +{ + fn eq(&self, other: &WriteBuffer) -> bool { + self.as_str() == other.as_str() + } +} + +impl Eq for WriteBuffer {} + +impl Ord for WriteBuffer { + fn cmp(&self, other: &Self) -> core::cmp::Ordering { + self.as_str().cmp(other.as_str()) + } +} + +impl Hash for WriteBuffer { + fn hash(&self, state: &mut H) { + self.as_str().hash(state) + } +} + +impl AsRef for WriteBuffer { + fn as_ref(&self) -> &str { + self + } +} + +impl AsRef<[u8]> for WriteBuffer { + fn as_ref(&self) -> &[u8] { + self.as_bytes() + } +} + +impl core::borrow::Borrow for WriteBuffer { + fn borrow(&self) -> &str { + self + } +} + +impl core::ops::Deref for WriteBuffer { + type Target = str; + + fn deref(&self) -> &Self::Target { + // SAFETY: `buf` is only written to by the `fmt::Write::write_str` implementation which + // writes a valid UTF-8 string to `buf` and correctly sets `len`. + unsafe { + let s = maybe_uninit_slice_assume_init_ref(&self.buf[..self.len]); + str::from_utf8_unchecked(s) + } + } +} + +impl fmt::Display for WriteBuffer { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.write_str(self) + } +} + +impl SmartDisplay for WriteBuffer { + type Metadata = (); + + fn metadata(&self, _: FormatterOptions) -> Metadata<'_, Self> { + Metadata::new(self.len, self, ()) + } + + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.pad(self) + } +} + +impl fmt::Write for WriteBuffer { + fn write_str(&mut self, s: &str) -> fmt::Result { + let bytes = s.as_bytes(); + + if let Some(buf) = self.buf.get_mut(self.len..(self.len + bytes.len())) { + maybe_uninit_write_slice(buf, bytes); + self.len += bytes.len(); + Ok(()) + } else { + Err(fmt::Error) + } + } +} + +/// Equivalent of [`MaybeUninit::uninit_array`] that compiles on stable. +#[must_use] +#[inline(always)] +const fn maybe_uninit_uninit_array() -> [MaybeUninit; N] { + // SAFETY: An uninitialized `[MaybeUninit<_>; LEN]` is valid. + unsafe { MaybeUninit::<[MaybeUninit; N]>::uninit().assume_init() } +} + +/// Equivalent of [`MaybeUninit::write_slice`] that compiles on stable. +fn maybe_uninit_write_slice<'a, T>(this: &'a mut [MaybeUninit], src: &[T]) -> &'a mut [T] +where + T: Copy, +{ + #[allow(trivial_casts)] + // SAFETY: T and MaybeUninit have the same layout + let uninit_src = unsafe { &*(src as *const [T] as *const [MaybeUninit]) }; + + this.copy_from_slice(uninit_src); + + // SAFETY: Valid elements have just been copied into `this` so it is initialized + unsafe { maybe_uninit_slice_assume_init_mut(this) } +} + +/// Equivalent of [`MaybeUninit::slice_assume_init_mut`] that compiles on stable. +/// +/// # Safety +/// +/// See [`MaybeUninit::slice_assume_init_mut`](https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.slice_assume_init_mut). +#[inline(always)] +unsafe fn maybe_uninit_slice_assume_init_mut(slice: &mut [MaybeUninit]) -> &mut [U] { + #[allow(trivial_casts)] + // SAFETY: similar to safety notes for `slice_get_ref`, but we have a mutable reference which is + // also guaranteed to be valid for writes. + unsafe { + &mut *(slice as *mut [MaybeUninit] as *mut [U]) + } +} + +/// Equivalent of [`MaybeUninit::slice_assume_init_ref`] that compiles on stable. +/// +/// # Safety +/// +/// See [`MaybeUninit::slice_assume_init_ref`](https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.slice_assume_init_ref). +#[inline(always)] +const unsafe fn maybe_uninit_slice_assume_init_ref(slice: &[MaybeUninit]) -> &[T] { + #[allow(trivial_casts)] + // SAFETY: casting `slice` to a `*const [T]` is safe since the caller guarantees that `slice` is + // initialized, and `MaybeUninit` is guaranteed to have the same layout as `T`. The pointer + // obtained is valid since it refers to memory owned by `slice` which is a reference and thus + // guaranteed to be valid for reads. + unsafe { + &*(slice as *const [MaybeUninit] as *const [T]) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/ext.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/ext.rs new file mode 100644 index 0000000000000000000000000000000000000000..20af7c0aaba4cdef5ac78c075b50038d7ec8d7b6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/ext.rs @@ -0,0 +1,54 @@ +//! Extension traits. + +use core::fmt::{Alignment, Arguments, Formatter, Result, Write}; + +mod sealed { + pub trait Sealed {} + + impl Sealed for core::fmt::Formatter<'_> {} +} + +/// An extension trait for [`core::fmt::Formatter`]. +pub trait FormatterExt: sealed::Sealed { + /// Writes the given arguments to the formatter, padding them with the given width. If `width` + /// is incorrect, the resulting output will not be the requested width. + fn pad_with_width(&mut self, width: usize, args: Arguments<'_>) -> Result; +} + +impl FormatterExt for Formatter<'_> { + fn pad_with_width(&mut self, args_width: usize, args: Arguments<'_>) -> Result { + let Some(final_width) = self.width() else { + // The caller has not requested a width. Write the arguments as-is. + return self.write_fmt(args); + }; + let Some(fill_width @ 1..) = final_width.checked_sub(args_width) else { + // No padding will be present. Write the arguments as-is. + return self.write_fmt(args); + }; + + let alignment = self.align().unwrap_or(Alignment::Left); + let fill = self.fill(); + + let left_fill_width = match alignment { + Alignment::Left => 0, + Alignment::Right => fill_width, + Alignment::Center => fill_width / 2, + }; + let right_fill_width = match alignment { + Alignment::Left => fill_width, + Alignment::Right => 0, + // When the fill is not even on both sides, the extra fill goes on the right. + Alignment::Center => (fill_width + 1) / 2, + }; + + for _ in 0..left_fill_width { + self.write_char(fill)?; + } + self.write_fmt(args)?; + for _ in 0..right_fill_width { + self.write_char(fill)?; + } + + Ok(()) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/lib.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/lib.rs new file mode 100644 index 0000000000000000000000000000000000000000..0cd6f7cbb3a7aca0b0e478e4a4b74c01a1548a25 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/lib.rs @@ -0,0 +1,15 @@ +//! `powerfmt` is a library that provides utilities for formatting values. Specifically, it makes it +//! significantly easier to support filling to a minimum width with alignment, avoid heap +//! allocation, and avoid repetitive calculations. + +#![cfg_attr(not(feature = "std"), no_std)] +#![cfg_attr(__powerfmt_docs, feature(doc_auto_cfg, rustc_attrs))] +#![cfg_attr(__powerfmt_docs, allow(internal_features))] + +#[cfg(feature = "alloc")] +extern crate alloc; + +pub mod buf; +pub mod ext; +pub mod smart_display; +mod smart_display_impls; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/smart_display.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/smart_display.rs new file mode 100644 index 0000000000000000000000000000000000000000..bb55554b87f05c3048d26089dc40edff6331ce0c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/smart_display.rs @@ -0,0 +1,695 @@ +//! Definition of [`SmartDisplay`] and its related items. +//! +//! [`SmartDisplay`] is a trait that allows authors to provide additional information to both the +//! formatter and other users. This information is provided in the form of a metadata type. The only +//! required piece of metadata is the width of the value. This is _before_ it is passed to the +//! formatter (i.e. it does not include any padding added by the formatter). Other information +//! can be stored in a custom metadata type as needed. This information may be made available to +//! downstream users, but it is not required. +//! +//! This module contains the [`SmartDisplay`] and associated items. +//! +//! # Example +//! +//! ```rust +//! use std::fmt; +//! +//! use powerfmt::ext::FormatterExt as _; +//! use powerfmt::smart_display::{self, FormatterOptions, Metadata, SmartDisplay}; +//! +//! #[derive(Debug)] +//! struct User { +//! id: usize, +//! } +//! +//! // If you try to use `UserMetadata` in the `SmartDisplay` implementation, you will get a +//! // compiler error about a private type being used publicly. To avoid this, use this attribute to +//! // declare a private metadata type. You shouldn't need to worry about how this works, but be +//! // aware that any public fields or methods remain usable by downstream users. +//! #[smart_display::private_metadata] +//! struct UserMetadata { +//! username: String, +//! legal_name: String, +//! } +//! +//! // This attribute can be applied to `SmartDisplay` implementations. It will generate an +//! // implementation of `Display` that delegates to `SmartDisplay`, avoiding the need to write +//! // boilerplate. +//! #[smart_display::delegate] +//! impl SmartDisplay for User { +//! type Metadata = UserMetadata; +//! +//! fn metadata(&self, _: FormatterOptions) -> Metadata<'_, Self> { +//! // This could be obtained from a database, for example. +//! let legal_name = "John Doe".to_owned(); +//! let username = "jdoe".to_owned(); +//! +//! // Note that this must be kept in sync with the implementation of `fmt_with_metadata`. +//! let width = smart_display::padded_width_of!(username, " (", legal_name, ")",); +//! +//! Metadata::new( +//! width, +//! self, +//! UserMetadata { +//! username, +//! legal_name, +//! }, +//! ) +//! } +//! +//! // Use the now-generated metadata to format the value. Here we use the `pad_with_width` +//! // method to use the alignment and desired width from the formatter. +//! fn fmt_with_metadata( +//! &self, +//! f: &mut fmt::Formatter<'_>, +//! metadata: Metadata, +//! ) -> fmt::Result { +//! f.pad_with_width( +//! metadata.unpadded_width(), +//! format_args!("{} ({})", metadata.username, metadata.legal_name), +//! ) +//! } +//! } +//! +//! let user = User { id: 42 }; +//! assert_eq!(user.to_string(), "jdoe (John Doe)"); +//! assert_eq!(format!("{user:>20}"), " jdoe (John Doe)"); +//! ``` + +use core::cmp; +use core::convert::Infallible; +use core::fmt::{Alignment, Debug, Display, Formatter, Result}; +use core::marker::PhantomData; +use core::mem::MaybeUninit; +use core::ops::Deref; + +/// Compute the width of multiple items while optionally declaring the options for each item. +/// +/// ```rust +/// # use powerfmt::smart_display; +/// let alpha = 0; +/// let beta = 1; +/// let gamma = 100; +/// +/// let width = smart_display::padded_width_of!( +/// alpha, // use the default options +/// beta => width(2), // use the specified options +/// gamma => width(2) sign_plus(true), // use multiple options +/// ); +/// assert_eq!(width, 7); +/// +/// let formatted = format!("{alpha}{beta:2}{gamma:+2}"); +/// assert_eq!(formatted.len(), width); +/// ``` +/// +/// Supported options are: +/// +/// Option | Method called +/// --- | --- +/// `fill(char)` | [`FormatterOptions::with_fill`] +/// `sign_plus(bool)` | [`FormatterOptions::with_sign_plus`] +/// `sign_minus(bool)` | [`FormatterOptions::with_sign_minus`] +/// `align(Alignment)` | [`FormatterOptions::with_align`] +/// `width(usize)` | [`FormatterOptions::with_width`] +/// `precision(usize)` | [`FormatterOptions::with_precision`] +/// `alternate(bool)` | [`FormatterOptions::with_alternate`] +/// `sign_aware_zero_pad(bool)` | [`FormatterOptions::with_sign_aware_zero_pad`] +/// +/// If there are future additions to [`FormatterOptions`], they will be added to this macro as well. +/// +/// Options may be provided in any order and will be called in the order they are provided. The +/// ordering matters if providing both `sign_plus` and `sign_minus`. +#[cfg(doc)] +#[doc(hidden)] // Don't show at crate root. +#[macro_export] +macro_rules! padded_width_of { + ($($t:tt)*) => {}; +} + +#[cfg(not(doc))] +#[allow(missing_docs)] // This is done with `#[cfg(doc)]` to avoid showing the various rules. +#[macro_export] +macro_rules! __not_public_at_root__padded_width_of { + // Base case + (@inner [] [$($output:tt)+]) => { $($output)+ }; + (@inner [$e:expr $(, $($remaining:tt)*)?] [$($expansion:tt)+]) => { + $crate::smart_display::padded_width_of!(@inner [$($($remaining)*)?] [ + $($expansion)+ + $crate::smart_display::Metadata::padded_width_of( + &$e, + $crate::smart_display::padded_width_of!(@options) + ) + ]) + }; + (@inner + [$e:expr => $($call:ident($call_expr:expr))+ $(, $($remaining:tt)*)?] + [$($expansion:tt)+] + ) => { + $crate::smart_display::padded_width_of!(@inner [$($($remaining)*)?] [ + $($expansion)+ + $crate::smart_display::Metadata::padded_width_of( + &$e, + *$crate::smart_display::padded_width_of!(@options $($call($call_expr))+) + ) + ]) + }; + + // Options base case + (@options_inner [] [$($output:tt)+]) => { $($output)+ }; + (@options_inner [fill($e:expr) $($remaining:tt)*] [$($expansion:tt)*]) => { + $crate::smart_display::padded_width_of!(@options_inner [$($remaining)*] [ + $($expansion)*.with_fill($e) + ]) + }; + (@options_inner [sign_plus($e:expr) $($remaining:tt)*] [$($expansion:tt)*]) => { + $crate::smart_display::padded_width_of!(@options_inner [$($remaining)*] [ + $($expansion)*.with_sign_plus($e) + ]) + }; + (@options_inner [sign_minus($e:expr) $($remaining:tt)*] [$($expansion:tt)*]) => { + $crate::smart_display::padded_width_of!(@options_inner [$($remaining)*] [ + $($expansion)*.with_sign_minus($e) + ]) + }; + (@options_inner [align($e:expr) $($remaining:tt)*] [$($expansion:tt)*]) => { + $crate::smart_display::padded_width_of!(@options_inner [$($remaining)*] [ + $($expansion)*.with_align(Some($e)) + ]) + }; + (@options_inner [width($e:expr) $($remaining:tt)*] [$($expansion:tt)*]) => { + $crate::smart_display::padded_width_of!(@options_inner [$($remaining)*] [ + $($expansion)*.with_width(Some($e)) + ]) + }; + (@options_inner [precision($e:expr) $($remaining:tt)*] [$($expansion:tt)*]) => { + $crate::smart_display::padded_width_of!(@options_inner [$($remaining)*] [ + $($expansion)*.with_precision(Some($e)) + ]) + }; + (@options_inner [alternate($e:expr) $($remaining:tt)*] [$($expansion:tt)*]) => { + $crate::smart_display::padded_width_of!(@options_inner [$($remaining)*] [ + $($expansion)*.with_width($e) + ]) + }; + (@options_inner [sign_aware_zero_pad($e:expr) $($remaining:tt)*] [$($expansion:tt)*]) => { + $crate::smart_display::padded_width_of!(@options_inner [$($remaining)*] [ + $($expansion)*.with_sign_aware_zero_pad($e) + ]) + }; + // Options entry point + (@options $($e:tt)*) => { + $crate::smart_display::padded_width_of!(@options_inner [$($e)*] [ + $crate::smart_display::FormatterOptions::default() + ]) + }; + + // Entry point + ($($t:tt)*) => { + $crate::smart_display::padded_width_of!( + @inner [$($t)*] [0] + ) + }; +} + +#[cfg(not(doc))] +pub use __not_public_at_root__padded_width_of as padded_width_of; +#[cfg(doc)] +#[doc(inline)] // Show in this module. +pub use padded_width_of; +/// Implement [`Display`] for a type by using its implementation of [`SmartDisplay`]. +/// +/// This attribute is applied to the `SmartDisplay` implementation. +/// +/// ```rust,no_run +/// # use powerfmt::smart_display::{self, SmartDisplay, Metadata, FormatterOptions}; +/// # struct Foo; +/// #[smart_display::delegate] +/// impl SmartDisplay for Foo { +/// # type Metadata = (); +/// # fn metadata(&self, f: FormatterOptions) -> Metadata { +/// # todo!() +/// # } +/// // ... +/// } +/// ``` +#[cfg(feature = "macros")] +pub use powerfmt_macros::smart_display_delegate as delegate; +/// Declare a private metadata type for `SmartDisplay`. +/// +/// Use this attribute if you want to provide metadata for a type that is not public. Doing +/// this will avoid a compiler error about a private type being used publicly. Keep in mind +/// that any public fields, public methods, and trait implementations _will_ be able to be used +/// by downstream users. +/// +/// To avoid accidentally exposing details, such as when all fields are public or if the type +/// is a unit struct, the type is annotated with `#[non_exhaustive]` automatically. +/// +/// ```rust,no_run +/// # use powerfmt::smart_display; +/// /// Metadata for `Foo` +/// #[smart_display::private_metadata] +/// #[derive(Debug)] +/// pub(crate) struct FooMetadata { +/// pub(crate) expensive_to_calculate: usize, +/// } +/// ``` +#[cfg(feature = "macros")] +pub use powerfmt_macros::smart_display_private_metadata as private_metadata; + +#[derive(Debug)] +enum FlagBit { + SignPlus, + SignMinus, + Alternate, + SignAwareZeroPad, + WidthIsInitialized, + PrecisionIsInitialized, +} + +/// Configuration for formatting. +/// +/// This struct is obtained from a [`Formatter`]. It provides the same functionality as that of a +/// reference to a `Formatter`. However, it is not possible to construct a `Formatter`, which is +/// necessary for some use cases of [`SmartDisplay`]. `FormatterOptions` implements [`Default`] and +/// has builder methods to alleviate this. +#[derive(Clone, Copy)] +pub struct FormatterOptions { + flags: u8, + fill: char, + align: Option, + width: MaybeUninit, + precision: MaybeUninit, +} + +impl Debug for FormatterOptions { + fn fmt(&self, f: &mut Formatter<'_>) -> Result { + f.debug_struct("FormatterOptions") + .field("fill", &self.fill) + .field("align", &self.align()) + .field("width", &self.width()) + .field("precision", &self.precision()) + .field("sign_plus", &self.sign_plus()) + .field("sign_minus", &self.sign_minus()) + .field("alternate", &self.alternate()) + .field("sign_aware_zero_pad", &self.sign_aware_zero_pad()) + .finish() + } +} + +impl Default for FormatterOptions { + #[inline] + fn default() -> Self { + Self { + flags: 0, + fill: ' ', + align: None, + width: MaybeUninit::uninit(), + precision: MaybeUninit::uninit(), + } + } +} + +impl FormatterOptions { + /// Sets the fill character to use whenever there is alignment. + #[inline] + pub fn with_fill(&mut self, c: char) -> &mut Self { + self.fill = c; + self + } + + /// Set whether the `+` flag is specified. + #[inline] + pub fn with_sign_plus(&mut self, b: bool) -> &mut Self { + if b { + self.flags |= 1 << FlagBit::SignPlus as u8; + self.flags &= !(1 << FlagBit::SignMinus as u8); + } else { + self.flags &= !(1 << FlagBit::SignPlus as u8); + } + self + } + + /// Set whether the `-` flag is specified. + #[inline] + pub fn with_sign_minus(&mut self, b: bool) -> &mut Self { + if b { + self.flags |= 1 << FlagBit::SignMinus as u8; + self.flags &= !(1 << FlagBit::SignPlus as u8); + } else { + self.flags &= !(1 << FlagBit::SignMinus as u8); + } + self + } + + /// Set the flag indicating what form of alignment is requested, if any. + #[inline] + pub fn with_align(&mut self, align: Option) -> &mut Self { + self.align = align; + self + } + + /// Set the optional integer width that the output should be. + #[inline] + pub fn with_width(&mut self, width: Option) -> &mut Self { + if let Some(width) = width { + self.flags |= 1 << FlagBit::WidthIsInitialized as u8; + self.width = MaybeUninit::new(width); + } else { + self.flags &= !(1 << FlagBit::WidthIsInitialized as u8); + } + self + } + + /// Set the optional precision for numeric types. Alternatively, the maximum width for string + /// types. + #[inline] + pub fn with_precision(&mut self, precision: Option) -> &mut Self { + if let Some(precision) = precision { + self.flags |= 1 << FlagBit::PrecisionIsInitialized as u8; + self.precision = MaybeUninit::new(precision); + } else { + self.flags &= !(1 << FlagBit::PrecisionIsInitialized as u8); + } + self + } + + /// Set whether the `#` flag is specified. + #[inline] + pub fn with_alternate(&mut self, b: bool) -> &mut Self { + if b { + self.flags |= 1 << FlagBit::Alternate as u8; + } else { + self.flags &= !(1 << FlagBit::Alternate as u8); + } + self + } + + /// Set whether the `0` flag is specified. + #[inline] + pub fn with_sign_aware_zero_pad(&mut self, b: bool) -> &mut Self { + if b { + self.flags |= 1 << FlagBit::SignAwareZeroPad as u8; + } else { + self.flags &= !(1 << FlagBit::SignAwareZeroPad as u8); + } + self + } +} + +impl FormatterOptions { + /// Character used as 'fill' whenever there is alignment. + #[inline] + #[must_use] + pub const fn fill(&self) -> char { + self.fill + } + + /// Flag indicating what form of alignment was requested. + #[inline] + #[must_use] + pub const fn align(&self) -> Option { + self.align + } + + /// Optionally specified integer width that the output should be. + #[inline] + #[must_use] + pub const fn width(&self) -> Option { + if (self.flags >> FlagBit::WidthIsInitialized as u8) & 1 == 1 { + // Safety: `width` is initialized if the flag is set. + Some(unsafe { self.width.assume_init() }) + } else { + None + } + } + + /// Optionally specified precision for numeric types. Alternatively, the maximum width for + /// string types. + #[inline] + #[must_use] + pub const fn precision(&self) -> Option { + if (self.flags >> FlagBit::PrecisionIsInitialized as u8) & 1 == 1 { + // Safety: `precision` is initialized if the flag is set. + Some(unsafe { self.precision.assume_init() }) + } else { + None + } + } + + /// Determines if the `+` flag was specified. + #[inline] + #[must_use] + pub const fn sign_plus(&self) -> bool { + (self.flags >> FlagBit::SignPlus as u8) & 1 == 1 + } + + /// Determines if the `-` flag was specified. + #[inline] + #[must_use] + pub const fn sign_minus(&self) -> bool { + (self.flags >> FlagBit::SignMinus as u8) & 1 == 1 + } + + /// Determines if the `#` flag was specified. + #[inline] + #[must_use] + pub const fn alternate(&self) -> bool { + (self.flags >> FlagBit::Alternate as u8) & 1 == 1 + } + + /// Determines if the `0` flag was specified. + #[inline] + #[must_use] + pub const fn sign_aware_zero_pad(&self) -> bool { + (self.flags >> FlagBit::SignAwareZeroPad as u8) & 1 == 1 + } +} + +impl From<&Formatter<'_>> for FormatterOptions { + fn from(value: &Formatter<'_>) -> Self { + *Self::default() + .with_fill(value.fill()) + .with_sign_plus(value.sign_plus()) + .with_sign_minus(value.sign_minus()) + .with_align(value.align()) + .with_width(value.width()) + .with_precision(value.precision()) + .with_alternate(value.alternate()) + .with_sign_aware_zero_pad(value.sign_aware_zero_pad()) + } +} + +impl From<&mut Formatter<'_>> for FormatterOptions { + #[inline] + fn from(value: &mut Formatter<'_>) -> Self { + (&*value).into() + } +} + +/// Information used to format a value. This is returned by [`SmartDisplay::metadata`]. +/// +/// This type is generic over any user-provided type. This allows the author to store any +/// information that is needed. For example, a type's implementation of [`SmartDisplay`] may need +/// to calculate something before knowing its width. This calculation can be performed, with the +/// result being stored in the custom metadata type. +/// +/// Note that `Metadata` _always_ contains the width of the type. Authors do not need to store this +/// information in their custom metadata type. +/// +/// Generally speaking, a type should be able to be formatted using only its metadata, fields, and +/// the formatter. Any other information should be stored in the metadata type. +pub struct Metadata<'a, T> +where + T: SmartDisplay + ?Sized, +{ + unpadded_width: usize, + metadata: T::Metadata, + _value: PhantomData<&'a T>, // variance +} + +// manual impls for bounds +impl Debug for Metadata<'_, T> +where + T: SmartDisplay, + T::Metadata: Debug, +{ + fn fmt(&self, f: &mut Formatter<'_>) -> Result { + f.debug_struct("Metadata") + .field("unpadded_width", &self.unpadded_width) + .field("metadata", &self.metadata) + .finish() + } +} + +impl Clone for Metadata<'_, T> +where + T: SmartDisplay, + T::Metadata: Clone, +{ + fn clone(&self) -> Self { + Self { + unpadded_width: self.unpadded_width, + metadata: self.metadata.clone(), + _value: self._value, + } + } +} + +impl Copy for Metadata<'_, T> +where + T: SmartDisplay, + T::Metadata: Copy, +{ +} + +impl<'a, T> Metadata<'a, T> +where + T: SmartDisplay + ?Sized, +{ + /// Creates a new `Metadata` with the given width and metadata. While the width _should_ be + /// exact, this is not a requirement for soundness. + pub const fn new(unpadded_width: usize, _value: &T, metadata: T::Metadata) -> Self { + Self { + unpadded_width, + metadata, + _value: PhantomData, + } + } + + /// Reuse the metadata for another type. This is useful when implementing [`SmartDisplay`] for a + /// type that wraps another type. Both type's metadata type must be the same. + pub fn reuse<'b, U>(self) -> Metadata<'b, U> + where + 'a: 'b, + U: SmartDisplay + ?Sized, + { + Metadata { + unpadded_width: self.unpadded_width, + metadata: self.metadata, + _value: PhantomData, + } + } + + /// Obtain the width of the value before padding. + pub const fn unpadded_width(&self) -> usize { + self.unpadded_width + } + + /// Obtain the width of the value after padding. + pub fn padded_width(&self, f: FormatterOptions) -> usize { + match f.width() { + Some(requested_width) => cmp::max(self.unpadded_width(), requested_width), + None => self.unpadded_width(), + } + } +} + +impl Metadata<'_, Infallible> { + /// Obtain the width of the value before padding, given the formatter options. + pub fn unpadded_width_of(value: T, f: FormatterOptions) -> usize + where + T: SmartDisplay, + { + value.metadata(f).unpadded_width + } + + /// Obtain the width of the value after padding, given the formatter options. + pub fn padded_width_of(value: T, f: FormatterOptions) -> usize + where + T: SmartDisplay, + { + value.metadata(f).padded_width(f) + } +} + +/// Permit using `Metadata` as a smart pointer to the user-provided metadata. +impl Deref for Metadata<'_, T> +where + T: SmartDisplay + ?Sized, +{ + type Target = T::Metadata; + + fn deref(&self) -> &T::Metadata { + &self.metadata + } +} + +/// Format trait that allows authors to provide additional information. +/// +/// This trait is similar to [`Display`], but allows the author to provide additional information +/// to the formatter. This information is provided in the form of a custom metadata type. +/// +/// The only required piece of metadata is the width of the value. This is _before_ it is passed to +/// the formatter (i.e. it does not include any padding added by the formatter). Other information +/// can be stored in a custom metadata type as needed. This information may be made available to +/// downstream users, but it is not required. +/// +/// **Note**: While both `fmt_with_metadata` and `fmt` have default implementations, it is strongly +/// recommended to implement only `fmt_with_metadata`. `fmt` should be implemented if and only if +/// the type does not require any of the calculated metadata. In that situation, `fmt_with_metadata` +/// should be omitted. +#[cfg_attr(__powerfmt_docs, rustc_must_implement_one_of(fmt, fmt_with_metadata))] +pub trait SmartDisplay: Display { + /// User-provided metadata type. + type Metadata; + + /// Compute any information needed to format the value. This must, at a minimum, determine the + /// width of the value before any padding is added by the formatter. + /// + /// If the type uses other types that implement `SmartDisplay` verbatim, the inner types should + /// have their metadata calculated and included in the returned value. + /// + /// # Lifetimes + /// + /// This method's return type contains a lifetime to `self`. This ensures that the metadata will + /// neither outlive the value nor be invalidated by a mutation of the value (barring interior + /// mutability). + /// + /// ```rust,compile_fail + /// # use std::fmt; + /// # use std::fmt::Write; + /// # use powerfmt::buf::WriteBuffer; + /// # use powerfmt::smart_display::{self, FormatterOptions, Metadata, SmartDisplay}; + /// #[derive(Debug)] + /// struct WrappedBuffer(WriteBuffer<128>); + /// + /// #[smart_display::delegate] + /// impl SmartDisplay for WrappedBuffer { + /// type Metadata = (); + /// + /// fn metadata(&self, _: FormatterOptions) -> Metadata<'_, Self> { + /// Metadata::new(self.0.len(), self, ()) + /// } + /// + /// fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + /// f.pad(self.0.as_str()) + /// } + /// } + /// + /// let mut buf = WrappedBuffer(WriteBuffer::new()); + /// let metadata = buf.metadata(FormatterOptions::default()); + /// // We cannot mutate the buffer while it is borrowed and use its previous metadata on the + /// // following line. + /// write!(buf.0, "Hello, world!")?; + /// assert_eq!(metadata.width(), 13); + /// # Ok::<(), Box>(()) + /// ``` + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self>; + + /// Format the value using the given formatter and metadata. The formatted output should have + /// the width indicated by the metadata. This is before any padding is added by the + /// formatter. + /// + /// If the metadata is not needed, you should implement the `fmt` method instead. + fn fmt_with_metadata(&self, f: &mut Formatter<'_>, _metadata: Metadata<'_, Self>) -> Result { + SmartDisplay::fmt(self, f) + } + + /// Format the value using the given formatter. This is the same as [`Display::fmt`]. + /// + /// The default implementation of this method calls `fmt_with_metadata` with the result of + /// `metadata`. Generally speaking, this method should not be implemented. You should implement + /// the `fmt_with_metadata` method instead. + fn fmt(&self, f: &mut Formatter<'_>) -> Result { + let metadata = self.metadata(f.into()); + self.fmt_with_metadata(f, metadata) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/smart_display_impls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/smart_display_impls.rs new file mode 100644 index 0000000000000000000000000000000000000000..dc82395f298effd0019d9b3ebc1fe7438ba78395 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/smart_display_impls.rs @@ -0,0 +1,303 @@ +//! Implementation of [`SmartDisplay`] for various types. + +#[cfg(feature = "alloc")] +use alloc::borrow::{Cow, ToOwned}; +#[cfg(feature = "alloc")] +use alloc::boxed::Box; +#[cfg(feature = "alloc")] +use alloc::rc::Rc; +#[cfg(feature = "alloc")] +use alloc::string::String; +#[cfg(feature = "alloc")] +use alloc::sync::Arc; +use core::cell::{Ref, RefMut}; +use core::cmp::min; +use core::convert::Infallible; +use core::fmt::{self, Display, Formatter}; +use core::num::Wrapping; +use core::pin::Pin; + +use crate::smart_display::{FormatterOptions, Metadata, SmartDisplay}; + +impl SmartDisplay for Infallible { + type Metadata = Self; + + #[inline] + fn metadata(&self, _: FormatterOptions) -> Metadata<'_, Self> { + match *self {} + } + + #[inline] + fn fmt(&self, _: &mut Formatter<'_>) -> fmt::Result { + match *self {} + } +} + +impl SmartDisplay for bool { + type Metadata = (); + + #[inline] + fn metadata(&self, _: FormatterOptions) -> Metadata<'_, Self> { + Metadata::new(if *self { 4 } else { 5 }, self, ()) + } + + #[inline] + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + Display::fmt(self, f) + } +} + +impl SmartDisplay for str { + type Metadata = (); + + #[inline] + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + Metadata::new( + match f.precision() { + Some(max_len) => min(self.len(), max_len), + None => self.len(), + }, + self, + (), + ) + } + + #[inline] + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + Display::fmt(self, f) + } +} + +#[cfg(feature = "alloc")] +impl SmartDisplay for String { + type Metadata = (); + + #[inline] + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + (**self).metadata(f).reuse() + } + + #[inline] + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + Display::fmt(self, f) + } +} + +#[cfg(feature = "alloc")] +impl<'a, B, O> SmartDisplay for Cow<'a, B> +where + B: SmartDisplay + ToOwned + ?Sized, + O: SmartDisplay + 'a, +{ + type Metadata = B::Metadata; + + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + match *self { + Cow::Borrowed(ref b) => b.metadata(f).reuse(), + Cow::Owned(ref o) => o.metadata(f).reuse(), + } + } + + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + Display::fmt(self, f) + } +} + +impl SmartDisplay for Pin<&T> +where + T: SmartDisplay + ?Sized, +{ + type Metadata = T::Metadata; + + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + self.get_ref().metadata(f).reuse() + } + + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + SmartDisplay::fmt(self.get_ref(), f) + } +} + +impl SmartDisplay for &T +where + T: SmartDisplay + ?Sized, +{ + type Metadata = T::Metadata; + + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + (**self).metadata(f).reuse() + } + + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + SmartDisplay::fmt(*self, f) + } +} + +impl SmartDisplay for &mut T +where + T: SmartDisplay + ?Sized, +{ + type Metadata = T::Metadata; + + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + (**self).metadata(f).reuse() + } + + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + SmartDisplay::fmt(*self, f) + } +} + +impl SmartDisplay for Ref<'_, T> +where + T: SmartDisplay + ?Sized, +{ + type Metadata = T::Metadata; + + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + (**self).metadata(f).reuse() + } + + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + SmartDisplay::fmt(&**self, f) + } +} + +impl SmartDisplay for RefMut<'_, T> +where + T: SmartDisplay + ?Sized, +{ + type Metadata = T::Metadata; + + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + (**self).metadata(f).reuse() + } + + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + SmartDisplay::fmt(&**self, f) + } +} + +impl SmartDisplay for Wrapping +where + T: SmartDisplay, +{ + type Metadata = T::Metadata; + + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + self.0.metadata(f).reuse() + } + + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + SmartDisplay::fmt(&self.0, f) + } +} + +#[cfg(feature = "alloc")] +impl SmartDisplay for Rc +where + T: SmartDisplay + ?Sized, +{ + type Metadata = T::Metadata; + + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + (**self).metadata(f).reuse() + } + + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + SmartDisplay::fmt(&**self, f) + } +} + +#[cfg(feature = "alloc")] +impl SmartDisplay for Arc +where + T: SmartDisplay + ?Sized, +{ + type Metadata = T::Metadata; + + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + (**self).metadata(f).reuse() + } + + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + SmartDisplay::fmt(&**self, f) + } +} + +#[cfg(feature = "alloc")] +impl SmartDisplay for Box +where + T: SmartDisplay + ?Sized, +{ + type Metadata = T::Metadata; + + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + (**self).metadata(f).reuse() + } + + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + SmartDisplay::fmt(&**self, f) + } +} + +/// Implement [`SmartDisplay`] for unsigned integers. +macro_rules! impl_uint { + ($($t:ty)*) => {$( + impl SmartDisplay for $t { + type Metadata = (); + + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + let mut width = self.checked_ilog10().map_or(1, |n| n as usize + 1); + if f.sign_plus() || f.sign_minus() { + width += 1; + } + Metadata::new(width, self, ()) + } + + #[inline] + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + Display::fmt(self, f) + } + } + )*}; +} + +impl_uint![u8 u16 u32 u64 u128 usize]; + +/// Implement [`SmartDisplay`] for signed integers. +macro_rules! impl_int { + ($($t:ty)*) => {$( + impl SmartDisplay for $t { + type Metadata = (); + + fn metadata(&self, f: FormatterOptions) -> Metadata<'_, Self> { + let mut width = if f.sign_plus() || *self < 0 { 1 } else { 0 }; + width += self.unsigned_abs().checked_ilog10().map_or(1, |n| n as usize + 1); + Metadata::new(width, self, ()) + } + + #[inline] + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + Display::fmt(self, f) + } + } + )*}; +} + +impl_int![i8 i16 i32 i64 i128 isize]; + +impl SmartDisplay for char { + type Metadata = (); + + fn metadata(&self, _: FormatterOptions) -> Metadata<'_, Self> { + let mut buf = [0; 4]; + let c = self.encode_utf8(&mut buf); + + Metadata::new(c.len(), self, ()) + } + + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + Display::fmt(self, f) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/epoll.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/epoll.rs new file mode 100644 index 0000000000000000000000000000000000000000..08f4bacc9bbfdd2903f587d5abf513e93e3793a5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/epoll.rs @@ -0,0 +1,74 @@ +use crate::backend::c; +use bitflags::bitflags; + +bitflags! { + /// `EPOLL_*` for use with [`epoll::create`]. + /// + /// [`epoll::create`]: crate::event::epoll::create + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct CreateFlags: u32 { + /// `EPOLL_CLOEXEC` + const CLOEXEC = bitcast!(c::EPOLL_CLOEXEC); + + /// + const _ = !0; + } +} + +bitflags! { + /// `EPOLL*` for use with [`epoll::add`]. + /// + /// [`epoll::add`]: crate::event::epoll::add + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct EventFlags: u32 { + /// `EPOLLIN` + const IN = bitcast!(c::EPOLLIN); + + /// `EPOLLOUT` + const OUT = bitcast!(c::EPOLLOUT); + + /// `EPOLLPRI` + const PRI = bitcast!(c::EPOLLPRI); + + /// `EPOLLERR` + const ERR = bitcast!(c::EPOLLERR); + + /// `EPOLLHUP` + const HUP = bitcast!(c::EPOLLHUP); + + /// `EPOLLRDNORM` + const RDNORM = bitcast!(c::EPOLLRDNORM); + + /// `EPOLLRDBAND` + const RDBAND = bitcast!(c::EPOLLRDBAND); + + /// `EPOLLWRNORM` + const WRNORM = bitcast!(c::EPOLLWRNORM); + + /// `EPOLLWRBAND` + const WRBAND = bitcast!(c::EPOLLWRBAND); + + /// `EPOLLMSG` + const MSG = bitcast!(c::EPOLLMSG); + + /// `EPOLLRDHUP` + const RDHUP = bitcast!(c::EPOLLRDHUP); + + /// `EPOLLET` + const ET = bitcast!(c::EPOLLET); + + /// `EPOLLONESHOT` + const ONESHOT = bitcast!(c::EPOLLONESHOT); + + /// `EPOLLWAKEUP` + const WAKEUP = bitcast!(c::EPOLLWAKEUP); + + /// `EPOLLEXCLUSIVE` + const EXCLUSIVE = bitcast!(c::EPOLLEXCLUSIVE); + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..ff826fc491ced9f274c613630e6f1e8579c5a2b0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/mod.rs @@ -0,0 +1,9 @@ +pub(crate) mod poll_fd; +#[cfg(not(windows))] +pub(crate) mod types; + +#[cfg_attr(windows, path = "windows_syscalls.rs")] +pub(crate) mod syscalls; + +#[cfg(any(linux_kernel, target_os = "illumos", target_os = "redox"))] +pub mod epoll; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/poll_fd.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/poll_fd.rs new file mode 100644 index 0000000000000000000000000000000000000000..fdaa6c684af991d0554ffda648b4ba610d08c824 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/poll_fd.rs @@ -0,0 +1,143 @@ +use crate::backend::c; +use crate::backend::conv::borrowed_fd; +use crate::backend::fd::{AsFd, AsRawFd as _, BorrowedFd, LibcFd}; +#[cfg(windows)] +use crate::backend::fd::{AsSocket, RawFd}; +use crate::ffi; +use bitflags::bitflags; +use core::fmt; +use core::marker::PhantomData; + +bitflags! { + /// `POLL*` flags for use with [`poll`]. + /// + /// [`poll`]: crate::event::poll + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct PollFlags: ffi::c_short { + /// `POLLIN` + const IN = c::POLLIN; + /// `POLLPRI` + #[cfg(not(target_os = "wasi"))] + const PRI = c::POLLPRI; + /// `POLLOUT` + const OUT = c::POLLOUT; + /// `POLLRDNORM` + const RDNORM = c::POLLRDNORM; + /// `POLLWRNORM` + #[cfg(not(target_os = "l4re"))] + const WRNORM = c::POLLWRNORM; + /// `POLLRDBAND` + #[cfg(not(any(target_os = "l4re", target_os = "wasi")))] + const RDBAND = c::POLLRDBAND; + /// `POLLWRBAND` + #[cfg(not(any(target_os = "l4re", target_os = "wasi")))] + const WRBAND = c::POLLWRBAND; + /// `POLLERR` + const ERR = c::POLLERR; + /// `POLLHUP` + const HUP = c::POLLHUP; + /// `POLLNVAL` + #[cfg(not(target_os = "espidf"))] + const NVAL = c::POLLNVAL; + /// `POLLRDHUP` + #[cfg(any( + target_os = "freebsd", + target_os = "illumos", + all( + linux_kernel, + not(any(target_arch = "sparc", target_arch = "sparc64")) + ), + ))] + const RDHUP = c::POLLRDHUP; + + /// + const _ = !0; + } +} + +/// `struct pollfd`—File descriptor and flags for use with [`poll`]. +/// +/// [`poll`]: crate::event::poll +#[doc(alias = "pollfd")] +#[derive(Clone)] +#[repr(transparent)] +pub struct PollFd<'fd> { + pollfd: c::pollfd, + _phantom: PhantomData>, +} + +impl<'fd> fmt::Debug for PollFd<'fd> { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("PollFd") + .field("fd", &self.pollfd.fd) + .field("events", &self.pollfd.events) + .field("revents", &self.pollfd.revents) + .finish() + } +} + +impl<'fd> PollFd<'fd> { + /// Constructs a new `PollFd` holding `fd` and `events`. + #[inline] + pub fn new(fd: &'fd Fd, events: PollFlags) -> Self { + Self::from_borrowed_fd(fd.as_fd(), events) + } + + /// Sets the contained file descriptor to `fd`. + #[inline] + pub fn set_fd(&mut self, fd: &'fd Fd) { + self.pollfd.fd = fd.as_fd().as_raw_fd() as LibcFd; + } + + /// Clears the ready events. + #[inline] + pub fn clear_revents(&mut self) { + self.pollfd.revents = 0; + } + + /// Constructs a new `PollFd` holding `fd` and `events`. + /// + /// This is the same as `new`, but can be used to avoid borrowing the + /// `BorrowedFd`, which can be tricky in situations where the `BorrowedFd` + /// is a temporary. + #[inline] + pub fn from_borrowed_fd(fd: BorrowedFd<'fd>, events: PollFlags) -> Self { + Self { + pollfd: c::pollfd { + fd: borrowed_fd(fd), + events: events.bits(), + revents: 0, + }, + _phantom: PhantomData, + } + } + + /// Returns the ready events. + #[inline] + pub fn revents(&self) -> PollFlags { + // Use `.unwrap()` here because in theory we know we know all the bits + // the OS might set here, but OS's have added extensions in the past. + PollFlags::from_bits(self.pollfd.revents).unwrap() + } +} + +#[cfg(not(windows))] +impl<'fd> AsFd for PollFd<'fd> { + #[inline] + fn as_fd(&self) -> BorrowedFd<'_> { + // SAFETY: Our constructors and `set_fd` require `pollfd.fd` to be + // valid for the `'fd` lifetime. + unsafe { BorrowedFd::borrow_raw(self.pollfd.fd) } + } +} + +#[cfg(windows)] +impl<'fd> AsSocket for PollFd<'fd> { + #[inline] + fn as_socket(&self) -> BorrowedFd<'_> { + // SAFETY: Our constructors and `set_fd` require `pollfd.fd` to be + // valid for the `'fd` lifetime. + unsafe { BorrowedFd::borrow_raw(self.pollfd.fd as RawFd) } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..3827a2f99bdfdb384491345e00c4310108a5df82 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/syscalls.rs @@ -0,0 +1,631 @@ +//! libc syscalls supporting `rustix::event`. + +use crate::backend::c; +#[cfg(any(linux_kernel, solarish, target_os = "redox"))] +use crate::backend::conv::ret; +use crate::backend::conv::ret_c_int; +#[cfg(any(linux_kernel, target_os = "illumos", target_os = "redox"))] +use crate::backend::conv::ret_u32; +#[cfg(bsd)] +use crate::event::kqueue::Event; +#[cfg(solarish)] +use crate::event::port::Event; +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "illumos", + target_os = "espidf" +))] +use crate::event::EventfdFlags; +#[cfg(any(bsd, linux_kernel, target_os = "wasi"))] +use crate::event::FdSetElement; +use crate::event::{PollFd, Timespec}; +use crate::io; +#[cfg(any(linux_kernel, target_os = "illumos", target_os = "redox"))] +use crate::utils::as_ptr; +#[cfg(solarish)] +use core::mem::MaybeUninit; +#[cfg(any( + bsd, + linux_kernel, + target_os = "fuchsia", + target_os = "haiku", + target_os = "hurd", + target_os = "netbsd", + target_os = "wasi" +))] +use core::ptr::null; +#[cfg(any(bsd, linux_kernel, solarish, target_os = "redox", target_os = "wasi"))] +use core::ptr::null_mut; +#[cfg(any(bsd, linux_kernel, solarish, target_os = "redox"))] +use {crate::backend::conv::borrowed_fd, crate::fd::BorrowedFd}; +#[cfg(any( + bsd, + linux_kernel, + solarish, + target_os = "freebsd", + target_os = "illumos", + target_os = "espidf", + target_os = "redox" +))] +use {crate::backend::conv::ret_owned_fd, crate::fd::OwnedFd}; + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "illumos", + target_os = "espidf" +))] +pub(crate) fn eventfd(initval: u32, flags: EventfdFlags) -> io::Result { + #[cfg(linux_kernel)] + unsafe { + syscall! { + fn eventfd2( + initval: c::c_uint, + flags: c::c_int + ) via SYS_eventfd2 -> c::c_int + } + ret_owned_fd(eventfd2(initval, bitflags_bits!(flags))) + } + + // `eventfd` was added in FreeBSD 13, so it isn't available on FreeBSD 12. + #[cfg(target_os = "freebsd")] + unsafe { + weakcall! { + fn eventfd( + initval: c::c_uint, + flags: c::c_int + ) -> c::c_int + } + ret_owned_fd(eventfd(initval, bitflags_bits!(flags))) + } + + #[cfg(any(target_os = "illumos", target_os = "espidf"))] + unsafe { + ret_owned_fd(c::eventfd(initval, bitflags_bits!(flags))) + } +} + +#[cfg(bsd)] +pub(crate) fn kqueue() -> io::Result { + unsafe { ret_owned_fd(c::kqueue()) } +} + +#[cfg(bsd)] +pub(crate) unsafe fn kevent( + kq: BorrowedFd<'_>, + changelist: &[Event], + eventlist: (*mut Event, usize), + timeout: Option<&Timespec>, +) -> io::Result { + // If we don't have to fix y2038 on this platform, `Timespec` is the same + // as `c::timespec` and it's easy. + #[cfg(not(fix_y2038))] + let timeout = crate::timespec::option_as_libc_timespec_ptr(timeout); + + // If we do have to fix y2038 on this platform, convert to `c::timespec`. + #[cfg(fix_y2038)] + let converted_timeout; + #[cfg(fix_y2038)] + let timeout = match timeout { + None => null(), + Some(timeout) => { + converted_timeout = c::timespec { + tv_sec: timeout.tv_sec.try_into().map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: timeout.tv_nsec as _, + }; + &converted_timeout + } + }; + + ret_c_int(c::kevent( + borrowed_fd(kq), + changelist.as_ptr().cast(), + changelist + .len() + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + eventlist.0.cast(), + eventlist.1.try_into().map_err(|_| io::Errno::OVERFLOW)?, + timeout, + )) +} + +#[inline] +pub(crate) fn poll(fds: &mut [PollFd<'_>], timeout: Option<&Timespec>) -> io::Result { + let nfds = fds + .len() + .try_into() + .map_err(|_convert_err| io::Errno::INVAL)?; + + // If we have `ppoll`, it supports a `timespec` timeout, so use it. + #[cfg(any( + linux_kernel, + freebsdlike, + target_os = "fuchsia", + target_os = "haiku", + target_os = "hurd", + target_os = "netbsd" + ))] + { + // If we don't have to fix y2038 on this platform, `Timespec` is + // the same as `c::timespec` and it's easy. + #[cfg(not(fix_y2038))] + let timeout = crate::timespec::option_as_libc_timespec_ptr(timeout); + + // If we do have to fix y2038 on this platform, convert to + // `c::timespec`. + #[cfg(fix_y2038)] + let converted_timeout; + #[cfg(fix_y2038)] + let timeout = match timeout { + None => null(), + Some(timeout) => { + converted_timeout = c::timespec { + tv_sec: timeout.tv_sec.try_into().map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: timeout.tv_nsec as _, + }; + &converted_timeout + } + }; + + #[cfg(not(target_os = "netbsd"))] + { + ret_c_int(unsafe { c::ppoll(fds.as_mut_ptr().cast(), nfds, timeout, null()) }) + .map(|nready| nready as usize) + } + + // NetBSD 9.x lacks `ppoll`, so use a weak symbol and fall back to + // plain `poll` if needed. + #[cfg(target_os = "netbsd")] + { + weak! { + fn ppoll( + *mut c::pollfd, + c::nfds_t, + *const c::timespec, + *const c::sigset_t + ) -> c::c_int + } + if let Some(func) = ppoll.get() { + return ret_c_int(unsafe { func(fds.as_mut_ptr().cast(), nfds, timeout, null()) }) + .map(|nready| nready as usize); + } + } + } + + // If we don't have `ppoll`, convert the timeout to `c_int` and use `poll`. + #[cfg(not(any( + linux_kernel, + freebsdlike, + target_os = "fuchsia", + target_os = "haiku", + target_os = "hurd" + )))] + { + let timeout = match timeout { + None => -1, + Some(timeout) => timeout.as_c_int_millis().ok_or(io::Errno::INVAL)?, + }; + ret_c_int(unsafe { c::poll(fds.as_mut_ptr().cast(), nfds, timeout) }) + .map(|nready| nready as usize) + } +} + +#[cfg(any(bsd, linux_kernel))] +pub(crate) unsafe fn select( + nfds: i32, + readfds: Option<&mut [FdSetElement]>, + writefds: Option<&mut [FdSetElement]>, + exceptfds: Option<&mut [FdSetElement]>, + timeout: Option<&Timespec>, +) -> io::Result { + let len = crate::event::fd_set_num_elements_for_bitvector(nfds); + + let readfds = match readfds { + Some(readfds) => { + assert!(readfds.len() >= len); + readfds.as_mut_ptr() + } + None => null_mut(), + }; + let writefds = match writefds { + Some(writefds) => { + assert!(writefds.len() >= len); + writefds.as_mut_ptr() + } + None => null_mut(), + }; + let exceptfds = match exceptfds { + Some(exceptfds) => { + assert!(exceptfds.len() >= len); + exceptfds.as_mut_ptr() + } + None => null_mut(), + }; + + let timeout_data; + let timeout_ptr = match timeout { + Some(timeout) => { + // Convert from `Timespec` to `c::timeval`. + timeout_data = c::timeval { + tv_sec: timeout.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, + tv_usec: ((timeout.tv_nsec + 999) / 1000) as _, + }; + &timeout_data + } + None => null(), + }; + + // On Apple platforms, use the specially mangled `select` which doesn't + // have an `FD_SETSIZE` limitation. + #[cfg(apple)] + { + extern "C" { + #[link_name = "select$DARWIN_EXTSN$NOCANCEL"] + fn select( + nfds: c::c_int, + readfds: *mut FdSetElement, + writefds: *mut FdSetElement, + errorfds: *mut FdSetElement, + timeout: *const c::timeval, + ) -> c::c_int; + } + + ret_c_int(select(nfds, readfds, writefds, exceptfds, timeout_ptr)) + } + + // Otherwise just use the normal `select`. + #[cfg(not(apple))] + { + ret_c_int(c::select( + nfds, + readfds.cast(), + writefds.cast(), + exceptfds.cast(), + timeout_ptr as *mut c::timeval, + )) + } +} + +// WASI uses a count + array instead of a bitvector. +#[cfg(target_os = "wasi")] +pub(crate) unsafe fn select( + nfds: i32, + readfds: Option<&mut [FdSetElement]>, + writefds: Option<&mut [FdSetElement]>, + exceptfds: Option<&mut [FdSetElement]>, + timeout: Option<&Timespec>, +) -> io::Result { + let len = crate::event::fd_set_num_elements_for_fd_array(nfds as usize); + + let readfds = match readfds { + Some(readfds) => { + assert!(readfds.len() >= len); + readfds.as_mut_ptr() + } + None => null_mut(), + }; + let writefds = match writefds { + Some(writefds) => { + assert!(writefds.len() >= len); + writefds.as_mut_ptr() + } + None => null_mut(), + }; + let exceptfds = match exceptfds { + Some(exceptfds) => { + assert!(exceptfds.len() >= len); + exceptfds.as_mut_ptr() + } + None => null_mut(), + }; + + let timeout_data; + let timeout_ptr = match timeout { + Some(timeout) => { + // Convert from `Timespec` to `c::timeval`. + timeout_data = c::timeval { + tv_sec: timeout.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, + tv_usec: ((timeout.tv_nsec + 999) / 1000) as _, + }; + &timeout_data + } + None => null(), + }; + + ret_c_int(c::select( + nfds, + readfds.cast(), + writefds.cast(), + exceptfds.cast(), + timeout_ptr as *mut c::timeval, + )) +} + +#[cfg(solarish)] +pub(crate) fn port_create() -> io::Result { + unsafe { ret_owned_fd(c::port_create()) } +} + +#[cfg(solarish)] +pub(crate) unsafe fn port_associate( + port: BorrowedFd<'_>, + source: c::c_int, + object: c::uintptr_t, + events: c::c_int, + user: *mut c::c_void, +) -> io::Result<()> { + ret(c::port_associate( + borrowed_fd(port), + source, + object, + events, + user, + )) +} + +#[cfg(solarish)] +pub(crate) unsafe fn port_dissociate( + port: BorrowedFd<'_>, + source: c::c_int, + object: c::uintptr_t, +) -> io::Result<()> { + ret(c::port_dissociate(borrowed_fd(port), source, object)) +} + +#[cfg(solarish)] +pub(crate) fn port_get(port: BorrowedFd<'_>, timeout: Option<&Timespec>) -> io::Result { + // If we don't have to fix y2038 on this platform, `Timespec` is + // the same as `c::timespec` and it's easy. + #[cfg(not(fix_y2038))] + let timeout = crate::timespec::option_as_libc_timespec_ptr(timeout); + + // If we do have to fix y2038 on this platform, convert to + // `c::timespec`. + #[cfg(fix_y2038)] + let converted_timeout; + #[cfg(fix_y2038)] + let timeout = match timeout { + None => null(), + Some(timeout) => { + converted_timeout = c::timespec { + tv_sec: timeout.tv_sec.try_into().map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: timeout.tv_nsec as _, + }; + &converted_timeout + } + }; + + let mut event = MaybeUninit::::uninit(); + + // In Rust ≥ 1.65, the `as _` can be `.cast_mut()`. + unsafe { + ret(c::port_get( + borrowed_fd(port), + event.as_mut_ptr(), + timeout as _, + ))?; + } + + // If we're done, initialize the event and return it. + Ok(Event(unsafe { event.assume_init() })) +} + +#[cfg(solarish)] +pub(crate) unsafe fn port_getn( + port: BorrowedFd<'_>, + events: (*mut Event, usize), + mut nget: u32, + timeout: Option<&Timespec>, +) -> io::Result { + // If we don't have to fix y2038 on this platform, `Timespec` is + // the same as `c::timespec` and it's easy. + #[cfg(not(fix_y2038))] + let timeout = crate::timespec::option_as_libc_timespec_ptr(timeout); + + // If we do have to fix y2038 on this platform, convert to + // `c::timespec`. + #[cfg(fix_y2038)] + let converted_timeout; + #[cfg(fix_y2038)] + let timeout = match timeout { + None => null(), + Some(timeout) => { + converted_timeout = c::timespec { + tv_sec: timeout.tv_sec.try_into().map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: timeout.tv_nsec as _, + }; + &converted_timeout + } + }; + + // `port_getn` special-cases a max value of 0 to be a query that returns + // the number of events, so bail out early if needed. + if events.1 == 0 { + return Ok(0); + } + + // In Rust ≥ 1.65, the `as _` can be `.cast_mut()`. + ret(c::port_getn( + borrowed_fd(port), + events.0.cast(), + events.1.try_into().unwrap_or(u32::MAX), + &mut nget, + timeout as _, + ))?; + + Ok(nget as usize) +} + +#[cfg(solarish)] +pub(crate) fn port_getn_query(port: BorrowedFd<'_>) -> io::Result { + let mut nget: u32 = 0; + + // Pass a `max` of 0 to query the number of available events. + unsafe { + ret(c::port_getn( + borrowed_fd(port), + null_mut(), + 0, + &mut nget, + null_mut(), + ))?; + } + + Ok(nget) +} + +#[cfg(solarish)] +pub(crate) fn port_send( + port: BorrowedFd<'_>, + events: c::c_int, + userdata: *mut c::c_void, +) -> io::Result<()> { + unsafe { ret(c::port_send(borrowed_fd(port), events, userdata)) } +} + +#[cfg(not(any(target_os = "redox", target_os = "wasi")))] +pub(crate) fn pause() { + let r = unsafe { c::pause() }; + let errno = libc_errno::errno().0; + debug_assert_eq!(r, -1); + debug_assert_eq!(errno, c::EINTR); +} + +#[inline] +#[cfg(any(linux_kernel, target_os = "illumos", target_os = "redox"))] +pub(crate) fn epoll_create(flags: super::epoll::CreateFlags) -> io::Result { + unsafe { ret_owned_fd(c::epoll_create1(bitflags_bits!(flags))) } +} + +#[inline] +#[cfg(any(linux_kernel, target_os = "illumos", target_os = "redox"))] +pub(crate) fn epoll_add( + epoll: BorrowedFd<'_>, + source: BorrowedFd<'_>, + event: &crate::event::epoll::Event, +) -> io::Result<()> { + // We use our own `Event` struct instead of libc's because + // ours preserves pointer provenance instead of just using a `u64`, + // and we have tests elsewhere for layout equivalence. + unsafe { + ret(c::epoll_ctl( + borrowed_fd(epoll), + c::EPOLL_CTL_ADD, + borrowed_fd(source), + // The event is read-only even though libc has a non-const pointer. + as_ptr(event) as *mut c::epoll_event, + )) + } +} + +#[inline] +#[cfg(any(linux_kernel, target_os = "illumos", target_os = "redox"))] +pub(crate) fn epoll_mod( + epoll: BorrowedFd<'_>, + source: BorrowedFd<'_>, + event: &crate::event::epoll::Event, +) -> io::Result<()> { + unsafe { + ret(c::epoll_ctl( + borrowed_fd(epoll), + c::EPOLL_CTL_MOD, + borrowed_fd(source), + // The event is read-only even though libc has a non-const pointer. + as_ptr(event) as *mut c::epoll_event, + )) + } +} + +#[inline] +#[cfg(any(linux_kernel, target_os = "illumos", target_os = "redox"))] +pub(crate) fn epoll_del(epoll: BorrowedFd<'_>, source: BorrowedFd<'_>) -> io::Result<()> { + unsafe { + ret(c::epoll_ctl( + borrowed_fd(epoll), + c::EPOLL_CTL_DEL, + borrowed_fd(source), + null_mut(), + )) + } +} + +#[inline] +#[cfg(any(linux_kernel, target_os = "illumos", target_os = "redox"))] +pub(crate) unsafe fn epoll_wait( + epoll: BorrowedFd<'_>, + events: (*mut crate::event::epoll::Event, usize), + timeout: Option<&Timespec>, +) -> io::Result { + // If we're on Linux ≥ 5.11 and a libc that has an `epoll_pwait2` + // function, and it's y2038-safe, use it. + #[cfg(all( + linux_kernel, + feature = "linux_5_11", + target_env = "gnu", + not(fix_y2038) + ))] + { + weak! { + fn epoll_pwait2( + c::c_int, + *mut c::epoll_event, + c::c_int, + *const c::timespec, + *const c::sigset_t + ) -> c::c_int + } + + if let Some(epoll_pwait2_func) = epoll_pwait2.get() { + return ret_u32(epoll_pwait2_func( + borrowed_fd(epoll), + events.0.cast::(), + events.1.try_into().unwrap_or(i32::MAX), + crate::utils::option_as_ptr(timeout).cast(), + null(), + )) + .map(|i| i as usize); + } + } + + // If we're on Linux ≥ 5.11, use `epoll_pwait2` via `libc::syscall`. + #[cfg(all(linux_kernel, feature = "linux_5_11"))] + { + syscall! { + fn epoll_pwait2( + epfd: c::c_int, + events: *mut c::epoll_event, + maxevents: c::c_int, + timeout: *const Timespec, + sigmask: *const c::sigset_t + ) via SYS_epoll_pwait2 -> c::c_int + } + + ret_u32(epoll_pwait2( + borrowed_fd(epoll), + events.0.cast::(), + events.1.try_into().unwrap_or(i32::MAX), + crate::utils::option_as_ptr(timeout).cast(), + null(), + )) + .map(|i| i as usize) + } + + // Otherwise just use `epoll_wait`. + #[cfg(not(all(linux_kernel, feature = "linux_5_11")))] + { + let timeout = match timeout { + None => -1, + Some(timeout) => timeout.as_c_int_millis().ok_or(io::Errno::INVAL)?, + }; + + ret_u32(c::epoll_wait( + borrowed_fd(epoll), + events.0.cast::(), + events.1.try_into().unwrap_or(i32::MAX), + timeout, + )) + .map(|i| i as usize) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..a04d7e6cf6ee75d5e3aef201375e2eb24b361b3e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/types.rs @@ -0,0 +1,37 @@ +#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "illumos"))] +use crate::backend::c; +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "illumos", + target_os = "espidf" +))] +use bitflags::bitflags; + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "illumos", + target_os = "espidf" +))] +bitflags! { + /// `EFD_*` flags for use with [`eventfd`]. + /// + /// [`eventfd`]: crate::event::eventfd + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct EventfdFlags: u32 { + /// `EFD_CLOEXEC` + #[cfg(not(target_os = "espidf"))] + const CLOEXEC = bitcast!(c::EFD_CLOEXEC); + /// `EFD_NONBLOCK` + #[cfg(not(target_os = "espidf"))] + const NONBLOCK = bitcast!(c::EFD_NONBLOCK); + /// `EFD_SEMAPHORE` + #[cfg(not(target_os = "espidf"))] + const SEMAPHORE = bitcast!(c::EFD_SEMAPHORE); + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/windows_syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/windows_syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..05394f55d5b7649d6ee4327b91b1899190ef549f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/event/windows_syscalls.rs @@ -0,0 +1,79 @@ +//! Windows system calls in the `event` module. + +use crate::backend::c; +use crate::backend::conv::ret_c_int; +use crate::event::{FdSetElement, PollFd, Timespec}; +use crate::io; + +pub(crate) fn poll(fds: &mut [PollFd<'_>], timeout: Option<&Timespec>) -> io::Result { + let nfds = fds + .len() + .try_into() + .map_err(|_convert_err| io::Errno::INVAL)?; + + let timeout = match timeout { + None => -1, + Some(timeout) => timeout.as_c_int_millis().ok_or(io::Errno::INVAL)?, + }; + + ret_c_int(unsafe { c::poll(fds.as_mut_ptr().cast(), nfds, timeout) }) + .map(|nready| nready as usize) +} + +pub(crate) fn select( + nfds: i32, + readfds: Option<&mut [FdSetElement]>, + writefds: Option<&mut [FdSetElement]>, + exceptfds: Option<&mut [FdSetElement]>, + timeout: Option<&crate::timespec::Timespec>, +) -> io::Result { + use core::ptr::{null, null_mut}; + + let readfds = match readfds { + Some(readfds) => { + assert!(readfds.len() >= readfds[0].0 as usize); + readfds.as_mut_ptr() + } + None => null_mut(), + }; + let writefds = match writefds { + Some(writefds) => { + assert!(writefds.len() >= writefds[0].0 as usize); + writefds.as_mut_ptr() + } + None => null_mut(), + }; + let exceptfds = match exceptfds { + Some(exceptfds) => { + assert!(exceptfds.len() >= exceptfds[0].0 as usize); + exceptfds.as_mut_ptr() + } + None => null_mut(), + }; + + let timeout_data; + let timeout_ptr = match timeout { + Some(timeout) => { + // Convert from `Timespec` to `TIMEVAL`. + timeout_data = c::TIMEVAL { + tv_sec: timeout + .tv_sec + .try_into() + .map_err(|_| io::Errno::OPNOTSUPP)?, + tv_usec: ((timeout.tv_nsec + 999) / 1000) as _, + }; + &timeout_data + } + None => null(), + }; + + unsafe { + ret_c_int(c::select( + nfds, + readfds.cast(), + writefds.cast(), + exceptfds.cast(), + timeout_ptr, + )) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/dir.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/dir.rs new file mode 100644 index 0000000000000000000000000000000000000000..3c4c3896b0ee18637632f629bbe97cac1c59e19b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/dir.rs @@ -0,0 +1,510 @@ +#[cfg(not(any( + solarish, + target_os = "aix", + target_os = "haiku", + target_os = "nto", + target_os = "vita" +)))] +use super::types::FileType; +use crate::backend::c; +use crate::backend::conv::owned_fd; +use crate::fd::{AsFd, BorrowedFd, OwnedFd}; +use crate::ffi::{CStr, CString}; +use crate::fs::{fcntl_getfl, openat, Mode, OFlags}; +#[cfg(not(target_os = "vita"))] +use crate::fs::{fstat, Stat}; +#[cfg(not(any( + solarish, + target_os = "haiku", + target_os = "horizon", + target_os = "netbsd", + target_os = "nto", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +use crate::fs::{fstatfs, StatFs}; +#[cfg(not(any(solarish, target_os = "vita", target_os = "wasi")))] +use crate::fs::{fstatvfs, StatVfs}; +use crate::io; +#[cfg(not(any(target_os = "fuchsia", target_os = "vita", target_os = "wasi")))] +#[cfg(feature = "process")] +use crate::process::fchdir; +use alloc::borrow::ToOwned as _; +#[cfg(not(any(linux_like, target_os = "hurd")))] +use c::readdir as libc_readdir; +#[cfg(any(linux_like, target_os = "hurd"))] +use c::readdir64 as libc_readdir; +use core::fmt; +use core::ptr::NonNull; +use libc_errno::{errno, set_errno, Errno}; + +/// `DIR*` +pub struct Dir { + /// The `libc` `DIR` pointer. + libc_dir: NonNull, + + /// Have we seen any errors in this iteration? + any_errors: bool, +} + +impl Dir { + /// Take ownership of `fd` and construct a `Dir` that reads entries from + /// the given directory file descriptor. + #[inline] + pub fn new>(fd: Fd) -> io::Result { + Self::_new(fd.into()) + } + + #[inline] + fn _new(fd: OwnedFd) -> io::Result { + let raw = owned_fd(fd); + unsafe { + let libc_dir = c::fdopendir(raw); + + if let Some(libc_dir) = NonNull::new(libc_dir) { + Ok(Self { + libc_dir, + any_errors: false, + }) + } else { + let err = io::Errno::last_os_error(); + let _ = c::close(raw); + Err(err) + } + } + } + + /// Returns the file descriptor associated with the directory stream. + /// + /// The file descriptor is used internally by the directory stream. As a result, it is useful + /// only for functions which do not depend or alter the file position. + /// + /// # References + /// + /// - [POSIX] + /// + /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/dirfd.html + #[inline] + #[doc(alias = "dirfd")] + pub fn fd<'a>(&'a self) -> io::Result> { + let raw_fd = unsafe { c::dirfd(self.libc_dir.as_ptr()) }; + if raw_fd < 0 { + Err(io::Errno::last_os_error()) + } else { + Ok(unsafe { BorrowedFd::borrow_raw(raw_fd) }) + } + } + + /// Borrow `fd` and construct a `Dir` that reads entries from the given + /// directory file descriptor. + #[inline] + pub fn read_from(fd: Fd) -> io::Result { + Self::_read_from(fd.as_fd()) + } + + #[inline] + #[allow(unused_mut)] + fn _read_from(fd: BorrowedFd<'_>) -> io::Result { + let mut any_errors = false; + + // Given an arbitrary `OwnedFd`, it's impossible to know whether the + // user holds a `dup`'d copy which could continue to modify the + // file description state, which would cause Undefined Behavior after + // our call to `fdopendir`. To prevent this, we obtain an independent + // `OwnedFd`. + let flags = fcntl_getfl(fd)?; + let fd_for_dir = match openat(fd, cstr!("."), flags | OFlags::CLOEXEC, Mode::empty()) { + Ok(fd) => fd, + #[cfg(not(target_os = "wasi"))] + Err(io::Errno::NOENT) => { + // If "." doesn't exist, it means the directory was removed. + // We treat that as iterating through a directory with no + // entries. + any_errors = true; + crate::io::dup(fd)? + } + Err(err) => return Err(err), + }; + + let raw = owned_fd(fd_for_dir); + unsafe { + let libc_dir = c::fdopendir(raw); + + if let Some(libc_dir) = NonNull::new(libc_dir) { + Ok(Self { + libc_dir, + any_errors, + }) + } else { + let err = io::Errno::last_os_error(); + let _ = c::close(raw); + Err(err) + } + } + } + + /// `rewinddir(self)` + #[inline] + pub fn rewind(&mut self) { + self.any_errors = false; + unsafe { c::rewinddir(self.libc_dir.as_ptr()) } + } + + /// `seekdir(self, offset)` + /// + /// This function is only available on 64-bit platforms because it's + /// implemented using [`libc::seekdir`] which only supports offsets that + /// fit in a `c_long`. + /// + /// [`libc::seekdir`]: https://docs.rs/libc/*/arm-unknown-linux-gnueabihf/libc/fn.seekdir.html + #[cfg(target_pointer_width = "64")] + #[cfg_attr(docsrs, doc(cfg(target_pointer_width = "64")))] + #[doc(alias = "seekdir")] + #[inline] + pub fn seek(&mut self, offset: i64) -> io::Result<()> { + self.any_errors = false; + unsafe { c::seekdir(self.libc_dir.as_ptr(), offset) } + Ok(()) + } + + /// `readdir(self)`, where `None` means the end of the directory. + pub fn read(&mut self) -> Option> { + // If we've seen errors, don't continue to try to read anything + // further. + if self.any_errors { + return None; + } + + set_errno(Errno(0)); + let dirent_ptr = unsafe { libc_readdir(self.libc_dir.as_ptr()) }; + if dirent_ptr.is_null() { + let curr_errno = errno().0; + if curr_errno == 0 { + // We successfully reached the end of the stream. + None + } else { + // `errno` is unknown or non-zero, so an error occurred. + self.any_errors = true; + Some(Err(io::Errno(curr_errno))) + } + } else { + // We successfully read an entry. + unsafe { + let dirent = &*dirent_ptr; + + // We have our own copy of OpenBSD's dirent; check that the + // layout minimally matches libc's. + #[cfg(target_os = "openbsd")] + check_dirent_layout(dirent); + + let result = DirEntry { + #[cfg(not(any( + solarish, + target_os = "aix", + target_os = "haiku", + target_os = "nto", + target_os = "vita" + )))] + d_type: dirent.d_type, + + #[cfg(not(any(freebsdlike, netbsdlike, target_os = "vita")))] + d_ino: dirent.d_ino, + + #[cfg(any( + linux_like, + solarish, + target_os = "fuchsia", + target_os = "hermit", + target_os = "openbsd", + target_os = "redox" + ))] + d_off: dirent.d_off, + + #[cfg(any(freebsdlike, netbsdlike))] + d_fileno: dirent.d_fileno, + + name: CStr::from_ptr(dirent.d_name.as_ptr().cast()).to_owned(), + }; + + Some(Ok(result)) + } + } + } + + /// `fstat(self)` + #[cfg(not(any(target_os = "horizon", target_os = "vita")))] + #[inline] + pub fn stat(&self) -> io::Result { + fstat(unsafe { BorrowedFd::borrow_raw(c::dirfd(self.libc_dir.as_ptr())) }) + } + + /// `fstatfs(self)` + #[cfg(not(any( + solarish, + 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(&self) -> io::Result { + fstatfs(unsafe { BorrowedFd::borrow_raw(c::dirfd(self.libc_dir.as_ptr())) }) + } + + /// `fstatvfs(self)` + #[cfg(not(any( + solarish, + target_os = "horizon", + target_os = "vita", + target_os = "wasi" + )))] + #[inline] + pub fn statvfs(&self) -> io::Result { + fstatvfs(unsafe { BorrowedFd::borrow_raw(c::dirfd(self.libc_dir.as_ptr())) }) + } + + /// `fchdir(self)` + #[cfg(feature = "process")] + #[cfg(not(any( + target_os = "fuchsia", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" + )))] + #[cfg_attr(docsrs, doc(cfg(feature = "process")))] + #[inline] + pub fn chdir(&self) -> io::Result<()> { + fchdir(unsafe { BorrowedFd::borrow_raw(c::dirfd(self.libc_dir.as_ptr())) }) + } +} + +/// `Dir` is `Send` and `Sync`, because even though it contains internal +/// state, all methods that modify the state require a `mut &self` and +/// can therefore not be called concurrently. Calling them from different +/// threads sequentially is fine. +unsafe impl Send for Dir {} +unsafe impl Sync for Dir {} + +impl Drop for Dir { + #[inline] + fn drop(&mut self) { + unsafe { c::closedir(self.libc_dir.as_ptr()) }; + } +} + +impl Iterator for Dir { + type Item = io::Result; + + #[inline] + fn next(&mut self) -> Option { + Self::read(self) + } +} + +impl fmt::Debug for Dir { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let mut s = f.debug_struct("Dir"); + #[cfg(not(any(target_os = "horizon", target_os = "vita")))] + s.field("fd", unsafe { &c::dirfd(self.libc_dir.as_ptr()) }); + s.finish() + } +} + +/// `struct dirent` +#[derive(Debug)] +pub struct DirEntry { + #[cfg(not(any( + solarish, + target_os = "aix", + target_os = "haiku", + target_os = "nto", + target_os = "vita" + )))] + d_type: u8, + + #[cfg(not(any(freebsdlike, netbsdlike, target_os = "vita")))] + d_ino: c::ino_t, + + #[cfg(any(freebsdlike, netbsdlike))] + d_fileno: c::ino_t, + + name: CString, + + #[cfg(any( + linux_like, + solarish, + target_os = "fuchsia", + target_os = "hermit", + target_os = "openbsd", + target_os = "redox" + ))] + d_off: c::off_t, +} + +impl DirEntry { + /// Returns the file name of this directory entry. + #[inline] + pub fn file_name(&self) -> &CStr { + &self.name + } + + /// Returns the “offset” of this directory entry. This is not a true + /// numerical offset but an opaque cookie that identifies a position in the + /// given stream. + #[cfg(any( + linux_like, + solarish, + target_os = "fuchsia", + target_os = "hermit", + target_os = "openbsd", + target_os = "redox" + ))] + #[inline] + pub fn offset(&self) -> i64 { + self.d_off as i64 + } + + /// Returns the type of this directory entry. + #[cfg(not(any( + solarish, + target_os = "aix", + target_os = "haiku", + target_os = "nto", + target_os = "vita" + )))] + #[inline] + pub fn file_type(&self) -> FileType { + FileType::from_dirent_d_type(self.d_type) + } + + /// Return the inode number of this directory entry. + #[cfg(not(any(freebsdlike, netbsdlike, target_os = "vita")))] + #[inline] + pub fn ino(&self) -> u64 { + self.d_ino as u64 + } + + /// Return the inode number of this directory entry. + #[cfg(any(freebsdlike, netbsdlike))] + #[inline] + pub fn ino(&self) -> u64 { + #[allow(clippy::useless_conversion)] + self.d_fileno.into() + } +} + +/// libc's OpenBSD `dirent` has a private field so we can't construct it +/// directly, so we declare it ourselves to make all fields accessible. +#[cfg(target_os = "openbsd")] +#[repr(C)] +#[derive(Debug)] +struct libc_dirent { + d_fileno: c::ino_t, + d_off: c::off_t, + d_reclen: u16, + d_type: u8, + d_namlen: u8, + __d_padding: [u8; 4], + d_name: [c::c_char; 256], +} + +/// We have our own copy of OpenBSD's dirent; check that the layout +/// minimally matches libc's. +#[cfg(target_os = "openbsd")] +fn check_dirent_layout(dirent: &c::dirent) { + use crate::utils::as_ptr; + + // Check that the basic layouts match. + #[cfg(test)] + { + assert_eq_size!(libc_dirent, c::dirent); + assert_eq_size!(libc_dirent, c::dirent); + } + + // Check that the field offsets match. + assert_eq!( + { + let z = libc_dirent { + d_fileno: 0_u64, + d_off: 0_i64, + d_reclen: 0_u16, + d_type: 0_u8, + d_namlen: 0_u8, + __d_padding: [0_u8; 4], + d_name: [0 as c::c_char; 256], + }; + let base = as_ptr(&z) as usize; + ( + (as_ptr(&z.d_fileno) as usize) - base, + (as_ptr(&z.d_off) as usize) - base, + (as_ptr(&z.d_reclen) as usize) - base, + (as_ptr(&z.d_type) as usize) - base, + (as_ptr(&z.d_namlen) as usize) - base, + (as_ptr(&z.d_name) as usize) - base, + ) + }, + { + let z = dirent; + let base = as_ptr(z) as usize; + ( + (as_ptr(&z.d_fileno) as usize) - base, + (as_ptr(&z.d_off) as usize) - base, + (as_ptr(&z.d_reclen) as usize) - base, + (as_ptr(&z.d_type) as usize) - base, + (as_ptr(&z.d_namlen) as usize) - base, + (as_ptr(&z.d_name) as usize) - base, + ) + } + ); +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn dir_iterator_handles_io_errors() { + // create a dir, keep the FD, then delete the dir + let tmp = tempfile::tempdir().unwrap(); + let fd = crate::fs::openat( + crate::fs::CWD, + tmp.path(), + crate::fs::OFlags::RDONLY | crate::fs::OFlags::CLOEXEC, + crate::fs::Mode::empty(), + ) + .unwrap(); + + let file_fd = crate::fs::openat( + &fd, + tmp.path().join("test.txt"), + crate::fs::OFlags::WRONLY | crate::fs::OFlags::CREATE, + crate::fs::Mode::RWXU, + ) + .unwrap(); + + let mut dir = Dir::read_from(&fd).unwrap(); + + // Reach inside the `Dir` and replace its directory with a file, which + // will cause the subsequent `readdir` to fail. + unsafe { + let raw_fd = c::dirfd(dir.libc_dir.as_ptr()); + let mut owned_fd: crate::fd::OwnedFd = crate::fd::FromRawFd::from_raw_fd(raw_fd); + crate::io::dup2(&file_fd, &mut owned_fd).unwrap(); + core::mem::forget(owned_fd); + } + + // FreeBSD and macOS seem to read some directory entries before we call + // `.next()`. + #[cfg(any(apple, freebsdlike))] + { + dir.rewind(); + } + + assert!(matches!(dir.next(), Some(Err(_)))); + assert!(dir.next().is_none()); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/inotify.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/inotify.rs new file mode 100644 index 0000000000000000000000000000000000000000..89745fb7cb32444e2eea578918cefab642075fbe --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/inotify.rs @@ -0,0 +1,124 @@ +//! inotify support for working with inotify objects. + +use crate::backend::c; +use bitflags::bitflags; + +bitflags! { + /// `IN_*` for use with [`inotify::init`]. + /// + /// [`inotify::init`]: crate::fs::inotify::init + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct CreateFlags: u32 { + /// `IN_CLOEXEC` + const CLOEXEC = bitcast!(c::IN_CLOEXEC); + /// `IN_NONBLOCK` + const NONBLOCK = bitcast!(c::IN_NONBLOCK); + + /// + const _ = !0; + } +} + +bitflags! { + /// `IN*` for use with [`inotify::add_watch`]. + /// + /// [`inotify::add_watch`]: crate::fs::inotify::add_watch + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct WatchFlags: u32 { + /// `IN_ACCESS` + const ACCESS = c::IN_ACCESS; + /// `IN_ATTRIB` + const ATTRIB = c::IN_ATTRIB; + /// `IN_CLOSE_NOWRITE` + const CLOSE_NOWRITE = c::IN_CLOSE_NOWRITE; + /// `IN_CLOSE_WRITE` + const CLOSE_WRITE = c::IN_CLOSE_WRITE; + /// `IN_CREATE` + const CREATE = c::IN_CREATE; + /// `IN_DELETE` + const DELETE = c::IN_DELETE; + /// `IN_DELETE_SELF` + const DELETE_SELF = c::IN_DELETE_SELF; + /// `IN_MODIFY` + const MODIFY = c::IN_MODIFY; + /// `IN_MOVE_SELF` + const MOVE_SELF = c::IN_MOVE_SELF; + /// `IN_MOVED_FROM` + const MOVED_FROM = c::IN_MOVED_FROM; + /// `IN_MOVED_TO` + const MOVED_TO = c::IN_MOVED_TO; + /// `IN_OPEN` + const OPEN = c::IN_OPEN; + + /// `IN_CLOSE` + const CLOSE = c::IN_CLOSE; + /// `IN_MOVE` + const MOVE = c::IN_MOVE; + /// `IN_ALL_EVENTS` + const ALL_EVENTS = c::IN_ALL_EVENTS; + + /// `IN_DONT_FOLLOW` + const DONT_FOLLOW = c::IN_DONT_FOLLOW; + /// `IN_EXCL_UNLINK` + const EXCL_UNLINK = 1; + /// `IN_MASK_ADD` + const MASK_ADD = 1; + /// `IN_MASK_CREATE` + const MASK_CREATE = 1; + /// `IN_ONESHOT` + const ONESHOT = c::IN_ONESHOT; + /// `IN_ONLYDIR` + const ONLYDIR = c::IN_ONLYDIR; + + /// + const _ = !0; + } +} + +bitflags! { + /// `IN*` for use with [`inotify::Reader`]. + /// + /// [`inotify::Reader`]: crate::fs::inotify::Reader + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct ReadFlags: u32 { + /// `IN_ACCESS` + const ACCESS = c::IN_ACCESS; + /// `IN_ATTRIB` + const ATTRIB = c::IN_ATTRIB; + /// `IN_CLOSE_NOWRITE` + const CLOSE_NOWRITE = c::IN_CLOSE_NOWRITE; + /// `IN_CLOSE_WRITE` + const CLOSE_WRITE = c::IN_CLOSE_WRITE; + /// `IN_CREATE` + const CREATE = c::IN_CREATE; + /// `IN_DELETE` + const DELETE = c::IN_DELETE; + /// `IN_DELETE_SELF` + const DELETE_SELF = c::IN_DELETE_SELF; + /// `IN_MODIFY` + const MODIFY = c::IN_MODIFY; + /// `IN_MOVE_SELF` + const MOVE_SELF = c::IN_MOVE_SELF; + /// `IN_MOVED_FROM` + const MOVED_FROM = c::IN_MOVED_FROM; + /// `IN_MOVED_TO` + const MOVED_TO = c::IN_MOVED_TO; + /// `IN_OPEN` + const OPEN = c::IN_OPEN; + + /// `IN_IGNORED` + const IGNORED = c::IN_IGNORED; + /// `IN_ISDIR` + const ISDIR = c::IN_ISDIR; + /// `IN_Q_OVERFLOW` + const QUEUE_OVERFLOW = c::IN_Q_OVERFLOW; + /// `IN_UNMOUNT` + const UNMOUNT = c::IN_UNMOUNT; + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/makedev.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/makedev.rs new file mode 100644 index 0000000000000000000000000000000000000000..18807550665a7f74203b5460fb63e5d1156decc5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/makedev.rs @@ -0,0 +1,164 @@ +// TODO: Remove the unsafe blocks. libc 0.2.171 removed `unsafe` from several +// of these functions. Eventually we should depend on that version and remove +// the `unsafe` blocks in the code, but for now, disable that warning so that +// we're compatible with older libc versions. +#![allow(unused_unsafe)] + +#[cfg(not(all(target_os = "android", target_pointer_width = "32")))] +use crate::backend::c; +use crate::fs::Dev; + +#[cfg(not(any( + apple, + solarish, + target_os = "aix", + target_os = "android", + target_os = "emscripten", + target_os = "redox", +)))] +#[inline] +pub(crate) fn makedev(maj: u32, min: u32) -> Dev { + c::makedev(maj, min) +} + +#[cfg(solarish)] +pub(crate) fn makedev(maj: u32, min: u32) -> Dev { + // SAFETY: Solarish's `makedev` is marked unsafe but it isn't doing + // anything unsafe. + unsafe { c::makedev(maj, min) } +} + +#[cfg(all(target_os = "android", not(target_pointer_width = "32")))] +#[inline] +pub(crate) fn makedev(maj: u32, min: u32) -> Dev { + c::makedev(maj, min) +} + +#[cfg(all(target_os = "android", target_pointer_width = "32"))] +#[inline] +pub(crate) fn makedev(maj: u32, min: u32) -> Dev { + // 32-bit Android's `dev_t` is 32-bit, but its `st_dev` is 64-bit, so we do + // it ourselves. + ((u64::from(maj) & 0xffff_f000_u64) << 32) + | ((u64::from(maj) & 0x0000_0fff_u64) << 8) + | ((u64::from(min) & 0xffff_ff00_u64) << 12) + | (u64::from(min) & 0x0000_00ff_u64) +} + +#[cfg(target_os = "redox")] +#[inline] +pub(crate) fn makedev(maj: u32, min: u32) -> Dev { + // Redox's makedev is reportedly similar to 32-bit Android's but the return + // type is signed. + ((i64::from(maj) & 0xffff_f000_i64) << 32) + | ((i64::from(maj) & 0x0000_0fff_i64) << 8) + | ((i64::from(min) & 0xffff_ff00_i64) << 12) + | (i64::from(min) & 0x0000_00ff_i64) +} + +#[cfg(target_os = "emscripten")] +#[inline] +pub(crate) fn makedev(maj: u32, min: u32) -> Dev { + // Emscripten's `makedev` has a 32-bit return value. + Dev::from(c::makedev(maj, min)) +} + +#[cfg(apple)] +#[inline] +pub(crate) fn makedev(maj: u32, min: u32) -> Dev { + // Apple's `makedev` oddly has signed argument types and is `unsafe`. + unsafe { c::makedev(maj as i32, min as i32) } +} + +#[cfg(target_os = "aix")] +#[inline] +pub(crate) fn makedev(maj: u32, min: u32) -> Dev { + // AIX's `makedev` oddly is `unsafe`. + unsafe { c::makedev(maj, min) } +} + +#[cfg(not(any( + apple, + freebsdlike, + target_os = "android", + target_os = "emscripten", + target_os = "netbsd", + target_os = "redox" +)))] +#[inline] +pub(crate) fn major(dev: Dev) -> u32 { + unsafe { c::major(dev) } +} + +#[cfg(any( + apple, + freebsdlike, + target_os = "netbsd", + all(target_os = "android", not(target_pointer_width = "32")), +))] +#[inline] +pub(crate) fn major(dev: Dev) -> u32 { + // On some platforms `major` oddly has signed return types. + (unsafe { c::major(dev) }) as u32 +} + +#[cfg(any( + all(target_os = "android", target_pointer_width = "32"), + target_os = "redox" +))] +#[inline] +pub(crate) fn major(dev: Dev) -> u32 { + // 32-bit Android's `dev_t` is 32-bit, but its `st_dev` is 64-bit, so we do + // it ourselves. + (((dev >> 31 >> 1) & 0xffff_f000) | ((dev >> 8) & 0x0000_0fff)) as u32 +} + +#[cfg(target_os = "emscripten")] +#[inline] +pub(crate) fn major(dev: Dev) -> u32 { + // Emscripten's `major` has a 32-bit argument value. + unsafe { c::major(dev as u32) } +} + +#[cfg(not(any( + apple, + freebsdlike, + target_os = "android", + target_os = "emscripten", + target_os = "netbsd", + target_os = "redox", +)))] +#[inline] +pub(crate) fn minor(dev: Dev) -> u32 { + unsafe { c::minor(dev) } +} + +#[cfg(any( + apple, + freebsdlike, + target_os = "netbsd", + all(target_os = "android", not(target_pointer_width = "32")) +))] +#[inline] +pub(crate) fn minor(dev: Dev) -> u32 { + // On some platforms, `minor` oddly has signed return types. + (unsafe { c::minor(dev) }) as u32 +} + +#[cfg(any( + all(target_os = "android", target_pointer_width = "32"), + target_os = "redox" +))] +#[inline] +pub(crate) fn minor(dev: Dev) -> u32 { + // 32-bit Android's `dev_t` is 32-bit, but its `st_dev` is 64-bit, so we do + // it ourselves. + (((dev >> 12) & 0xffff_ff00) | (dev & 0x0000_00ff)) as u32 +} + +#[cfg(target_os = "emscripten")] +#[inline] +pub(crate) fn minor(dev: Dev) -> u32 { + // Emscripten's `minor` has a 32-bit argument value. + unsafe { c::minor(dev as u32) } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..e5e821ea7000748ff19190fad793b7bd5b77ed5d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/mod.rs @@ -0,0 +1,26 @@ +#[cfg(all(feature = "alloc", not(any(target_os = "espidf", target_os = "redox"))))] +pub(crate) mod dir; +#[cfg(linux_kernel)] +pub mod inotify; +#[cfg(not(any( + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +pub(crate) mod makedev; +#[cfg(not(windows))] +pub(crate) mod syscalls; +pub(crate) mod types; + +// TODO: Fix linux-raw-sys to define ioctl codes for sparc. +#[cfg(all(linux_raw_dep, any(target_arch = "sparc", target_arch = "sparc64")))] +pub(crate) const EXT4_IOC_RESIZE_FS: crate::ioctl::Opcode = 0x8008_6610; + +#[cfg(all( + linux_raw_dep, + not(any(target_arch = "sparc", target_arch = "sparc64")) +))] +pub(crate) const EXT4_IOC_RESIZE_FS: crate::ioctl::Opcode = + linux_raw_sys::ioctl::EXT4_IOC_RESIZE_FS as crate::ioctl::Opcode; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..8cbd3a2c16076e542233cd105ccfae560ad5ea49 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/syscalls.rs @@ -0,0 +1,2721 @@ +//! libc syscalls supporting `rustix::fs`. + +use crate::backend::c; +#[cfg(any(not(target_os = "redox"), feature = "alloc"))] +use crate::backend::conv::ret_usize; +use crate::backend::conv::{borrowed_fd, c_str, ret, ret_c_int, ret_off_t, ret_owned_fd}; +use crate::fd::{BorrowedFd, OwnedFd}; +#[allow(unused_imports)] +use crate::ffi; +use crate::ffi::CStr; +#[cfg(all(apple, feature = "alloc"))] +use crate::ffi::CString; +#[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "vita")))] +use crate::fs::Access; +#[cfg(not(any(target_os = "espidf", target_os = "redox")))] +use crate::fs::AtFlags; +#[cfg(not(any( + netbsdlike, + target_os = "dragonfly", + target_os = "espidf", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "vita", +)))] +use crate::fs::FallocateFlags; +#[cfg(not(any( + target_os = "espidf", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +use crate::fs::FlockOperation; +#[cfg(any(linux_kernel, target_os = "freebsd"))] +use crate::fs::MemfdFlags; +#[cfg(any(linux_kernel, apple))] +use crate::fs::RenameFlags; +#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] +use crate::fs::SealFlags; +#[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 = "espidf", target_os = "vita")))] +use crate::fs::Timestamps; +#[cfg(not(any( + apple, + target_os = "espidf", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +use crate::fs::{Dev, FileType}; +use crate::fs::{Mode, OFlags, SeekFrom, Stat}; +#[cfg(not(target_os = "wasi"))] +use crate::fs::{StatVfs, StatVfsMountFlags}; +use crate::io; +#[cfg(all(target_env = "gnu", fix_y2038))] +use crate::timespec::LibcTimespec; +#[cfg(not(target_os = "wasi"))] +use crate::ugid::{Gid, Uid}; +#[cfg(all(apple, feature = "alloc"))] +use alloc::vec; +use core::mem::MaybeUninit; +#[cfg(apple)] +use { + crate::backend::conv::nonnegative_ret, + crate::fs::{copyfile_state_t, CloneFlags, CopyfileFlags}, +}; +#[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", +)))] +use {crate::fs::Advice, core::num::NonZeroU64}; +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +use {crate::fs::XattrFlags, core::mem::size_of, core::ptr::null_mut}; +#[cfg(linux_kernel)] +use { + crate::fs::{ResolveFlags, Statx, StatxFlags, CWD}, + core::ptr::null, +}; + +#[cfg(all(target_env = "gnu", fix_y2038))] +weak!(fn __utimensat64(c::c_int, *const ffi::c_char, *const LibcTimespec, c::c_int) -> c::c_int); +#[cfg(all(target_env = "gnu", fix_y2038))] +weak!(fn __futimens64(c::c_int, *const LibcTimespec) -> c::c_int); + +/// Use a direct syscall (via libc) for `open`. +/// +/// This is only currently necessary as a workaround for old glibc; see below. +#[cfg(all(unix, target_env = "gnu"))] +fn open_via_syscall(path: &CStr, oflags: OFlags, mode: Mode) -> io::Result { + // Linux on aarch64, loongarch64 and riscv64 has no `open` syscall so use + // `openat`. + #[cfg(any( + target_arch = "aarch64", + target_arch = "riscv32", + target_arch = "riscv64", + target_arch = "csky", + target_arch = "loongarch64" + ))] + { + openat_via_syscall(CWD, path, oflags, mode) + } + + // Use the `open` syscall. + #[cfg(not(any( + target_arch = "aarch64", + target_arch = "riscv32", + target_arch = "riscv64", + target_arch = "csky", + target_arch = "loongarch64" + )))] + unsafe { + syscall! { + fn open( + pathname: *const ffi::c_char, + oflags: c::c_int, + mode: c::mode_t + ) via SYS_open -> c::c_int + } + + ret_owned_fd(open( + c_str(path), + bitflags_bits!(oflags), + bitflags_bits!(mode), + )) + } +} + +pub(crate) fn open(path: &CStr, oflags: OFlags, mode: Mode) -> io::Result { + // Work around . + // glibc versions before 2.25 don't handle `O_TMPFILE` correctly. + #[cfg(all( + unix, + target_env = "gnu", + not(target_os = "hurd"), + not(target_os = "freebsd") + ))] + if oflags.contains(OFlags::TMPFILE) && crate::backend::if_glibc_is_less_than_2_25() { + return open_via_syscall(path, oflags, mode); + } + + // On these platforms, `mode_t` is `u16` and can't be passed directly to a + // variadic function. + #[cfg(any( + apple, + freebsdlike, + all(target_os = "android", target_pointer_width = "32") + ))] + let mode: c::c_uint = mode.bits().into(); + + // Otherwise, cast to `mode_t` as that's what `open` is documented to take. + #[cfg(not(any( + apple, + freebsdlike, + all(target_os = "android", target_pointer_width = "32") + )))] + let mode: c::mode_t = mode.bits() as _; + + unsafe { ret_owned_fd(c::open(c_str(path), bitflags_bits!(oflags), mode)) } +} + +/// Use a direct syscall (via libc) for `openat`. +/// +/// This is only currently necessary as a workaround for old glibc; see below. +#[cfg(all(unix, target_env = "gnu", not(target_os = "hurd")))] +fn openat_via_syscall( + dirfd: BorrowedFd<'_>, + path: &CStr, + oflags: OFlags, + mode: Mode, +) -> io::Result { + syscall! { + fn openat( + base_dirfd: c::c_int, + pathname: *const ffi::c_char, + oflags: c::c_int, + mode: c::mode_t + ) via SYS_openat -> c::c_int + } + + unsafe { + ret_owned_fd(openat( + borrowed_fd(dirfd), + c_str(path), + bitflags_bits!(oflags), + bitflags_bits!(mode), + )) + } +} + +#[cfg(not(target_os = "redox"))] +pub(crate) fn openat( + dirfd: BorrowedFd<'_>, + path: &CStr, + oflags: OFlags, + mode: Mode, +) -> io::Result { + // Work around . + // glibc versions before 2.25 don't handle `O_TMPFILE` correctly. + #[cfg(all( + unix, + target_env = "gnu", + not(target_os = "hurd"), + not(target_os = "freebsd") + ))] + if oflags.contains(OFlags::TMPFILE) && crate::backend::if_glibc_is_less_than_2_25() { + return openat_via_syscall(dirfd, path, oflags, mode); + } + + // On these platforms, `mode_t` is `u16` and can't be passed directly to a + // variadic function. + #[cfg(any( + apple, + freebsdlike, + all(target_os = "android", target_pointer_width = "32") + ))] + let mode: c::c_uint = mode.bits().into(); + + // Otherwise, cast to `mode_t` as that's what `open` is documented to take. + #[cfg(not(any( + apple, + freebsdlike, + all(target_os = "android", target_pointer_width = "32") + )))] + let mode: c::mode_t = mode.bits() as _; + + unsafe { + ret_owned_fd(c::openat( + borrowed_fd(dirfd), + c_str(path), + bitflags_bits!(oflags), + mode, + )) + } +} + +#[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(crate) fn statfs(filename: &CStr) -> io::Result { + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(c::statfs(c_str(filename), result.as_mut_ptr()))?; + Ok(result.assume_init()) + } +} + +#[cfg(not(target_os = "wasi"))] +#[inline] +pub(crate) fn statvfs(filename: &CStr) -> io::Result { + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(c::statvfs(c_str(filename), result.as_mut_ptr()))?; + Ok(libc_statvfs_to_statvfs(result.assume_init())) + } +} + +#[cfg(feature = "alloc")] +#[inline] +pub(crate) fn readlink(path: &CStr, buf: &mut [u8]) -> io::Result { + unsafe { ret_usize(c::readlink(c_str(path), buf.as_mut_ptr().cast(), buf.len()) as isize) } +} + +#[cfg(not(target_os = "redox"))] +#[inline] +pub(crate) unsafe fn readlinkat( + dirfd: BorrowedFd<'_>, + path: &CStr, + buf: (*mut u8, usize), +) -> io::Result { + ret_usize(c::readlinkat(borrowed_fd(dirfd), c_str(path), buf.0.cast(), buf.1) as isize) +} + +pub(crate) fn mkdir(path: &CStr, mode: Mode) -> io::Result<()> { + unsafe { ret(c::mkdir(c_str(path), mode.bits() as c::mode_t)) } +} + +#[cfg(not(target_os = "redox"))] +pub(crate) fn mkdirat(dirfd: BorrowedFd<'_>, path: &CStr, mode: Mode) -> io::Result<()> { + unsafe { + ret(c::mkdirat( + borrowed_fd(dirfd), + c_str(path), + mode.bits() as c::mode_t, + )) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn getdents_uninit( + fd: BorrowedFd<'_>, + buf: &mut [MaybeUninit], +) -> io::Result { + syscall! { + fn getdents64( + fd: c::c_int, + dirp: *mut c::c_void, + count: usize + ) via SYS_getdents64 -> c::ssize_t + } + unsafe { + ret_usize(getdents64( + borrowed_fd(fd), + buf.as_mut_ptr().cast::(), + buf.len(), + )) + } +} + +pub(crate) fn link(old_path: &CStr, new_path: &CStr) -> io::Result<()> { + unsafe { ret(c::link(c_str(old_path), c_str(new_path))) } +} + +#[cfg(not(any(target_os = "espidf", target_os = "redox")))] +pub(crate) fn linkat( + old_dirfd: BorrowedFd<'_>, + old_path: &CStr, + new_dirfd: BorrowedFd<'_>, + new_path: &CStr, + flags: AtFlags, +) -> io::Result<()> { + // macOS ≤ 10.9 lacks `linkat`. + #[cfg(target_os = "macos")] + unsafe { + weak! { + fn linkat( + c::c_int, + *const ffi::c_char, + c::c_int, + *const ffi::c_char, + c::c_int + ) -> c::c_int + } + // If we have `linkat`, use it. + if let Some(libc_linkat) = linkat.get() { + return ret(libc_linkat( + borrowed_fd(old_dirfd), + c_str(old_path), + borrowed_fd(new_dirfd), + c_str(new_path), + bitflags_bits!(flags), + )); + } + // Otherwise, see if we can emulate the `AT_FDCWD` case. + if borrowed_fd(old_dirfd) != c::AT_FDCWD || borrowed_fd(new_dirfd) != c::AT_FDCWD { + return Err(io::Errno::NOSYS); + } + if flags.intersects(!AtFlags::SYMLINK_FOLLOW) { + return Err(io::Errno::INVAL); + } + if !flags.is_empty() { + return Err(io::Errno::OPNOTSUPP); + } + ret(c::link(c_str(old_path), c_str(new_path))) + } + + #[cfg(not(target_os = "macos"))] + unsafe { + ret(c::linkat( + borrowed_fd(old_dirfd), + c_str(old_path), + borrowed_fd(new_dirfd), + c_str(new_path), + bitflags_bits!(flags), + )) + } +} + +pub(crate) fn rmdir(path: &CStr) -> io::Result<()> { + unsafe { ret(c::rmdir(c_str(path))) } +} + +pub(crate) fn unlink(path: &CStr) -> io::Result<()> { + unsafe { ret(c::unlink(c_str(path))) } +} + +#[cfg(not(any(target_os = "espidf", target_os = "redox")))] +pub(crate) fn unlinkat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<()> { + // macOS ≤ 10.9 lacks `unlinkat`. + #[cfg(target_os = "macos")] + unsafe { + weak! { + fn unlinkat( + c::c_int, + *const ffi::c_char, + c::c_int + ) -> c::c_int + } + // If we have `unlinkat`, use it. + if let Some(libc_unlinkat) = unlinkat.get() { + return ret(libc_unlinkat( + borrowed_fd(dirfd), + c_str(path), + bitflags_bits!(flags), + )); + } + // Otherwise, see if we can emulate the `AT_FDCWD` case. + if borrowed_fd(dirfd) != c::AT_FDCWD { + return Err(io::Errno::NOSYS); + } + if flags.intersects(!AtFlags::REMOVEDIR) { + return Err(io::Errno::INVAL); + } + if flags.contains(AtFlags::REMOVEDIR) { + ret(c::rmdir(c_str(path))) + } else { + ret(c::unlink(c_str(path))) + } + } + + #[cfg(not(target_os = "macos"))] + unsafe { + ret(c::unlinkat( + borrowed_fd(dirfd), + c_str(path), + bitflags_bits!(flags), + )) + } +} + +pub(crate) fn rename(old_path: &CStr, new_path: &CStr) -> io::Result<()> { + unsafe { ret(c::rename(c_str(old_path), c_str(new_path))) } +} + +#[cfg(not(target_os = "redox"))] +pub(crate) fn renameat( + old_dirfd: BorrowedFd<'_>, + old_path: &CStr, + new_dirfd: BorrowedFd<'_>, + new_path: &CStr, +) -> io::Result<()> { + // macOS ≤ 10.9 lacks `renameat`. + #[cfg(target_os = "macos")] + unsafe { + weak! { + fn renameat( + c::c_int, + *const ffi::c_char, + c::c_int, + *const ffi::c_char + ) -> c::c_int + } + // If we have `renameat`, use it. + if let Some(libc_renameat) = renameat.get() { + return ret(libc_renameat( + borrowed_fd(old_dirfd), + c_str(old_path), + borrowed_fd(new_dirfd), + c_str(new_path), + )); + } + // Otherwise, see if we can emulate the `AT_FDCWD` case. + if borrowed_fd(old_dirfd) != c::AT_FDCWD || borrowed_fd(new_dirfd) != c::AT_FDCWD { + return Err(io::Errno::NOSYS); + } + ret(c::rename(c_str(old_path), c_str(new_path))) + } + + #[cfg(not(target_os = "macos"))] + unsafe { + ret(c::renameat( + borrowed_fd(old_dirfd), + c_str(old_path), + borrowed_fd(new_dirfd), + c_str(new_path), + )) + } +} + +#[cfg(all(target_os = "linux", target_env = "gnu"))] +pub(crate) fn renameat2( + old_dirfd: BorrowedFd<'_>, + old_path: &CStr, + new_dirfd: BorrowedFd<'_>, + new_path: &CStr, + flags: RenameFlags, +) -> io::Result<()> { + // `renameat2` wasn't supported in glibc until 2.28. + weak_or_syscall! { + fn renameat2( + olddirfd: c::c_int, + oldpath: *const ffi::c_char, + newdirfd: c::c_int, + newpath: *const ffi::c_char, + flags: c::c_uint + ) via SYS_renameat2 -> c::c_int + } + + unsafe { + ret(renameat2( + borrowed_fd(old_dirfd), + c_str(old_path), + borrowed_fd(new_dirfd), + c_str(new_path), + flags.bits(), + )) + } +} + +#[cfg(any( + target_os = "android", + all(target_os = "linux", not(target_env = "gnu")), +))] +#[inline] +pub(crate) fn renameat2( + old_dirfd: BorrowedFd<'_>, + old_path: &CStr, + new_dirfd: BorrowedFd<'_>, + new_path: &CStr, + flags: RenameFlags, +) -> io::Result<()> { + // At present, `libc` only has `renameat2` defined for glibc. If we have + // no flags, we can use plain `renameat`, but otherwise we use `syscall!`. + // to call `renameat2` ourselves. + if flags.is_empty() { + renameat(old_dirfd, old_path, new_dirfd, new_path) + } else { + syscall! { + fn renameat2( + olddirfd: c::c_int, + oldpath: *const ffi::c_char, + newdirfd: c::c_int, + newpath: *const ffi::c_char, + flags: c::c_uint + ) via SYS_renameat2 -> c::c_int + } + + unsafe { + ret(renameat2( + borrowed_fd(old_dirfd), + c_str(old_path), + borrowed_fd(new_dirfd), + c_str(new_path), + flags.bits(), + )) + } + } +} + +#[cfg(apple)] +pub(crate) fn renameat2( + old_dirfd: BorrowedFd<'_>, + old_path: &CStr, + new_dirfd: BorrowedFd<'_>, + new_path: &CStr, + flags: RenameFlags, +) -> io::Result<()> { + unsafe { + // macOS < 10.12 lacks `renameatx_np`. + weak! { + fn renameatx_np( + c::c_int, + *const ffi::c_char, + c::c_int, + *const ffi::c_char, + c::c_uint + ) -> c::c_int + } + // If we have `renameatx_np`, use it. + if let Some(libc_renameatx_np) = renameatx_np.get() { + return ret(libc_renameatx_np( + borrowed_fd(old_dirfd), + c_str(old_path), + borrowed_fd(new_dirfd), + c_str(new_path), + flags.bits(), + )); + } + // Otherwise, see if we can use `rename`. There's no point in trying + // `renamex_np` because it was added in the same macOS release as + // `renameatx_np`. + if !flags.is_empty() + || borrowed_fd(old_dirfd) != c::AT_FDCWD + || borrowed_fd(new_dirfd) != c::AT_FDCWD + { + return Err(io::Errno::NOSYS); + } + ret(c::rename(c_str(old_path), c_str(new_path))) + } +} + +pub(crate) fn symlink(old_path: &CStr, new_path: &CStr) -> io::Result<()> { + unsafe { ret(c::symlink(c_str(old_path), c_str(new_path))) } +} + +#[cfg(not(target_os = "redox"))] +pub(crate) fn symlinkat( + old_path: &CStr, + new_dirfd: BorrowedFd<'_>, + new_path: &CStr, +) -> io::Result<()> { + unsafe { + ret(c::symlinkat( + c_str(old_path), + borrowed_fd(new_dirfd), + c_str(new_path), + )) + } +} + +pub(crate) fn stat(path: &CStr) -> io::Result { + // See the comments in `fstat` about using `crate::fs::statx` here. + #[cfg(all( + linux_kernel, + any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ) + ))] + { + match crate::fs::statx(CWD, path, AtFlags::empty(), StatxFlags::BASIC_STATS) { + Ok(x) => statx_to_stat(x), + Err(io::Errno::NOSYS) => statat_old(CWD, path, AtFlags::empty()), + Err(err) => Err(err), + } + } + + // Main version: libc is y2038 safe. Or, the platform is not y2038 safe and + // there's nothing practical we can do. + #[cfg(not(all( + linux_kernel, + any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ) + )))] + unsafe { + #[cfg(test)] + assert_eq_size!(Stat, c::stat); + + let mut stat = MaybeUninit::::uninit(); + ret(c::stat(c_str(path), stat.as_mut_ptr().cast()))?; + let stat = stat.assume_init(); + #[cfg(apple)] + let stat = fix_negative_stat_nsecs(stat); + Ok(stat) + } +} + +pub(crate) fn lstat(path: &CStr) -> io::Result { + // See the comments in `fstat` about using `crate::fs::statx` here. + #[cfg(all( + linux_kernel, + any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ) + ))] + { + match crate::fs::statx( + CWD, + path, + AtFlags::SYMLINK_NOFOLLOW, + StatxFlags::BASIC_STATS, + ) { + Ok(x) => statx_to_stat(x), + Err(io::Errno::NOSYS) => statat_old(CWD, path, AtFlags::SYMLINK_NOFOLLOW), + Err(err) => Err(err), + } + } + + // Main version: libc is y2038 safe. Or, the platform is not y2038 safe and + // there's nothing practical we can do. + #[cfg(not(all( + linux_kernel, + any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ) + )))] + unsafe { + #[cfg(test)] + assert_eq_size!(Stat, c::stat); + + let mut stat = MaybeUninit::::uninit(); + ret(c::lstat(c_str(path), stat.as_mut_ptr().cast()))?; + let stat = stat.assume_init(); + #[cfg(apple)] + let stat = fix_negative_stat_nsecs(stat); + Ok(stat) + } +} + +#[cfg(not(any(target_os = "espidf", target_os = "redox")))] +pub(crate) fn statat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result { + // See the comments in `fstat` about using `crate::fs::statx` here. + #[cfg(all( + linux_kernel, + any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ) + ))] + { + match crate::fs::statx(dirfd, path, flags, StatxFlags::BASIC_STATS) { + Ok(x) => statx_to_stat(x), + Err(io::Errno::NOSYS) => statat_old(dirfd, path, flags), + Err(err) => Err(err), + } + } + + // Main version: libc is y2038 safe. Or, the platform is not y2038 safe and + // there's nothing practical we can do. + #[cfg(not(all( + linux_kernel, + any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ) + )))] + unsafe { + #[cfg(test)] + assert_eq_size!(Stat, c::stat); + + let mut stat = MaybeUninit::::uninit(); + ret(c::fstatat( + borrowed_fd(dirfd), + c_str(path), + stat.as_mut_ptr().cast(), + bitflags_bits!(flags), + ))?; + let stat = stat.assume_init(); + #[cfg(apple)] + let stat = fix_negative_stat_nsecs(stat); + Ok(stat) + } +} + +#[cfg(all( + linux_kernel, + any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ) +))] +fn statat_old(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result { + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(c::fstatat( + borrowed_fd(dirfd), + c_str(path), + result.as_mut_ptr(), + bitflags_bits!(flags), + ))?; + stat64_to_stat(result.assume_init()) + } +} + +#[cfg(not(any( + target_os = "espidf", + target_os = "horizon", + target_os = "emscripten", + target_os = "vita" +)))] +pub(crate) fn access(path: &CStr, access: Access) -> io::Result<()> { + unsafe { ret(c::access(c_str(path), access.bits())) } +} + +#[cfg(not(any( + target_os = "emscripten", + target_os = "espidf", + target_os = "horizon", + target_os = "redox", + target_os = "vita" +)))] +pub(crate) fn accessat( + dirfd: BorrowedFd<'_>, + path: &CStr, + access: Access, + flags: AtFlags, +) -> io::Result<()> { + // macOS ≤ 10.9 lacks `faccessat`. + #[cfg(target_os = "macos")] + unsafe { + weak! { + fn faccessat( + c::c_int, + *const ffi::c_char, + c::c_int, + c::c_int + ) -> c::c_int + } + // If we have `faccessat`, use it. + if let Some(libc_faccessat) = faccessat.get() { + return ret(libc_faccessat( + borrowed_fd(dirfd), + c_str(path), + bitflags_bits!(access), + bitflags_bits!(flags), + )); + } + // Otherwise, see if we can emulate the `AT_FDCWD` case. + if borrowed_fd(dirfd) != c::AT_FDCWD { + return Err(io::Errno::NOSYS); + } + if flags.intersects(!(AtFlags::EACCESS | AtFlags::SYMLINK_NOFOLLOW)) { + return Err(io::Errno::INVAL); + } + if !flags.is_empty() { + return Err(io::Errno::OPNOTSUPP); + } + ret(c::access(c_str(path), bitflags_bits!(access))) + } + + #[cfg(not(target_os = "macos"))] + unsafe { + ret(c::faccessat( + borrowed_fd(dirfd), + c_str(path), + bitflags_bits!(access), + bitflags_bits!(flags), + )) + } +} + +#[cfg(target_os = "emscripten")] +pub(crate) fn access(_path: &CStr, _access: Access) -> io::Result<()> { + Ok(()) +} + +#[cfg(target_os = "emscripten")] +pub(crate) fn accessat( + _dirfd: BorrowedFd<'_>, + _path: &CStr, + _access: Access, + _flags: AtFlags, +) -> io::Result<()> { + Ok(()) +} + +#[cfg(not(any( + target_os = "espidf", + target_os = "horizon", + target_os = "redox", + target_os = "vita" +)))] +pub(crate) fn utimensat( + dirfd: BorrowedFd<'_>, + path: &CStr, + times: &Timestamps, + flags: AtFlags, +) -> io::Result<()> { + // Old 32-bit version: libc has `utimensat` but it is not y2038 safe by + // default. But there may be a `__utimensat64` we can use. + #[cfg(all(fix_y2038, not(apple)))] + { + #[cfg(target_env = "gnu")] + if let Some(libc_utimensat) = __utimensat64.get() { + let libc_times: [LibcTimespec; 2] = + [times.last_access.into(), times.last_modification.into()]; + + unsafe { + return ret(libc_utimensat( + borrowed_fd(dirfd), + c_str(path), + libc_times.as_ptr(), + bitflags_bits!(flags), + )); + } + } + + utimensat_old(dirfd, path, times, flags) + } + + // Main version: libc is y2038 safe and has `utimensat`. Or, the platform + // is not y2038 safe and there's nothing practical we can do. + #[cfg(not(any(apple, fix_y2038)))] + unsafe { + use crate::utils::as_ptr; + + ret(c::utimensat( + borrowed_fd(dirfd), + c_str(path), + as_ptr(times).cast(), + bitflags_bits!(flags), + )) + } + + // Apple version: `utimensat` was introduced in macOS 10.13. + #[cfg(apple)] + unsafe { + use crate::utils::as_ptr; + + // ABI details + weak! { + fn utimensat( + c::c_int, + *const ffi::c_char, + *const c::timespec, + c::c_int + ) -> c::c_int + } + extern "C" { + fn setattrlist( + path: *const ffi::c_char, + attr_list: *const Attrlist, + attr_buf: *const c::c_void, + attr_buf_size: c::size_t, + options: c::c_ulong, + ) -> c::c_int; + } + const FSOPT_NOFOLLOW: c::c_ulong = 0x0000_0001; + + // If we have `utimensat`, use it. + if let Some(have_utimensat) = utimensat.get() { + return ret(have_utimensat( + borrowed_fd(dirfd), + c_str(path), + as_ptr(times).cast(), + bitflags_bits!(flags), + )); + } + + // Convert `times`. We only need this in the child, but do it before + // calling `fork` because it might fail. + let (attrbuf_size, times, attrs) = times_to_attrlist(times)?; + + // `setattrlistat` was introduced in 10.13 along with `utimensat`, so + // if we don't have `utimensat`, we don't have `setattrlistat` either. + // Emulate it using `fork`, and `fchdir` and [`setattrlist`]. + // + // [`setattrlist`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setattrlist.2.html + match c::fork() { + -1 => Err(io::Errno::IO), + 0 => { + if c::fchdir(borrowed_fd(dirfd)) != 0 { + let code = match libc_errno::errno().0 { + c::EACCES => 2, + c::ENOTDIR => 3, + _ => 1, + }; + c::_exit(code); + } + + let mut flags_arg = 0; + if flags.contains(AtFlags::SYMLINK_NOFOLLOW) { + flags_arg |= FSOPT_NOFOLLOW; + } + + if setattrlist( + c_str(path), + &attrs, + as_ptr(×).cast(), + attrbuf_size, + flags_arg, + ) != 0 + { + // Translate expected `errno` codes into ad-hoc integer + // values suitable for exit statuses. + let code = match libc_errno::errno().0 { + c::EACCES => 2, + c::ENOTDIR => 3, + c::EPERM => 4, + c::EROFS => 5, + c::ELOOP => 6, + c::ENOENT => 7, + c::ENAMETOOLONG => 8, + c::EINVAL => 9, + c::ESRCH => 10, + c::ENOTSUP => 11, + _ => 1, + }; + c::_exit(code); + } + + c::_exit(0); + } + child_pid => { + let mut wstatus = 0; + let _ = ret_c_int(c::waitpid(child_pid, &mut wstatus, 0))?; + if c::WIFEXITED(wstatus) { + // Translate our ad-hoc exit statuses back to `errno` + // codes. + match c::WEXITSTATUS(wstatus) { + 0 => Ok(()), + 2 => Err(io::Errno::ACCESS), + 3 => Err(io::Errno::NOTDIR), + 4 => Err(io::Errno::PERM), + 5 => Err(io::Errno::ROFS), + 6 => Err(io::Errno::LOOP), + 7 => Err(io::Errno::NOENT), + 8 => Err(io::Errno::NAMETOOLONG), + 9 => Err(io::Errno::INVAL), + 10 => Err(io::Errno::SRCH), + 11 => Err(io::Errno::NOTSUP), + _ => Err(io::Errno::IO), + } + } else { + Err(io::Errno::IO) + } + } + } + } +} + +#[cfg(all(fix_y2038, not(apple)))] +fn utimensat_old( + dirfd: BorrowedFd<'_>, + path: &CStr, + times: &Timestamps, + flags: AtFlags, +) -> io::Result<()> { + let old_times = [ + c::timespec { + tv_sec: times + .last_access + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: times + .last_access + .tv_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + }, + c::timespec { + tv_sec: times + .last_modification + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: times + .last_modification + .tv_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + }, + ]; + unsafe { + ret(c::utimensat( + borrowed_fd(dirfd), + c_str(path), + old_times.as_ptr(), + bitflags_bits!(flags), + )) + } +} + +#[cfg(not(target_os = "wasi"))] +pub(crate) fn chmod(path: &CStr, mode: Mode) -> io::Result<()> { + unsafe { ret(c::chmod(c_str(path), mode.bits() as c::mode_t)) } +} + +#[cfg(not(any( + linux_kernel, + target_os = "espidf", + target_os = "redox", + target_os = "wasi" +)))] +pub(crate) fn chmodat( + dirfd: BorrowedFd<'_>, + path: &CStr, + mode: Mode, + flags: AtFlags, +) -> io::Result<()> { + unsafe { + ret(c::fchmodat( + borrowed_fd(dirfd), + c_str(path), + mode.bits() as c::mode_t, + bitflags_bits!(flags), + )) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn chmodat( + dirfd: BorrowedFd<'_>, + path: &CStr, + mode: Mode, + flags: AtFlags, +) -> io::Result<()> { + // Linux's `fchmodat` does not have a flags argument. + // + // Use `c::syscall` rather than `c::fchmodat` because some libc + // implementations, such as musl, add extra logic to `fchmod` to emulate + // support for `AT_SYMLINK_NOFOLLOW`, which uses `/proc` outside our + // control. + syscall! { + fn fchmodat( + base_dirfd: c::c_int, + pathname: *const ffi::c_char, + mode: c::mode_t + ) via SYS_fchmodat -> c::c_int + } + if flags == AtFlags::SYMLINK_NOFOLLOW { + return Err(io::Errno::OPNOTSUPP); + } + if !flags.is_empty() { + return Err(io::Errno::INVAL); + } + unsafe { + ret(fchmodat( + borrowed_fd(dirfd), + c_str(path), + mode.bits() as c::mode_t, + )) + } +} + +#[cfg(apple)] +pub(crate) fn fclonefileat( + srcfd: BorrowedFd<'_>, + dst_dirfd: BorrowedFd<'_>, + dst: &CStr, + flags: CloneFlags, +) -> io::Result<()> { + syscall! { + fn fclonefileat( + srcfd: BorrowedFd<'_>, + dst_dirfd: BorrowedFd<'_>, + dst: *const ffi::c_char, + flags: c::c_int + ) via SYS_fclonefileat -> c::c_int + } + + unsafe { + ret(fclonefileat( + srcfd, + dst_dirfd, + c_str(dst), + bitflags_bits!(flags), + )) + } +} + +#[cfg(not(any(target_os = "espidf", target_os = "redox", target_os = "wasi")))] +pub(crate) fn chownat( + dirfd: BorrowedFd<'_>, + path: &CStr, + owner: Option, + group: Option, + flags: AtFlags, +) -> io::Result<()> { + unsafe { + let (ow, gr) = crate::ugid::translate_fchown_args(owner, group); + ret(c::fchownat( + borrowed_fd(dirfd), + c_str(path), + ow, + gr, + bitflags_bits!(flags), + )) + } +} + +#[cfg(not(any( + apple, + target_os = "espidf", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +pub(crate) fn mknodat( + dirfd: BorrowedFd<'_>, + path: &CStr, + file_type: FileType, + mode: Mode, + dev: Dev, +) -> io::Result<()> { + unsafe { + ret(c::mknodat( + borrowed_fd(dirfd), + c_str(path), + (mode.bits() | file_type.as_raw_mode()) as c::mode_t, + dev.try_into().map_err(|_e| io::Errno::PERM)?, + )) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn copy_file_range( + fd_in: BorrowedFd<'_>, + off_in: Option<&mut u64>, + fd_out: BorrowedFd<'_>, + off_out: Option<&mut u64>, + len: usize, +) -> io::Result { + syscall! { + fn copy_file_range( + fd_in: c::c_int, + off_in: *mut c::loff_t, + fd_out: c::c_int, + off_out: *mut c::loff_t, + len: usize, + flags: c::c_uint + ) via SYS_copy_file_range -> c::ssize_t + } + + let mut off_in_val: c::loff_t = 0; + let mut off_out_val: c::loff_t = 0; + // Silently cast; we'll get `EINVAL` if the value is negative. + let off_in_ptr = if let Some(off_in) = &off_in { + off_in_val = **off_in as i64; + &mut off_in_val + } else { + null_mut() + }; + let off_out_ptr = if let Some(off_out) = &off_out { + off_out_val = **off_out as i64; + &mut off_out_val + } else { + null_mut() + }; + let copied = unsafe { + ret_usize(copy_file_range( + borrowed_fd(fd_in), + off_in_ptr, + borrowed_fd(fd_out), + off_out_ptr, + len, + 0, // no flags are defined yet + ))? + }; + if let Some(off_in) = off_in { + *off_in = off_in_val as u64; + } + if let Some(off_out) = off_out { + *off_out = off_out_val as u64; + } + Ok(copied) +} + +#[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(crate) fn fadvise( + fd: BorrowedFd<'_>, + offset: u64, + len: Option, + advice: Advice, +) -> io::Result<()> { + let offset = offset as i64; + let len = match len { + None => 0, + Some(len) => len.get() as i64, + }; + + // Our public API uses `u64` following the [Rust convention], but the + // underlying host APIs use a signed `off_t`. Converting these values may + // turn a very large value into a negative value. + // + // On FreeBSD, this could cause `posix_fadvise` to fail with + // `Errno::INVAL`. Because we don't expose the signed type in our API, we + // also avoid exposing this artifact of casting an unsigned value to the + // signed type. To do this, we use a no-op call in this case. + // + // [Rust convention]: std::io::SeekFrom::Start + #[cfg(target_os = "freebsd")] + if offset < 0 { + if len < 0 { + return Err(io::Errno::INVAL); + } + + return fadvise_noop(fd); + + #[cold] + fn fadvise_noop(fd: BorrowedFd<'_>) -> io::Result<()> { + // Use an `fcntl` to report `Errno::BADF` if needed, but otherwise + // do nothing. + fcntl_getfl(fd).map(|_| ()) + } + } + + // Similarly, on FreeBSD, if `offset + len` would overflow an `off_t` in a + // way that users using a `u64` interface wouldn't be aware of, reduce the + // length so that we only operate on the range that doesn't overflow. + #[cfg(target_os = "freebsd")] + let len = if len > 0 && offset.checked_add(len).is_none() { + i64::MAX - offset + } else { + len + }; + + let err = unsafe { c::posix_fadvise(borrowed_fd(fd), offset, len, advice as c::c_int) }; + + // `posix_fadvise` returns its error status rather than using `errno`. + if err == 0 { + Ok(()) + } else { + Err(io::Errno(err)) + } +} + +pub(crate) fn fcntl_getfl(fd: BorrowedFd<'_>) -> io::Result { + let flags = unsafe { ret_c_int(c::fcntl(borrowed_fd(fd), c::F_GETFL))? }; + Ok(OFlags::from_bits_retain(bitcast!(flags))) +} + +pub(crate) fn fcntl_setfl(fd: BorrowedFd<'_>, flags: OFlags) -> io::Result<()> { + unsafe { ret(c::fcntl(borrowed_fd(fd), c::F_SETFL, flags.bits())) } +} + +#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] +pub(crate) fn fcntl_get_seals(fd: BorrowedFd<'_>) -> io::Result { + let flags = unsafe { ret_c_int(c::fcntl(borrowed_fd(fd), c::F_GET_SEALS))? }; + Ok(SealFlags::from_bits_retain(bitcast!(flags))) +} + +#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] +pub(crate) fn fcntl_add_seals(fd: BorrowedFd<'_>, seals: SealFlags) -> io::Result<()> { + unsafe { ret(c::fcntl(borrowed_fd(fd), c::F_ADD_SEALS, seals.bits())) } +} + +#[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] +pub(crate) fn fcntl_lock(fd: BorrowedFd<'_>, operation: FlockOperation) -> io::Result<()> { + use c::{flock, F_RDLCK, F_SETLK, F_SETLKW, F_UNLCK, F_WRLCK, SEEK_SET}; + + let (cmd, l_type) = match operation { + FlockOperation::LockShared => (F_SETLKW, F_RDLCK), + FlockOperation::LockExclusive => (F_SETLKW, F_WRLCK), + FlockOperation::Unlock => (F_SETLKW, F_UNLCK), + FlockOperation::NonBlockingLockShared => (F_SETLK, F_RDLCK), + FlockOperation::NonBlockingLockExclusive => (F_SETLK, F_WRLCK), + FlockOperation::NonBlockingUnlock => (F_SETLK, F_UNLCK), + }; + + unsafe { + let mut lock: flock = core::mem::zeroed(); + lock.l_type = l_type as _; + + // When `l_len` is zero, this locks all the bytes from + // `l_whence`/`l_start` to the end of the file, even as the + // file grows dynamically. + lock.l_whence = SEEK_SET as _; + lock.l_start = 0; + lock.l_len = 0; + + ret(c::fcntl(borrowed_fd(fd), cmd, &lock)) + } +} + +pub(crate) fn seek(fd: BorrowedFd<'_>, pos: SeekFrom) -> io::Result { + let (whence, offset) = match pos { + SeekFrom::Start(pos) => { + let pos: u64 = pos; + // Silently cast; we'll get `EINVAL` if the value is negative. + (c::SEEK_SET, pos as i64) + } + SeekFrom::End(offset) => (c::SEEK_END, offset), + SeekFrom::Current(offset) => (c::SEEK_CUR, offset), + #[cfg(any(apple, freebsdlike, linux_kernel, solarish))] + SeekFrom::Data(pos) => { + let pos: u64 = pos; + // Silently cast; we'll get `EINVAL` if the value is negative. + (c::SEEK_DATA, pos as i64) + } + #[cfg(any(apple, freebsdlike, linux_kernel, solarish))] + SeekFrom::Hole(pos) => { + let pos: u64 = pos; + // Silently cast; we'll get `EINVAL` if the value is negative. + (c::SEEK_HOLE, pos as i64) + } + }; + + // ESP-IDF and Vita don't support 64-bit offsets, for example. + let offset = offset.try_into().map_err(|_| io::Errno::OVERFLOW)?; + + let offset = unsafe { ret_off_t(c::lseek(borrowed_fd(fd), offset, whence))? }; + Ok(offset as u64) +} + +pub(crate) fn tell(fd: BorrowedFd<'_>) -> io::Result { + let offset = unsafe { ret_off_t(c::lseek(borrowed_fd(fd), 0, c::SEEK_CUR))? }; + Ok(offset as u64) +} + +#[cfg(not(any(linux_kernel, target_os = "wasi")))] +pub(crate) fn fchmod(fd: BorrowedFd<'_>, mode: Mode) -> io::Result<()> { + unsafe { ret(c::fchmod(borrowed_fd(fd), bitflags_bits!(mode))) } +} + +#[cfg(linux_kernel)] +pub(crate) fn fchmod(fd: BorrowedFd<'_>, mode: Mode) -> io::Result<()> { + // Use `c::syscall` rather than `c::fchmod` because some libc + // implementations, such as musl, add extra logic to `fchmod` to emulate + // support for `O_PATH`, which uses `/proc` outside our control and + // interferes with our own use of `O_PATH`. + syscall! { + fn fchmod( + fd: c::c_int, + mode: c::mode_t + ) via SYS_fchmod -> c::c_int + } + unsafe { ret(fchmod(borrowed_fd(fd), mode.bits() as c::mode_t)) } +} + +#[cfg(not(target_os = "wasi"))] +pub(crate) fn chown(path: &CStr, owner: Option, group: Option) -> io::Result<()> { + unsafe { + let (ow, gr) = crate::ugid::translate_fchown_args(owner, group); + ret(c::chown(c_str(path), ow, gr)) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn fchown(fd: BorrowedFd<'_>, owner: Option, group: Option) -> io::Result<()> { + // Use `c::syscall` rather than `c::fchown` because some libc + // implementations, such as musl, add extra logic to `fchown` to emulate + // support for `O_PATH`, which uses `/proc` outside our control and + // interferes with our own use of `O_PATH`. + syscall! { + fn fchown( + fd: c::c_int, + owner: c::uid_t, + group: c::gid_t + ) via SYS_fchown -> c::c_int + } + unsafe { + let (ow, gr) = crate::ugid::translate_fchown_args(owner, group); + ret(fchown(borrowed_fd(fd), ow, gr)) + } +} + +#[cfg(not(any(linux_kernel, target_os = "wasi")))] +pub(crate) fn fchown(fd: BorrowedFd<'_>, owner: Option, group: Option) -> io::Result<()> { + unsafe { + let (ow, gr) = crate::ugid::translate_fchown_args(owner, group); + ret(c::fchown(borrowed_fd(fd), ow, gr)) + } +} + +#[cfg(not(any( + target_os = "espidf", + target_os = "horizon", + target_os = "solaris", + target_os = "vita", + target_os = "wasi" +)))] +pub(crate) fn flock(fd: BorrowedFd<'_>, operation: FlockOperation) -> io::Result<()> { + unsafe { ret(c::flock(borrowed_fd(fd), operation as c::c_int)) } +} + +#[cfg(linux_kernel)] +pub(crate) fn syncfs(fd: BorrowedFd<'_>) -> io::Result<()> { + // Some versions of Android libc lack a `syncfs` function. + #[cfg(target_os = "android")] + syscall! { + fn syncfs(fd: c::c_int) via SYS_syncfs -> c::c_int + } + + // `syncfs` was added to glibc in 2.20. + #[cfg(not(target_os = "android"))] + weak_or_syscall! { + fn syncfs(fd: c::c_int) via SYS_syncfs -> c::c_int + } + + unsafe { ret(syncfs(borrowed_fd(fd))) } +} + +#[cfg(not(any( + target_os = "espidf", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +pub(crate) fn sync() { + unsafe { c::sync() } +} + +pub(crate) fn fstat(fd: BorrowedFd<'_>) -> io::Result { + // 32-bit and mips64 Linux: `struct stat64` is not y2038 compatible; use + // `statx`. + // + // And, some old platforms don't support `statx`, and some fail with a + // confusing error code, so we call `crate::fs::statx` to handle that. If + // `statx` isn't available, fall back to the buggy system call. + #[cfg(all( + linux_kernel, + any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ) + ))] + { + match crate::fs::statx(fd, cstr!(""), AtFlags::EMPTY_PATH, StatxFlags::BASIC_STATS) { + Ok(x) => statx_to_stat(x), + Err(io::Errno::NOSYS) => fstat_old(fd), + Err(err) => Err(err), + } + } + + // Main version: libc is y2038 safe. Or, the platform is not y2038 safe and + // there's nothing practical we can do. + #[cfg(not(all( + linux_kernel, + any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ) + )))] + unsafe { + #[cfg(test)] + assert_eq_size!(Stat, c::stat); + + let mut stat = MaybeUninit::::uninit(); + ret(c::fstat(borrowed_fd(fd), stat.as_mut_ptr().cast()))?; + let stat = stat.assume_init(); + #[cfg(apple)] + let stat = fix_negative_stat_nsecs(stat); + Ok(stat) + } +} + +#[cfg(all( + linux_kernel, + any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ) +))] +fn fstat_old(fd: BorrowedFd<'_>) -> io::Result { + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(c::fstat(borrowed_fd(fd), result.as_mut_ptr()))?; + stat64_to_stat(result.assume_init()) + } +} + +#[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", +)))] +pub(crate) fn fstatfs(fd: BorrowedFd<'_>) -> io::Result { + let mut statfs = MaybeUninit::::uninit(); + unsafe { + ret(c::fstatfs(borrowed_fd(fd), statfs.as_mut_ptr()))?; + Ok(statfs.assume_init()) + } +} + +#[cfg(not(target_os = "wasi"))] +pub(crate) fn fstatvfs(fd: BorrowedFd<'_>) -> io::Result { + let mut statvfs = MaybeUninit::::uninit(); + unsafe { + ret(c::fstatvfs(borrowed_fd(fd), statvfs.as_mut_ptr()))?; + Ok(libc_statvfs_to_statvfs(statvfs.assume_init())) + } +} + +#[cfg(not(target_os = "wasi"))] +fn libc_statvfs_to_statvfs(from: c::statvfs) -> StatVfs { + StatVfs { + f_bsize: from.f_bsize as u64, + f_frsize: from.f_frsize as u64, + f_blocks: from.f_blocks as u64, + f_bfree: from.f_bfree as u64, + f_bavail: from.f_bavail as u64, + f_files: from.f_files as u64, + f_ffree: from.f_ffree as u64, + f_favail: from.f_ffree as u64, + #[cfg(not(target_os = "aix"))] + f_fsid: from.f_fsid as u64, + #[cfg(target_os = "aix")] + f_fsid: ((from.f_fsid.val[0] as u64) << 32) | from.f_fsid.val[1], + f_flag: StatVfsMountFlags::from_bits_retain(from.f_flag as u64), + f_namemax: from.f_namemax as u64, + } +} + +#[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "vita")))] +pub(crate) fn futimens(fd: BorrowedFd<'_>, times: &Timestamps) -> io::Result<()> { + // Old 32-bit version: libc has `futimens` but it is not y2038 safe by + // default. But there may be a `__futimens64` we can use. + #[cfg(all(fix_y2038, not(apple)))] + { + #[cfg(target_env = "gnu")] + if let Some(libc_futimens) = __futimens64.get() { + let libc_times: [LibcTimespec; 2] = + [times.last_access.into(), times.last_modification.into()]; + + unsafe { + return ret(libc_futimens(borrowed_fd(fd), libc_times.as_ptr())); + } + } + + futimens_old(fd, times) + } + + // Main version: libc is y2038 safe and has `futimens`. Or, the platform + // is not y2038 safe and there's nothing practical we can do. + #[cfg(not(any(apple, fix_y2038)))] + unsafe { + use crate::utils::as_ptr; + + ret(c::futimens(borrowed_fd(fd), as_ptr(times).cast())) + } + + // Apple version: `futimens` was introduced in macOS 10.13. + #[cfg(apple)] + unsafe { + use crate::utils::as_ptr; + + // ABI details. + weak! { + fn futimens(c::c_int, *const c::timespec) -> c::c_int + } + extern "C" { + fn fsetattrlist( + fd: c::c_int, + attr_list: *const Attrlist, + attr_buf: *const c::c_void, + attr_buf_size: c::size_t, + options: c::c_ulong, + ) -> c::c_int; + } + + // If we have `futimens`, use it. + if let Some(have_futimens) = futimens.get() { + return ret(have_futimens(borrowed_fd(fd), as_ptr(times).cast())); + } + + // Otherwise use `fsetattrlist`. + let (attrbuf_size, times, attrs) = times_to_attrlist(times)?; + + ret(fsetattrlist( + borrowed_fd(fd), + &attrs, + as_ptr(×).cast(), + attrbuf_size, + 0, + )) + } +} + +#[cfg(all(fix_y2038, not(apple)))] +fn futimens_old(fd: BorrowedFd<'_>, times: &Timestamps) -> io::Result<()> { + let old_times = [ + c::timespec { + tv_sec: times + .last_access + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: times + .last_access + .tv_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + }, + c::timespec { + tv_sec: times + .last_modification + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: times + .last_modification + .tv_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + }, + ]; + + unsafe { ret(c::futimens(borrowed_fd(fd), old_times.as_ptr())) } +} + +#[cfg(not(any( + apple, + netbsdlike, + target_os = "dragonfly", + target_os = "espidf", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "vita", +)))] +pub(crate) fn fallocate( + fd: BorrowedFd<'_>, + mode: FallocateFlags, + offset: u64, + len: u64, +) -> io::Result<()> { + // Silently cast to `i64`; we'll get `EINVAL` if the value is negative. + let offset = offset as i64; + let len = len as i64; + + // ESP-IDF and Vita don't support 64-bit offsets, for example. + let offset = offset.try_into().map_err(|_| io::Errno::OVERFLOW)?; + let len = len.try_into().map_err(|_| io::Errno::OVERFLOW)?; + + #[cfg(any(linux_kernel, target_os = "fuchsia"))] + unsafe { + ret(c::fallocate( + borrowed_fd(fd), + bitflags_bits!(mode), + offset, + len, + )) + } + + #[cfg(not(any(linux_kernel, target_os = "fuchsia")))] + { + assert!(mode.is_empty()); + let err = unsafe { c::posix_fallocate(borrowed_fd(fd), offset, len) }; + + // `posix_fallocate` returns its error status rather than using + // `errno`. + if err == 0 { + Ok(()) + } else { + Err(io::Errno(err)) + } + } +} + +#[cfg(apple)] +pub(crate) fn fallocate( + fd: BorrowedFd<'_>, + mode: FallocateFlags, + offset: u64, + len: u64, +) -> io::Result<()> { + let offset: i64 = offset.try_into().map_err(|_e| io::Errno::INVAL)?; + let len = len as i64; + + assert!(mode.is_empty()); + + let new_len = offset.checked_add(len).ok_or(io::Errno::FBIG)?; + let mut store = c::fstore_t { + fst_flags: c::F_ALLOCATECONTIG, + fst_posmode: c::F_PEOFPOSMODE, + fst_offset: 0, + fst_length: new_len, + fst_bytesalloc: 0, + }; + unsafe { + if c::fcntl(borrowed_fd(fd), c::F_PREALLOCATE, &store) == -1 { + // Unable to allocate contiguous disk space; attempt to allocate + // non-contiguously. + store.fst_flags = c::F_ALLOCATEALL; + let _ = ret_c_int(c::fcntl(borrowed_fd(fd), c::F_PREALLOCATE, &store))?; + } + ret(c::ftruncate(borrowed_fd(fd), new_len)) + } +} + +pub(crate) fn fsync(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { ret(c::fsync(borrowed_fd(fd))) } +} + +#[cfg(not(any( + apple, + target_os = "dragonfly", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "redox", + target_os = "vita", +)))] +pub(crate) fn fdatasync(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { ret(c::fdatasync(borrowed_fd(fd))) } +} + +pub(crate) fn ftruncate(fd: BorrowedFd<'_>, length: u64) -> io::Result<()> { + let length = length.try_into().map_err(|_overflow_err| io::Errno::FBIG)?; + unsafe { ret(c::ftruncate(borrowed_fd(fd), length)) } +} + +#[cfg(any(linux_kernel, target_os = "freebsd"))] +pub(crate) fn memfd_create(name: &CStr, flags: MemfdFlags) -> io::Result { + #[cfg(target_os = "freebsd")] + weakcall! { + fn memfd_create( + name: *const ffi::c_char, + flags: c::c_uint + ) -> c::c_int + } + + #[cfg(linux_kernel)] + weak_or_syscall! { + fn memfd_create( + name: *const ffi::c_char, + flags: c::c_uint + ) via SYS_memfd_create -> c::c_int + } + + unsafe { ret_owned_fd(memfd_create(c_str(name), bitflags_bits!(flags))) } +} + +#[cfg(linux_raw_dep)] +pub(crate) fn openat2( + dirfd: BorrowedFd<'_>, + path: &CStr, + oflags: OFlags, + mode: Mode, + resolve: ResolveFlags, +) -> io::Result { + use linux_raw_sys::general::open_how; + + syscall! { + fn openat2( + base_dirfd: c::c_int, + pathname: *const ffi::c_char, + how: *mut open_how, + size: usize + ) via SYS_OPENAT2 -> c::c_int + } + + let oflags = oflags.bits(); + let mut open_how = open_how { + flags: u64::from(oflags), + mode: u64::from(mode.bits()), + resolve: resolve.bits(), + }; + + unsafe { + ret_owned_fd(openat2( + borrowed_fd(dirfd), + c_str(path), + &mut open_how, + size_of::(), + )) + } +} +#[cfg(all(linux_kernel, target_pointer_width = "32"))] +const SYS_OPENAT2: i32 = 437; +#[cfg(all(linux_kernel, target_pointer_width = "64"))] +const SYS_OPENAT2: i64 = 437; + +#[cfg(target_os = "linux")] +pub(crate) fn sendfile( + out_fd: BorrowedFd<'_>, + in_fd: BorrowedFd<'_>, + offset: Option<&mut u64>, + count: usize, +) -> io::Result { + unsafe { + ret_usize(c::sendfile64( + borrowed_fd(out_fd), + borrowed_fd(in_fd), + offset.map_or(null_mut(), crate::utils::as_mut_ptr).cast(), + count, + )) + } +} + +/// Convert from a Linux `statx` value to rustix's `Stat`. +#[cfg(all(linux_kernel, target_pointer_width = "32"))] +fn statx_to_stat(x: crate::fs::Statx) -> io::Result { + Ok(Stat { + st_dev: crate::fs::makedev(x.stx_dev_major, x.stx_dev_minor).into(), + st_mode: x.stx_mode.into(), + st_nlink: x.stx_nlink.into(), + st_uid: x.stx_uid.into(), + st_gid: x.stx_gid.into(), + st_rdev: crate::fs::makedev(x.stx_rdev_major, x.stx_rdev_minor).into(), + st_size: x.stx_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_blksize: x.stx_blksize.into(), + st_blocks: x.stx_blocks.into(), + st_atime: bitcast!(i64::from(x.stx_atime.tv_sec)), + st_atime_nsec: x.stx_atime.tv_nsec as _, + st_mtime: bitcast!(i64::from(x.stx_mtime.tv_sec)), + st_mtime_nsec: x.stx_mtime.tv_nsec as _, + st_ctime: bitcast!(i64::from(x.stx_ctime.tv_sec)), + st_ctime_nsec: x.stx_ctime.tv_nsec as _, + st_ino: x.stx_ino.into(), + }) +} + +/// Convert from a Linux `statx` value to rustix's `Stat`. +/// +/// mips64' `struct stat64` in libc has private fields, and `stx_blocks` +#[cfg(all(linux_kernel, any(target_arch = "mips64", target_arch = "mips64r6")))] +fn statx_to_stat(x: crate::fs::Statx) -> io::Result { + let mut result: Stat = unsafe { core::mem::zeroed() }; + + result.st_dev = crate::fs::makedev(x.stx_dev_major, x.stx_dev_minor); + result.st_mode = x.stx_mode.into(); + result.st_nlink = x.stx_nlink.into(); + result.st_uid = x.stx_uid.into(); + result.st_gid = x.stx_gid.into(); + result.st_rdev = crate::fs::makedev(x.stx_rdev_major, x.stx_rdev_minor); + result.st_size = x.stx_size.try_into().map_err(|_| io::Errno::OVERFLOW)?; + result.st_blksize = x.stx_blksize.into(); + result.st_blocks = x.stx_blocks.try_into().map_err(|_e| io::Errno::OVERFLOW)?; + result.st_atime = bitcast!(i64::from(x.stx_atime.tv_sec)); + result.st_atime_nsec = x.stx_atime.tv_nsec as _; + result.st_mtime = bitcast!(i64::from(x.stx_mtime.tv_sec)); + result.st_mtime_nsec = x.stx_mtime.tv_nsec as _; + result.st_ctime = bitcast!(i64::from(x.stx_ctime.tv_sec)); + result.st_ctime_nsec = x.stx_ctime.tv_nsec as _; + result.st_ino = x.stx_ino.into(); + + Ok(result) +} + +/// Convert from a Linux `stat64` value to rustix's `Stat`. +#[cfg(all(linux_kernel, target_pointer_width = "32"))] +fn stat64_to_stat(s64: c::stat64) -> io::Result { + Ok(Stat { + st_dev: s64.st_dev.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_mode: s64.st_mode.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_nlink: s64.st_nlink.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_uid: s64.st_uid.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_gid: s64.st_gid.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_rdev: s64.st_rdev.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_size: s64.st_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_blksize: s64.st_blksize.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_blocks: s64.st_blocks.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_atime: i64::from(s64.st_atime), + st_atime_nsec: s64 + .st_atime_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + st_mtime: i64::from(s64.st_mtime), + st_mtime_nsec: s64 + .st_mtime_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + st_ctime: i64::from(s64.st_ctime), + st_ctime_nsec: s64 + .st_ctime_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + st_ino: s64.st_ino.try_into().map_err(|_| io::Errno::OVERFLOW)?, + }) +} + +/// Convert from a Linux `stat64` value to rustix's `Stat`. +/// +/// mips64' `struct stat64` in libc has private fields, and `st_blocks` has +/// type `i64`. +#[cfg(all(linux_kernel, any(target_arch = "mips64", target_arch = "mips64r6")))] +fn stat64_to_stat(s64: c::stat64) -> io::Result { + let mut result: Stat = unsafe { core::mem::zeroed() }; + + result.st_dev = s64.st_dev.try_into().map_err(|_| io::Errno::OVERFLOW)?; + result.st_mode = s64.st_mode.try_into().map_err(|_| io::Errno::OVERFLOW)?; + result.st_nlink = s64.st_nlink.try_into().map_err(|_| io::Errno::OVERFLOW)?; + result.st_uid = s64.st_uid.try_into().map_err(|_| io::Errno::OVERFLOW)?; + result.st_gid = s64.st_gid.try_into().map_err(|_| io::Errno::OVERFLOW)?; + result.st_rdev = s64.st_rdev.try_into().map_err(|_| io::Errno::OVERFLOW)?; + result.st_size = s64.st_size.try_into().map_err(|_| io::Errno::OVERFLOW)?; + result.st_blksize = s64.st_blksize.try_into().map_err(|_| io::Errno::OVERFLOW)?; + result.st_blocks = s64.st_blocks.try_into().map_err(|_| io::Errno::OVERFLOW)?; + result.st_atime = i64::from(s64.st_atime) as _; + result.st_atime_nsec = s64 + .st_atime_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?; + result.st_mtime = i64::from(s64.st_mtime) as _; + result.st_mtime_nsec = s64 + .st_mtime_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?; + result.st_ctime = i64::from(s64.st_ctime) as _; + result.st_ctime_nsec = s64 + .st_ctime_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?; + result.st_ino = s64.st_ino.try_into().map_err(|_| io::Errno::OVERFLOW)?; + + Ok(result) +} + +#[cfg(linux_kernel)] +#[allow(non_upper_case_globals)] +mod sys { + use super::{c, ffi, BorrowedFd, Statx}; + + weak_or_syscall! { + pub(super) fn statx( + dirfd_: BorrowedFd<'_>, + path: *const ffi::c_char, + flags: c::c_int, + mask: c::c_uint, + buf: *mut Statx + ) via SYS_statx -> c::c_int + } +} + +#[cfg(linux_kernel)] +#[allow(non_upper_case_globals)] +pub(crate) fn statx( + dirfd: BorrowedFd<'_>, + path: &CStr, + flags: AtFlags, + mask: StatxFlags, +) -> io::Result { + // If a future Linux kernel adds more fields to `struct statx` and users + // passing flags unknown to rustix in `StatxFlags`, we could end up + // writing outside of the buffer. To prevent this possibility, we mask off + // any flags that we don't know about. + // + // This includes `STATX__RESERVED`, which has a value that we know, but + // which could take on arbitrary new meaning in the future. Linux currently + // rejects this flag with `EINVAL`, so we do the same. + // + // This doesn't rely on `STATX_ALL` because [it's deprecated] and already + // doesn't represent all the known flags. + // + // [it's deprecated]: https://patchwork.kernel.org/project/linux-fsdevel/patch/20200505095915.11275-7-mszeredi@redhat.com/ + #[cfg(any(not(linux_raw_dep), not(target_env = "musl")))] + const STATX__RESERVED: u32 = c::STATX__RESERVED as u32; + #[cfg(target_env = "musl")] + const STATX__RESERVED: u32 = linux_raw_sys::general::STATX__RESERVED; + if (mask.bits() & STATX__RESERVED) == STATX__RESERVED { + return Err(io::Errno::INVAL); + } + let mask = mask & StatxFlags::all(); + + let mut statx_buf = MaybeUninit::::uninit(); + unsafe { + ret(sys::statx( + dirfd, + c_str(path), + bitflags_bits!(flags), + mask.bits(), + statx_buf.as_mut_ptr(), + ))?; + Ok(statx_buf.assume_init()) + } +} + +#[cfg(all(linux_kernel, not(feature = "linux_4_11")))] +#[inline] +pub(crate) fn is_statx_available() -> bool { + unsafe { + // Call `statx` with null pointers so that if it fails for any reason + // other than `EFAULT`, we know it's not supported. + matches!( + ret(sys::statx(CWD, null(), 0, 0, null_mut())), + Err(io::Errno::FAULT) + ) + } +} + +#[cfg(apple)] +pub(crate) unsafe fn fcopyfile( + from: BorrowedFd<'_>, + to: BorrowedFd<'_>, + state: copyfile_state_t, + flags: CopyfileFlags, +) -> io::Result<()> { + extern "C" { + fn fcopyfile( + from: c::c_int, + to: c::c_int, + state: copyfile_state_t, + flags: c::c_uint, + ) -> c::c_int; + } + + nonnegative_ret(fcopyfile( + borrowed_fd(from), + borrowed_fd(to), + state, + bitflags_bits!(flags), + )) +} + +#[cfg(apple)] +pub(crate) fn copyfile_state_alloc() -> io::Result { + extern "C" { + fn copyfile_state_alloc() -> copyfile_state_t; + } + + let result = unsafe { copyfile_state_alloc() }; + if result.0.is_null() { + Err(io::Errno::last_os_error()) + } else { + Ok(result) + } +} + +#[cfg(apple)] +pub(crate) unsafe fn copyfile_state_free(state: copyfile_state_t) -> io::Result<()> { + extern "C" { + fn copyfile_state_free(state: copyfile_state_t) -> c::c_int; + } + + nonnegative_ret(copyfile_state_free(state)) +} + +#[cfg(apple)] +const COPYFILE_STATE_COPIED: u32 = 8; + +#[cfg(apple)] +pub(crate) unsafe fn copyfile_state_get_copied(state: copyfile_state_t) -> io::Result { + let mut copied = MaybeUninit::::uninit(); + copyfile_state_get(state, COPYFILE_STATE_COPIED, copied.as_mut_ptr().cast())?; + Ok(copied.assume_init()) +} + +#[cfg(apple)] +pub(crate) unsafe fn copyfile_state_get( + state: copyfile_state_t, + flag: u32, + dst: *mut c::c_void, +) -> io::Result<()> { + extern "C" { + fn copyfile_state_get(state: copyfile_state_t, flag: u32, dst: *mut c::c_void) -> c::c_int; + } + + nonnegative_ret(copyfile_state_get(state, flag, dst)) +} + +#[cfg(all(apple, feature = "alloc"))] +pub(crate) fn getpath(fd: BorrowedFd<'_>) -> io::Result { + // The use of `PATH_MAX` is generally not encouraged, but it + // is inevitable in this case because macOS defines `fcntl` with + // `F_GETPATH` in terms of `MAXPATHLEN`, and there are no + // alternatives. If a better method is invented, it should be used + // instead. + let mut buf = vec![0; c::PATH_MAX as usize]; + + // From the [macOS `fcntl` manual page]: + // `F_GETPATH` - Get the path of the file descriptor `Fildes`. The argument + // must be a buffer of size `MAXPATHLEN` or greater. + // + // [macOS `fcntl` manual page]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html + unsafe { + ret(c::fcntl(borrowed_fd(fd), c::F_GETPATH, buf.as_mut_ptr()))?; + } + + let l = buf.iter().position(|&c| c == 0).unwrap(); + buf.truncate(l); + buf.shrink_to_fit(); + + Ok(CString::new(buf).unwrap()) +} + +#[cfg(apple)] +pub(crate) fn fcntl_rdadvise(fd: BorrowedFd<'_>, offset: u64, len: u64) -> io::Result<()> { + // From the [macOS `fcntl` manual page]: + // `F_RDADVISE` - Issue an advisory read async with no copy to user. + // + // The `F_RDADVISE` command operates on the following structure which holds + // information passed from the user to the system: + // + // ```c + // struct radvisory { + // off_t ra_offset; /* offset into the file */ + // int ra_count; /* size of the read */ + // }; + // ``` + // + // [macOS `fcntl` manual page]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html + let ra_offset = match offset.try_into() { + Ok(len) => len, + // If this conversion fails, the user is providing an offset outside + // any possible file extent, so just ignore it. + Err(_) => return Ok(()), + }; + let ra_count = match len.try_into() { + Ok(len) => len, + // If this conversion fails, the user is providing a dubiously large + // hint which is unlikely to improve performance. + Err(_) => return Ok(()), + }; + unsafe { + let radvisory = c::radvisory { + ra_offset, + ra_count, + }; + ret(c::fcntl(borrowed_fd(fd), c::F_RDADVISE, &radvisory)) + } +} + +#[cfg(apple)] +pub(crate) fn fcntl_fullfsync(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { ret(c::fcntl(borrowed_fd(fd), c::F_FULLFSYNC)) } +} + +#[cfg(apple)] +pub(crate) fn fcntl_nocache(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + unsafe { ret(c::fcntl(borrowed_fd(fd), c::F_NOCACHE, value as c::c_int)) } +} + +#[cfg(apple)] +pub(crate) fn fcntl_global_nocache(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + unsafe { + ret(c::fcntl( + borrowed_fd(fd), + c::F_GLOBAL_NOCACHE, + value as c::c_int, + )) + } +} + +/// Convert `times` from a `futimens`/`utimensat` argument into `setattrlist` +/// arguments. +#[cfg(apple)] +fn times_to_attrlist(times: &Timestamps) -> io::Result<(c::size_t, [c::timespec; 2], Attrlist)> { + // ABI details. + const ATTR_CMN_MODTIME: u32 = 0x0000_0400; + const ATTR_CMN_ACCTIME: u32 = 0x0000_1000; + const ATTR_BIT_MAP_COUNT: u16 = 5; + + let mut times = times.clone(); + + // If we have any `UTIME_NOW` elements, replace them with the current time. + if times.last_access.tv_nsec == c::UTIME_NOW.into() + || times.last_modification.tv_nsec == c::UTIME_NOW.into() + { + let now = { + let mut tv = c::timeval { + tv_sec: 0, + tv_usec: 0, + }; + unsafe { + let r = c::gettimeofday(&mut tv, null_mut()); + assert_eq!(r, 0); + } + c::timespec { + tv_sec: tv.tv_sec, + tv_nsec: (tv.tv_usec * 1000) as _, + } + }; + if times.last_access.tv_nsec == c::UTIME_NOW.into() { + times.last_access = crate::timespec::Timespec { + tv_sec: now.tv_sec.into(), + tv_nsec: now.tv_nsec as _, + }; + } + if times.last_modification.tv_nsec == c::UTIME_NOW.into() { + times.last_modification = crate::timespec::Timespec { + tv_sec: now.tv_sec.into(), + tv_nsec: now.tv_nsec as _, + }; + } + } + + // Pack the return values following the rules for [`getattrlist`]. + // + // [`getattrlist`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getattrlist.2.html + let mut times_size = 0; + let mut attrs = Attrlist { + bitmapcount: ATTR_BIT_MAP_COUNT, + reserved: 0, + commonattr: 0, + volattr: 0, + dirattr: 0, + fileattr: 0, + forkattr: 0, + }; + let mut return_times = [c::timespec { + tv_sec: 0, + tv_nsec: 0, + }; 2]; + let mut times_index = 0; + if times.last_modification.tv_nsec != c::UTIME_OMIT.into() { + attrs.commonattr |= ATTR_CMN_MODTIME; + return_times[times_index] = c::timespec { + tv_sec: times + .last_modification + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: times.last_modification.tv_nsec as _, + }; + times_index += 1; + times_size += size_of::(); + } + if times.last_access.tv_nsec != c::UTIME_OMIT.into() { + attrs.commonattr |= ATTR_CMN_ACCTIME; + return_times[times_index] = c::timespec { + tv_sec: times + .last_access + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: times.last_access.tv_nsec as _, + }; + times_size += size_of::(); + } + + Ok((times_size, return_times, attrs)) +} + +/// Support type for `Attrlist`. +#[cfg(apple)] +type Attrgroup = u32; + +/// Attribute list for use with [`setattrlist`]. +#[cfg(apple)] +#[repr(C)] +struct Attrlist { + bitmapcount: u16, + reserved: u16, + commonattr: Attrgroup, + volattr: Attrgroup, + dirattr: Attrgroup, + fileattr: Attrgroup, + forkattr: Attrgroup, +} + +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +pub(crate) unsafe fn getxattr( + path: &CStr, + name: &CStr, + value: (*mut u8, usize), +) -> io::Result { + #[cfg(not(apple))] + { + ret_usize(c::getxattr( + path.as_ptr(), + name.as_ptr(), + value.0.cast::(), + value.1, + )) + } + + #[cfg(apple)] + { + // Passing an empty to slice to `getxattr` leads to `ERANGE` on macOS. + // Pass null instead. + let ptr = if value.1 == 0 { + core::ptr::null_mut() + } else { + value.0.cast::() + }; + ret_usize(c::getxattr( + path.as_ptr(), + name.as_ptr(), + ptr, + value.1, + 0, + 0, + )) + } +} + +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +pub(crate) unsafe fn lgetxattr( + path: &CStr, + name: &CStr, + value: (*mut u8, usize), +) -> io::Result { + #[cfg(not(apple))] + { + ret_usize(c::lgetxattr( + path.as_ptr(), + name.as_ptr(), + value.0.cast::(), + value.1, + )) + } + + #[cfg(apple)] + { + // Passing an empty to slice to `getxattr` leads to `ERANGE` on macOS. + // Pass null instead. + let ptr = if value.1 == 0 { + core::ptr::null_mut() + } else { + value.0.cast::() + }; + + ret_usize(c::getxattr( + path.as_ptr(), + name.as_ptr(), + ptr, + value.1, + 0, + c::XATTR_NOFOLLOW, + )) + } +} + +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +pub(crate) unsafe fn fgetxattr( + fd: BorrowedFd<'_>, + name: &CStr, + value: (*mut u8, usize), +) -> io::Result { + #[cfg(not(apple))] + { + ret_usize(c::fgetxattr( + borrowed_fd(fd), + name.as_ptr(), + value.0.cast::(), + value.1, + )) + } + + #[cfg(apple)] + { + // Passing an empty to slice to `getxattr` leads to `ERANGE` on macOS. + // Pass null instead. + let ptr = if value.1 == 0 { + core::ptr::null_mut() + } else { + value.0.cast::() + }; + ret_usize(c::fgetxattr( + borrowed_fd(fd), + name.as_ptr(), + ptr, + value.1, + 0, + 0, + )) + } +} + +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +pub(crate) fn setxattr( + path: &CStr, + name: &CStr, + value: &[u8], + flags: XattrFlags, +) -> io::Result<()> { + #[cfg(not(apple))] + unsafe { + ret(c::setxattr( + path.as_ptr(), + name.as_ptr(), + value.as_ptr().cast::(), + value.len(), + flags.bits() as i32, + )) + } + + #[cfg(apple)] + unsafe { + ret(c::setxattr( + path.as_ptr(), + name.as_ptr(), + value.as_ptr().cast::(), + value.len(), + 0, + flags.bits() as i32, + )) + } +} + +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +pub(crate) fn lsetxattr( + path: &CStr, + name: &CStr, + value: &[u8], + flags: XattrFlags, +) -> io::Result<()> { + #[cfg(not(apple))] + unsafe { + ret(c::lsetxattr( + path.as_ptr(), + name.as_ptr(), + value.as_ptr().cast::(), + value.len(), + flags.bits() as i32, + )) + } + + #[cfg(apple)] + unsafe { + ret(c::setxattr( + path.as_ptr(), + name.as_ptr(), + value.as_ptr().cast::(), + value.len(), + 0, + flags.bits() as i32 | c::XATTR_NOFOLLOW, + )) + } +} + +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +pub(crate) fn fsetxattr( + fd: BorrowedFd<'_>, + name: &CStr, + value: &[u8], + flags: XattrFlags, +) -> io::Result<()> { + #[cfg(not(apple))] + unsafe { + ret(c::fsetxattr( + borrowed_fd(fd), + name.as_ptr(), + value.as_ptr().cast::(), + value.len(), + flags.bits() as i32, + )) + } + + #[cfg(apple)] + unsafe { + ret(c::fsetxattr( + borrowed_fd(fd), + name.as_ptr(), + value.as_ptr().cast::(), + value.len(), + 0, + flags.bits() as i32, + )) + } +} + +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +pub(crate) unsafe fn listxattr(path: &CStr, list: (*mut u8, usize)) -> io::Result { + #[cfg(not(apple))] + { + ret_usize(c::listxattr( + path.as_ptr(), + list.0.cast::(), + list.1, + )) + } + + #[cfg(apple)] + { + ret_usize(c::listxattr( + path.as_ptr(), + list.0.cast::(), + list.1, + 0, + )) + } +} + +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +pub(crate) unsafe fn llistxattr(path: &CStr, list: (*mut u8, usize)) -> io::Result { + #[cfg(not(apple))] + { + ret_usize(c::llistxattr( + path.as_ptr(), + list.0.cast::(), + list.1, + )) + } + + #[cfg(apple)] + { + ret_usize(c::listxattr( + path.as_ptr(), + list.0.cast::(), + list.1, + c::XATTR_NOFOLLOW, + )) + } +} + +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +pub(crate) unsafe fn flistxattr(fd: BorrowedFd<'_>, list: (*mut u8, usize)) -> io::Result { + let fd = borrowed_fd(fd); + + #[cfg(not(apple))] + { + ret_usize(c::flistxattr(fd, list.0.cast::(), list.1)) + } + + #[cfg(apple)] + { + ret_usize(c::flistxattr(fd, list.0.cast::(), list.1, 0)) + } +} + +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +pub(crate) fn removexattr(path: &CStr, name: &CStr) -> io::Result<()> { + #[cfg(not(apple))] + unsafe { + ret(c::removexattr(path.as_ptr(), name.as_ptr())) + } + + #[cfg(apple)] + unsafe { + ret(c::removexattr(path.as_ptr(), name.as_ptr(), 0)) + } +} + +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +pub(crate) fn lremovexattr(path: &CStr, name: &CStr) -> io::Result<()> { + #[cfg(not(apple))] + unsafe { + ret(c::lremovexattr(path.as_ptr(), name.as_ptr())) + } + + #[cfg(apple)] + unsafe { + ret(c::removexattr( + path.as_ptr(), + name.as_ptr(), + c::XATTR_NOFOLLOW, + )) + } +} + +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +pub(crate) fn fremovexattr(fd: BorrowedFd<'_>, name: &CStr) -> io::Result<()> { + let fd = borrowed_fd(fd); + + #[cfg(not(apple))] + unsafe { + ret(c::fremovexattr(fd, name.as_ptr())) + } + + #[cfg(apple)] + unsafe { + ret(c::fremovexattr(fd, name.as_ptr(), 0)) + } +} + +/// See [`crate::timespec::fix_negative_nsec`] for details. +#[cfg(apple)] +fn fix_negative_stat_nsecs(mut stat: Stat) -> Stat { + (stat.st_atime, stat.st_atime_nsec) = + crate::timespec::fix_negative_nsecs(stat.st_atime, stat.st_atime_nsec); + (stat.st_mtime, stat.st_mtime_nsec) = + crate::timespec::fix_negative_nsecs(stat.st_mtime, stat.st_mtime_nsec); + (stat.st_ctime, stat.st_ctime_nsec) = + crate::timespec::fix_negative_nsecs(stat.st_ctime, stat.st_ctime_nsec); + stat +} + +#[inline] +#[cfg(linux_kernel)] +pub(crate) fn inotify_init1(flags: super::inotify::CreateFlags) -> io::Result { + // SAFETY: `inotify_init1` has no safety preconditions. + unsafe { ret_owned_fd(c::inotify_init1(bitflags_bits!(flags))) } +} + +#[inline] +#[cfg(linux_kernel)] +pub(crate) fn inotify_add_watch( + inot: BorrowedFd<'_>, + path: &CStr, + flags: super::inotify::WatchFlags, +) -> io::Result { + // SAFETY: The fd and path we are passing is guaranteed valid by the + // type system. + unsafe { + ret_c_int(c::inotify_add_watch( + borrowed_fd(inot), + c_str(path), + flags.bits(), + )) + } +} + +#[inline] +#[cfg(linux_kernel)] +pub(crate) fn inotify_rm_watch(inot: BorrowedFd<'_>, wd: i32) -> io::Result<()> { + // Android's `inotify_rm_watch` takes `u32` despite that + // `inotify_add_watch` expects a `i32`. + #[cfg(target_os = "android")] + let wd = wd as u32; + // SAFETY: The fd is valid and closing an arbitrary wd is valid. + unsafe { ret(c::inotify_rm_watch(borrowed_fd(inot), wd)) } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_sizes() { + #[cfg(linux_kernel)] + assert_eq_size!(c::loff_t, u64); + + // Assert that `Timestamps` has the expected layout. If we're not fixing + // y2038, libc's type should match ours. If we are, it's smaller. + #[cfg(not(fix_y2038))] + assert_eq_size!([c::timespec; 2], Timestamps); + #[cfg(fix_y2038)] + assert!(core::mem::size_of::<[c::timespec; 2]>() < core::mem::size_of::()); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..d570c5b28036a297643318e4454bf5ef8139d6fa --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/fs/types.rs @@ -0,0 +1,1153 @@ +use crate::backend::c; +use crate::ffi; +use bitflags::bitflags; + +#[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "vita")))] +bitflags! { + /// `*_OK` constants for use with [`accessat`]. + /// + /// [`accessat`]: fn.accessat.html + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct Access: ffi::c_int { + /// `R_OK` + const READ_OK = c::R_OK; + + /// `W_OK` + const WRITE_OK = c::W_OK; + + /// `X_OK` + const EXEC_OK = c::X_OK; + + /// `F_OK` + const EXISTS = c::F_OK; + + /// + const _ = !0; + } +} + +#[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "redox")))] +bitflags! { + /// `AT_*` constants for use with [`openat`], [`statat`], and other `*at` + /// functions. + /// + /// [`openat`]: crate::fs::openat + /// [`statat`]: crate::fs::statat + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct AtFlags: u32 { + /// `AT_SYMLINK_NOFOLLOW` + const SYMLINK_NOFOLLOW = bitcast!(c::AT_SYMLINK_NOFOLLOW); + + /// `AT_EACCESS` + #[cfg(not(target_os = "android"))] + const EACCESS = bitcast!(c::AT_EACCESS); + + /// `AT_REMOVEDIR` + const REMOVEDIR = bitcast!(c::AT_REMOVEDIR); + + /// `AT_SYMLINK_FOLLOW` + const SYMLINK_FOLLOW = bitcast!(c::AT_SYMLINK_FOLLOW); + + /// `AT_NO_AUTOMOUNT` + #[cfg(any(linux_like, target_os = "fuchsia"))] + const NO_AUTOMOUNT = bitcast!(c::AT_NO_AUTOMOUNT); + + /// `AT_EMPTY_PATH` + #[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + ))] + const EMPTY_PATH = bitcast!(c::AT_EMPTY_PATH); + + /// `AT_RESOLVE_BENEATH` + #[cfg(target_os = "freebsd")] + const RESOLVE_BENEATH = bitcast!(c::AT_RESOLVE_BENEATH); + + /// `AT_STATX_SYNC_AS_STAT` + #[cfg(all(target_os = "linux", target_env = "gnu"))] + const STATX_SYNC_AS_STAT = bitcast!(c::AT_STATX_SYNC_AS_STAT); + + /// `AT_STATX_FORCE_SYNC` + #[cfg(all(target_os = "linux", target_env = "gnu"))] + const STATX_FORCE_SYNC = bitcast!(c::AT_STATX_FORCE_SYNC); + + /// `AT_STATX_DONT_SYNC` + #[cfg(all(target_os = "linux", target_env = "gnu"))] + const STATX_DONT_SYNC = bitcast!(c::AT_STATX_DONT_SYNC); + + /// + const _ = !0; + } +} + +#[cfg(target_os = "horizon")] +bitflags! { + /// `AT_*` constants for use with [`openat`], [`statat`], and other `*at` + /// functions. + /// + /// [`openat`]: crate::fs::openat + /// [`statat`]: crate::fs::statat + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct AtFlags: u32 { + /// + const _ = !0; + } +} + +#[cfg(not(target_os = "horizon"))] +bitflags! { + /// `S_I*` constants for use with [`openat`], [`chmodat`], and [`fchmod`]. + /// + /// [`openat`]: crate::fs::openat + /// [`chmodat`]: crate::fs::chmodat + /// [`fchmod`]: crate::fs::fchmod + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct Mode: RawMode { + /// `S_IRWXU` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const RWXU = c::S_IRWXU as RawMode; + + /// `S_IRUSR` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const RUSR = c::S_IRUSR as RawMode; + + /// `S_IWUSR` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const WUSR = c::S_IWUSR as RawMode; + + /// `S_IXUSR` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const XUSR = c::S_IXUSR as RawMode; + + /// `S_IRWXG` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const RWXG = c::S_IRWXG as RawMode; + + /// `S_IRGRP` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const RGRP = c::S_IRGRP as RawMode; + + /// `S_IWGRP` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const WGRP = c::S_IWGRP as RawMode; + + /// `S_IXGRP` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const XGRP = c::S_IXGRP as RawMode; + + /// `S_IRWXO` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const RWXO = c::S_IRWXO as RawMode; + + /// `S_IROTH` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const ROTH = c::S_IROTH as RawMode; + + /// `S_IWOTH` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const WOTH = c::S_IWOTH as RawMode; + + /// `S_IXOTH` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const XOTH = c::S_IXOTH as RawMode; + + /// `S_ISUID` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const SUID = c::S_ISUID as RawMode; + + /// `S_ISGID` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const SGID = c::S_ISGID as RawMode; + + /// `S_ISVTX` + #[cfg(not(any(target_os = "espidf", target_os = "vita")))] + const SVTX = c::S_ISVTX as RawMode; + + /// + const _ = !0; + } +} + +#[cfg(target_os = "horizon")] +bitflags! { + /// `S_I*` constants for use with [`openat`], [`chmodat`], and [`fchmod`]. + /// + /// [`openat`]: crate::fs::openat + /// [`chmodat`]: crate::fs::chmodat + /// [`fchmod`]: crate::fs::fchmod + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct Mode: RawMode { + /// + const _ = !0; + } +} + +#[cfg(not(target_os = "espidf"))] +impl Mode { + /// Construct a `Mode` from the mode bits of the `st_mode` field of a + /// `Mode`. + #[inline] + pub const fn from_raw_mode(st_mode: RawMode) -> Self { + Self::from_bits_truncate(st_mode & !c::S_IFMT as RawMode) + } + + /// Construct an `st_mode` value from a `Mode`. + #[inline] + pub const fn as_raw_mode(self) -> RawMode { + self.bits() + } +} + +#[cfg(not(target_os = "espidf"))] +impl From for Mode { + /// Support conversions from raw mode values to `Mode`. + /// + /// ``` + /// use rustix::fs::{Mode, RawMode}; + /// assert_eq!(Mode::from(0o700), Mode::RWXU); + /// ``` + #[inline] + fn from(st_mode: RawMode) -> Self { + Self::from_raw_mode(st_mode) + } +} + +#[cfg(not(target_os = "espidf"))] +impl From for RawMode { + /// Support conversions from `Mode` to raw mode values. + /// + /// ``` + /// use rustix::fs::{Mode, RawMode}; + /// assert_eq!(RawMode::from(Mode::RWXU), 0o700); + /// ``` + #[inline] + fn from(mode: Mode) -> Self { + mode.as_raw_mode() + } +} + +bitflags! { + /// `O_*` constants for use with [`openat`]. + /// + /// [`openat`]: crate::fs::openat + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct OFlags: u32 { + /// `O_ACCMODE` + const ACCMODE = bitcast!(c::O_ACCMODE); + + /// Similar to `ACCMODE`, but just includes the read/write flags, and + /// no other flags. + /// + /// On some platforms, `PATH` may be included in `ACCMODE`, when + /// sometimes we really just want the read/write bits. Caution is + /// indicated, as the presence of `PATH` may mean that the read/write + /// bits don't have their usual meaning. + const RWMODE = bitcast!(c::O_RDONLY | c::O_WRONLY | c::O_RDWR); + + /// `O_APPEND` + const APPEND = bitcast!(c::O_APPEND); + + /// `O_CREAT` + #[doc(alias = "CREAT")] + const CREATE = bitcast!(c::O_CREAT); + + /// `O_DIRECTORY` + #[cfg(not(any(target_os = "espidf", target_os = "horizon")))] + const DIRECTORY = bitcast!(c::O_DIRECTORY); + + /// `O_DSYNC` + #[cfg(not(any(target_os = "dragonfly", target_os = "espidf", target_os = "horizon", target_os = "l4re", target_os = "redox", target_os = "vita")))] + const DSYNC = bitcast!(c::O_DSYNC); + + /// `O_EXCL` + const EXCL = bitcast!(c::O_EXCL); + + /// `O_FSYNC` + #[cfg(any( + bsd, + all(target_os = "linux", not(target_env = "musl")), + ))] + const FSYNC = bitcast!(c::O_FSYNC); + + /// `O_NOFOLLOW` + #[cfg(not(any(target_os = "espidf", target_os = "horizon")))] + const NOFOLLOW = bitcast!(c::O_NOFOLLOW); + + /// `O_NONBLOCK` + const NONBLOCK = bitcast!(c::O_NONBLOCK); + + /// `O_RDONLY` + const RDONLY = bitcast!(c::O_RDONLY); + + /// `O_WRONLY` + const WRONLY = bitcast!(c::O_WRONLY); + + /// `O_RDWR` + /// + /// This is not equal to `RDONLY | WRONLY`. It's a distinct flag. + const RDWR = bitcast!(c::O_RDWR); + + /// `O_NOCTTY` + #[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "l4re", target_os = "redox", target_os = "vita")))] + const NOCTTY = bitcast!(c::O_NOCTTY); + + /// `O_RSYNC` + #[cfg(any( + linux_kernel, + netbsdlike, + solarish, + target_os = "emscripten", + target_os = "wasi", + ))] + const RSYNC = bitcast!(c::O_RSYNC); + + /// `O_SYNC` + #[cfg(not(any(target_os = "l4re", target_os = "redox")))] + const SYNC = bitcast!(c::O_SYNC); + + /// `O_TRUNC` + const TRUNC = bitcast!(c::O_TRUNC); + + /// `O_PATH` + #[cfg(any( + linux_kernel, + target_os = "emscripten", + target_os = "freebsd", + target_os = "fuchsia", + target_os = "redox", + ))] + const PATH = bitcast!(c::O_PATH); + + /// `O_CLOEXEC` + const CLOEXEC = bitcast!(c::O_CLOEXEC); + + /// `O_TMPFILE` + #[cfg(any( + linux_kernel, + target_os = "emscripten", + target_os = "fuchsia", + ))] + const TMPFILE = bitcast!(c::O_TMPFILE); + + /// `O_NOATIME` + #[cfg(any( + linux_kernel, + target_os = "fuchsia", + ))] + const NOATIME = bitcast!(c::O_NOATIME); + + /// `O_DIRECT` + #[cfg(any( + linux_kernel, + target_os = "emscripten", + target_os = "freebsd", + target_os = "fuchsia", + target_os = "netbsd", + ))] + const DIRECT = bitcast!(c::O_DIRECT); + + /// `O_RESOLVE_BENEATH` + #[cfg(target_os = "freebsd")] + const RESOLVE_BENEATH = bitcast!(c::O_RESOLVE_BENEATH); + + /// `O_EMPTY_PATH` + #[cfg(target_os = "freebsd")] + const EMPTY_PATH = bitcast!(c::O_EMPTY_PATH); + + /// `O_LARGEFILE` + /// + /// Rustix and/or libc will automatically set this flag when + /// appropriate in the [`rustix::fs::open`] family of functions, so + /// typical users do not need to care about it. It may be reported in + /// the return of `fcntl_getfl`, though. + #[cfg(any(linux_kernel, solarish))] + const LARGEFILE = bitcast!(c::O_LARGEFILE); + + /// `O_ASYNC`, `FASYNC` + /// + /// This flag can't be used with the [`rustix::fs::open`] family of + /// functions, use [`rustix::fs::fcntl_setfl`] instead. + #[cfg(not(any( + target_os = "aix", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "wasi", + target_os = "vita", + solarish + )))] + const ASYNC = bitcast!(c::O_ASYNC); + + /// + const _ = !0; + } +} + +#[cfg(apple)] +bitflags! { + /// `CLONE_*` constants for use with [`fclonefileat`]. + /// + /// [`fclonefileat`]: crate::fs::fclonefileat + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct CloneFlags: u32 { + /// `CLONE_NOFOLLOW` + const NOFOLLOW = 1; + + /// `CLONE_NOOWNERCOPY` + const NOOWNERCOPY = 2; + + /// + const _ = !0; + } +} + +#[cfg(apple)] +mod copyfile { + pub(super) const ACL: u32 = 1 << 0; + pub(super) const STAT: u32 = 1 << 1; + pub(super) const XATTR: u32 = 1 << 2; + pub(super) const DATA: u32 = 1 << 3; + pub(super) const SECURITY: u32 = STAT | ACL; + pub(super) const METADATA: u32 = SECURITY | XATTR; + pub(super) const ALL: u32 = METADATA | DATA; +} + +#[cfg(apple)] +bitflags! { + /// `COPYFILE_*` constants for use with [`fcopyfile`]. + /// + /// [`fcopyfile`]: crate::fs::fcopyfile + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct CopyfileFlags: ffi::c_uint { + /// `COPYFILE_ACL` + const ACL = copyfile::ACL; + + /// `COPYFILE_STAT` + const STAT = copyfile::STAT; + + /// `COPYFILE_XATTR` + const XATTR = copyfile::XATTR; + + /// `COPYFILE_DATA` + const DATA = copyfile::DATA; + + /// `COPYFILE_SECURITY` + const SECURITY = copyfile::SECURITY; + + /// `COPYFILE_METADATA` + const METADATA = copyfile::METADATA; + + /// `COPYFILE_ALL` + const ALL = copyfile::ALL; + + /// + const _ = !0; + } +} + +#[cfg(linux_kernel)] +bitflags! { + /// `RESOLVE_*` constants for use with [`openat2`]. + /// + /// [`openat2`]: crate::fs::openat2 + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct ResolveFlags: u64 { + /// `RESOLVE_NO_XDEV` + const NO_XDEV = 0x01; + + /// `RESOLVE_NO_MAGICLINKS` + const NO_MAGICLINKS = 0x02; + + /// `RESOLVE_NO_SYMLINKS` + const NO_SYMLINKS = 0x04; + + /// `RESOLVE_BENEATH` + const BENEATH = 0x08; + + /// `RESOLVE_IN_ROOT` + const IN_ROOT = 0x10; + + /// `RESOLVE_CACHED` (since Linux 5.12) + const CACHED = 0x20; + + /// + const _ = !0; + } +} + +#[cfg(linux_kernel)] +bitflags! { + /// `RENAME_*` constants for use with [`renameat_with`]. + /// + /// [`renameat_with`]: crate::fs::renameat_with + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct RenameFlags: ffi::c_uint { + /// `RENAME_EXCHANGE` + const EXCHANGE = bitcast!(c::RENAME_EXCHANGE); + + /// `RENAME_NOREPLACE` + const NOREPLACE = bitcast!(c::RENAME_NOREPLACE); + + /// `RENAME_WHITEOUT` + const WHITEOUT = bitcast!(c::RENAME_WHITEOUT); + + /// + const _ = !0; + } +} + +#[cfg(apple)] +bitflags! { + /// `RENAME_*` constants for use with [`renameat_with`]. + /// + /// [`renameat_with`]: crate::fs::renameat_with + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct RenameFlags: ffi::c_uint { + /// `RENAME_SWAP` + const EXCHANGE = bitcast!(c::RENAME_SWAP); + + /// `RENAME_EXCL` + const NOREPLACE = bitcast!(c::RENAME_EXCL); + + /// + const _ = !0; + } +} + +/// `S_IF*` constants for use with [`mknodat`] and [`Stat`]'s `st_mode` field. +/// +/// [`mknodat`]: crate::fs::mknodat +/// [`Stat`]: crate::fs::Stat +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum FileType { + /// `S_IFREG` + RegularFile = c::S_IFREG as isize, + + /// `S_IFDIR` + Directory = c::S_IFDIR as isize, + + /// `S_IFLNK` + Symlink = c::S_IFLNK as isize, + + /// `S_IFIFO` + #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `S_IFIFO`. + #[doc(alias = "IFO")] + Fifo = c::S_IFIFO as isize, + + /// `S_IFSOCK` + #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `S_IFSOCK`. + Socket = c::S_IFSOCK as isize, + + /// `S_IFCHR` + CharacterDevice = c::S_IFCHR as isize, + + /// `S_IFBLK` + BlockDevice = c::S_IFBLK as isize, + + /// An unknown filesystem object. + Unknown, +} + +impl FileType { + /// Construct a `FileType` from the `S_IFMT` bits of the `st_mode` field of + /// a `Stat`. + #[inline] + pub const fn from_raw_mode(st_mode: RawMode) -> Self { + match (st_mode as c::mode_t) & c::S_IFMT { + c::S_IFREG => Self::RegularFile, + c::S_IFDIR => Self::Directory, + c::S_IFLNK => Self::Symlink, + #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `S_IFIFO`. + c::S_IFIFO => Self::Fifo, + #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `S_IFSOCK`. + c::S_IFSOCK => Self::Socket, + c::S_IFCHR => Self::CharacterDevice, + c::S_IFBLK => Self::BlockDevice, + _ => Self::Unknown, + } + } + + /// Construct an `st_mode` value from a `FileType`. + #[inline] + pub const fn as_raw_mode(self) -> RawMode { + match self { + Self::RegularFile => c::S_IFREG as RawMode, + Self::Directory => c::S_IFDIR as RawMode, + Self::Symlink => c::S_IFLNK as RawMode, + #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `S_IFIFO`. + Self::Fifo => c::S_IFIFO as RawMode, + #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `S_IFSOCK`. + Self::Socket => c::S_IFSOCK as RawMode, + Self::CharacterDevice => c::S_IFCHR as RawMode, + Self::BlockDevice => c::S_IFBLK as RawMode, + Self::Unknown => c::S_IFMT as RawMode, + } + } + + /// Construct a `FileType` from the `d_type` field of a `c::dirent`. + #[cfg(not(any( + solarish, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "nto", + target_os = "redox", + target_os = "vita" + )))] + #[inline] + pub(crate) const fn from_dirent_d_type(d_type: u8) -> Self { + match d_type { + c::DT_REG => Self::RegularFile, + c::DT_DIR => Self::Directory, + c::DT_LNK => Self::Symlink, + #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `DT_SOCK`. + c::DT_SOCK => Self::Socket, + #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `DT_FIFO`. + c::DT_FIFO => Self::Fifo, + c::DT_CHR => Self::CharacterDevice, + c::DT_BLK => Self::BlockDevice, + // c::DT_UNKNOWN | + _ => Self::Unknown, + } + } +} + +/// `POSIX_FADV_*` constants for use with [`fadvise`]. +/// +/// [`fadvise`]: crate::fs::fadvise +#[cfg(not(any( + apple, + netbsdlike, + target_os = "dragonfly", + target_os = "espidf", + target_os = "horizon", + target_os = "haiku", + target_os = "redox", + target_os = "solaris", + target_os = "vita", +)))] +#[derive(Debug, Copy, Clone, Eq, PartialEq)] +#[repr(u32)] +pub enum Advice { + /// `POSIX_FADV_NORMAL` + Normal = c::POSIX_FADV_NORMAL as c::c_uint, + + /// `POSIX_FADV_SEQUENTIAL` + Sequential = c::POSIX_FADV_SEQUENTIAL as c::c_uint, + + /// `POSIX_FADV_RANDOM` + Random = c::POSIX_FADV_RANDOM as c::c_uint, + + /// `POSIX_FADV_NOREUSE` + NoReuse = c::POSIX_FADV_NOREUSE as c::c_uint, + + /// `POSIX_FADV_WILLNEED` + WillNeed = c::POSIX_FADV_WILLNEED as c::c_uint, + + /// `POSIX_FADV_DONTNEED` + DontNeed = c::POSIX_FADV_DONTNEED as c::c_uint, +} + +#[cfg(any(linux_kernel, target_os = "freebsd"))] +bitflags! { + /// `MFD_*` constants for use with [`memfd_create`]. + /// + /// [`memfd_create`]: crate::fs::memfd_create + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MemfdFlags: ffi::c_uint { + /// `MFD_CLOEXEC` + const CLOEXEC = c::MFD_CLOEXEC; + + /// `MFD_ALLOW_SEALING` + const ALLOW_SEALING = c::MFD_ALLOW_SEALING; + + /// `MFD_HUGETLB` (since Linux 4.14) + const HUGETLB = c::MFD_HUGETLB; + + /// `MFD_NOEXEC_SEAL` (since Linux 6.3) + #[cfg(linux_kernel)] + const NOEXEC_SEAL = c::MFD_NOEXEC_SEAL; + /// `MFD_EXEC` (since Linux 6.3) + #[cfg(linux_kernel)] + const EXEC = c::MFD_EXEC; + + /// `MFD_HUGE_64KB` + const HUGE_64KB = c::MFD_HUGE_64KB; + /// `MFD_HUGE_512JB` + const HUGE_512KB = c::MFD_HUGE_512KB; + /// `MFD_HUGE_1MB` + const HUGE_1MB = c::MFD_HUGE_1MB; + /// `MFD_HUGE_2MB` + const HUGE_2MB = c::MFD_HUGE_2MB; + /// `MFD_HUGE_8MB` + const HUGE_8MB = c::MFD_HUGE_8MB; + /// `MFD_HUGE_16MB` + const HUGE_16MB = c::MFD_HUGE_16MB; + /// `MFD_HUGE_32MB` + const HUGE_32MB = c::MFD_HUGE_32MB; + /// `MFD_HUGE_256MB` + const HUGE_256MB = c::MFD_HUGE_256MB; + /// `MFD_HUGE_512MB` + const HUGE_512MB = c::MFD_HUGE_512MB; + /// `MFD_HUGE_1GB` + const HUGE_1GB = c::MFD_HUGE_1GB; + /// `MFD_HUGE_2GB` + const HUGE_2GB = c::MFD_HUGE_2GB; + /// `MFD_HUGE_16GB` + const HUGE_16GB = c::MFD_HUGE_16GB; + + /// + const _ = !0; + } +} + +#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] +bitflags! { + /// `F_SEAL_*` constants for use with [`fcntl_add_seals`] and + /// [`fcntl_get_seals`]. + /// + /// [`fcntl_add_seals`]: crate::fs::fcntl_add_seals + /// [`fcntl_get_seals`]: crate::fs::fcntl_get_seals + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct SealFlags: u32 { + /// `F_SEAL_SEAL` + const SEAL = bitcast!(c::F_SEAL_SEAL); + /// `F_SEAL_SHRINK` + const SHRINK = bitcast!(c::F_SEAL_SHRINK); + /// `F_SEAL_GROW` + const GROW = bitcast!(c::F_SEAL_GROW); + /// `F_SEAL_WRITE` + const WRITE = bitcast!(c::F_SEAL_WRITE); + /// `F_SEAL_FUTURE_WRITE` (since Linux 5.1) + #[cfg(linux_kernel)] + const FUTURE_WRITE = bitcast!(c::F_SEAL_FUTURE_WRITE); + /// `F_SEAL_EXEC` (since Linux 6.3) + #[cfg(linux_kernel)] + const EXEC = bitcast!(c::F_SEAL_EXEC); + + /// + const _ = !0; + } +} + +#[cfg(not(any( + netbsdlike, + target_os = "espidf", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "vita" +)))] +bitflags! { + /// `FALLOC_FL_*` constants for use with [`fallocate`]. + /// + /// [`fallocate`]: crate::fs::fallocate + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct FallocateFlags: u32 { + /// `FALLOC_FL_KEEP_SIZE` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "haiku", + target_os = "hurd", + target_os = "wasi", + )))] + const KEEP_SIZE = bitcast!(c::FALLOC_FL_KEEP_SIZE); + /// `FALLOC_FL_PUNCH_HOLE` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "haiku", + target_os = "hurd", + target_os = "wasi", + )))] + const PUNCH_HOLE = bitcast!(c::FALLOC_FL_PUNCH_HOLE); + /// `FALLOC_FL_NO_HIDE_STALE` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "emscripten", + target_os = "fuchsia", + target_os = "haiku", + target_os = "hurd", + target_os = "l4re", + target_os = "linux", + target_os = "wasi", + )))] + const NO_HIDE_STALE = bitcast!(c::FALLOC_FL_NO_HIDE_STALE); + /// `FALLOC_FL_COLLAPSE_RANGE` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "haiku", + target_os = "hurd", + target_os = "emscripten", + target_os = "wasi", + )))] + const COLLAPSE_RANGE = bitcast!(c::FALLOC_FL_COLLAPSE_RANGE); + /// `FALLOC_FL_ZERO_RANGE` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "haiku", + target_os = "hurd", + target_os = "emscripten", + target_os = "wasi", + )))] + const ZERO_RANGE = bitcast!(c::FALLOC_FL_ZERO_RANGE); + /// `FALLOC_FL_INSERT_RANGE` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "haiku", + target_os = "hurd", + target_os = "emscripten", + target_os = "wasi", + )))] + const INSERT_RANGE = bitcast!(c::FALLOC_FL_INSERT_RANGE); + /// `FALLOC_FL_UNSHARE_RANGE` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "haiku", + target_os = "hurd", + target_os = "emscripten", + target_os = "wasi", + )))] + const UNSHARE_RANGE = bitcast!(c::FALLOC_FL_UNSHARE_RANGE); + + /// + const _ = !0; + } +} + +#[cfg(not(target_os = "wasi"))] +bitflags! { + /// `ST_*` constants for use with [`StatVfs`]. + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct StatVfsMountFlags: u64 { + /// `ST_MANDLOCK` + #[cfg(any(linux_kernel, target_os = "emscripten", target_os = "fuchsia"))] + const MANDLOCK = c::ST_MANDLOCK as u64; + + /// `ST_NOATIME` + #[cfg(any(linux_kernel, target_os = "emscripten", target_os = "fuchsia"))] + const NOATIME = c::ST_NOATIME as u64; + + /// `ST_NODEV` + #[cfg(any( + linux_kernel, + target_os = "aix", + target_os = "emscripten", + target_os = "fuchsia" + ))] + const NODEV = c::ST_NODEV as u64; + + /// `ST_NODIRATIME` + #[cfg(any(linux_kernel, target_os = "emscripten", target_os = "fuchsia"))] + const NODIRATIME = c::ST_NODIRATIME as u64; + + /// `ST_NOEXEC` + #[cfg(any(linux_kernel, target_os = "emscripten", target_os = "fuchsia"))] + const NOEXEC = c::ST_NOEXEC as u64; + + /// `ST_NOSUID` + #[cfg(not(any(target_os = "espidf", target_os = "haiku", target_os = "horizon", target_os = "redox", target_os = "vita")))] + const NOSUID = c::ST_NOSUID as u64; + + /// `ST_RDONLY` + #[cfg(not(any(target_os = "espidf", target_os = "haiku", target_os = "horizon", target_os = "redox", target_os = "vita")))] + const RDONLY = c::ST_RDONLY as u64; + + /// `ST_RELATIME` + #[cfg(any(target_os = "android", all(target_os = "linux", target_env = "gnu")))] + const RELATIME = c::ST_RELATIME as u64; + + /// `ST_SYNCHRONOUS` + #[cfg(any(linux_kernel, target_os = "emscripten", target_os = "fuchsia"))] + const SYNCHRONOUS = c::ST_SYNCHRONOUS as u64; + + /// + const _ = !0; + } +} + +/// `LOCK_*` constants for use with [`flock`] and [`fcntl_lock`]. +/// +/// [`flock`]: crate::fs::flock +/// [`fcntl_lock`]: crate::fs::fcntl_lock +// Solaris doesn't support `flock` and doesn't define `LOCK_SH` etc., but we +// reuse this `FlockOperation` enum for `fcntl_lock`, so on Solaris we use +// our own made-up integer values. +#[cfg(not(any( + target_os = "espidf", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +#[repr(u32)] +pub enum FlockOperation { + /// `LOCK_SH` + #[cfg(not(target_os = "solaris"))] + LockShared = bitcast!(c::LOCK_SH), + /// `LOCK_SH` + #[cfg(target_os = "solaris")] + LockShared = bitcast!(1), + /// `LOCK_EX` + #[cfg(not(target_os = "solaris"))] + LockExclusive = bitcast!(c::LOCK_EX), + /// `LOCK_EX` + #[cfg(target_os = "solaris")] + LockExclusive = bitcast!(2), + /// `LOCK_UN` + #[cfg(not(target_os = "solaris"))] + Unlock = bitcast!(c::LOCK_UN), + /// `LOCK_UN` + #[cfg(target_os = "solaris")] + Unlock = bitcast!(8), + /// `LOCK_SH | LOCK_NB` + #[cfg(not(target_os = "solaris"))] + NonBlockingLockShared = bitcast!(c::LOCK_SH | c::LOCK_NB), + /// `LOCK_SH | LOCK_NB` + #[cfg(target_os = "solaris")] + NonBlockingLockShared = bitcast!(1 | 4), + /// `LOCK_EX | LOCK_NB` + #[cfg(not(target_os = "solaris"))] + NonBlockingLockExclusive = bitcast!(c::LOCK_EX | c::LOCK_NB), + /// `LOCK_EX | LOCK_NB` + #[cfg(target_os = "solaris")] + NonBlockingLockExclusive = bitcast!(2 | 4), + /// `LOCK_UN | LOCK_NB` + #[cfg(not(target_os = "solaris"))] + NonBlockingUnlock = bitcast!(c::LOCK_UN | c::LOCK_NB), + /// `LOCK_UN | LOCK_NB` + #[cfg(target_os = "solaris")] + NonBlockingUnlock = bitcast!(8 | 4), +} + +/// `struct stat` for use with [`statat`] and [`fstat`]. +/// +/// [`statat`]: crate::fs::statat +/// [`fstat`]: crate::fs::fstat +#[cfg(not(any(linux_like, target_os = "hurd", target_os = "netbsd")))] +pub type Stat = c::stat; + +/// `struct stat` for use with [`statat`] and [`fstat`]. +/// +/// [`statat`]: crate::fs::statat +/// [`fstat`]: crate::fs::fstat +#[cfg(any( + all(linux_kernel, target_pointer_width = "64"), + target_os = "hurd", + target_os = "emscripten", + target_os = "l4re", +))] +pub type Stat = c::stat64; + +/// `struct stat` for use with [`statat`] and [`fstat`]. +/// +/// [`statat`]: crate::fs::statat +/// [`fstat`]: crate::fs::fstat +// On 32-bit, Linux's `struct stat64` has a 32-bit `st_mtime` and friends, so +// we use our own struct, populated from `statx` where possible, to avoid the +// y2038 bug. +#[cfg(all(linux_kernel, target_pointer_width = "32"))] +#[derive(Debug, Copy, Clone)] +#[allow(missing_docs)] +pub struct Stat { + pub st_dev: u64, + pub st_mode: u32, + pub st_nlink: u64, + pub st_uid: u32, + pub st_gid: u32, + pub st_rdev: u64, + pub st_size: i64, + pub st_blksize: u32, + pub st_blocks: u64, + pub st_atime: i64, + pub st_atime_nsec: u32, + pub st_mtime: i64, + pub st_mtime_nsec: u32, + pub st_ctime: i64, + pub st_ctime_nsec: u32, + pub st_ino: u64, +} + +/// `struct stat` for use with [`statat`] and [`fstat`]. +/// +/// [`statat`]: crate::fs::statat +/// [`fstat`]: crate::fs::fstat +// NetBSD's `st_mtime_nsec` is named `st_mtimensec` so we declare our own +// `Stat` so that we can be consistent with other platforms. +#[cfg(target_os = "netbsd")] +#[derive(Debug, Copy, Clone)] +#[allow(missing_docs)] +#[repr(C)] +pub struct Stat { + pub st_dev: c::dev_t, + pub st_mode: c::mode_t, + pub st_ino: c::ino_t, + pub st_nlink: c::nlink_t, + pub st_uid: c::uid_t, + pub st_gid: c::gid_t, + pub st_rdev: c::dev_t, + pub st_atime: c::time_t, + pub st_atime_nsec: c::c_long, + pub st_mtime: c::time_t, + pub st_mtime_nsec: c::c_long, + pub st_ctime: c::time_t, + pub st_ctime_nsec: c::c_long, + pub st_birthtime: c::time_t, + pub st_birthtime_nsec: c::c_long, + pub st_size: c::off_t, + pub st_blocks: c::blkcnt_t, + pub st_blksize: c::blksize_t, + pub st_flags: u32, + pub st_gen: u32, + pub st_spare: [u32; 2], +} + +/// `struct statfs` for use with [`statfs`] and [`fstatfs`]. +/// +/// [`statfs`]: crate::fs::statfs +/// [`fstatfs`]: crate::fs::fstatfs +#[cfg(not(any( + linux_like, + 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", +)))] +#[allow(clippy::module_name_repetitions)] +pub type StatFs = c::statfs; + +/// `struct statfs` for use with [`statfs`] and [`fstatfs`]. +/// +/// [`statfs`]: crate::fs::statfs +/// [`fstatfs`]: crate::fs::fstatfs +#[cfg(linux_like)] +pub type StatFs = c::statfs64; + +/// `fsid_t` for use with [`StatFs`]. +#[cfg(not(any( + solarish, + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +pub type Fsid = c::fsid_t; + +/// `struct statvfs` for use with [`statvfs`] and [`fstatvfs`]. +/// +/// [`statvfs`]: crate::fs::statvfs +/// [`fstatvfs`]: crate::fs::fstatvfs +#[cfg(not(target_os = "wasi"))] +#[allow(missing_docs)] +pub struct StatVfs { + pub f_bsize: u64, + pub f_frsize: u64, + pub f_blocks: u64, + pub f_bfree: u64, + pub f_bavail: u64, + pub f_files: u64, + pub f_ffree: u64, + pub f_favail: u64, + pub f_fsid: u64, + pub f_flag: StatVfsMountFlags, + pub f_namemax: u64, +} + +/// `mode_t` +#[cfg(not(all(target_os = "android", target_pointer_width = "32")))] +pub type RawMode = c::mode_t; + +/// `mode_t` +#[cfg(all(target_os = "android", target_pointer_width = "32"))] +pub type RawMode = ffi::c_uint; + +/// `dev_t` +#[cfg(not(all(target_os = "android", target_pointer_width = "32")))] +pub type Dev = c::dev_t; + +/// `dev_t` +#[cfg(all(target_os = "android", target_pointer_width = "32"))] +pub type Dev = ffi::c_ulonglong; + +/// `__fsword_t` +#[cfg(all( + target_os = "linux", + not(target_env = "musl"), + not(target_arch = "s390x"), +))] +pub type FsWord = c::__fsword_t; + +/// `__fsword_t` +#[cfg(all( + any(target_os = "android", all(target_os = "linux", target_env = "musl")), + target_pointer_width = "32", +))] +pub type FsWord = u32; + +/// `__fsword_t` +#[cfg(all( + any(target_os = "android", all(target_os = "linux", target_env = "musl")), + not(target_arch = "s390x"), + target_pointer_width = "64", +))] +pub type FsWord = u64; + +/// `__fsword_t` +// s390x uses `u32` for `statfs` entries on glibc, even though `__fsword_t` is +// `u64`. +#[cfg(all(target_os = "linux", target_arch = "s390x", target_env = "gnu"))] +pub type FsWord = u32; + +/// `__fsword_t` +// s390x uses `u64` for `statfs` entries on musl. +#[cfg(all(target_os = "linux", target_arch = "s390x", target_env = "musl"))] +pub type FsWord = u64; + +/// `copyfile_state_t`—State for use with [`fcopyfile`]. +/// +/// [`fcopyfile`]: crate::fs::fcopyfile +#[cfg(apple)] +#[allow(non_camel_case_types)] +#[repr(transparent)] +#[derive(Copy, Clone)] +pub struct copyfile_state_t(pub(crate) *mut c::c_void); diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..81f0e4893217c75150ea6237abfd6be2b9e23270 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/errno.rs @@ -0,0 +1,1114 @@ +//! The `rustix` `Errno` type. +//! +//! This type holds an OS error code, which conceptually corresponds to an +//! `errno` value. + +use crate::backend::c; +use libc_errno::errno; + +/// `errno`—An error code. +/// +/// The error type for `rustix` APIs. This is similar to [`std::io::Error`], +/// but only holds an OS error code, and no extra error value. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Winsock] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/errno.html +/// [Linux]: https://man7.org/linux/man-pages/man3/errno.3.html +/// [Winsock]: https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2 +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?errno +/// [NetBSD]: https://man.netbsd.org/errno.2 +/// [OpenBSD]: https://man.openbsd.org/errno.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=errno§ion=2 +/// [illumos]: https://illumos.org/man/3C/errno +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Error-Codes.html +#[repr(transparent)] +#[doc(alias = "errno")] +#[derive(Eq, PartialEq, Hash, Copy, Clone)] +pub struct Errno(pub(crate) c::c_int); + +impl Errno { + /// `EACCES` + #[doc(alias = "ACCES")] + pub const ACCESS: Self = Self(c::EACCES); + /// `EADDRINUSE` + pub const ADDRINUSE: Self = Self(c::EADDRINUSE); + /// `EADDRNOTAVAIL` + pub const ADDRNOTAVAIL: Self = Self(c::EADDRNOTAVAIL); + /// `EADV` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const ADV: Self = Self(c::EADV); + /// `EAFNOSUPPORT` + #[cfg(not(target_os = "l4re"))] + pub const AFNOSUPPORT: Self = Self(c::EAFNOSUPPORT); + /// `EAGAIN` + pub const AGAIN: Self = Self(c::EAGAIN); + /// `EALREADY` + #[cfg(not(target_os = "l4re"))] + pub const ALREADY: Self = Self(c::EALREADY); + /// `EAUTH` + #[cfg(bsd)] + pub const AUTH: Self = Self(c::EAUTH); + /// `EBADE` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const BADE: Self = Self(c::EBADE); + /// `EBADF` + pub const BADF: Self = Self(c::EBADF); + /// `EBADFD` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const BADFD: Self = Self(c::EBADFD); + /// `EBADMSG` + #[cfg(not(any(windows, target_os = "l4re")))] + pub const BADMSG: Self = Self(c::EBADMSG); + /// `EBADR` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const BADR: Self = Self(c::EBADR); + /// `EBADRPC` + #[cfg(bsd)] + pub const BADRPC: Self = Self(c::EBADRPC); + /// `EBADRQC` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const BADRQC: Self = Self(c::EBADRQC); + /// `EBADSLT` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const BADSLT: Self = Self(c::EBADSLT); + /// `EBFONT` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const BFONT: Self = Self(c::EBFONT); + /// `EBUSY` + #[cfg(not(windows))] + pub const BUSY: Self = Self(c::EBUSY); + /// `ECANCELED` + #[cfg(not(target_os = "l4re"))] + pub const CANCELED: Self = Self(c::ECANCELED); + /// `ECAPMODE` + #[cfg(target_os = "freebsd")] + pub const CAPMODE: Self = Self(c::ECAPMODE); + /// `ECHILD` + #[cfg(not(windows))] + pub const CHILD: Self = Self(c::ECHILD); + /// `ECHRNG` + #[cfg(not(any( + bsd, + windows, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi" + )))] + pub const CHRNG: Self = Self(c::ECHRNG); + /// `ECOMM` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const COMM: Self = Self(c::ECOMM); + /// `ECONNABORTED` + pub const CONNABORTED: Self = Self(c::ECONNABORTED); + /// `ECONNREFUSED` + pub const CONNREFUSED: Self = Self(c::ECONNREFUSED); + /// `ECONNRESET` + pub const CONNRESET: Self = Self(c::ECONNRESET); + /// `EDEADLK` + #[cfg(not(windows))] + pub const DEADLK: Self = Self(c::EDEADLK); + /// `EDEADLOCK` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "android", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "vita", + target_os = "wasi", + )))] + pub const DEADLOCK: Self = Self(c::EDEADLOCK); + /// `EDESTADDRREQ` + #[cfg(not(target_os = "l4re"))] + pub const DESTADDRREQ: Self = Self(c::EDESTADDRREQ); + /// `EDISCON` + #[cfg(windows)] + pub const DISCON: Self = Self(c::EDISCON); + /// `EDOM` + #[cfg(not(windows))] + pub const DOM: Self = Self(c::EDOM); + /// `EDOOFUS` + #[cfg(freebsdlike)] + pub const DOOFUS: Self = Self(c::EDOOFUS); + /// `EDOTDOT` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "vita", + target_os = "wasi", + )))] + pub const DOTDOT: Self = Self(c::EDOTDOT); + /// `EDQUOT` + pub const DQUOT: Self = Self(c::EDQUOT); + /// `EEXIST` + #[cfg(not(windows))] + pub const EXIST: Self = Self(c::EEXIST); + /// `EFAULT` + pub const FAULT: Self = Self(c::EFAULT); + /// `EFBIG` + #[cfg(not(windows))] + pub const FBIG: Self = Self(c::EFBIG); + /// `EFTYPE` + #[cfg(any(bsd, target_env = "newlib"))] + pub const FTYPE: Self = Self(c::EFTYPE); + /// `EHOSTDOWN` + #[cfg(not(any(target_os = "l4re", target_os = "wasi")))] + pub const HOSTDOWN: Self = Self(c::EHOSTDOWN); + /// `EHOSTUNREACH` + pub const HOSTUNREACH: Self = Self(c::EHOSTUNREACH); + /// `EHWPOISON` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "android", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "redox", + target_os = "vita", + target_os = "wasi", + )))] + pub const HWPOISON: Self = Self(c::EHWPOISON); + /// `EIDRM` + #[cfg(not(any(windows, target_os = "l4re")))] + pub const IDRM: Self = Self(c::EIDRM); + /// `EILSEQ` + #[cfg(not(any(windows, target_os = "l4re")))] + pub const ILSEQ: Self = Self(c::EILSEQ); + /// `EINPROGRESS` + #[cfg(not(target_os = "l4re"))] + pub const INPROGRESS: Self = Self(c::EINPROGRESS); + /// `EINTR` + /// + /// For a convenient way to retry system calls that exit with `INTR`, use + /// [`retry_on_intr`]. + /// + /// [`retry_on_intr`]: crate::io::retry_on_intr + pub const INTR: Self = Self(c::EINTR); + /// `EINVAL` + pub const INVAL: Self = Self(c::EINVAL); + /// `EINVALIDPROCTABLE` + #[cfg(windows)] + pub const INVALIDPROCTABLE: Self = Self(c::EINVALIDPROCTABLE); + /// `EINVALIDPROVIDER` + #[cfg(windows)] + pub const INVALIDPROVIDER: Self = Self(c::EINVALIDPROVIDER); + /// `EIO` + #[cfg(not(windows))] + pub const IO: Self = Self(c::EIO); + /// `EISCONN` + #[cfg(not(target_os = "l4re"))] + pub const ISCONN: Self = Self(c::EISCONN); + /// `EISDIR` + #[cfg(not(windows))] + pub const ISDIR: Self = Self(c::EISDIR); + /// `EISNAM` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "vita", + target_os = "wasi", + )))] + pub const ISNAM: Self = Self(c::EISNAM); + /// `EKEYEXPIRED` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "vita", + target_os = "wasi", + )))] + pub const KEYEXPIRED: Self = Self(c::EKEYEXPIRED); + /// `EKEYREJECTED` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "vita", + target_os = "wasi", + )))] + pub const KEYREJECTED: Self = Self(c::EKEYREJECTED); + /// `EKEYREVOKED` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "vita", + target_os = "wasi", + )))] + pub const KEYREVOKED: Self = Self(c::EKEYREVOKED); + /// `EL2HLT` + #[cfg(not(any( + bsd, + windows, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi" + )))] + pub const L2HLT: Self = Self(c::EL2HLT); + /// `EL2NSYNC` + #[cfg(not(any( + bsd, + windows, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi" + )))] + pub const L2NSYNC: Self = Self(c::EL2NSYNC); + /// `EL3HLT` + #[cfg(not(any( + bsd, + windows, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi" + )))] + pub const L3HLT: Self = Self(c::EL3HLT); + /// `EL3RST` + #[cfg(not(any( + bsd, + windows, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi" + )))] + pub const L3RST: Self = Self(c::EL3RST); + /// `ELIBACC` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const LIBACC: Self = Self(c::ELIBACC); + /// `ELIBBAD` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const LIBBAD: Self = Self(c::ELIBBAD); + /// `ELIBEXEC` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const LIBEXEC: Self = Self(c::ELIBEXEC); + /// `ELIBMAX` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const LIBMAX: Self = Self(c::ELIBMAX); + /// `ELIBSCN` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const LIBSCN: Self = Self(c::ELIBSCN); + /// `ELNRNG` + #[cfg(not(any( + bsd, + windows, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi" + )))] + pub const LNRNG: Self = Self(c::ELNRNG); + /// `ELOOP` + pub const LOOP: Self = Self(c::ELOOP); + /// `EMEDIUMTYPE` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "vita", + target_os = "wasi", + )))] + pub const MEDIUMTYPE: Self = Self(c::EMEDIUMTYPE); + /// `EMFILE` + pub const MFILE: Self = Self(c::EMFILE); + /// `EMLINK` + #[cfg(not(windows))] + pub const MLINK: Self = Self(c::EMLINK); + /// `EMSGSIZE` + #[cfg(not(target_os = "l4re"))] + pub const MSGSIZE: Self = Self(c::EMSGSIZE); + /// `EMULTIHOP` + #[cfg(not(any(windows, target_os = "l4re", target_os = "openbsd")))] + pub const MULTIHOP: Self = Self(c::EMULTIHOP); + /// `ENAMETOOLONG` + pub const NAMETOOLONG: Self = Self(c::ENAMETOOLONG); + /// `ENAVAIL` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "vita", + target_os = "wasi", + )))] + pub const NAVAIL: Self = Self(c::ENAVAIL); + /// `ENEEDAUTH` + #[cfg(bsd)] + pub const NEEDAUTH: Self = Self(c::ENEEDAUTH); + /// `ENETDOWN` + pub const NETDOWN: Self = Self(c::ENETDOWN); + /// `ENETRESET` + #[cfg(not(target_os = "l4re"))] + pub const NETRESET: Self = Self(c::ENETRESET); + /// `ENETUNREACH` + pub const NETUNREACH: Self = Self(c::ENETUNREACH); + /// `ENFILE` + #[cfg(not(windows))] + pub const NFILE: Self = Self(c::ENFILE); + /// `ENOANO` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const NOANO: Self = Self(c::ENOANO); + /// `ENOATTR` + #[cfg(any(bsd, target_os = "haiku"))] + pub const NOATTR: Self = Self(c::ENOATTR); + /// `ENOBUFS` + #[cfg(not(target_os = "l4re"))] + pub const NOBUFS: Self = Self(c::ENOBUFS); + /// `ENOCSI` + #[cfg(not(any( + bsd, + windows, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi" + )))] + pub const NOCSI: Self = Self(c::ENOCSI); + /// `ENODATA` + #[cfg(not(any( + freebsdlike, + windows, + target_os = "haiku", + target_os = "openbsd", + target_os = "wasi", + )))] + pub const NODATA: Self = Self(c::ENODATA); + /// `ENODEV` + #[cfg(not(windows))] + pub const NODEV: Self = Self(c::ENODEV); + /// `ENOENT` + #[cfg(not(windows))] + pub const NOENT: Self = Self(c::ENOENT); + /// `ENOEXEC` + #[cfg(not(windows))] + pub const NOEXEC: Self = Self(c::ENOEXEC); + /// `ENOKEY` + #[cfg(not(any( + solarish, + bsd, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "vita", + target_os = "wasi", + )))] + pub const NOKEY: Self = Self(c::ENOKEY); + /// `ENOLCK` + #[cfg(not(any(windows, target_os = "l4re")))] + pub const NOLCK: Self = Self(c::ENOLCK); + /// `ENOLINK` + #[cfg(not(any(windows, target_os = "l4re", target_os = "openbsd")))] + pub const NOLINK: Self = Self(c::ENOLINK); + /// `ENOMEDIUM` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "vita", + target_os = "wasi", + )))] + pub const NOMEDIUM: Self = Self(c::ENOMEDIUM); + /// `ENOMEM` + #[cfg(not(windows))] + pub const NOMEM: Self = Self(c::ENOMEM); + /// `ENOMORE` + #[cfg(windows)] + pub const NOMORE: Self = Self(c::ENOMORE); + /// `ENOMSG` + #[cfg(not(any(windows, target_os = "l4re")))] + pub const NOMSG: Self = Self(c::ENOMSG); + /// `ENONET` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const NONET: Self = Self(c::ENONET); + /// `ENOPKG` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const NOPKG: Self = Self(c::ENOPKG); + /// `ENOPROTOOPT` + #[cfg(not(target_os = "l4re"))] + pub const NOPROTOOPT: Self = Self(c::ENOPROTOOPT); + /// `ENOSPC` + #[cfg(not(windows))] + pub const NOSPC: Self = Self(c::ENOSPC); + /// `ENOSR` + #[cfg(not(any( + freebsdlike, + windows, + target_os = "haiku", + target_os = "l4re", + target_os = "openbsd", + target_os = "wasi", + )))] + pub const NOSR: Self = Self(c::ENOSR); + /// `ENOSTR` + #[cfg(not(any( + freebsdlike, + windows, + target_os = "haiku", + target_os = "l4re", + target_os = "openbsd", + target_os = "wasi", + )))] + pub const NOSTR: Self = Self(c::ENOSTR); + /// `ENOSYS` + #[cfg(not(windows))] + pub const NOSYS: Self = Self(c::ENOSYS); + /// `ENOTBLK` + #[cfg(not(any( + windows, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" + )))] + pub const NOTBLK: Self = Self(c::ENOTBLK); + /// `ENOTCAPABLE` + #[cfg(any(target_os = "freebsd", target_os = "wasi"))] + pub const NOTCAPABLE: Self = Self(c::ENOTCAPABLE); + /// `ENOTCONN` + pub const NOTCONN: Self = Self(c::ENOTCONN); + /// `ENOTDIR` + #[cfg(not(windows))] + pub const NOTDIR: Self = Self(c::ENOTDIR); + /// `ENOTEMPTY` + pub const NOTEMPTY: Self = Self(c::ENOTEMPTY); + /// `ENOTNAM` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "vita", + target_os = "wasi", + )))] + pub const NOTNAM: Self = Self(c::ENOTNAM); + /// `ENOTRECOVERABLE` + #[cfg(not(any( + freebsdlike, + netbsdlike, + windows, + target_os = "haiku", + target_os = "l4re" + )))] + pub const NOTRECOVERABLE: Self = Self(c::ENOTRECOVERABLE); + /// `ENOTSOCK` + #[cfg(not(target_os = "l4re"))] + pub const NOTSOCK: Self = Self(c::ENOTSOCK); + /// `ENOTSUP` + #[cfg(not(any(windows, target_os = "redox")))] + pub const NOTSUP: Self = Self(c::ENOTSUP); + /// `ENOTTY` + #[cfg(not(windows))] + pub const NOTTY: Self = Self(c::ENOTTY); + /// `ENOTUNIQ` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const NOTUNIQ: Self = Self(c::ENOTUNIQ); + /// `ENXIO` + #[cfg(not(windows))] + pub const NXIO: Self = Self(c::ENXIO); + /// `EOPNOTSUPP` + pub const OPNOTSUPP: Self = Self(c::EOPNOTSUPP); + /// `EOVERFLOW` + #[cfg(not(any(windows, target_os = "l4re")))] + pub const OVERFLOW: Self = Self(c::EOVERFLOW); + /// `EOWNERDEAD` + #[cfg(not(any( + freebsdlike, + netbsdlike, + windows, + target_os = "haiku", + target_os = "l4re" + )))] + pub const OWNERDEAD: Self = Self(c::EOWNERDEAD); + /// `EPERM` + #[cfg(not(windows))] + pub const PERM: Self = Self(c::EPERM); + /// `EPFNOSUPPORT` + #[cfg(not(any(target_os = "l4re", target_os = "wasi")))] + pub const PFNOSUPPORT: Self = Self(c::EPFNOSUPPORT); + /// `EPIPE` + #[cfg(not(windows))] + pub const PIPE: Self = Self(c::EPIPE); + /// `EPROCLIM` + #[cfg(bsd)] + pub const PROCLIM: Self = Self(c::EPROCLIM); + /// `EPROCUNAVAIL` + #[cfg(bsd)] + pub const PROCUNAVAIL: Self = Self(c::EPROCUNAVAIL); + /// `EPROGMISMATCH` + #[cfg(bsd)] + pub const PROGMISMATCH: Self = Self(c::EPROGMISMATCH); + /// `EPROGUNAVAIL` + #[cfg(bsd)] + pub const PROGUNAVAIL: Self = Self(c::EPROGUNAVAIL); + /// `EPROTO` + #[cfg(not(any(windows, target_os = "l4re")))] + pub const PROTO: Self = Self(c::EPROTO); + /// `EPROTONOSUPPORT` + #[cfg(not(target_os = "l4re"))] + pub const PROTONOSUPPORT: Self = Self(c::EPROTONOSUPPORT); + /// `EPROTOTYPE` + #[cfg(not(target_os = "l4re"))] + pub const PROTOTYPE: Self = Self(c::EPROTOTYPE); + /// `EPROVIDERFAILEDINIT` + #[cfg(windows)] + pub const PROVIDERFAILEDINIT: Self = Self(c::EPROVIDERFAILEDINIT); + /// `ERANGE` + #[cfg(not(windows))] + pub const RANGE: Self = Self(c::ERANGE); + /// `EREFUSED` + #[cfg(windows)] + pub const REFUSED: Self = Self(c::EREFUSED); + /// `EREMCHG` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const REMCHG: Self = Self(c::EREMCHG); + /// `EREMOTE` + #[cfg(not(any( + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "l4re", + target_os = "vita", + target_os = "wasi" + )))] + pub const REMOTE: Self = Self(c::EREMOTE); + /// `EREMOTEIO` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "vita", + target_os = "wasi", + )))] + pub const REMOTEIO: Self = Self(c::EREMOTEIO); + /// `ERESTART` + #[cfg(not(any( + bsd, + windows, + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const RESTART: Self = Self(c::ERESTART); + /// `ERFKILL` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "android", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "redox", + target_os = "vita", + target_os = "wasi", + )))] + pub const RFKILL: Self = Self(c::ERFKILL); + /// `EROFS` + #[cfg(not(windows))] + pub const ROFS: Self = Self(c::EROFS); + /// `ERPCMISMATCH` + #[cfg(bsd)] + pub const RPCMISMATCH: Self = Self(c::ERPCMISMATCH); + /// `ESHUTDOWN` + #[cfg(not(any( + target_os = "espidf", + target_os = "horizon", + target_os = "l4re", + target_os = "vita", + target_os = "wasi" + )))] + pub const SHUTDOWN: Self = Self(c::ESHUTDOWN); + /// `ESOCKTNOSUPPORT` + #[cfg(not(any( + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "l4re", + target_os = "vita", + target_os = "wasi" + )))] + pub const SOCKTNOSUPPORT: Self = Self(c::ESOCKTNOSUPPORT); + /// `ESPIPE` + #[cfg(not(windows))] + pub const SPIPE: Self = Self(c::ESPIPE); + /// `ESRCH` + #[cfg(not(windows))] + pub const SRCH: Self = Self(c::ESRCH); + /// `ESRMNT` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const SRMNT: Self = Self(c::ESRMNT); + /// `ESTALE` + pub const STALE: Self = Self(c::ESTALE); + /// `ESTRPIPE` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const STRPIPE: Self = Self(c::ESTRPIPE); + /// `ETIME` + #[cfg(not(any( + freebsdlike, + windows, + target_os = "l4re", + target_os = "openbsd", + target_os = "wasi" + )))] + pub const TIME: Self = Self(c::ETIME); + /// `ETIMEDOUT` + pub const TIMEDOUT: Self = Self(c::ETIMEDOUT); + /// `E2BIG` + #[cfg(not(windows))] + #[doc(alias = "2BIG")] + pub const TOOBIG: Self = Self(c::E2BIG); + /// `ETOOMANYREFS` + #[cfg(not(any(target_os = "haiku", target_os = "l4re", target_os = "wasi")))] + pub const TOOMANYREFS: Self = Self(c::ETOOMANYREFS); + /// `ETXTBSY` + #[cfg(not(windows))] + pub const TXTBSY: Self = Self(c::ETXTBSY); + /// `EUCLEAN` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "nto", + target_os = "vita", + target_os = "wasi", + )))] + pub const UCLEAN: Self = Self(c::EUCLEAN); + /// `EUNATCH` + #[cfg(not(any( + bsd, + windows, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi" + )))] + pub const UNATCH: Self = Self(c::EUNATCH); + /// `EUSERS` + #[cfg(not(any( + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "l4re", + target_os = "vita", + target_os = "wasi" + )))] + pub const USERS: Self = Self(c::EUSERS); + /// `EWOULDBLOCK` + pub const WOULDBLOCK: Self = Self(c::EWOULDBLOCK); + /// `EXDEV` + #[cfg(not(windows))] + pub const XDEV: Self = Self(c::EXDEV); + /// `EXFULL` + #[cfg(not(any( + bsd, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "l4re", + target_os = "vita", + target_os = "wasi", + )))] + pub const XFULL: Self = Self(c::EXFULL); +} + +impl Errno { + /// Extract an `Errno` value from a `std::io::Error`. + /// + /// This isn't a `From` conversion because it's expected to be relatively + /// uncommon. + #[cfg(feature = "std")] + #[inline] + pub fn from_io_error(io_err: &std::io::Error) -> Option { + io_err + .raw_os_error() + .and_then(|raw| if raw != 0 { Some(Self(raw)) } else { None }) + } + + /// Extract the raw OS error number from this error. + #[inline] + pub const fn raw_os_error(self) -> i32 { + self.0 + } + + /// Construct an `Errno` from a raw OS error number. + #[inline] + pub const fn from_raw_os_error(raw: i32) -> Self { + Self(raw) + } + + pub(crate) fn last_os_error() -> Self { + Self(errno().0) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..4873885760d442d1af2bd58342a4084113c7f39f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/mod.rs @@ -0,0 +1,6 @@ +pub(crate) mod errno; +#[cfg(not(windows))] +pub(crate) mod types; + +#[cfg_attr(windows, path = "windows_syscalls.rs")] +pub(crate) mod syscalls; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..d91e983c26ca85a6a4d50639d72d1d03cd1abbd0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/syscalls.rs @@ -0,0 +1,303 @@ +//! libc syscalls supporting `rustix::io`. + +use crate::backend::c; +#[cfg(not(target_os = "wasi"))] +use crate::backend::conv::ret_discarded_fd; +use crate::backend::conv::{borrowed_fd, ret, ret_c_int, ret_owned_fd, ret_usize}; +use crate::fd::{AsFd as _, BorrowedFd, OwnedFd, RawFd}; +#[cfg(not(any( + target_os = "aix", + target_os = "espidf", + target_os = "nto", + target_os = "vita", + target_os = "wasi" +)))] +use crate::io::DupFlags; +#[cfg(all(linux_kernel, not(target_os = "android")))] +use crate::io::ReadWriteFlags; +use crate::io::{self, FdFlags}; +use crate::ioctl::{IoctlOutput, Opcode}; +use core::cmp::min; +#[cfg(not(any(target_os = "espidf", target_os = "horizon")))] +use { + crate::backend::MAX_IOV, + crate::io::{IoSlice, IoSliceMut}, +}; + +pub(crate) unsafe fn read(fd: BorrowedFd<'_>, buf: (*mut u8, usize)) -> io::Result { + ret_usize(c::read( + borrowed_fd(fd), + buf.0.cast(), + min(buf.1, READ_LIMIT), + )) +} + +pub(crate) fn write(fd: BorrowedFd<'_>, buf: &[u8]) -> io::Result { + unsafe { + ret_usize(c::write( + borrowed_fd(fd), + buf.as_ptr().cast(), + min(buf.len(), READ_LIMIT), + )) + } +} + +pub(crate) unsafe fn pread( + fd: BorrowedFd<'_>, + buf: (*mut u8, usize), + offset: u64, +) -> io::Result { + let len = min(buf.1, READ_LIMIT); + + // Silently cast; we'll get `EINVAL` if the value is negative. + let offset = offset as i64; + + // ESP-IDF and Vita don't support 64-bit offsets, for example. + let offset = offset.try_into().map_err(|_| io::Errno::OVERFLOW)?; + + ret_usize(c::pread(borrowed_fd(fd), buf.0.cast(), len, offset)) +} + +pub(crate) fn pwrite(fd: BorrowedFd<'_>, buf: &[u8], offset: u64) -> io::Result { + let len = min(buf.len(), READ_LIMIT); + + // Silently cast; we'll get `EINVAL` if the value is negative. + let offset = offset as i64; + + // ESP-IDF and Vita don't support 64-bit offsets, for example. + let offset = offset.try_into().map_err(|_| io::Errno::OVERFLOW)?; + + unsafe { ret_usize(c::pwrite(borrowed_fd(fd), buf.as_ptr().cast(), len, offset)) } +} + +#[cfg(not(any(target_os = "espidf", target_os = "horizon")))] +pub(crate) fn readv(fd: BorrowedFd<'_>, bufs: &mut [IoSliceMut<'_>]) -> io::Result { + unsafe { + ret_usize(c::readv( + borrowed_fd(fd), + bufs.as_ptr().cast::(), + min(bufs.len(), MAX_IOV) as c::c_int, + )) + } +} + +#[cfg(not(any(target_os = "espidf", target_os = "horizon")))] +pub(crate) fn writev(fd: BorrowedFd<'_>, bufs: &[IoSlice<'_>]) -> io::Result { + unsafe { + ret_usize(c::writev( + borrowed_fd(fd), + bufs.as_ptr().cast::(), + min(bufs.len(), MAX_IOV) as c::c_int, + )) + } +} + +#[cfg(not(any( + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "solaris", + target_os = "vita", +)))] +pub(crate) fn preadv( + fd: BorrowedFd<'_>, + bufs: &mut [IoSliceMut<'_>], + offset: u64, +) -> io::Result { + // Silently cast; we'll get `EINVAL` if the value is negative. + let offset = offset as i64; + + // ESP-IDF and Vita don't support 64-bit offsets, for example. + let offset = offset.try_into().map_err(|_| io::Errno::OVERFLOW)?; + + unsafe { + ret_usize(c::preadv( + borrowed_fd(fd), + bufs.as_ptr().cast::(), + min(bufs.len(), MAX_IOV) as c::c_int, + offset, + )) + } +} + +#[cfg(not(any( + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "nto", + target_os = "horizon", + target_os = "redox", + target_os = "solaris", + target_os = "vita", +)))] +pub(crate) fn pwritev(fd: BorrowedFd<'_>, bufs: &[IoSlice<'_>], offset: u64) -> io::Result { + // Silently cast; we'll get `EINVAL` if the value is negative. + let offset = offset as i64; + + // ESP-IDF and Vita don't support 64-bit offsets, for example. + let offset = offset.try_into().map_err(|_| io::Errno::OVERFLOW)?; + + unsafe { + ret_usize(c::pwritev( + borrowed_fd(fd), + bufs.as_ptr().cast::(), + min(bufs.len(), MAX_IOV) as c::c_int, + offset, + )) + } +} + +#[cfg(all(linux_kernel, not(target_os = "android")))] +pub(crate) fn preadv2( + fd: BorrowedFd<'_>, + bufs: &mut [IoSliceMut<'_>], + offset: u64, + flags: ReadWriteFlags, +) -> io::Result { + // Silently cast; we'll get `EINVAL` if the value is negative. + let offset = offset as i64; + unsafe { + ret_usize(c::preadv2( + borrowed_fd(fd), + bufs.as_ptr().cast::(), + min(bufs.len(), MAX_IOV) as c::c_int, + offset, + bitflags_bits!(flags), + )) + } +} + +#[cfg(all(linux_kernel, not(target_os = "android")))] +pub(crate) fn pwritev2( + fd: BorrowedFd<'_>, + bufs: &[IoSlice<'_>], + offset: u64, + flags: ReadWriteFlags, +) -> io::Result { + // Silently cast; we'll get `EINVAL` if the value is negative. + let offset = offset as i64; + unsafe { + ret_usize(c::pwritev2( + borrowed_fd(fd), + bufs.as_ptr().cast::(), + min(bufs.len(), MAX_IOV) as c::c_int, + offset, + bitflags_bits!(flags), + )) + } +} + +// These functions are derived from Rust's library/std/src/sys/unix/fd.rs at +// revision 326ef470a8b379a180d6dc4bbef08990698a737a. + +// The maximum read limit on most POSIX-like systems is `SSIZE_MAX`, with the +// manual page quoting that if the count of bytes to read is greater than +// `SSIZE_MAX` the result is “unspecified”. +// +// On macOS, however, apparently the 64-bit libc is either buggy or +// intentionally showing odd behavior by rejecting any read with a size larger +// than or equal to `INT_MAX`. To handle both of these the read size is capped +// on both platforms. +#[cfg(target_os = "macos")] +const READ_LIMIT: usize = c::c_int::MAX as usize - 1; +#[cfg(not(target_os = "macos"))] +const READ_LIMIT: usize = c::ssize_t::MAX as usize; + +pub(crate) unsafe fn close(raw_fd: RawFd) { + let _ = c::close(raw_fd as c::c_int); +} + +#[cfg(feature = "try_close")] +pub(crate) unsafe fn try_close(raw_fd: RawFd) -> io::Result<()> { + ret(c::close(raw_fd as c::c_int)) +} + +#[inline] +pub(crate) unsafe fn ioctl( + fd: BorrowedFd<'_>, + request: Opcode, + arg: *mut c::c_void, +) -> io::Result { + ret_c_int(c::ioctl(borrowed_fd(fd), request, arg)) +} + +#[inline] +pub(crate) unsafe fn ioctl_readonly( + fd: BorrowedFd<'_>, + request: Opcode, + arg: *mut c::c_void, +) -> io::Result { + ioctl(fd, request, arg) +} + +pub(crate) fn fcntl_getfd(fd: BorrowedFd<'_>) -> io::Result { + let flags = unsafe { ret_c_int(c::fcntl(borrowed_fd(fd), c::F_GETFD))? }; + Ok(FdFlags::from_bits_retain(bitcast!(flags))) +} + +pub(crate) fn fcntl_setfd(fd: BorrowedFd<'_>, flags: FdFlags) -> io::Result<()> { + unsafe { ret(c::fcntl(borrowed_fd(fd), c::F_SETFD, flags.bits())) } +} + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +pub(crate) fn fcntl_dupfd_cloexec(fd: BorrowedFd<'_>, min: RawFd) -> io::Result { + unsafe { ret_owned_fd(c::fcntl(borrowed_fd(fd), c::F_DUPFD_CLOEXEC, min)) } +} + +#[cfg(target_os = "espidf")] +pub(crate) fn fcntl_dupfd(fd: BorrowedFd<'_>, min: RawFd) -> io::Result { + unsafe { ret_owned_fd(c::fcntl(borrowed_fd(fd), c::F_DUPFD, min)) } +} + +#[cfg(not(target_os = "wasi"))] +pub(crate) fn dup(fd: BorrowedFd<'_>) -> io::Result { + unsafe { ret_owned_fd(c::dup(borrowed_fd(fd))) } +} + +#[allow(clippy::needless_pass_by_ref_mut)] +#[cfg(not(target_os = "wasi"))] +pub(crate) fn dup2(fd: BorrowedFd<'_>, new: &mut OwnedFd) -> io::Result<()> { + unsafe { ret_discarded_fd(c::dup2(borrowed_fd(fd), borrowed_fd(new.as_fd()))) } +} + +#[allow(clippy::needless_pass_by_ref_mut)] +#[cfg(not(any( + apple, + target_os = "aix", + target_os = "android", + target_os = "dragonfly", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +pub(crate) fn dup3(fd: BorrowedFd<'_>, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> { + unsafe { + ret_discarded_fd(c::dup3( + borrowed_fd(fd), + borrowed_fd(new.as_fd()), + bitflags_bits!(flags), + )) + } +} + +#[cfg(any( + apple, + target_os = "android", + target_os = "dragonfly", + target_os = "haiku", + target_os = "redox", +))] +pub(crate) fn dup3(fd: BorrowedFd<'_>, new: &mut OwnedFd, _flags: DupFlags) -> io::Result<()> { + // Android 5.0 has `dup3`, but libc doesn't have bindings. Emulate it + // using `dup2`. We don't need to worry about the difference between + // `dup2` and `dup3` when the file descriptors are equal because we + // have an `&mut OwnedFd` which means `fd` doesn't alias it. + dup2(fd, new) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..b434b68af4bcb46a78956377020d3098915f5f45 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/types.rs @@ -0,0 +1,65 @@ +use crate::backend::c; +use bitflags::bitflags; + +bitflags! { + /// `FD_*` constants for use with [`fcntl_getfd`] and [`fcntl_setfd`]. + /// + /// [`fcntl_getfd`]: crate::io::fcntl_getfd + /// [`fcntl_setfd`]: crate::io::fcntl_setfd + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct FdFlags: u32 { + /// `FD_CLOEXEC` + const CLOEXEC = bitcast!(c::FD_CLOEXEC); + + /// + const _ = !0; + } +} + +#[cfg(all(linux_kernel, not(target_os = "android")))] +bitflags! { + /// `RWF_*` constants for use with [`preadv2`] and [`pwritev2`]. + /// + /// [`preadv2`]: crate::io::preadv2 + /// [`pwritev2`]: crate::io::pwritev + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct ReadWriteFlags: u32 { + /// `RWF_DSYNC` (since Linux 4.7) + const DSYNC = libc::RWF_DSYNC as u32; + /// `RWF_HIPRI` (since Linux 4.6) + const HIPRI = libc::RWF_HIPRI as u32; + /// `RWF_SYNC` (since Linux 4.7) + const SYNC = libc::RWF_SYNC as u32; + /// `RWF_NOWAIT` (since Linux 4.14) + const NOWAIT = libc::RWF_NOWAIT as u32; + /// `RWF_APPEND` (since Linux 4.16) + const APPEND = libc::RWF_APPEND as u32; + + /// + const _ = !0; + } +} + +#[cfg(not(target_os = "wasi"))] +bitflags! { + /// `O_*` constants for use with [`dup2`]. + /// + /// [`dup2`]: crate::io::dup2 + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct DupFlags: u32 { + /// `O_CLOEXEC` + #[cfg(not(any( + apple, + target_os = "aix", + target_os = "android", + target_os = "redox", + )))] // Android 5.0 has dup3, but libc doesn't have bindings + const CLOEXEC = bitcast!(c::O_CLOEXEC); + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/windows_syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/windows_syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..0f953d7f767738e219481e3385236da6f2e82afa --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io/windows_syscalls.rs @@ -0,0 +1,58 @@ +//! Windows system calls in the `io` module. + +use crate::backend::c; +#[cfg(feature = "try_close")] +use crate::backend::conv::ret; +use crate::backend::conv::{borrowed_fd, ret_c_int, ret_send_recv, send_recv_len}; +use crate::fd::{BorrowedFd, RawFd}; +use crate::io; +use crate::ioctl::{IoctlOutput, Opcode}; + +pub(crate) unsafe fn read(fd: BorrowedFd<'_>, buf: (*mut u8, usize)) -> io::Result { + // `read` on a socket is equivalent to `recv` with no flags. + ret_send_recv(c::recv( + borrowed_fd(fd), + buf.0.cast(), + send_recv_len(buf.1), + 0, + )) +} + +pub(crate) fn write(fd: BorrowedFd<'_>, buf: &[u8]) -> io::Result { + // `write` on a socket is equivalent to `send` with no flags. + unsafe { + ret_send_recv(c::send( + borrowed_fd(fd), + buf.as_ptr().cast(), + send_recv_len(buf.len()), + 0, + )) + } +} + +pub(crate) unsafe fn close(raw_fd: RawFd) { + let _ = c::closesocket(raw_fd as c::SOCKET); +} + +#[cfg(feature = "try_close")] +pub(crate) unsafe fn try_close(raw_fd: RawFd) -> io::Result<()> { + ret(c::closesocket(raw_fd as c::SOCKET)) +} + +#[inline] +pub(crate) unsafe fn ioctl( + fd: BorrowedFd<'_>, + request: Opcode, + arg: *mut c::c_void, +) -> io::Result { + ret_c_int(c::ioctl(borrowed_fd(fd), request, arg.cast())) +} + +#[inline] +pub(crate) unsafe fn ioctl_readonly( + fd: BorrowedFd<'_>, + request: Opcode, + arg: *mut c::c_void, +) -> io::Result { + ioctl(fd, request, arg) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io_uring/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io_uring/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..ef944f04d2627e93c3e742e586d754d72c7a2f39 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io_uring/mod.rs @@ -0,0 +1 @@ +pub(crate) mod syscalls; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io_uring/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io_uring/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..8bf1e987ae5d73793e1fb145e6a026ef28feb7e4 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/io_uring/syscalls.rs @@ -0,0 +1,94 @@ +//! libc syscalls supporting `rustix::io_uring`. + +use crate::backend::c; +use crate::backend::conv::{borrowed_fd, ret_owned_fd, ret_u32}; +use crate::fd::{BorrowedFd, OwnedFd}; +use crate::io; +use crate::io_uring::{io_uring_params, IoringEnterFlags, IoringRegisterFlags, IoringRegisterOp}; + +#[inline] +pub(crate) fn io_uring_setup(entries: u32, params: &mut io_uring_params) -> io::Result { + syscall! { + fn io_uring_setup( + entries: u32, + params: *mut io_uring_params + ) via SYS_io_uring_setup -> c::c_int + } + unsafe { ret_owned_fd(io_uring_setup(entries, params)) } +} + +#[inline] +pub(crate) unsafe fn io_uring_register( + fd: BorrowedFd<'_>, + opcode: IoringRegisterOp, + arg: *const c::c_void, + nr_args: u32, +) -> io::Result { + syscall! { + fn io_uring_register( + fd: c::c_uint, + opcode: c::c_uint, + arg: *const c::c_void, + nr_args: c::c_uint + ) via SYS_io_uring_register -> c::c_int + } + ret_u32(io_uring_register( + borrowed_fd(fd) as _, + opcode as u32, + arg, + nr_args, + )) +} + +#[inline] +pub(crate) unsafe fn io_uring_register_with( + fd: BorrowedFd<'_>, + opcode: IoringRegisterOp, + flags: IoringRegisterFlags, + arg: *const c::c_void, + nr_args: u32, +) -> io::Result { + syscall! { + fn io_uring_register( + fd: c::c_uint, + opcode: c::c_uint, + arg: *const c::c_void, + nr_args: c::c_uint + ) via SYS_io_uring_register -> c::c_int + } + ret_u32(io_uring_register( + borrowed_fd(fd) as _, + (opcode as u32) | bitflags_bits!(flags), + arg, + nr_args, + )) +} + +#[inline] +pub(crate) unsafe fn io_uring_enter( + fd: BorrowedFd<'_>, + to_submit: u32, + min_complete: u32, + flags: IoringEnterFlags, + arg: *const c::c_void, + size: usize, +) -> io::Result { + syscall! { + fn io_uring_enter2( + fd: c::c_uint, + to_submit: c::c_uint, + min_complete: c::c_uint, + flags: c::c_uint, + arg: *const c::c_void, + size: usize + ) via SYS_io_uring_enter -> c::c_int + } + ret_u32(io_uring_enter2( + borrowed_fd(fd) as _, + to_submit, + min_complete, + bitflags_bits!(flags), + arg, + size, + )) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mm/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mm/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mm/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mm/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mm/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..33bc9cac17c27058d3ae31fdf48c537fba7a5f1b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mm/syscalls.rs @@ -0,0 +1,244 @@ +//! libc syscalls supporting `rustix::mm`. + +#[cfg(not(target_os = "redox"))] +use super::types::Advice; +#[cfg(any(linux_kernel, freebsdlike, netbsdlike))] +use super::types::MlockAllFlags; +#[cfg(any(target_os = "emscripten", target_os = "linux"))] +use super::types::MremapFlags; +use super::types::{MapFlags, MprotectFlags, MsyncFlags, ProtFlags}; +#[cfg(linux_kernel)] +use super::types::{MlockFlags, UserfaultfdFlags}; +use crate::backend::c; +#[cfg(linux_kernel)] +use crate::backend::conv::ret_owned_fd; +use crate::backend::conv::{borrowed_fd, no_fd, ret}; +use crate::fd::BorrowedFd; +#[cfg(linux_kernel)] +use crate::fd::OwnedFd; +use crate::io; + +#[cfg(not(target_os = "redox"))] +pub(crate) fn madvise(addr: *mut c::c_void, len: usize, advice: Advice) -> io::Result<()> { + // On Linux platforms, `MADV_DONTNEED` has the same value as + // `POSIX_MADV_DONTNEED` but different behavior. We remap it to a different + // value, and check for it here. + #[cfg(target_os = "linux")] + if let Advice::LinuxDontNeed = advice { + return unsafe { ret(c::madvise(addr, len, c::MADV_DONTNEED)) }; + } + + #[cfg(not(target_os = "android"))] + { + let err = unsafe { c::posix_madvise(addr, len, advice as c::c_int) }; + + // `posix_madvise` returns its error status rather than using `errno`. + if err == 0 { + Ok(()) + } else { + Err(io::Errno(err)) + } + } + + #[cfg(target_os = "android")] + { + if let Advice::DontNeed = advice { + // Do nothing. Linux's `MADV_DONTNEED` isn't the same as + // `POSIX_MADV_DONTNEED`, so just discard `MADV_DONTNEED`. + Ok(()) + } else { + unsafe { ret(c::madvise(addr, len, advice as c::c_int)) } + } + } +} + +pub(crate) unsafe fn msync(addr: *mut c::c_void, len: usize, flags: MsyncFlags) -> io::Result<()> { + let err = c::msync(addr, len, bitflags_bits!(flags)); + + // `msync` returns its error status rather than using `errno`. + if err == 0 { + Ok(()) + } else { + Err(io::Errno(err)) + } +} + +/// # Safety +/// +/// `mmap` is primarily unsafe due to the `addr` parameter, as anything working +/// with memory pointed to by raw pointers is unsafe. +pub(crate) unsafe fn mmap( + ptr: *mut c::c_void, + len: usize, + prot: ProtFlags, + flags: MapFlags, + fd: BorrowedFd<'_>, + offset: u64, +) -> io::Result<*mut c::c_void> { + let res = c::mmap( + ptr, + len, + bitflags_bits!(prot), + bitflags_bits!(flags), + borrowed_fd(fd), + offset as i64, + ); + if res == c::MAP_FAILED { + Err(io::Errno::last_os_error()) + } else { + Ok(res) + } +} + +/// # Safety +/// +/// `mmap` is primarily unsafe due to the `addr` parameter, as anything working +/// with memory pointed to by raw pointers is unsafe. +pub(crate) unsafe fn mmap_anonymous( + ptr: *mut c::c_void, + len: usize, + prot: ProtFlags, + flags: MapFlags, +) -> io::Result<*mut c::c_void> { + let res = c::mmap( + ptr, + len, + bitflags_bits!(prot), + bitflags_bits!(flags | MapFlags::from_bits_retain(bitcast!(c::MAP_ANONYMOUS))), + no_fd(), + 0, + ); + if res == c::MAP_FAILED { + Err(io::Errno::last_os_error()) + } else { + Ok(res) + } +} + +pub(crate) unsafe fn mprotect( + ptr: *mut c::c_void, + len: usize, + flags: MprotectFlags, +) -> io::Result<()> { + ret(c::mprotect(ptr, len, bitflags_bits!(flags))) +} + +pub(crate) unsafe fn munmap(ptr: *mut c::c_void, len: usize) -> io::Result<()> { + ret(c::munmap(ptr, len)) +} + +/// # Safety +/// +/// `mremap` is primarily unsafe due to the `old_address` parameter, as +/// anything working with memory pointed to by raw pointers is unsafe. +#[cfg(any(target_os = "emscripten", target_os = "linux"))] +pub(crate) unsafe fn mremap( + old_address: *mut c::c_void, + old_size: usize, + new_size: usize, + flags: MremapFlags, +) -> io::Result<*mut c::c_void> { + let res = c::mremap(old_address, old_size, new_size, bitflags_bits!(flags)); + if res == c::MAP_FAILED { + Err(io::Errno::last_os_error()) + } else { + Ok(res) + } +} + +/// # Safety +/// +/// `mremap_fixed` is primarily unsafe due to the `old_address` and +/// `new_address` parameters, as anything working with memory pointed to by raw +/// pointers is unsafe. +#[cfg(any(target_os = "emscripten", target_os = "linux"))] +pub(crate) unsafe fn mremap_fixed( + old_address: *mut c::c_void, + old_size: usize, + new_size: usize, + flags: MremapFlags, + new_address: *mut c::c_void, +) -> io::Result<*mut c::c_void> { + let res = c::mremap( + old_address, + old_size, + new_size, + bitflags_bits!(flags | MremapFlags::from_bits_retain(bitcast!(c::MAP_FIXED))), + new_address, + ); + if res == c::MAP_FAILED { + Err(io::Errno::last_os_error()) + } else { + Ok(res) + } +} + +/// # Safety +/// +/// `mlock` operates on raw pointers and may round out to the nearest page +/// boundaries. +#[inline] +pub(crate) unsafe fn mlock(addr: *mut c::c_void, length: usize) -> io::Result<()> { + ret(c::mlock(addr, length)) +} + +/// # Safety +/// +/// `mlock_with` operates on raw pointers and may round out to the nearest page +/// boundaries. +#[cfg(linux_kernel)] +#[inline] +pub(crate) unsafe fn mlock_with( + addr: *mut c::c_void, + length: usize, + flags: MlockFlags, +) -> io::Result<()> { + weak_or_syscall! { + fn mlock2( + addr: *const c::c_void, + len: c::size_t, + flags: c::c_int + ) via SYS_mlock2 -> c::c_int + } + + ret(mlock2(addr, length, bitflags_bits!(flags))) +} + +/// # Safety +/// +/// `munlock` operates on raw pointers and may round out to the nearest page +/// boundaries. +#[inline] +pub(crate) unsafe fn munlock(addr: *mut c::c_void, length: usize) -> io::Result<()> { + ret(c::munlock(addr, length)) +} + +#[cfg(linux_kernel)] +pub(crate) unsafe fn userfaultfd(flags: UserfaultfdFlags) -> io::Result { + syscall! { + fn userfaultfd( + flags: c::c_int + ) via SYS_userfaultfd -> c::c_int + } + ret_owned_fd(userfaultfd(bitflags_bits!(flags))) +} + +/// Locks all pages mapped into the address space of the calling process. +/// +/// This includes the pages of the code, data, and stack segment, as well as +/// shared libraries, user space kernel data, shared memory, and memory-mapped +/// files. All mapped pages are guaranteed to be resident in RAM when the call +/// returns successfully; the pages are guaranteed to stay in RAM until later +/// unlocked. +#[inline] +#[cfg(any(linux_kernel, freebsdlike, netbsdlike))] +pub(crate) fn mlockall(flags: MlockAllFlags) -> io::Result<()> { + unsafe { ret(c::mlockall(bitflags_bits!(flags))) } +} + +/// Unlocks all pages mapped into the address space of the calling process. +#[inline] +#[cfg(any(linux_kernel, freebsdlike, netbsdlike))] +pub(crate) fn munlockall() -> io::Result<()> { + unsafe { ret(c::munlockall()) } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mm/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mm/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..6f7d24f5abc4a1b1604911a154eea8c76888892d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mm/types.rs @@ -0,0 +1,506 @@ +use crate::backend::c; +use bitflags::bitflags; + +bitflags! { + /// `PROT_*` flags for use with [`mmap`]. + /// + /// For `PROT_NONE`, use `ProtFlags::empty()`. + /// + /// [`mmap`]: crate::mm::mmap + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct ProtFlags: u32 { + /// `PROT_READ` + const READ = bitcast!(c::PROT_READ); + /// `PROT_WRITE` + const WRITE = bitcast!(c::PROT_WRITE); + /// `PROT_EXEC` + const EXEC = bitcast!(c::PROT_EXEC); + + /// + const _ = !0; + } +} + +bitflags! { + /// `PROT_*` flags for use with [`mprotect`]. + /// + /// For `PROT_NONE`, use `MprotectFlags::empty()`. + /// + /// [`mprotect`]: crate::mm::mprotect + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MprotectFlags: u32 { + /// `PROT_READ` + const READ = bitcast!(c::PROT_READ); + /// `PROT_WRITE` + const WRITE = bitcast!(c::PROT_WRITE); + /// `PROT_EXEC` + const EXEC = bitcast!(c::PROT_EXEC); + /// `PROT_GROWSUP` + #[cfg(linux_kernel)] + const GROWSUP = bitcast!(c::PROT_GROWSUP); + /// `PROT_GROWSDOWN` + #[cfg(linux_kernel)] + const GROWSDOWN = bitcast!(c::PROT_GROWSDOWN); + /// `PROT_SEM` + #[cfg(linux_raw_dep)] + const SEM = linux_raw_sys::general::PROT_SEM; + /// `PROT_BTI` + #[cfg(all(linux_raw_dep, target_arch = "aarch64"))] + const BTI = linux_raw_sys::general::PROT_BTI; + /// `PROT_MTE` + #[cfg(all(linux_raw_dep, target_arch = "aarch64"))] + const MTE = linux_raw_sys::general::PROT_MTE; + /// `PROT_SAO` + #[cfg(all(linux_raw_dep, any(target_arch = "powerpc", target_arch = "powerpc64")))] + const SAO = linux_raw_sys::general::PROT_SAO; + /// `PROT_ADI` + #[cfg(all(linux_raw_dep, any(target_arch = "sparc", target_arch = "sparc64")))] + const ADI = linux_raw_sys::general::PROT_ADI; + + /// + const _ = !0; + } +} + +bitflags! { + /// `MAP_*` flags for use with [`mmap`]. + /// + /// For `MAP_ANONYMOUS` (aka `MAP_ANON`), see [`mmap_anonymous`]. + /// + /// [`mmap`]: crate::mm::mmap + /// [`mmap_anonymous`]: crates::mm::mmap_anonymous + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MapFlags: u32 { + /// `MAP_SHARED` + const SHARED = bitcast!(c::MAP_SHARED); + /// `MAP_SHARED_VALIDATE` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "android", + target_os = "cygwin", + target_os = "emscripten", + target_os = "fuchsia", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "redox", + )))] + const SHARED_VALIDATE = bitcast!(c::MAP_SHARED_VALIDATE); + /// `MAP_PRIVATE` + const PRIVATE = bitcast!(c::MAP_PRIVATE); + /// `MAP_DENYWRITE` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "redox", + )))] + const DENYWRITE = bitcast!(c::MAP_DENYWRITE); + /// `MAP_FIXED` + const FIXED = bitcast!(c::MAP_FIXED); + /// `MAP_FIXED_NOREPLACE` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "android", + target_os = "cygwin", + target_os = "emscripten", + target_os = "fuchsia", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "redox", + )))] + const FIXED_NOREPLACE = bitcast!(c::MAP_FIXED_NOREPLACE); + /// `MAP_GROWSDOWN` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "redox", + )))] + const GROWSDOWN = bitcast!(c::MAP_GROWSDOWN); + /// `MAP_HUGETLB` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "redox", + )))] + const HUGETLB = bitcast!(c::MAP_HUGETLB); + /// `MAP_HUGE_2MB` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "android", + target_os = "cygwin", + target_os = "emscripten", + target_os = "fuchsia", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "redox", + )))] + const HUGE_2MB = bitcast!(c::MAP_HUGE_2MB); + /// `MAP_HUGE_1GB` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "android", + target_os = "cygwin", + target_os = "emscripten", + target_os = "fuchsia", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "redox", + )))] + const HUGE_1GB = bitcast!(c::MAP_HUGE_1GB); + /// `MAP_LOCKED` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "redox", + )))] + const LOCKED = bitcast!(c::MAP_LOCKED); + /// `MAP_NOCORE` + #[cfg(freebsdlike)] + const NOCORE = bitcast!(c::MAP_NOCORE); + /// `MAP_NORESERVE` + #[cfg(not(any( + freebsdlike, + target_os = "aix", + target_os = "hurd", + target_os = "nto", + target_os = "redox", + )))] + const NORESERVE = bitcast!(c::MAP_NORESERVE); + /// `MAP_NOSYNC` + #[cfg(freebsdlike)] + const NOSYNC = bitcast!(c::MAP_NOSYNC); + /// `MAP_POPULATE` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "redox", + )))] + const POPULATE = bitcast!(c::MAP_POPULATE); + /// `MAP_STACK` + #[cfg(not(any( + apple, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "hurd", + target_os = "redox", + )))] + const STACK = bitcast!(c::MAP_STACK); + /// `MAP_PREFAULT_READ` + #[cfg(target_os = "freebsd")] + const PREFAULT_READ = bitcast!(c::MAP_PREFAULT_READ); + /// `MAP_SYNC` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "android", + target_os = "cygwin", + target_os = "emscripten", + target_os = "fuchsia", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "redox", + all( + linux_kernel, + any(target_arch = "mips", target_arch = "mips32r6", target_arch = "mips64", target_arch = "mips64r6"), + ), + )))] + const SYNC = bitcast!(c::MAP_SYNC); + /// `MAP_UNINITIALIZED` + #[cfg(any())] + const UNINITIALIZED = bitcast!(c::MAP_UNINITIALIZED); + /// `MAP_DROPPABLE` + #[cfg(all(linux_kernel, not(target_os = "android")))] + const DROPPABLE = bitcast!(c::MAP_DROPPABLE); + + /// + const _ = !0; + } +} + +#[cfg(any(target_os = "emscripten", target_os = "linux"))] +bitflags! { + /// `MREMAP_*` flags for use with [`mremap`]. + /// + /// For `MREMAP_FIXED`, see [`mremap_fixed`]. + /// + /// [`mremap`]: crate::mm::mremap + /// [`mremap_fixed`]: crate::mm::mremap_fixed + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MremapFlags: u32 { + /// `MREMAP_MAYMOVE` + const MAYMOVE = bitcast!(c::MREMAP_MAYMOVE); + + /// + const _ = !0; + } +} + +bitflags! { + /// `MS_*` flags for use with [`msync`]. + /// + /// [`msync`]: crate::mm::msync + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MsyncFlags: u32 { + /// `MS_SYNC`—Requests an update and waits for it to complete. + const SYNC = bitcast!(c::MS_SYNC); + /// `MS_ASYNC`—Specifies that an update be scheduled, but the call + /// returns immediately. + const ASYNC = bitcast!(c::MS_ASYNC); + /// `MS_INVALIDATE`—Asks to invalidate other mappings of the same + /// file (so that they can be updated with the fresh values just + /// written). + const INVALIDATE = bitcast!(c::MS_INVALIDATE); + + /// + const _ = !0; + } +} + +#[cfg(linux_kernel)] +bitflags! { + /// `MLOCK_*` flags for use with [`mlock_with`]. + /// + /// [`mlock_with`]: crate::mm::mlock_with + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MlockFlags: u32 { + /// `MLOCK_ONFAULT` + const ONFAULT = bitcast!(c::MLOCK_ONFAULT); + + /// + const _ = !0; + } +} + +/// `POSIX_MADV_*` constants for use with [`madvise`]. +/// +/// [`madvise`]: crate::mm::madvise +#[cfg(not(target_os = "redox"))] +#[derive(Debug, Copy, Clone, Eq, PartialEq)] +#[repr(u32)] +#[non_exhaustive] +pub enum Advice { + /// `POSIX_MADV_NORMAL` + #[cfg(not(any(target_os = "android", target_os = "haiku")))] + Normal = bitcast!(c::POSIX_MADV_NORMAL), + + /// `POSIX_MADV_NORMAL` + #[cfg(any(target_os = "android", target_os = "haiku"))] + Normal = bitcast!(c::MADV_NORMAL), + + /// `POSIX_MADV_SEQUENTIAL` + #[cfg(not(any(target_os = "android", target_os = "haiku")))] + Sequential = bitcast!(c::POSIX_MADV_SEQUENTIAL), + + /// `POSIX_MADV_SEQUENTIAL` + #[cfg(any(target_os = "android", target_os = "haiku"))] + Sequential = bitcast!(c::MADV_SEQUENTIAL), + + /// `POSIX_MADV_RANDOM` + #[cfg(not(any(target_os = "android", target_os = "haiku")))] + Random = bitcast!(c::POSIX_MADV_RANDOM), + + /// `POSIX_MADV_RANDOM` + #[cfg(any(target_os = "android", target_os = "haiku"))] + Random = bitcast!(c::MADV_RANDOM), + + /// `POSIX_MADV_WILLNEED` + #[cfg(not(any(target_os = "android", target_os = "haiku")))] + WillNeed = bitcast!(c::POSIX_MADV_WILLNEED), + + /// `POSIX_MADV_WILLNEED` + #[cfg(any(target_os = "android", target_os = "haiku"))] + WillNeed = bitcast!(c::MADV_WILLNEED), + + /// `POSIX_MADV_DONTNEED` + #[cfg(not(any( + target_os = "android", + target_os = "emscripten", + target_os = "haiku", + target_os = "hurd", + )))] + DontNeed = bitcast!(c::POSIX_MADV_DONTNEED), + + /// `POSIX_MADV_DONTNEED` + #[cfg(any(target_os = "android", target_os = "haiku"))] + DontNeed = bitcast!(i32::MAX - 1), + + /// `MADV_DONTNEED` + // `MADV_DONTNEED` has the same value as `POSIX_MADV_DONTNEED`. We don't + // have a separate `posix_madvise` from `madvise`, so we expose a special + // value which we special-case. + #[cfg(target_os = "linux")] + LinuxDontNeed = bitcast!(i32::MAX), + + /// `MADV_DONTNEED` + #[cfg(target_os = "android")] + LinuxDontNeed = bitcast!(c::MADV_DONTNEED), + /// `MADV_FREE` + #[cfg(linux_kernel)] + LinuxFree = bitcast!(c::MADV_FREE), + /// `MADV_REMOVE` + #[cfg(linux_kernel)] + LinuxRemove = bitcast!(c::MADV_REMOVE), + /// `MADV_DONTFORK` + #[cfg(linux_kernel)] + LinuxDontFork = bitcast!(c::MADV_DONTFORK), + /// `MADV_DOFORK` + #[cfg(linux_kernel)] + LinuxDoFork = bitcast!(c::MADV_DOFORK), + /// `MADV_HWPOISON` + #[cfg(linux_kernel)] + LinuxHwPoison = bitcast!(c::MADV_HWPOISON), + /// `MADV_SOFT_OFFLINE` + #[cfg(all( + linux_kernel, + not(any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6" + )) + ))] + LinuxSoftOffline = bitcast!(c::MADV_SOFT_OFFLINE), + /// `MADV_MERGEABLE` + #[cfg(linux_kernel)] + LinuxMergeable = bitcast!(c::MADV_MERGEABLE), + /// `MADV_UNMERGEABLE` + #[cfg(linux_kernel)] + LinuxUnmergeable = bitcast!(c::MADV_UNMERGEABLE), + /// `MADV_HUGEPAGE` + #[cfg(linux_kernel)] + LinuxHugepage = bitcast!(c::MADV_HUGEPAGE), + /// `MADV_NOHUGEPAGE` + #[cfg(linux_kernel)] + LinuxNoHugepage = bitcast!(c::MADV_NOHUGEPAGE), + /// `MADV_DONTDUMP` (since Linux 3.4) + #[cfg(linux_kernel)] + LinuxDontDump = bitcast!(c::MADV_DONTDUMP), + /// `MADV_DODUMP` (since Linux 3.4) + #[cfg(linux_kernel)] + LinuxDoDump = bitcast!(c::MADV_DODUMP), + /// `MADV_WIPEONFORK` (since Linux 4.14) + #[cfg(linux_kernel)] + LinuxWipeOnFork = bitcast!(c::MADV_WIPEONFORK), + /// `MADV_KEEPONFORK` (since Linux 4.14) + #[cfg(linux_kernel)] + LinuxKeepOnFork = bitcast!(c::MADV_KEEPONFORK), + /// `MADV_COLD` (since Linux 5.4) + #[cfg(linux_kernel)] + LinuxCold = bitcast!(c::MADV_COLD), + /// `MADV_PAGEOUT` (since Linux 5.4) + #[cfg(linux_kernel)] + LinuxPageOut = bitcast!(c::MADV_PAGEOUT), + /// `MADV_POPULATE_READ` (since Linux 5.14) + #[cfg(linux_kernel)] + LinuxPopulateRead = bitcast!(c::MADV_POPULATE_READ), + /// `MADV_POPULATE_WRITE` (since Linux 5.14) + #[cfg(linux_kernel)] + LinuxPopulateWrite = bitcast!(c::MADV_POPULATE_WRITE), + /// `MADV_DONTNEED_LOCKED` (since Linux 5.18) + #[cfg(linux_kernel)] + LinuxDontneedLocked = bitcast!(c::MADV_DONTNEED_LOCKED), +} + +#[cfg(target_os = "emscripten")] +#[allow(non_upper_case_globals)] +impl Advice { + /// `POSIX_MADV_DONTNEED` + pub const DontNeed: Self = Self::Normal; +} + +#[cfg(linux_kernel)] +bitflags! { + /// `O_*` flags for use with [`userfaultfd`]. + /// + /// [`userfaultfd`]: crate::mm::userfaultfd + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct UserfaultfdFlags: u32 { + /// `O_CLOEXEC` + const CLOEXEC = bitcast!(c::O_CLOEXEC); + /// `O_NONBLOCK` + const NONBLOCK = bitcast!(c::O_NONBLOCK); + + /// + const _ = !0; + } +} + +#[cfg(any(linux_kernel, freebsdlike, netbsdlike))] +bitflags! { + /// `MCL_*` flags for use with [`mlockall`]. + /// + /// [`mlockall`]: crate::mm::mlockall + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MlockAllFlags: u32 { + /// Used together with `MCL_CURRENT`, `MCL_FUTURE`, or both. Mark all + /// current (with `MCL_CURRENT`) or future (with `MCL_FUTURE`) mappings + /// to lock pages when they are faulted in. When used with + /// `MCL_CURRENT`, all present pages are locked, but `mlockall` will + /// not fault in non-present pages. When used with `MCL_FUTURE`, all + /// future mappings will be marked to lock pages when they are faulted + /// in, but they will not be populated by the lock when the mapping is + /// created. `MCL_ONFAULT` must be used with either `MCL_CURRENT` or + /// `MCL_FUTURE` or both. + #[cfg(linux_kernel)] + const ONFAULT = bitcast!(c::MCL_ONFAULT); + /// Lock all pages which will become mapped into the address space of + /// the process in the future. These could be, for instance, new pages + /// required by a growing heap and stack as well as new memory-mapped + /// files or shared memory regions. + const FUTURE = bitcast!(c::MCL_FUTURE); + /// Lock all pages which are currently mapped into the address space of + /// the process. + const CURRENT = bitcast!(c::MCL_CURRENT); + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mount/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mount/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mount/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mount/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mount/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..c5414bca19f2260c6be5782c38fad2ddef0d1401 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mount/syscalls.rs @@ -0,0 +1,268 @@ +use crate::backend::c; +use crate::backend::conv::{borrowed_fd, c_str, ret, ret_owned_fd}; +use crate::fd::{BorrowedFd, OwnedFd}; +use crate::ffi::CStr; +use crate::io; +use core::ptr::null; + +#[cfg(linux_kernel)] +pub(crate) fn mount( + source: Option<&CStr>, + target: &CStr, + file_system_type: Option<&CStr>, + flags: super::types::MountFlagsArg, + data: Option<&CStr>, +) -> io::Result<()> { + unsafe { + ret(c::mount( + source.map_or_else(null, CStr::as_ptr), + target.as_ptr(), + file_system_type.map_or_else(null, CStr::as_ptr), + flags.0, + data.map_or_else(null, CStr::as_ptr).cast(), + )) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn unmount(target: &CStr, flags: super::types::UnmountFlags) -> io::Result<()> { + unsafe { ret(c::umount2(target.as_ptr(), bitflags_bits!(flags))) } +} + +#[cfg(linux_kernel)] +pub(crate) fn fsopen(fs_name: &CStr, flags: super::types::FsOpenFlags) -> io::Result { + syscall! { + fn fsopen( + fs_name: *const c::c_char, + flags: c::c_uint + ) via SYS_fsopen -> c::c_int + } + unsafe { ret_owned_fd(fsopen(c_str(fs_name), flags.bits())) } +} + +#[cfg(linux_kernel)] +pub(crate) fn fsmount( + fs_fd: BorrowedFd<'_>, + flags: super::types::FsMountFlags, + attr_flags: super::types::MountAttrFlags, +) -> io::Result { + syscall! { + fn fsmount( + fs_fd: c::c_int, + flags: c::c_uint, + attr_flags: c::c_uint + ) via SYS_fsmount -> c::c_int + } + unsafe { ret_owned_fd(fsmount(borrowed_fd(fs_fd), flags.bits(), attr_flags.bits())) } +} + +#[cfg(linux_kernel)] +pub(crate) fn move_mount( + from_dfd: BorrowedFd<'_>, + from_pathname: &CStr, + to_dfd: BorrowedFd<'_>, + to_pathname: &CStr, + flags: super::types::MoveMountFlags, +) -> io::Result<()> { + syscall! { + fn move_mount( + from_dfd: c::c_int, + from_pathname: *const c::c_char, + to_dfd: c::c_int, + to_pathname: *const c::c_char, + flags: c::c_uint + ) via SYS_move_mount -> c::c_int + } + unsafe { + ret(move_mount( + borrowed_fd(from_dfd), + c_str(from_pathname), + borrowed_fd(to_dfd), + c_str(to_pathname), + flags.bits(), + )) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn open_tree( + dfd: BorrowedFd<'_>, + filename: &CStr, + flags: super::types::OpenTreeFlags, +) -> io::Result { + syscall! { + fn open_tree( + dfd: c::c_int, + filename: *const c::c_char, + flags: c::c_uint + ) via SYS_open_tree -> c::c_int + } + + unsafe { ret_owned_fd(open_tree(borrowed_fd(dfd), c_str(filename), flags.bits())) } +} + +#[cfg(linux_kernel)] +pub(crate) fn fspick( + dfd: BorrowedFd<'_>, + path: &CStr, + flags: super::types::FsPickFlags, +) -> io::Result { + syscall! { + fn fspick( + dfd: c::c_int, + path: *const c::c_char, + flags: c::c_uint + ) via SYS_fspick -> c::c_int + } + + unsafe { ret_owned_fd(fspick(borrowed_fd(dfd), c_str(path), flags.bits())) } +} + +#[cfg(linux_kernel)] +syscall! { + fn fsconfig( + fs_fd: c::c_int, + cmd: c::c_uint, + key: *const c::c_char, + val: *const c::c_char, + aux: c::c_int + ) via SYS_fsconfig -> c::c_int +} + +#[cfg(linux_kernel)] +pub(crate) fn fsconfig_set_flag(fs_fd: BorrowedFd<'_>, key: &CStr) -> io::Result<()> { + unsafe { + ret(fsconfig( + borrowed_fd(fs_fd), + super::types::FsConfigCmd::SetFlag as _, + c_str(key), + null(), + 0, + )) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn fsconfig_set_string( + fs_fd: BorrowedFd<'_>, + key: &CStr, + value: &CStr, +) -> io::Result<()> { + unsafe { + ret(fsconfig( + borrowed_fd(fs_fd), + super::types::FsConfigCmd::SetString as _, + c_str(key), + c_str(value), + 0, + )) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn fsconfig_set_binary( + fs_fd: BorrowedFd<'_>, + key: &CStr, + value: &[u8], +) -> io::Result<()> { + unsafe { + ret(fsconfig( + borrowed_fd(fs_fd), + super::types::FsConfigCmd::SetBinary as _, + c_str(key), + value.as_ptr().cast(), + value.len().try_into().map_err(|_| io::Errno::OVERFLOW)?, + )) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn fsconfig_set_fd( + fs_fd: BorrowedFd<'_>, + key: &CStr, + fd: BorrowedFd<'_>, +) -> io::Result<()> { + unsafe { + ret(fsconfig( + borrowed_fd(fs_fd), + super::types::FsConfigCmd::SetFd as _, + c_str(key), + null(), + borrowed_fd(fd), + )) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn fsconfig_set_path( + fs_fd: BorrowedFd<'_>, + key: &CStr, + path: &CStr, + fd: BorrowedFd<'_>, +) -> io::Result<()> { + unsafe { + ret(fsconfig( + borrowed_fd(fs_fd), + super::types::FsConfigCmd::SetPath as _, + c_str(key), + c_str(path), + borrowed_fd(fd), + )) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn fsconfig_set_path_empty( + fs_fd: BorrowedFd<'_>, + key: &CStr, + fd: BorrowedFd<'_>, +) -> io::Result<()> { + unsafe { + ret(fsconfig( + borrowed_fd(fs_fd), + super::types::FsConfigCmd::SetPathEmpty as _, + c_str(key), + c_str(cstr!("")), + borrowed_fd(fd), + )) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn fsconfig_create(fs_fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { + ret(fsconfig( + borrowed_fd(fs_fd), + super::types::FsConfigCmd::Create as _, + null(), + null(), + 0, + )) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn fsconfig_reconfigure(fs_fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { + ret(fsconfig( + borrowed_fd(fs_fd), + super::types::FsConfigCmd::Reconfigure as _, + null(), + null(), + 0, + )) + } +} + +#[cfg(linux_kernel)] +pub(crate) fn fsconfig_create_excl(fs_fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { + ret(fsconfig( + borrowed_fd(fs_fd), + super::types::FsConfigCmd::CreateExclusive as _, + null(), + null(), + 0, + )) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mount/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mount/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..b5c7aadebc3c4b3c639661705559b3064638e6db --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/mount/types.rs @@ -0,0 +1,348 @@ +use crate::backend::c; +use crate::ffi; +use bitflags::bitflags; + +#[cfg(linux_kernel)] +bitflags! { + /// `MS_*` constants for use with [`mount`]. + /// + /// [`mount`]: crate::mount::mount + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MountFlags: ffi::c_ulong { + /// `MS_BIND` + const BIND = c::MS_BIND; + + /// `MS_DIRSYNC` + const DIRSYNC = c::MS_DIRSYNC; + + /// `MS_LAZYTIME` + const LAZYTIME = c::MS_LAZYTIME; + + /// `MS_MANDLOCK` + #[doc(alias = "MANDLOCK")] + const PERMIT_MANDATORY_FILE_LOCKING = c::MS_MANDLOCK; + + /// `MS_NOATIME` + const NOATIME = c::MS_NOATIME; + + /// `MS_NODEV` + const NODEV = c::MS_NODEV; + + /// `MS_NODIRATIME` + const NODIRATIME = c::MS_NODIRATIME; + + /// `MS_NOEXEC` + const NOEXEC = c::MS_NOEXEC; + + /// `MS_NOSUID` + const NOSUID = c::MS_NOSUID; + + /// `MS_RDONLY` + const RDONLY = c::MS_RDONLY; + + /// `MS_REC` + const REC = c::MS_REC; + + /// `MS_RELATIME` + const RELATIME = c::MS_RELATIME; + + /// `MS_SILENT` + const SILENT = c::MS_SILENT; + + /// `MS_STRICTATIME` + const STRICTATIME = c::MS_STRICTATIME; + + /// `MS_SYNCHRONOUS` + const SYNCHRONOUS = c::MS_SYNCHRONOUS; + + /// `MS_NOSYMFOLLOW` + #[cfg(linux_raw_dep)] + const NOSYMFOLLOW = c::MS_NOSYMFOLLOW; + + /// + const _ = !0; + } +} + +#[cfg(linux_kernel)] +bitflags! { + /// `MNT_*` constants for use with [`unmount`]. + /// + /// [`unmount`]: crate::mount::unmount + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct UnmountFlags: u32 { + /// `MNT_FORCE` + const FORCE = bitcast!(c::MNT_FORCE); + /// `MNT_DETACH` + const DETACH = bitcast!(c::MNT_DETACH); + /// `MNT_EXPIRE` + const EXPIRE = bitcast!(c::MNT_EXPIRE); + /// `UMOUNT_NOFOLLOW` + const NOFOLLOW = bitcast!(c::UMOUNT_NOFOLLOW); + + /// + const _ = !0; + } +} + +#[cfg(linux_kernel)] +bitflags! { + /// `FSOPEN_*` constants for use with [`fsopen`]. + /// + /// [`fsopen`]: crate::mount::fsopen + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct FsOpenFlags: ffi::c_uint { + /// `FSOPEN_CLOEXEC` + const FSOPEN_CLOEXEC = 0x0000_0001; + + /// + const _ = !0; + } +} + +#[cfg(linux_kernel)] +bitflags! { + /// `FSMOUNT_*` constants for use with [`fsmount`]. + /// + /// [`fsmount`]: crate::mount::fsmount + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct FsMountFlags: ffi::c_uint { + /// `FSMOUNT_CLOEXEC` + const FSMOUNT_CLOEXEC = 0x0000_0001; + + /// + const _ = !0; + } +} + +/// `FSCONFIG_*` constants for use with the `fsconfig` syscall. +#[cfg(linux_kernel)] +#[derive(Debug, Copy, Clone, Eq, PartialEq)] +#[repr(u32)] +pub(crate) enum FsConfigCmd { + /// `FSCONFIG_SET_FLAG` + SetFlag = 0, + + /// `FSCONFIG_SET_STRING` + SetString = 1, + + /// `FSCONFIG_SET_BINARY` + SetBinary = 2, + + /// `FSCONFIG_SET_PATH` + SetPath = 3, + + /// `FSCONFIG_SET_PATH_EMPTY` + SetPathEmpty = 4, + + /// `FSCONFIG_SET_FD` + SetFd = 5, + + /// `FSCONFIG_CMD_CREATE` + Create = 6, + + /// `FSCONFIG_CMD_RECONFIGURE` + Reconfigure = 7, + + /// `FSCONFIG_CMD_CREATE_EXCL` (since Linux 6.6) + CreateExclusive = 8, +} + +#[cfg(linux_kernel)] +bitflags! { + /// `MOUNT_ATTR_*` constants for use with [`fsmount`]. + /// + /// [`fsmount`]: crate::mount::fsmount + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MountAttrFlags: ffi::c_uint { + /// `MOUNT_ATTR_RDONLY` + const MOUNT_ATTR_RDONLY = 0x0000_0001; + + /// `MOUNT_ATTR_NOSUID` + const MOUNT_ATTR_NOSUID = 0x0000_0002; + + /// `MOUNT_ATTR_NODEV` + const MOUNT_ATTR_NODEV = 0x0000_0004; + + /// `MOUNT_ATTR_NOEXEC` + const MOUNT_ATTR_NOEXEC = 0x0000_0008; + + /// `MOUNT_ATTR__ATIME` + const MOUNT_ATTR__ATIME = 0x0000_0070; + + /// `MOUNT_ATTR_RELATIME` + const MOUNT_ATTR_RELATIME = 0x0000_0000; + + /// `MOUNT_ATTR_NOATIME` + const MOUNT_ATTR_NOATIME = 0x0000_0010; + + /// `MOUNT_ATTR_STRICTATIME` + const MOUNT_ATTR_STRICTATIME = 0x0000_0020; + + /// `MOUNT_ATTR_NODIRATIME` + const MOUNT_ATTR_NODIRATIME = 0x0000_0080; + + /// `MOUNT_ATTR_NOUSER` + const MOUNT_ATTR_IDMAP = 0x0010_0000; + + /// `MOUNT_ATTR__ATIME_FLAGS` + const MOUNT_ATTR_NOSYMFOLLOW = 0x0020_0000; + + /// `MOUNT_ATTR__ATIME_FLAGS` + const MOUNT_ATTR_SIZE_VER0 = 32; + + /// + const _ = !0; + } +} + +#[cfg(linux_kernel)] +bitflags! { + /// `MOVE_MOUNT_*` constants for use with [`move_mount`]. + /// + /// [`move_mount`]: crate::mount::move_mount + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MoveMountFlags: ffi::c_uint { + /// `MOVE_MOUNT_F_EMPTY_PATH` + const MOVE_MOUNT_F_SYMLINKS = 0x0000_0001; + + /// `MOVE_MOUNT_F_AUTOMOUNTS` + const MOVE_MOUNT_F_AUTOMOUNTS = 0x0000_0002; + + /// `MOVE_MOUNT_F_EMPTY_PATH` + const MOVE_MOUNT_F_EMPTY_PATH = 0x0000_0004; + + /// `MOVE_MOUNT_T_SYMLINKS` + const MOVE_MOUNT_T_SYMLINKS = 0x0000_0010; + + /// `MOVE_MOUNT_T_AUTOMOUNTS` + const MOVE_MOUNT_T_AUTOMOUNTS = 0x0000_0020; + + /// `MOVE_MOUNT_T_EMPTY_PATH` + const MOVE_MOUNT_T_EMPTY_PATH = 0x0000_0040; + + /// `MOVE_MOUNT__MASK` + const MOVE_MOUNT_SET_GROUP = 0x0000_0100; + + /// `MOVE_MOUNT_BENEATH` (since Linux 6.5) + const MOVE_MOUNT_BENEATH = 0x0000_0200; + + /// `MOVE_MOUNT__MASK` + const MOVE_MOUNT__MASK = 0x0000_0377; + + /// + const _ = !0; + } +} + +#[cfg(linux_kernel)] +bitflags! { + /// `OPENTREE_*` constants for use with [`open_tree`]. + /// + /// [`open_tree`]: crate::mount::open_tree + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct OpenTreeFlags: ffi::c_uint { + /// `OPENTREE_CLONE` + const OPEN_TREE_CLONE = 1; + + /// `OPENTREE_CLOEXEC` + const OPEN_TREE_CLOEXEC = c::O_CLOEXEC as c::c_uint; + + /// `AT_EMPTY_PATH` + const AT_EMPTY_PATH = c::AT_EMPTY_PATH as c::c_uint; + + /// `AT_NO_AUTOMOUNT` + const AT_NO_AUTOMOUNT = c::AT_NO_AUTOMOUNT as c::c_uint; + + /// `AT_RECURSIVE` + const AT_RECURSIVE = c::AT_RECURSIVE as c::c_uint; + + /// `AT_SYMLINK_NOFOLLOW` + const AT_SYMLINK_NOFOLLOW = c::AT_SYMLINK_NOFOLLOW as c::c_uint; + + /// + const _ = !0; + } +} + +#[cfg(linux_kernel)] +bitflags! { + /// `FSPICK_*` constants for use with [`fspick`]. + /// + /// [`fspick`]: crate::mount::fspick + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct FsPickFlags: ffi::c_uint { + /// `FSPICK_CLOEXEC` + const FSPICK_CLOEXEC = 0x0000_0001; + + /// `FSPICK_SYMLINK_NOFOLLOW` + const FSPICK_SYMLINK_NOFOLLOW = 0x0000_0002; + + /// `FSPICK_NO_AUTOMOUNT` + const FSPICK_NO_AUTOMOUNT = 0x0000_0004; + + /// `FSPICK_EMPTY_PATH` + const FSPICK_EMPTY_PATH = 0x0000_0008; + + /// + const _ = !0; + } +} + +#[cfg(linux_kernel)] +bitflags! { + /// `MS_*` constants for use with [`mount_change`]. + /// + /// [`mount_change`]: crate::mount::mount_change + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MountPropagationFlags: ffi::c_ulong { + /// `MS_SILENT` + const SILENT = c::MS_SILENT; + /// `MS_SHARED` + const SHARED = c::MS_SHARED; + /// `MS_PRIVATE` + const PRIVATE = c::MS_PRIVATE; + /// Mark a mount as a downstream of its current peer group. + /// + /// Mount and unmount events propagate from the upstream peer group + /// into the downstream. + /// + /// In Linux documentation, this flag is named `MS_SLAVE`, and the + /// concepts of “upstream” and “downstream” are called + /// “master” and “slave”. + #[doc(alias = "SLAVE")] + const DOWNSTREAM = c::MS_SLAVE; + /// `MS_UNBINDABLE` + const UNBINDABLE = c::MS_UNBINDABLE; + /// `MS_REC` + const REC = c::MS_REC; + + /// + const _ = !0; + } +} + +#[cfg(linux_kernel)] +bitflags! { + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub(crate) struct InternalMountFlags: c::c_ulong { + const REMOUNT = c::MS_REMOUNT; + const MOVE = c::MS_MOVE; + + /// + const _ = !0; + } +} + +#[cfg(linux_kernel)] +pub(crate) struct MountFlagsArg(pub(crate) c::c_ulong); diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/addr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/addr.rs new file mode 100644 index 0000000000000000000000000000000000000000..1699ffa991a55da3d3575b16da7ab8dea7b58296 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/addr.rs @@ -0,0 +1,390 @@ +//! Socket address utilities. + +use crate::backend::c; +use crate::net::AddressFamily; +#[cfg(unix)] +use { + crate::ffi::CStr, + crate::io, + crate::net::addr::SocketAddrLen, + crate::path, + core::cmp::Ordering, + core::fmt, + core::hash::{Hash, Hasher}, + core::slice, +}; +#[cfg(all(unix, feature = "alloc"))] +use {crate::ffi::CString, alloc::borrow::Cow, alloc::vec::Vec}; + +/// `struct sockaddr_un` +#[cfg(unix)] +#[derive(Clone)] +#[doc(alias = "sockaddr_un")] +pub struct SocketAddrUnix { + pub(crate) unix: c::sockaddr_un, + #[cfg(not(any(bsd, target_os = "haiku")))] + len: c::socklen_t, +} + +#[cfg(unix)] +impl SocketAddrUnix { + /// Construct a new Unix-domain address from a filesystem path. + #[inline] + pub fn new(path: P) -> io::Result { + path.into_with_c_str(Self::_new) + } + + #[inline] + fn _new(path: &CStr) -> io::Result { + let mut unix = Self::init(); + let mut bytes = path.to_bytes_with_nul(); + if bytes.len() > unix.sun_path.len() { + bytes = path.to_bytes(); // without NUL + if bytes.len() > unix.sun_path.len() { + return Err(io::Errno::NAMETOOLONG); + } + } + for (i, b) in bytes.iter().enumerate() { + unix.sun_path[i] = *b as c::c_char; + } + + #[cfg(any(bsd, target_os = "haiku"))] + { + unix.sun_len = (offsetof_sun_path() + bytes.len()).try_into().unwrap(); + } + + Ok(Self { + unix, + #[cfg(not(any(bsd, target_os = "haiku")))] + len: (offsetof_sun_path() + bytes.len()).try_into().unwrap(), + }) + } + + /// Construct a new abstract Unix-domain address from a byte slice. + #[cfg(linux_kernel)] + #[inline] + pub fn new_abstract_name(name: &[u8]) -> io::Result { + let mut unix = Self::init(); + if 1 + name.len() > unix.sun_path.len() { + return Err(io::Errno::NAMETOOLONG); + } + unix.sun_path[0] = 0; + for (i, b) in name.iter().enumerate() { + unix.sun_path[1 + i] = *b as c::c_char; + } + let len = offsetof_sun_path() + 1 + name.len(); + let len = len.try_into().unwrap(); + Ok(Self { + unix, + #[cfg(not(any(bsd, target_os = "haiku")))] + len, + }) + } + + /// Construct a new unnamed address. + /// + /// The kernel will assign an abstract Unix-domain address to the socket + /// when you call [`bind`][crate::net::bind]. You can inspect the assigned + /// name with [`getsockname`][crate::net::getsockname]. + /// + /// # References + /// - [Linux] + /// + /// [Linux]: https://www.man7.org/linux/man-pages/man7/unix.7.html + #[cfg(linux_kernel)] + #[inline] + pub fn new_unnamed() -> Self { + Self { + unix: Self::init(), + #[cfg(not(any(bsd, target_os = "haiku")))] + len: offsetof_sun_path() as c::socklen_t, + } + } + + const fn init() -> c::sockaddr_un { + c::sockaddr_un { + #[cfg(any( + bsd, + target_os = "aix", + target_os = "haiku", + target_os = "horizon", + target_os = "nto", + target_os = "hurd", + ))] + sun_len: 0, + #[cfg(target_os = "vita")] + ss_len: 0, + sun_family: c::AF_UNIX as _, + #[cfg(any(bsd, target_os = "horizon", target_os = "nto"))] + sun_path: [0; 104], + #[cfg(not(any( + bsd, + target_os = "aix", + target_os = "haiku", + target_os = "horizon", + target_os = "nto" + )))] + sun_path: [0; 108], + #[cfg(target_os = "haiku")] + sun_path: [0; 126], + #[cfg(target_os = "aix")] + sun_path: [0; 1023], + } + } + + /// For a filesystem path address, return the path. + #[inline] + #[cfg(feature = "alloc")] + #[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] + pub fn path(&self) -> Option> { + let bytes = self.bytes()?; + if !bytes.is_empty() && bytes[0] != 0 { + if self.unix.sun_path.len() == bytes.len() { + // SAFETY: There are no NULs contained in bytes. + unsafe { Self::path_with_termination(bytes) } + } else { + // SAFETY: `from_bytes_with_nul_unchecked` since the string is + // NUL-terminated. + Some(unsafe { CStr::from_bytes_with_nul_unchecked(bytes) }.into()) + } + } else { + None + } + } + + /// If the `sun_path` field is not NUL-terminated, terminate it. + /// + /// SAFETY: The input `bytes` must not contain any NULs. + #[cfg(feature = "alloc")] + #[cold] + unsafe fn path_with_termination(bytes: &[u8]) -> Option> { + let mut owned = Vec::with_capacity(bytes.len() + 1); + owned.extend_from_slice(bytes); + owned.push(b'\0'); + // SAFETY: `from_vec_with_nul_unchecked` since the string is + // NUL-terminated and `bytes` does not contain any NULs. + Some(Cow::Owned( + CString::from_vec_with_nul_unchecked(owned).into(), + )) + } + + /// For a filesystem path address, return the path as a byte sequence, + /// excluding the NUL terminator. + #[inline] + pub fn path_bytes(&self) -> Option<&[u8]> { + let bytes = self.bytes()?; + if !bytes.is_empty() && bytes[0] != 0 { + if self.unix.sun_path.len() == self.len() - offsetof_sun_path() { + // There is no NUL terminator. + Some(bytes) + } else { + // Remove the NUL terminator. + Some(&bytes[..bytes.len() - 1]) + } + } else { + None + } + } + + /// For an abstract address, return the identifier. + #[cfg(linux_kernel)] + #[inline] + pub fn abstract_name(&self) -> Option<&[u8]> { + if let [0, bytes @ ..] = self.bytes()? { + Some(bytes) + } else { + None + } + } + + /// `true` if the socket address is unnamed. + #[cfg(linux_kernel)] + #[inline] + pub fn is_unnamed(&self) -> bool { + self.bytes() == Some(&[]) + } + + #[inline] + pub(crate) fn addr_len(&self) -> SocketAddrLen { + #[cfg(not(any(bsd, target_os = "haiku")))] + { + bitcast!(self.len) + } + #[cfg(any(bsd, target_os = "haiku"))] + { + bitcast!(c::socklen_t::from(self.unix.sun_len)) + } + } + + #[inline] + pub(crate) fn len(&self) -> usize { + self.addr_len() as usize + } + + #[inline] + fn bytes(&self) -> Option<&[u8]> { + let len = self.len(); + if len != 0 { + let bytes = &self.unix.sun_path[..len - offsetof_sun_path()]; + // SAFETY: `from_raw_parts` to convert from `&[c_char]` to `&[u8]`. + Some(unsafe { slice::from_raw_parts(bytes.as_ptr().cast(), bytes.len()) }) + } else { + None + } + } +} + +#[cfg(unix)] +impl PartialEq for SocketAddrUnix { + #[inline] + fn eq(&self, other: &Self) -> bool { + let self_len = self.len() - offsetof_sun_path(); + let other_len = other.len() - offsetof_sun_path(); + self.unix.sun_path[..self_len].eq(&other.unix.sun_path[..other_len]) + } +} + +#[cfg(unix)] +impl Eq for SocketAddrUnix {} + +#[cfg(unix)] +impl PartialOrd for SocketAddrUnix { + #[inline] + fn partial_cmp(&self, other: &Self) -> Option { + Some(self.cmp(other)) + } +} + +#[cfg(unix)] +impl Ord for SocketAddrUnix { + #[inline] + fn cmp(&self, other: &Self) -> Ordering { + let self_len = self.len() - offsetof_sun_path(); + let other_len = other.len() - offsetof_sun_path(); + self.unix.sun_path[..self_len].cmp(&other.unix.sun_path[..other_len]) + } +} + +#[cfg(unix)] +impl Hash for SocketAddrUnix { + #[inline] + fn hash(&self, state: &mut H) { + let self_len = self.len() - offsetof_sun_path(); + self.unix.sun_path[..self_len].hash(state) + } +} + +#[cfg(unix)] +impl fmt::Debug for SocketAddrUnix { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + #[cfg(feature = "alloc")] + if let Some(path) = self.path() { + return path.fmt(f); + } + if let Some(bytes) = self.path_bytes() { + if let Ok(s) = core::str::from_utf8(bytes) { + return s.fmt(f); + } + return bytes.fmt(f); + } + #[cfg(linux_kernel)] + if let Some(name) = self.abstract_name() { + return name.fmt(f); + } + "(unnamed)".fmt(f) + } +} + +/// `struct sockaddr_storage` +/// +/// This type is guaranteed to be large enough to hold any encoded socket +/// address. +#[repr(transparent)] +#[derive(Copy, Clone)] +#[doc(alias = "sockaddr_storage")] +pub struct SocketAddrStorage(c::sockaddr_storage); + +impl SocketAddrStorage { + /// Return a socket addr storage initialized to all zero bytes. The + /// `sa_family` is set to [`AddressFamily::UNSPEC`]. + pub fn zeroed() -> Self { + assert_eq!(c::AF_UNSPEC, 0); + // SAFETY: `sockaddr_storage` is meant to be zero-initializable. + unsafe { core::mem::zeroed() } + } + + /// Return the `sa_family` of this socket address. + pub fn family(&self) -> AddressFamily { + // SAFETY: `self.0` is a `sockaddr_storage` so it has enough space. + unsafe { + AddressFamily::from_raw(crate::backend::net::read_sockaddr::read_sa_family( + crate::utils::as_ptr(&self.0).cast::(), + )) + } + } + + /// Clear the `sa_family` of this socket address to + /// [`AddressFamily::UNSPEC`]. + pub fn clear_family(&mut self) { + // SAFETY: `self.0` is a `sockaddr_storage` so it has enough space. + unsafe { + crate::backend::net::read_sockaddr::initialize_family_to_unspec( + crate::utils::as_mut_ptr(&mut self.0).cast::(), + ) + } + } +} + +/// Return the offset of the `sun_path` field of `sockaddr_un`. +#[cfg(not(windows))] +#[inline] +pub(crate) fn offsetof_sun_path() -> usize { + let z = c::sockaddr_un { + #[cfg(any( + bsd, + target_os = "aix", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "nto", + ))] + sun_len: 0_u8, + #[cfg(target_os = "vita")] + ss_len: 0, + #[cfg(any( + bsd, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "vita" + ))] + sun_family: 0_u8, + #[cfg(not(any( + bsd, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "vita" + )))] + sun_family: 0_u16, + #[cfg(any(bsd, target_os = "horizon", target_os = "nto"))] + sun_path: [0; 104], + #[cfg(not(any( + bsd, + target_os = "aix", + target_os = "haiku", + target_os = "horizon", + target_os = "nto" + )))] + sun_path: [0; 108], + #[cfg(target_os = "haiku")] + sun_path: [0; 126], + #[cfg(target_os = "aix")] + sun_path: [0; 1023], + }; + (crate::utils::as_ptr(&z.sun_path) as usize) - (crate::utils::as_ptr(&z) as usize) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/ext.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/ext.rs new file mode 100644 index 0000000000000000000000000000000000000000..efd2b31c83721ff18b859170b8aeed6f66af2ddc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/ext.rs @@ -0,0 +1,137 @@ +use crate::backend::c; + +/// The windows `sockaddr_in6` type is a union with accessor functions which +/// are not `const fn`. Define our own layout-compatible version so that we +/// can transmute in and out of it. +#[cfg(windows)] +#[repr(C)] +struct sockaddr_in6 { + sin6_family: u16, + sin6_port: u16, + sin6_flowinfo: u32, + sin6_addr: c::in6_addr, + sin6_scope_id: u32, +} + +#[cfg(not(windows))] +#[inline] +pub(crate) const fn in_addr_s_addr(addr: c::in_addr) -> u32 { + addr.s_addr +} + +#[cfg(windows)] +#[inline] +pub(crate) const fn in_addr_s_addr(addr: c::in_addr) -> u32 { + // This should be `*addr.S_un.S_addr()`, except that isn't a `const fn`. + unsafe { core::mem::transmute(addr) } +} + +#[cfg(not(windows))] +#[inline] +pub(crate) const fn in_addr_new(s_addr: u32) -> c::in_addr { + c::in_addr { s_addr } +} + +#[cfg(windows)] +#[inline] +pub(crate) const fn in_addr_new(s_addr: u32) -> c::in_addr { + unsafe { core::mem::transmute(s_addr) } +} + +#[cfg(not(windows))] +#[inline] +pub(crate) const fn in6_addr_s6_addr(addr: c::in6_addr) -> [u8; 16] { + addr.s6_addr +} + +#[cfg(windows)] +#[inline] +pub(crate) const fn in6_addr_s6_addr(addr: c::in6_addr) -> [u8; 16] { + unsafe { core::mem::transmute(addr) } +} + +#[cfg(not(windows))] +#[inline] +pub(crate) const fn in6_addr_new(s6_addr: [u8; 16]) -> c::in6_addr { + c::in6_addr { s6_addr } +} + +#[cfg(windows)] +#[inline] +pub(crate) const fn in6_addr_new(s6_addr: [u8; 16]) -> c::in6_addr { + unsafe { core::mem::transmute(s6_addr) } +} + +#[cfg(not(windows))] +#[inline] +pub(crate) const fn sockaddr_in6_sin6_scope_id(addr: &c::sockaddr_in6) -> u32 { + addr.sin6_scope_id +} + +#[cfg(windows)] +#[inline] +pub(crate) const fn sockaddr_in6_sin6_scope_id(addr: &c::sockaddr_in6) -> u32 { + let addr: &sockaddr_in6 = unsafe { core::mem::transmute(addr) }; + addr.sin6_scope_id +} + +#[cfg(not(windows))] +#[inline] +pub(crate) const fn sockaddr_in6_new( + #[cfg(any( + bsd, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "vita" + ))] + sin6_len: u8, + sin6_family: c::sa_family_t, + sin6_port: u16, + sin6_flowinfo: u32, + sin6_addr: c::in6_addr, + sin6_scope_id: u32, +) -> c::sockaddr_in6 { + c::sockaddr_in6 { + #[cfg(any( + bsd, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "vita" + ))] + sin6_len, + sin6_family, + sin6_port, + sin6_flowinfo, + sin6_addr, + sin6_scope_id, + #[cfg(solarish)] + __sin6_src_id: 0, + #[cfg(target_os = "vita")] + sin6_vport: 0, + } +} + +#[cfg(windows)] +#[inline] +pub(crate) const fn sockaddr_in6_new( + sin6_family: u16, + sin6_port: u16, + sin6_flowinfo: u32, + sin6_addr: c::in6_addr, + sin6_scope_id: u32, +) -> c::sockaddr_in6 { + let addr = sockaddr_in6 { + sin6_family, + sin6_port, + sin6_flowinfo, + sin6_addr, + sin6_scope_id, + }; + unsafe { core::mem::transmute(addr) } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..201362625162f97317a44252df26d30a0b7ec394 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/mod.rs @@ -0,0 +1,16 @@ +pub(crate) mod addr; +pub(crate) mod ext; +#[cfg(not(any( + windows, + target_os = "espidf", + target_os = "horizon", + target_os = "vita" +)))] +pub(crate) mod msghdr; +#[cfg(linux_kernel)] +pub(crate) mod netdevice; +pub(crate) mod read_sockaddr; +pub(crate) mod send_recv; +pub(crate) mod sockopt; +pub(crate) mod syscalls; +pub(crate) mod write_sockaddr; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/msghdr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/msghdr.rs new file mode 100644 index 0000000000000000000000000000000000000000..f46ac7e2906423f246f6f632ea3f5306da0d02f9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/msghdr.rs @@ -0,0 +1,183 @@ +//! Utilities for dealing with message headers. +//! +//! These take closures rather than returning a `c::msghdr` directly because +//! the message headers may reference stack-local data. + +use crate::backend::c; + +use crate::io::{self, IoSlice, IoSliceMut}; +use crate::net::addr::SocketAddrArg; +use crate::net::{RecvAncillaryBuffer, SendAncillaryBuffer, SocketAddrBuf}; + +use core::mem::zeroed; + +/// Convert the value to the `msg_iovlen` field of a `msghdr` struct. +#[cfg(all( + not(any(windows, target_os = "espidf", target_os = "wasi")), + any( + target_os = "android", + target_os = "redox", + all( + target_os = "linux", + not(target_env = "musl"), + not(all(target_env = "uclibc", any(target_arch = "arm", target_arch = "mips"))) + ) + ) +))] +#[inline] +fn msg_iov_len(len: usize) -> c::size_t { + len +} + +/// Convert the value to the `msg_iovlen` field of a `msghdr` struct. +#[cfg(all( + not(any(windows, target_os = "espidf", target_os = "vita", target_os = "wasi")), + not(any( + target_os = "android", + target_os = "redox", + all( + target_os = "linux", + not(target_env = "musl"), + not(all(target_env = "uclibc", any(target_arch = "arm", target_arch = "mips"))) + ) + )) +))] +#[inline] +fn msg_iov_len(len: usize) -> c::c_int { + len.try_into().unwrap_or(c::c_int::MAX) +} + +/// Convert the value to a `socklen_t`. +#[cfg(any( + bsd, + solarish, + target_env = "musl", + target_os = "aix", + target_os = "cygwin", + target_os = "emscripten", + target_os = "fuchsia", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", +))] +#[inline] +fn msg_control_len(len: usize) -> c::socklen_t { + len.try_into().unwrap_or(c::socklen_t::MAX) +} + +/// Convert the value to a `size_t`. +#[cfg(not(any( + bsd, + solarish, + windows, + target_env = "musl", + target_os = "aix", + target_os = "cygwin", + target_os = "emscripten", + target_os = "espidf", + target_os = "fuchsia", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "vita", + target_os = "wasi", +)))] +#[inline] +fn msg_control_len(len: usize) -> c::size_t { + len +} + +/// Create a message header intended to receive a datagram. +/// +/// # Safety +/// +/// If `f` dereferences the pointers in the `msghdr`, it must do so only within +/// the bounds indicated by the associated lengths in the `msghdr`. +/// +/// And, if `f` returns `Ok`, it must have updated the `msg_controllen` field +/// of the `msghdr` to indicate how many bytes it initialized. +pub(crate) unsafe fn with_recv_msghdr( + name: &mut SocketAddrBuf, + iov: &mut [IoSliceMut<'_>], + control: &mut RecvAncillaryBuffer<'_>, + f: impl FnOnce(&mut c::msghdr) -> io::Result, +) -> io::Result { + control.clear(); + + let mut msghdr = zero_msghdr(); + msghdr.msg_name = name.storage.as_mut_ptr().cast(); + msghdr.msg_namelen = name.len; + msghdr.msg_iov = iov.as_mut_ptr().cast(); + msghdr.msg_iovlen = msg_iov_len(iov.len()); + msghdr.msg_control = control.as_control_ptr().cast(); + msghdr.msg_controllen = msg_control_len(control.control_len()); + + let res = f(&mut msghdr); + + // Reset the control length. + if res.is_ok() { + // SAFETY: `f` returned `Ok`, so our safety condition requires `f` to + // have initialized `msg_controllen` bytes. + control.set_control_len(msghdr.msg_controllen as usize); + } + + name.len = msghdr.msg_namelen; + + res +} + +/// Create a message header intended to send without an address. +/// +/// The returned `msghdr` will contain raw pointers to the memory +/// referenced by `iov` and `control`. +pub(crate) fn noaddr_msghdr( + iov: &[IoSlice<'_>], + control: &mut SendAncillaryBuffer<'_, '_, '_>, +) -> c::msghdr { + let mut h = zero_msghdr(); + h.msg_iov = iov.as_ptr() as _; + h.msg_iovlen = msg_iov_len(iov.len()); + h.msg_control = control.as_control_ptr().cast(); + h.msg_controllen = msg_control_len(control.control_len()); + h +} + +/// Create a message header intended to send with the specified address. +/// +/// This creates a `c::msghdr` and calls a function `f` on it. The `msghdr`'s +/// raw pointers may point to temporaries, so this function should avoid +/// storing the pointers anywhere that would outlive the function call. +/// +/// # Safety +/// +/// If `f` dereferences the pointers in the `msghdr`, it must do so only within +/// the bounds indicated by the associated lengths in the `msghdr`. +pub(crate) unsafe fn with_msghdr( + addr: &impl SocketAddrArg, + iov: &[IoSlice<'_>], + control: &mut SendAncillaryBuffer<'_, '_, '_>, + f: impl FnOnce(&c::msghdr) -> R, +) -> R { + addr.with_sockaddr(|addr_ptr, addr_len| { + let mut h = zero_msghdr(); + h.msg_name = addr_ptr as *mut _; + h.msg_namelen = bitcast!(addr_len); + h.msg_iov = iov.as_ptr() as _; + h.msg_iovlen = msg_iov_len(iov.len()); + h.msg_control = control.as_control_ptr().cast(); + h.msg_controllen = msg_control_len(control.control_len()); + // Pass a reference to the `c::msghdr` instead of passing it by value + // because it may contain pointers to temporary objects that won't + // live beyond the call to `with_sockaddr`. + f(&h) + }) +} + +/// Create a zero-initialized message header struct value. +#[cfg(unix)] +pub(crate) fn zero_msghdr() -> c::msghdr { + // SAFETY: We can't initialize all the fields by value because on some + // platforms the `msghdr` struct in the libc crate contains private padding + // fields. But it is still a C type that's meant to be zero-initializable. + unsafe { zeroed() } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/netdevice.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/netdevice.rs new file mode 100644 index 0000000000000000000000000000000000000000..afdbb67fbd5a6b26bbe0120b61b009a90a47c5a9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/netdevice.rs @@ -0,0 +1,50 @@ +//! Wrappers for netdevice ioctls. + +#![allow(unsafe_code)] + +use crate::backend::c; +use crate::backend::io::syscalls::ioctl; +use crate::fd::BorrowedFd; +use crate::io; +use c::{__c_anonymous_ifr_ifru, c_char, ifreq, IFNAMSIZ, SIOCGIFINDEX, SIOCGIFNAME}; + +pub(crate) fn name_to_index(fd: BorrowedFd<'_>, if_name: &str) -> io::Result { + let if_name_bytes = if_name.as_bytes(); + if if_name_bytes.len() >= IFNAMSIZ as usize { + return Err(io::Errno::NODEV); + } + + let mut ifreq = ifreq { + ifr_name: [0; 16], + ifr_ifru: __c_anonymous_ifr_ifru { ifru_ifindex: 0 }, + }; + + let mut if_name_c_char_iter = if_name_bytes.iter().map(|byte| *byte as c_char); + ifreq.ifr_name[..if_name_bytes.len()].fill_with(|| if_name_c_char_iter.next().unwrap()); + + unsafe { ioctl(fd, SIOCGIFINDEX as _, &mut ifreq as *mut ifreq as _) }?; + let index = unsafe { ifreq.ifr_ifru.ifru_ifindex }; + Ok(index as u32) +} + +pub(crate) fn index_to_name(fd: BorrowedFd<'_>, index: u32) -> io::Result<(usize, [u8; 16])> { + let mut ifreq = ifreq { + ifr_name: [0; 16], + ifr_ifru: __c_anonymous_ifr_ifru { + ifru_ifindex: index as _, + }, + }; + + unsafe { ioctl(fd, SIOCGIFNAME as _, &mut ifreq as *mut ifreq as _) }?; + + if let Some(nul_byte) = ifreq.ifr_name.iter().position(|char| *char == 0) { + let mut buf = [0u8; 16]; + ifreq.ifr_name.iter().enumerate().for_each(|(idx, c)| { + buf[idx] = *c as u8; + }); + + Ok((nul_byte, buf)) + } else { + Err(io::Errno::INVAL) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/read_sockaddr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/read_sockaddr.rs new file mode 100644 index 0000000000000000000000000000000000000000..5f8c48ec7d6adf36c4227e8f9742929bfa56086d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/read_sockaddr.rs @@ -0,0 +1,264 @@ +//! The BSD sockets API requires us to read the `sa_family` field before we can +//! interpret the rest of a `sockaddr` produced by the kernel. + +#[cfg(unix)] +use super::addr::SocketAddrUnix; +use super::ext::{in6_addr_s6_addr, in_addr_s_addr, sockaddr_in6_sin6_scope_id}; +use crate::backend::c; +#[cfg(not(windows))] +use crate::ffi::CStr; +use crate::io::Errno; +use crate::net::addr::SocketAddrLen; +#[cfg(linux_kernel)] +use crate::net::netlink::SocketAddrNetlink; +#[cfg(target_os = "linux")] +use crate::net::xdp::{SocketAddrXdp, SocketAddrXdpFlags}; +use crate::net::{AddressFamily, Ipv4Addr, Ipv6Addr, SocketAddrAny, SocketAddrV4, SocketAddrV6}; +use core::mem::size_of; + +// This must match the header of `sockaddr`. +#[repr(C)] +pub(crate) struct sockaddr_header { + #[cfg(any( + bsd, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "nto", + target_os = "vita" + ))] + sa_len: u8, + #[cfg(any( + bsd, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "nto", + target_os = "vita" + ))] + sa_family: u8, + #[cfg(not(any( + bsd, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "nto", + target_os = "vita" + )))] + sa_family: u16, +} + +/// Read the `sa_family` field from a socket address returned from the OS. +/// +/// # Safety +/// +/// `storage` must point to a valid socket address returned from the OS. +#[inline] +pub(crate) unsafe fn read_sa_family(storage: *const c::sockaddr) -> u16 { + // Assert that we know the layout of `sockaddr`. + let _ = c::sockaddr { + #[cfg(any( + bsd, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "vita" + ))] + sa_len: 0_u8, + #[cfg(any( + bsd, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "vita" + ))] + sa_family: 0_u8, + #[cfg(not(any( + bsd, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "vita" + )))] + sa_family: 0_u16, + #[cfg(not(any(target_os = "haiku", target_os = "horizon")))] + sa_data: [0; 14], + #[cfg(target_os = "horizon")] + sa_data: [0; 26], + #[cfg(target_os = "haiku")] + sa_data: [0; 30], + }; + + (*storage.cast::()).sa_family.into() +} + +/// Read the first byte of the `sun_path` field, assuming we have an `AF_UNIX` +/// socket address. +#[cfg(apple)] +#[inline] +unsafe fn read_sun_path0(storage: *const c::sockaddr) -> u8 { + // In `read_sa_family` we assert that we know the layout of `sockaddr`. + storage + .cast::() + .add(super::addr::offsetof_sun_path()) + .read() +} + +/// Check if a socket address returned from the OS is considered non-empty. +/// +/// # Safety +/// +/// `storage` must point to a least an initialized `sockaddr_header`. +#[inline] +pub(crate) unsafe fn sockaddr_nonempty(storage: *const c::sockaddr, len: SocketAddrLen) -> bool { + if len == 0 { + return false; + } + + assert!(len as usize >= size_of::()); + let family: c::c_int = read_sa_family(storage.cast::()).into(); + if family == c::AF_UNSPEC { + return false; + } + + // On macOS, if we get an `AF_UNIX` with an empty path, treat it as an + // absent address. + #[cfg(apple)] + if family == c::AF_UNIX && read_sun_path0(storage) == 0 { + return false; + } + + true +} + +/// Set the `sa_family` field of a socket address to `AF_UNSPEC`, so that we +/// can test for `AF_UNSPEC` to test whether it was stored to. +/// +/// # Safety +/// +/// `storage` must point to a least an initialized `sockaddr_header`. +pub(crate) unsafe fn initialize_family_to_unspec(storage: *mut c::sockaddr) { + (*storage.cast::()).sa_family = c::AF_UNSPEC as _; +} + +#[inline] +pub(crate) fn read_sockaddr_v4(addr: &SocketAddrAny) -> Result { + if addr.address_family() != AddressFamily::INET { + return Err(Errno::AFNOSUPPORT); + } + assert!(addr.addr_len() as usize >= size_of::()); + let decode = unsafe { &*addr.as_ptr().cast::() }; + Ok(SocketAddrV4::new( + Ipv4Addr::from(u32::from_be(in_addr_s_addr(decode.sin_addr))), + u16::from_be(decode.sin_port), + )) +} + +#[inline] +pub(crate) fn read_sockaddr_v6(addr: &SocketAddrAny) -> Result { + if addr.address_family() != AddressFamily::INET6 { + return Err(Errno::AFNOSUPPORT); + } + assert!(addr.addr_len() as usize >= size_of::()); + let decode = unsafe { &*addr.as_ptr().cast::() }; + Ok(SocketAddrV6::new( + Ipv6Addr::from(in6_addr_s6_addr(decode.sin6_addr)), + u16::from_be(decode.sin6_port), + u32::from_be(decode.sin6_flowinfo), + sockaddr_in6_sin6_scope_id(decode), + )) +} + +#[cfg(unix)] +#[inline] +pub(crate) fn read_sockaddr_unix(addr: &SocketAddrAny) -> Result { + if addr.address_family() != AddressFamily::UNIX { + return Err(Errno::AFNOSUPPORT); + } + + let offsetof_sun_path = super::addr::offsetof_sun_path(); + let len = addr.addr_len() as usize; + + assert!(len >= offsetof_sun_path); + + if len == offsetof_sun_path { + SocketAddrUnix::new(&[][..]) + } else { + let decode = unsafe { &*addr.as_ptr().cast::() }; + + // On Linux check for Linux's [abstract namespace]. + // + // [abstract namespace]: https://man7.org/linux/man-pages/man7/unix.7.html + #[cfg(linux_kernel)] + if decode.sun_path[0] == 0 { + let name = &decode.sun_path[1..len - offsetof_sun_path]; + let name = unsafe { core::mem::transmute::<&[c::c_char], &[u8]>(name) }; + return SocketAddrUnix::new_abstract_name(name); + } + + // Otherwise we expect a NUL-terminated filesystem path. + + // Trim off unused bytes from the end of `path_bytes`. + let path_bytes = if cfg!(any(solarish, target_os = "freebsd")) { + // FreeBSD and illumos sometimes set the length to longer + // than the length of the NUL-terminated string. Find the + // NUL and truncate the string accordingly. + &decode.sun_path[..decode + .sun_path + .iter() + .position(|b| *b == 0) + .ok_or(Errno::INVAL)?] + } else { + // Otherwise, use the provided length. + let provided_len = len - 1 - offsetof_sun_path; + if decode.sun_path[provided_len] != 0 { + return Err(Errno::INVAL); + } + debug_assert_eq!( + unsafe { CStr::from_ptr(decode.sun_path.as_ptr().cast()) } + .to_bytes() + .len(), + provided_len + ); + &decode.sun_path[..provided_len] + }; + + SocketAddrUnix::new(unsafe { core::mem::transmute::<&[c::c_char], &[u8]>(path_bytes) }) + } +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn read_sockaddr_xdp(addr: &SocketAddrAny) -> Result { + if addr.address_family() != AddressFamily::XDP { + return Err(Errno::AFNOSUPPORT); + } + assert!(addr.addr_len() as usize >= size_of::()); + let decode = unsafe { &*addr.as_ptr().cast::() }; + + // This ignores the `sxdp_shared_umem_fd` field, which is only expected to + // be significant in `bind` calls, and not returned from `acceptfrom` or + // `recvmsg` or similar. + Ok(SocketAddrXdp::new( + SocketAddrXdpFlags::from_bits_retain(decode.sxdp_flags), + u32::from_be(decode.sxdp_ifindex), + u32::from_be(decode.sxdp_queue_id), + )) +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn read_sockaddr_netlink(addr: &SocketAddrAny) -> Result { + if addr.address_family() != AddressFamily::NETLINK { + return Err(Errno::AFNOSUPPORT); + } + assert!(addr.addr_len() as usize >= size_of::()); + let decode = unsafe { &*addr.as_ptr().cast::() }; + Ok(SocketAddrNetlink::new(decode.nl_pid, decode.nl_groups)) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/send_recv.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/send_recv.rs new file mode 100644 index 0000000000000000000000000000000000000000..4b67f2c5b0399f3efd50e6d2a3bc4504aed28163 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/send_recv.rs @@ -0,0 +1,153 @@ +use crate::backend::c; +use bitflags::bitflags; + +bitflags! { + /// `MSG_*` flags for use with [`send`], [`sendto`], and related + /// functions. + /// + /// [`send`]: crate::net::send + /// [`sendto`]: crate::net::sendto + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct SendFlags: u32 { + /// `MSG_CONFIRM` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "espidf", + target_os = "nto", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "redox", + target_os = "vita", + )))] + const CONFIRM = bitcast!(c::MSG_CONFIRM); + /// `MSG_DONTROUTE` + const DONTROUTE = bitcast!(c::MSG_DONTROUTE); + /// `MSG_DONTWAIT` + #[cfg(not(windows))] + const DONTWAIT = bitcast!(c::MSG_DONTWAIT); + /// `MSG_EOR` + #[cfg(not(any(windows, target_os = "horizon")))] + const EOR = bitcast!(c::MSG_EOR); + /// `MSG_MORE` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "redox", + target_os = "vita", + )))] + const MORE = bitcast!(c::MSG_MORE); + #[cfg(not(any(apple, windows, target_os = "redox", target_os = "vita")))] + /// `MSG_NOSIGNAL` + const NOSIGNAL = bitcast!(c::MSG_NOSIGNAL); + /// `MSG_OOB` + const OOB = bitcast!(c::MSG_OOB); + + /// + const _ = !0; + } +} + +bitflags! { + /// `MSG_*` flags for use with [`recv`], [`recvfrom`], and related + /// functions. + /// + /// [`recv`]: crate::net::recv + /// [`recvfrom`]: crate::net::recvfrom + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct RecvFlags: u32 { + /// `MSG_CMSG_CLOEXEC` + #[cfg(not(any( + apple, + solarish, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "vita", + )))] + const CMSG_CLOEXEC = bitcast!(c::MSG_CMSG_CLOEXEC); + /// `MSG_DONTWAIT` + #[cfg(not(windows))] + const DONTWAIT = bitcast!(c::MSG_DONTWAIT); + /// `MSG_ERRQUEUE` + #[cfg(not(any( + bsd, + solarish, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "nto", + target_os = "redox", + target_os = "vita", + )))] + const ERRQUEUE = bitcast!(c::MSG_ERRQUEUE); + /// `MSG_OOB` + const OOB = bitcast!(c::MSG_OOB); + /// `MSG_PEEK` + const PEEK = bitcast!(c::MSG_PEEK); + /// `MSG_TRUNC` + // Apple, illumos, and NetBSD have `MSG_TRUNC` but it's not documented + // for use with `recv` and friends, and in practice appears to be + // ignored. + #[cfg(not(any(apple, solarish, target_os = "horizon", target_os = "netbsd")))] + const TRUNC = bitcast!(c::MSG_TRUNC); + /// `MSG_WAITALL` + const WAITALL = bitcast!(c::MSG_WAITALL); + + /// + const _ = !0; + } +} + +bitflags! { + /// `MSG_*` flags returned from [`recvmsg`], in the `flags` field of + /// [`RecvMsg`] + /// + /// [`recvmsg`]: crate::net::recvmsg + /// [`RecvMsg`]: crate::net::RecvMsg + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct ReturnFlags: u32 { + /// `MSG_OOB` + const OOB = bitcast!(c::MSG_OOB); + /// `MSG_EOR` + #[cfg(not(any(windows, target_os = "horizon")))] + const EOR = bitcast!(c::MSG_EOR); + /// `MSG_TRUNC` + #[cfg(not(target_os = "horizon"))] + const TRUNC = bitcast!(c::MSG_TRUNC); + /// `MSG_CTRUNC` + #[cfg(not(target_os = "horizon"))] + const CTRUNC = bitcast!(c::MSG_CTRUNC); + + /// `MSG_CMSG_CLOEXEC` + #[cfg(linux_kernel)] + const CMSG_CLOEXEC = bitcast!(c::MSG_CMSG_CLOEXEC); + /// `MSG_ERRQUEUE` + #[cfg(linux_kernel)] + const ERRQUEUE = bitcast!(c::MSG_ERRQUEUE); + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/sockopt.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/sockopt.rs new file mode 100644 index 0000000000000000000000000000000000000000..0a8541461d1fb44b7171a49d502dd4e9b5f6c079 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/sockopt.rs @@ -0,0 +1,1403 @@ +//! libc syscalls supporting `rustix::net::sockopt`. + +use super::ext::{in6_addr_new, in_addr_new}; +use crate::backend::c; +use crate::backend::conv::{borrowed_fd, ret}; +use crate::fd::BorrowedFd; +#[cfg(feature = "alloc")] +#[cfg(any( + linux_like, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos" +))] +use crate::ffi::CStr; +use crate::io; +use crate::net::sockopt::Timeout; +#[cfg(linux_kernel)] +use crate::net::sockopt::{Ipv4PathMtuDiscovery, Ipv6PathMtuDiscovery}; +#[cfg(target_os = "linux")] +use crate::net::xdp::{XdpMmapOffsets, XdpOptionsFlags, XdpRingOffset, XdpStatistics, XdpUmemReg}; +#[cfg(not(any( + apple, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "dragonfly", + target_os = "emscripten", + target_os = "espidf", + target_os = "haiku", + target_os = "netbsd", + target_os = "nto", + target_os = "vita", +)))] +use crate::net::AddressFamily; +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "openbsd", + target_os = "redox", + target_env = "newlib" +))] +use crate::net::Protocol; +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "openbsd", + target_os = "redox", + target_env = "newlib" +))] +use crate::net::RawProtocol; +#[cfg(any(linux_kernel, target_os = "fuchsia"))] +use crate::net::SocketAddrV4; +#[cfg(all(target_os = "linux", feature = "time"))] +use crate::net::TxTimeFlags; +use crate::net::{Ipv4Addr, Ipv6Addr, SocketType}; +#[cfg(linux_kernel)] +use crate::net::{SocketAddrV6, UCred}; +#[cfg(all(target_os = "linux", feature = "time"))] +use crate::time::ClockId; +use crate::utils::as_mut_ptr; +#[cfg(feature = "alloc")] +#[cfg(any( + linux_like, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos" +))] +use alloc::borrow::ToOwned as _; +#[cfg(feature = "alloc")] +#[cfg(any( + linux_like, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos" +))] +use alloc::string::String; +#[cfg(apple)] +use c::TCP_KEEPALIVE as TCP_KEEPIDLE; +#[cfg(not(any(apple, target_os = "haiku", target_os = "nto", target_os = "openbsd")))] +use c::TCP_KEEPIDLE; +use core::mem::{size_of, MaybeUninit}; +use core::time::Duration; +#[cfg(all(linux_raw_dep, target_os = "linux"))] +use linux_raw_sys::xdp::{xdp_mmap_offsets, xdp_statistics, xdp_statistics_v1}; + +#[inline] +fn getsockopt(fd: BorrowedFd<'_>, level: i32, optname: i32) -> io::Result { + let mut optlen = size_of::().try_into().unwrap(); + debug_assert!( + optlen as usize >= size_of::(), + "Socket APIs don't ever use `bool` directly" + ); + + let mut value = MaybeUninit::::zeroed(); + getsockopt_raw(fd, level, optname, &mut value, &mut optlen)?; + + // On Windows at least, `getsockopt` has been observed writing 1 + // byte on at least (`IPPROTO_TCP`, `TCP_NODELAY`), even though + // Windows' documentation says that should write a 4-byte `BOOL`. + // So, we initialize the memory to zeros above, and just assert + // that `getsockopt` doesn't write too many bytes here. + assert!( + optlen as usize <= size_of::(), + "unexpected getsockopt size" + ); + + unsafe { Ok(value.assume_init()) } +} + +#[inline] +fn getsockopt_raw( + fd: BorrowedFd<'_>, + level: i32, + optname: i32, + value: &mut MaybeUninit, + optlen: &mut c::socklen_t, +) -> io::Result<()> { + unsafe { + ret(c::getsockopt( + borrowed_fd(fd), + level, + optname, + as_mut_ptr(value).cast(), + optlen, + )) + } +} + +#[inline] +fn setsockopt(fd: BorrowedFd<'_>, level: i32, optname: i32, value: T) -> io::Result<()> { + let optlen = size_of::().try_into().unwrap(); + debug_assert!( + optlen as usize >= size_of::(), + "Socket APIs don't ever use `bool` directly" + ); + setsockopt_raw(fd, level, optname, &value, optlen) +} + +#[inline] +fn setsockopt_raw( + fd: BorrowedFd<'_>, + level: i32, + optname: i32, + ptr: *const T, + optlen: c::socklen_t, +) -> io::Result<()> { + unsafe { + ret(c::setsockopt( + borrowed_fd(fd), + level, + optname, + ptr.cast(), + optlen, + )) + } +} + +#[inline] +pub(crate) fn socket_type(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_TYPE) +} + +#[inline] +pub(crate) fn set_socket_reuseaddr(fd: BorrowedFd<'_>, reuseaddr: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_REUSEADDR, from_bool(reuseaddr)) +} + +#[inline] +pub(crate) fn socket_reuseaddr(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_REUSEADDR).map(to_bool) +} + +#[inline] +pub(crate) fn set_socket_broadcast(fd: BorrowedFd<'_>, broadcast: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_BROADCAST, from_bool(broadcast)) +} + +#[inline] +pub(crate) fn socket_broadcast(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_BROADCAST).map(to_bool) +} + +#[inline] +pub(crate) fn set_socket_linger(fd: BorrowedFd<'_>, linger: Option) -> io::Result<()> { + // Convert `linger` to seconds, rounding up. + let l_linger = if let Some(linger) = linger { + duration_to_secs(linger)? + } else { + 0 + }; + let linger = c::linger { + l_onoff: linger.is_some().into(), + l_linger, + }; + setsockopt(fd, c::SOL_SOCKET, c::SO_LINGER, linger) +} + +#[inline] +pub(crate) fn socket_linger(fd: BorrowedFd<'_>) -> io::Result> { + let linger: c::linger = getsockopt(fd, c::SOL_SOCKET, c::SO_LINGER)?; + Ok((linger.l_onoff != 0).then(|| Duration::from_secs(linger.l_linger as u64))) +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn set_socket_passcred(fd: BorrowedFd<'_>, passcred: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_PASSCRED, from_bool(passcred)) +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn socket_passcred(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_PASSCRED).map(to_bool) +} + +#[inline] +pub(crate) fn set_socket_timeout( + fd: BorrowedFd<'_>, + id: Timeout, + timeout: Option, +) -> io::Result<()> { + let optname = match id { + Timeout::Recv => c::SO_RCVTIMEO, + Timeout::Send => c::SO_SNDTIMEO, + }; + + #[cfg(not(windows))] + let timeout = match timeout { + Some(timeout) => { + if timeout == Duration::ZERO { + return Err(io::Errno::INVAL); + } + + // Rust's musl libc bindings deprecated `time_t` while they + // transition to 64-bit `time_t`. What we want here is just + // “whatever type `timeval`'s `tv_sec` is”, so we're ok using + // the deprecated type. + #[allow(deprecated)] + let tv_sec = timeout.as_secs().try_into().unwrap_or(c::time_t::MAX); + + // `subsec_micros` rounds down, so we use `subsec_nanos` and + // manually round up. + let mut timeout = c::timeval { + tv_sec, + tv_usec: ((timeout.subsec_nanos() + 999) / 1000) as _, + }; + if timeout.tv_sec == 0 && timeout.tv_usec == 0 { + timeout.tv_usec = 1; + } + timeout + } + None => c::timeval { + tv_sec: 0, + tv_usec: 0, + }, + }; + + #[cfg(windows)] + let timeout: u32 = match timeout { + Some(timeout) => { + if timeout == Duration::ZERO { + return Err(io::Errno::INVAL); + } + + // `as_millis` rounds down, so we use `as_nanos` and + // manually round up. + let mut timeout: u32 = ((timeout.as_nanos() + 999_999) / 1_000_000) + .try_into() + .map_err(|_convert_err| io::Errno::INVAL)?; + if timeout == 0 { + timeout = 1; + } + timeout + } + None => 0, + }; + + setsockopt(fd, c::SOL_SOCKET, optname, timeout) +} + +#[inline] +pub(crate) fn socket_timeout(fd: BorrowedFd<'_>, id: Timeout) -> io::Result> { + let optname = match id { + Timeout::Recv => c::SO_RCVTIMEO, + Timeout::Send => c::SO_SNDTIMEO, + }; + + #[cfg(not(windows))] + { + let timeout: c::timeval = getsockopt(fd, c::SOL_SOCKET, optname)?; + if timeout.tv_sec == 0 && timeout.tv_usec == 0 { + Ok(None) + } else { + Ok(Some( + Duration::from_secs(timeout.tv_sec as u64) + + Duration::from_micros(timeout.tv_usec as u64), + )) + } + } + + #[cfg(windows)] + { + let timeout: u32 = getsockopt(fd, c::SOL_SOCKET, optname)?; + if timeout == 0 { + Ok(None) + } else { + Ok(Some(Duration::from_millis(timeout as u64))) + } + } +} + +#[cfg(any(apple, freebsdlike, target_os = "netbsd"))] +#[inline] +pub(crate) fn socket_nosigpipe(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_NOSIGPIPE).map(to_bool) +} + +#[cfg(any(apple, freebsdlike, target_os = "netbsd"))] +#[inline] +pub(crate) fn set_socket_nosigpipe(fd: BorrowedFd<'_>, val: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_NOSIGPIPE, from_bool(val)) +} + +#[inline] +pub(crate) fn socket_error(fd: BorrowedFd<'_>) -> io::Result> { + let err: c::c_int = getsockopt(fd, c::SOL_SOCKET, c::SO_ERROR)?; + Ok(if err == 0 { + Ok(()) + } else { + Err(io::Errno::from_raw_os_error(err)) + }) +} + +#[inline] +pub(crate) fn set_socket_keepalive(fd: BorrowedFd<'_>, keepalive: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_KEEPALIVE, from_bool(keepalive)) +} + +#[inline] +pub(crate) fn socket_keepalive(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_KEEPALIVE).map(to_bool) +} + +#[inline] +pub(crate) fn set_socket_recv_buffer_size(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { + let size: c::c_int = size.try_into().map_err(|_| io::Errno::INVAL)?; + setsockopt(fd, c::SOL_SOCKET, c::SO_RCVBUF, size) +} + +#[cfg(any(linux_kernel, target_os = "fuchsia", target_os = "redox"))] +#[inline] +pub(crate) fn set_socket_recv_buffer_size_force(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { + let size: c::c_int = size.try_into().map_err(|_| io::Errno::INVAL)?; + setsockopt(fd, c::SOL_SOCKET, c::SO_RCVBUFFORCE, size) +} + +#[inline] +pub(crate) fn socket_recv_buffer_size(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_RCVBUF).map(|size: u32| size as usize) +} + +#[inline] +pub(crate) fn set_socket_send_buffer_size(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { + let size: c::c_int = size.try_into().map_err(|_| io::Errno::INVAL)?; + setsockopt(fd, c::SOL_SOCKET, c::SO_SNDBUF, size) +} + +#[cfg(any(linux_kernel, target_os = "fuchsia", target_os = "redox"))] +#[inline] +pub(crate) fn set_socket_send_buffer_size_force(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { + let size: c::c_int = size.try_into().map_err(|_| io::Errno::INVAL)?; + setsockopt(fd, c::SOL_SOCKET, c::SO_SNDBUFFORCE, size) +} + +#[inline] +pub(crate) fn socket_send_buffer_size(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_SNDBUF).map(|size: u32| size as usize) +} + +#[inline] +#[cfg(not(any( + apple, + windows, + target_os = "aix", + target_os = "cygwin", + target_os = "dragonfly", + target_os = "emscripten", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "netbsd", + target_os = "nto", + target_os = "vita", +)))] +pub(crate) fn socket_domain(fd: BorrowedFd<'_>) -> io::Result { + let domain: c::c_int = getsockopt(fd, c::SOL_SOCKET, c::SO_DOMAIN)?; + Ok(AddressFamily( + domain.try_into().map_err(|_| io::Errno::OPNOTSUPP)?, + )) +} + +#[inline] +#[cfg(not(apple))] // Apple platforms declare the constant, but do not actually implement it. +pub(crate) fn socket_acceptconn(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_ACCEPTCONN).map(to_bool) +} + +#[inline] +pub(crate) fn set_socket_oobinline(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_OOBINLINE, from_bool(value)) +} + +#[inline] +pub(crate) fn socket_oobinline(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_OOBINLINE).map(to_bool) +} + +#[cfg(not(any(solarish, windows, target_os = "cygwin")))] +#[inline] +pub(crate) fn set_socket_reuseport(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_REUSEPORT, from_bool(value)) +} + +#[cfg(not(any(solarish, windows, target_os = "cygwin")))] +#[inline] +pub(crate) fn socket_reuseport(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_REUSEPORT).map(to_bool) +} + +#[cfg(target_os = "freebsd")] +#[inline] +pub(crate) fn set_socket_reuseport_lb(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_REUSEPORT_LB, from_bool(value)) +} + +#[cfg(target_os = "freebsd")] +#[inline] +pub(crate) fn socket_reuseport_lb(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_REUSEPORT_LB).map(to_bool) +} + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "openbsd", + target_os = "redox", + target_env = "newlib" +))] +#[inline] +pub(crate) fn socket_protocol(fd: BorrowedFd<'_>) -> io::Result> { + getsockopt(fd, c::SOL_SOCKET, c::SO_PROTOCOL) + .map(|raw| RawProtocol::new(raw).map(Protocol::from_raw)) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn socket_cookie(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_COOKIE) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn socket_incoming_cpu(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_INCOMING_CPU) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn set_socket_incoming_cpu(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_INCOMING_CPU, value) +} + +#[inline] +pub(crate) fn set_ip_ttl(fd: BorrowedFd<'_>, ttl: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IP_TTL, ttl) +} + +#[inline] +pub(crate) fn ip_ttl(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IP_TTL) +} + +#[inline] +pub(crate) fn set_ipv6_v6only(fd: BorrowedFd<'_>, only_v6: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_V6ONLY, from_bool(only_v6)) +} + +#[inline] +pub(crate) fn ipv6_v6only(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_V6ONLY).map(to_bool) +} + +#[cfg(any(linux_kernel, target_os = "cygwin"))] +#[inline] +pub(crate) fn ip_mtu(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IP_MTU) +} + +#[cfg(any(linux_kernel, target_os = "cygwin"))] +#[inline] +pub(crate) fn ipv6_mtu(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_MTU) +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn set_ip_mtu_discover( + fd: BorrowedFd<'_>, + value: Ipv4PathMtuDiscovery, +) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IP_MTU_DISCOVER, value) +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn ip_mtu_discover(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IP_MTU_DISCOVER) +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn set_ipv6_mtu_discover( + fd: BorrowedFd<'_>, + value: Ipv6PathMtuDiscovery, +) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_MTU_DISCOVER, value) +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn ipv6_mtu_discover(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_MTU_DISCOVER) +} + +#[inline] +pub(crate) fn set_ip_multicast_if(fd: BorrowedFd<'_>, value: &Ipv4Addr) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IP_MULTICAST_IF, to_imr_addr(value)) +} + +#[inline] +pub(crate) fn ip_multicast_if(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IP_MULTICAST_IF).map(from_in_addr) +} + +#[cfg(any( + apple, + freebsdlike, + linux_like, + target_os = "fuchsia", + target_os = "openbsd" +))] +#[inline] +pub(crate) fn set_ip_multicast_if_with_ifindex( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + address: &Ipv4Addr, + ifindex: u32, +) -> io::Result<()> { + let mreqn = to_ip_mreqn(multiaddr, address, ifindex as i32); + setsockopt(fd, c::IPPROTO_IP, c::IP_MULTICAST_IF, mreqn) +} + +#[inline] +pub(crate) fn set_ipv6_multicast_if(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_MULTICAST_IF, value as c::c_int) +} + +#[inline] +pub(crate) fn ipv6_multicast_if(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_MULTICAST_IF) +} + +#[inline] +pub(crate) fn set_ip_multicast_loop(fd: BorrowedFd<'_>, multicast_loop: bool) -> io::Result<()> { + setsockopt( + fd, + c::IPPROTO_IP, + c::IP_MULTICAST_LOOP, + from_bool(multicast_loop), + ) +} + +#[inline] +pub(crate) fn ip_multicast_loop(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IP_MULTICAST_LOOP).map(to_bool) +} + +#[inline] +pub(crate) fn set_ip_multicast_ttl(fd: BorrowedFd<'_>, multicast_ttl: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IP_MULTICAST_TTL, multicast_ttl) +} + +#[inline] +pub(crate) fn ip_multicast_ttl(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IP_MULTICAST_TTL) +} + +#[inline] +pub(crate) fn set_ipv6_multicast_loop(fd: BorrowedFd<'_>, multicast_loop: bool) -> io::Result<()> { + setsockopt( + fd, + c::IPPROTO_IPV6, + c::IPV6_MULTICAST_LOOP, + from_bool(multicast_loop), + ) +} + +#[inline] +pub(crate) fn ipv6_multicast_loop(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_MULTICAST_LOOP).map(to_bool) +} + +#[inline] +pub(crate) fn set_ipv6_multicast_hops(fd: BorrowedFd<'_>, multicast_hops: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IPV6_MULTICAST_HOPS, multicast_hops) +} + +#[inline] +pub(crate) fn ipv6_multicast_hops(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IPV6_MULTICAST_HOPS) +} + +#[inline] +pub(crate) fn set_ip_add_membership( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + interface: &Ipv4Addr, +) -> io::Result<()> { + let mreq = to_ip_mreq(multiaddr, interface); + setsockopt(fd, c::IPPROTO_IP, c::IP_ADD_MEMBERSHIP, mreq) +} + +#[cfg(any( + apple, + freebsdlike, + linux_like, + target_os = "fuchsia", + target_os = "openbsd" +))] +#[inline] +pub(crate) fn set_ip_add_membership_with_ifindex( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + address: &Ipv4Addr, + ifindex: u32, +) -> io::Result<()> { + let mreqn = to_ip_mreqn(multiaddr, address, ifindex as i32); + setsockopt(fd, c::IPPROTO_IP, c::IP_ADD_MEMBERSHIP, mreqn) +} + +#[cfg(any(apple, freebsdlike, linux_like, solarish, target_os = "aix"))] +#[inline] +pub(crate) fn set_ip_add_source_membership( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + interface: &Ipv4Addr, + sourceaddr: &Ipv4Addr, +) -> io::Result<()> { + let mreq_source = to_imr_source(multiaddr, interface, sourceaddr); + setsockopt(fd, c::IPPROTO_IP, c::IP_ADD_SOURCE_MEMBERSHIP, mreq_source) +} + +#[cfg(any(apple, freebsdlike, linux_like, solarish, target_os = "aix"))] +#[inline] +pub(crate) fn set_ip_drop_source_membership( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + interface: &Ipv4Addr, + sourceaddr: &Ipv4Addr, +) -> io::Result<()> { + let mreq_source = to_imr_source(multiaddr, interface, sourceaddr); + setsockopt(fd, c::IPPROTO_IP, c::IP_DROP_SOURCE_MEMBERSHIP, mreq_source) +} + +#[inline] +pub(crate) fn set_ipv6_add_membership( + fd: BorrowedFd<'_>, + multiaddr: &Ipv6Addr, + interface: u32, +) -> io::Result<()> { + #[cfg(not(any( + bsd, + solarish, + target_os = "haiku", + target_os = "l4re", + target_os = "nto" + )))] + use c::IPV6_ADD_MEMBERSHIP; + #[cfg(any( + bsd, + solarish, + target_os = "haiku", + target_os = "l4re", + target_os = "nto" + ))] + use c::IPV6_JOIN_GROUP as IPV6_ADD_MEMBERSHIP; + + let mreq = to_ipv6mr(multiaddr, interface); + setsockopt(fd, c::IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP, mreq) +} + +#[inline] +pub(crate) fn set_ip_drop_membership( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + interface: &Ipv4Addr, +) -> io::Result<()> { + let mreq = to_ip_mreq(multiaddr, interface); + setsockopt(fd, c::IPPROTO_IP, c::IP_DROP_MEMBERSHIP, mreq) +} + +#[cfg(any( + apple, + freebsdlike, + linux_like, + target_os = "fuchsia", + target_os = "openbsd" +))] +#[inline] +pub(crate) fn set_ip_drop_membership_with_ifindex( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + address: &Ipv4Addr, + ifindex: u32, +) -> io::Result<()> { + let mreqn = to_ip_mreqn(multiaddr, address, ifindex as i32); + setsockopt(fd, c::IPPROTO_IP, c::IP_DROP_MEMBERSHIP, mreqn) +} + +#[inline] +pub(crate) fn set_ipv6_drop_membership( + fd: BorrowedFd<'_>, + multiaddr: &Ipv6Addr, + interface: u32, +) -> io::Result<()> { + #[cfg(not(any( + bsd, + solarish, + target_os = "haiku", + target_os = "l4re", + target_os = "nto" + )))] + use c::IPV6_DROP_MEMBERSHIP; + #[cfg(any( + bsd, + solarish, + target_os = "haiku", + target_os = "l4re", + target_os = "nto" + ))] + use c::IPV6_LEAVE_GROUP as IPV6_DROP_MEMBERSHIP; + + let mreq = to_ipv6mr(multiaddr, interface); + setsockopt(fd, c::IPPROTO_IPV6, IPV6_DROP_MEMBERSHIP, mreq) +} + +#[inline] +pub(crate) fn ipv6_unicast_hops(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_UNICAST_HOPS).map(|hops: c::c_int| hops as u8) +} + +#[inline] +pub(crate) fn set_ipv6_unicast_hops(fd: BorrowedFd<'_>, hops: Option) -> io::Result<()> { + let hops = match hops { + Some(hops) => hops as c::c_int, + None => -1, + }; + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_UNICAST_HOPS, hops) +} + +#[cfg(any( + bsd, + linux_like, + target_os = "aix", + target_os = "fuchsia", + target_os = "haiku", + target_os = "nto", + target_env = "newlib" +))] +#[inline] +pub(crate) fn set_ip_tos(fd: BorrowedFd<'_>, value: u8) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IP_TOS, i32::from(value)) +} + +#[cfg(any( + bsd, + linux_like, + target_os = "aix", + target_os = "fuchsia", + target_os = "haiku", + target_os = "nto", + target_env = "newlib" +))] +#[inline] +pub(crate) fn ip_tos(fd: BorrowedFd<'_>) -> io::Result { + let value: i32 = getsockopt(fd, c::IPPROTO_IP, c::IP_TOS)?; + Ok(value as u8) +} + +#[cfg(any( + apple, + linux_like, + target_os = "cygwin", + target_os = "freebsd", + target_os = "fuchsia", +))] +#[inline] +pub(crate) fn set_ip_recvtos(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IP_RECVTOS, from_bool(value)) +} + +#[cfg(any( + apple, + linux_like, + target_os = "cygwin", + target_os = "freebsd", + target_os = "fuchsia", +))] +#[inline] +pub(crate) fn ip_recvtos(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IP_RECVTOS).map(to_bool) +} + +#[cfg(any( + bsd, + linux_like, + target_os = "aix", + target_os = "fuchsia", + target_os = "nto" +))] +#[inline] +pub(crate) fn set_ipv6_recvtclass(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_RECVTCLASS, from_bool(value)) +} + +#[cfg(any( + bsd, + linux_like, + target_os = "aix", + target_os = "fuchsia", + target_os = "nto" +))] +#[inline] +pub(crate) fn ipv6_recvtclass(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_RECVTCLASS).map(to_bool) +} + +#[cfg(any(linux_kernel, target_os = "fuchsia"))] +#[inline] +pub(crate) fn set_ip_freebind(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IP_FREEBIND, from_bool(value)) +} + +#[cfg(any(linux_kernel, target_os = "fuchsia"))] +#[inline] +pub(crate) fn ip_freebind(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IP_FREEBIND).map(to_bool) +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn set_ipv6_freebind(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_FREEBIND, from_bool(value)) +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn ipv6_freebind(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_FREEBIND).map(to_bool) +} + +#[cfg(any(linux_kernel, target_os = "fuchsia"))] +#[inline] +pub(crate) fn ip_original_dst(fd: BorrowedFd<'_>) -> io::Result { + let level = c::IPPROTO_IP; + let optname = c::SO_ORIGINAL_DST; + + let mut addr = crate::net::SocketAddrBuf::new(); + getsockopt_raw(fd, level, optname, &mut addr.storage, &mut addr.len)?; + Ok(unsafe { addr.into_any() }.try_into().unwrap()) +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn ipv6_original_dst(fd: BorrowedFd<'_>) -> io::Result { + let level = c::IPPROTO_IPV6; + let optname = c::IP6T_SO_ORIGINAL_DST; + + let mut addr = crate::net::SocketAddrBuf::new(); + getsockopt_raw(fd, level, optname, &mut addr.storage, &mut addr.len)?; + Ok(unsafe { addr.into_any() }.try_into().unwrap()) +} + +#[cfg(not(any( + solarish, + windows, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "redox", + target_os = "vita" +)))] +#[inline] +pub(crate) fn set_ipv6_tclass(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_TCLASS, value) +} + +#[cfg(not(any( + solarish, + windows, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "redox", + target_os = "vita" +)))] +#[inline] +pub(crate) fn ipv6_tclass(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_TCLASS) +} + +#[inline] +pub(crate) fn set_tcp_nodelay(fd: BorrowedFd<'_>, nodelay: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_TCP, c::TCP_NODELAY, from_bool(nodelay)) +} + +#[inline] +pub(crate) fn tcp_nodelay(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_TCP, c::TCP_NODELAY).map(to_bool) +} + +#[inline] +#[cfg(not(any( + target_os = "haiku", + target_os = "nto", + target_os = "openbsd", + target_os = "redox" +)))] +pub(crate) fn set_tcp_keepcnt(fd: BorrowedFd<'_>, count: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_TCP, c::TCP_KEEPCNT, count) +} + +#[inline] +#[cfg(not(any( + target_os = "haiku", + target_os = "nto", + target_os = "openbsd", + target_os = "redox" +)))] +pub(crate) fn tcp_keepcnt(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_TCP, c::TCP_KEEPCNT) +} + +#[inline] +#[cfg(not(any(target_os = "haiku", target_os = "nto", target_os = "openbsd")))] +pub(crate) fn set_tcp_keepidle(fd: BorrowedFd<'_>, duration: Duration) -> io::Result<()> { + let secs: c::c_uint = duration_to_secs(duration)?; + setsockopt(fd, c::IPPROTO_TCP, TCP_KEEPIDLE, secs) +} + +#[inline] +#[cfg(not(any(target_os = "haiku", target_os = "nto", target_os = "openbsd")))] +pub(crate) fn tcp_keepidle(fd: BorrowedFd<'_>) -> io::Result { + let secs: c::c_uint = getsockopt(fd, c::IPPROTO_TCP, TCP_KEEPIDLE)?; + Ok(Duration::from_secs(secs as u64)) +} + +#[inline] +#[cfg(not(any( + target_os = "haiku", + target_os = "nto", + target_os = "openbsd", + target_os = "redox" +)))] +pub(crate) fn set_tcp_keepintvl(fd: BorrowedFd<'_>, duration: Duration) -> io::Result<()> { + let secs: c::c_uint = duration_to_secs(duration)?; + setsockopt(fd, c::IPPROTO_TCP, c::TCP_KEEPINTVL, secs) +} + +#[inline] +#[cfg(not(any( + target_os = "haiku", + target_os = "nto", + target_os = "openbsd", + target_os = "redox" +)))] +pub(crate) fn tcp_keepintvl(fd: BorrowedFd<'_>) -> io::Result { + let secs: c::c_uint = getsockopt(fd, c::IPPROTO_TCP, c::TCP_KEEPINTVL)?; + Ok(Duration::from_secs(secs as u64)) +} + +#[inline] +#[cfg(any(linux_like, target_os = "fuchsia"))] +pub(crate) fn set_tcp_user_timeout(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_TCP, c::TCP_USER_TIMEOUT, value) +} + +#[inline] +#[cfg(any(linux_like, target_os = "fuchsia"))] +pub(crate) fn tcp_user_timeout(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_TCP, c::TCP_USER_TIMEOUT) +} + +#[cfg(any(linux_like, target_os = "fuchsia"))] +#[inline] +pub(crate) fn set_tcp_quickack(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_TCP, c::TCP_QUICKACK, from_bool(value)) +} + +#[cfg(any(linux_like, target_os = "fuchsia"))] +#[inline] +pub(crate) fn tcp_quickack(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_TCP, c::TCP_QUICKACK).map(to_bool) +} + +#[cfg(any( + linux_like, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos" +))] +#[inline] +pub(crate) fn set_tcp_congestion(fd: BorrowedFd<'_>, value: &str) -> io::Result<()> { + let level = c::IPPROTO_TCP; + let optname = c::TCP_CONGESTION; + let optlen = value.len().try_into().unwrap(); + setsockopt_raw(fd, level, optname, value.as_ptr(), optlen) +} + +#[cfg(feature = "alloc")] +#[cfg(any( + linux_like, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos" +))] +#[inline] +pub(crate) fn tcp_congestion(fd: BorrowedFd<'_>) -> io::Result { + const OPTLEN: c::socklen_t = 16; + + let level = c::IPPROTO_TCP; + let optname = c::TCP_CONGESTION; + let mut value = MaybeUninit::<[MaybeUninit; OPTLEN as usize]>::uninit(); + let mut optlen = OPTLEN; + getsockopt_raw(fd, level, optname, &mut value, &mut optlen)?; + unsafe { + let value = value.assume_init(); + let slice: &[u8] = core::mem::transmute(&value[..optlen as usize]); + assert!(slice.contains(&b'\0')); + Ok( + core::str::from_utf8(CStr::from_ptr(slice.as_ptr().cast()).to_bytes()) + .unwrap() + .to_owned(), + ) + } +} + +#[cfg(any(linux_like, target_os = "fuchsia"))] +#[inline] +pub(crate) fn set_tcp_thin_linear_timeouts(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt( + fd, + c::IPPROTO_TCP, + c::TCP_THIN_LINEAR_TIMEOUTS, + from_bool(value), + ) +} + +#[cfg(any(linux_like, target_os = "fuchsia"))] +#[inline] +pub(crate) fn tcp_thin_linear_timeouts(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_TCP, c::TCP_THIN_LINEAR_TIMEOUTS).map(to_bool) +} + +#[cfg(any(linux_like, solarish, target_os = "fuchsia"))] +#[inline] +pub(crate) fn set_tcp_cork(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_TCP, c::TCP_CORK, from_bool(value)) +} + +#[cfg(any(linux_like, solarish, target_os = "fuchsia"))] +#[inline] +pub(crate) fn tcp_cork(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_TCP, c::TCP_CORK).map(to_bool) +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn socket_peercred(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_PEERCRED) +} + +#[cfg(all(target_os = "linux", feature = "time"))] +#[inline] +pub(crate) fn set_txtime( + fd: BorrowedFd<'_>, + clockid: ClockId, + flags: TxTimeFlags, +) -> io::Result<()> { + setsockopt( + fd, + c::SOL_SOCKET, + c::SO_TXTIME, + c::sock_txtime { + clockid: clockid as _, + flags: flags.bits(), + }, + ) +} + +#[cfg(all(target_os = "linux", feature = "time"))] +#[inline] +pub(crate) fn get_txtime(fd: BorrowedFd<'_>) -> io::Result<(ClockId, TxTimeFlags)> { + let txtime: c::sock_txtime = getsockopt(fd, c::SOL_SOCKET, c::SO_TXTIME)?; + + Ok(( + txtime.clockid.try_into().map_err(|_| io::Errno::RANGE)?, + TxTimeFlags::from_bits(txtime.flags).ok_or(io::Errno::RANGE)?, + )) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn set_xdp_umem_reg(fd: BorrowedFd<'_>, value: XdpUmemReg) -> io::Result<()> { + setsockopt(fd, c::SOL_XDP, c::XDP_UMEM_REG, value) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn set_xdp_umem_fill_ring_size(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::SOL_XDP, c::XDP_UMEM_FILL_RING, value) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn set_xdp_umem_completion_ring_size(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::SOL_XDP, c::XDP_UMEM_COMPLETION_RING, value) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn set_xdp_tx_ring_size(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::SOL_XDP, c::XDP_TX_RING, value) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn set_xdp_rx_ring_size(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::SOL_XDP, c::XDP_RX_RING, value) +} + +#[cfg(all(linux_raw_dep, target_os = "linux"))] +#[inline] +pub(crate) fn xdp_mmap_offsets(fd: BorrowedFd<'_>) -> io::Result { + // The kernel will write `xdp_mmap_offsets` or `xdp_mmap_offsets_v1` to the + // supplied pointer, depending on the kernel version. Both structs only + // contain u64 values. By using the larger of both as the parameter, we can + // shuffle the values to the non-v1 version returned by + // `get_xdp_mmap_offsets` while keeping the return type unaffected by the + // kernel version. This works because C will layout all struct members one + // after the other. + + let mut optlen = size_of::().try_into().unwrap(); + debug_assert!( + optlen as usize >= size_of::(), + "Socket APIs don't ever use `bool` directly" + ); + let mut value = MaybeUninit::::zeroed(); + getsockopt_raw(fd, c::SOL_XDP, c::XDP_MMAP_OFFSETS, &mut value, &mut optlen)?; + + if optlen as usize == size_of::() { + // SAFETY: All members of xdp_mmap_offsets are `u64` and thus are + // correctly initialized by `MaybeUninit::::zeroed()`. + let xpd_mmap_offsets = unsafe { value.assume_init() }; + Ok(XdpMmapOffsets { + rx: XdpRingOffset { + producer: xpd_mmap_offsets.rx.producer, + consumer: xpd_mmap_offsets.rx.consumer, + desc: xpd_mmap_offsets.rx.desc, + flags: None, + }, + tx: XdpRingOffset { + producer: xpd_mmap_offsets.rx.flags, + consumer: xpd_mmap_offsets.tx.producer, + desc: xpd_mmap_offsets.tx.consumer, + flags: None, + }, + fr: XdpRingOffset { + producer: xpd_mmap_offsets.tx.desc, + consumer: xpd_mmap_offsets.tx.flags, + desc: xpd_mmap_offsets.fr.producer, + flags: None, + }, + cr: XdpRingOffset { + producer: xpd_mmap_offsets.fr.consumer, + consumer: xpd_mmap_offsets.fr.desc, + desc: xpd_mmap_offsets.fr.flags, + flags: None, + }, + }) + } else { + assert_eq!( + optlen as usize, + size_of::(), + "unexpected getsockopt size" + ); + // SAFETY: All members of xdp_mmap_offsets are `u64` and thus are + // correctly initialized by `MaybeUninit::::zeroed()` + let xpd_mmap_offsets = unsafe { value.assume_init() }; + Ok(XdpMmapOffsets { + rx: XdpRingOffset { + producer: xpd_mmap_offsets.rx.producer, + consumer: xpd_mmap_offsets.rx.consumer, + desc: xpd_mmap_offsets.rx.desc, + flags: Some(xpd_mmap_offsets.rx.flags), + }, + tx: XdpRingOffset { + producer: xpd_mmap_offsets.tx.producer, + consumer: xpd_mmap_offsets.tx.consumer, + desc: xpd_mmap_offsets.tx.desc, + flags: Some(xpd_mmap_offsets.tx.flags), + }, + fr: XdpRingOffset { + producer: xpd_mmap_offsets.fr.producer, + consumer: xpd_mmap_offsets.fr.consumer, + desc: xpd_mmap_offsets.fr.desc, + flags: Some(xpd_mmap_offsets.fr.flags), + }, + cr: XdpRingOffset { + producer: xpd_mmap_offsets.cr.producer, + consumer: xpd_mmap_offsets.cr.consumer, + desc: xpd_mmap_offsets.cr.desc, + flags: Some(xpd_mmap_offsets.cr.flags), + }, + }) + } +} + +#[cfg(all(linux_raw_dep, target_os = "linux"))] +#[inline] +pub(crate) fn xdp_statistics(fd: BorrowedFd<'_>) -> io::Result { + let mut optlen = size_of::().try_into().unwrap(); + debug_assert!( + optlen as usize >= size_of::(), + "Socket APIs don't ever use `bool` directly" + ); + let mut value = MaybeUninit::::zeroed(); + getsockopt_raw(fd, c::SOL_XDP, c::XDP_STATISTICS, &mut value, &mut optlen)?; + + if optlen as usize == size_of::() { + // SAFETY: All members of xdp_statistics are `u64` and thus are + // correctly initialized by `MaybeUninit::::zeroed()`. + let xdp_statistics = unsafe { value.assume_init() }; + Ok(XdpStatistics { + rx_dropped: xdp_statistics.rx_dropped, + rx_invalid_descs: xdp_statistics.rx_dropped, + tx_invalid_descs: xdp_statistics.rx_dropped, + rx_ring_full: None, + rx_fill_ring_empty_descs: None, + tx_ring_empty_descs: None, + }) + } else { + assert_eq!( + optlen as usize, + size_of::(), + "unexpected getsockopt size" + ); + // SAFETY: All members of xdp_statistics are `u64` and thus are + // correctly initialized by `MaybeUninit::::zeroed()`. + let xdp_statistics = unsafe { value.assume_init() }; + Ok(XdpStatistics { + rx_dropped: xdp_statistics.rx_dropped, + rx_invalid_descs: xdp_statistics.rx_invalid_descs, + tx_invalid_descs: xdp_statistics.tx_invalid_descs, + rx_ring_full: Some(xdp_statistics.rx_ring_full), + rx_fill_ring_empty_descs: Some(xdp_statistics.rx_fill_ring_empty_descs), + tx_ring_empty_descs: Some(xdp_statistics.tx_ring_empty_descs), + }) + } +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn xdp_options(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_XDP, c::XDP_OPTIONS) +} + +#[inline] +fn to_ip_mreq(multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> c::ip_mreq { + c::ip_mreq { + imr_multiaddr: to_imr_addr(multiaddr), + imr_interface: to_imr_addr(interface), + } +} + +#[cfg(not(windows))] +#[inline] +fn from_in_addr(in_addr: c::in_addr) -> Ipv4Addr { + Ipv4Addr::from(in_addr.s_addr.to_ne_bytes()) +} + +#[cfg(windows)] +fn from_in_addr(in_addr: c::in_addr) -> Ipv4Addr { + Ipv4Addr::from(unsafe { in_addr.S_un.S_addr.to_ne_bytes() }) +} + +#[cfg(any( + apple, + freebsdlike, + linux_like, + target_os = "fuchsia", + target_os = "openbsd" +))] +#[inline] +fn to_ip_mreqn(multiaddr: &Ipv4Addr, address: &Ipv4Addr, ifindex: i32) -> c::ip_mreqn { + c::ip_mreqn { + imr_multiaddr: to_imr_addr(multiaddr), + imr_address: to_imr_addr(address), + imr_ifindex: ifindex, + } +} + +#[cfg(any(apple, freebsdlike, linux_like, solarish, target_os = "aix"))] +#[inline] +fn to_imr_source( + multiaddr: &Ipv4Addr, + interface: &Ipv4Addr, + sourceaddr: &Ipv4Addr, +) -> c::ip_mreq_source { + c::ip_mreq_source { + imr_multiaddr: to_imr_addr(multiaddr), + imr_interface: to_imr_addr(interface), + imr_sourceaddr: to_imr_addr(sourceaddr), + } +} + +#[inline] +fn to_imr_addr(addr: &Ipv4Addr) -> c::in_addr { + in_addr_new(u32::from_ne_bytes(addr.octets())) +} + +#[inline] +fn to_ipv6mr(multiaddr: &Ipv6Addr, interface: u32) -> c::ipv6_mreq { + c::ipv6_mreq { + ipv6mr_multiaddr: to_ipv6mr_multiaddr(multiaddr), + ipv6mr_interface: to_ipv6mr_interface(interface), + } +} + +#[inline] +fn to_ipv6mr_multiaddr(multiaddr: &Ipv6Addr) -> c::in6_addr { + in6_addr_new(multiaddr.octets()) +} + +#[cfg(target_os = "android")] +#[inline] +fn to_ipv6mr_interface(interface: u32) -> c::c_int { + interface as c::c_int +} + +#[cfg(not(target_os = "android"))] +#[inline] +fn to_ipv6mr_interface(interface: u32) -> c::c_uint { + interface as c::c_uint +} + +// `getsockopt` and `setsockopt` represent boolean values as integers. +// +// On Windows, this should use `BOOL`, however windows-sys moved its `BOOL` +// from `windows_sys::Win32::Foundation::BOOL` to `windows_sys::core::BOOL` +// in windows-sys 0.60, and we'd prefer +type RawSocketBool = c::c_int; + +// Wrap `RawSocketBool` in a newtype to discourage misuse. +#[repr(transparent)] +#[derive(Copy, Clone)] +struct SocketBool(RawSocketBool); + +// Convert from a `bool` to a `SocketBool`. +#[inline] +fn from_bool(value: bool) -> SocketBool { + SocketBool(value.into()) +} + +// Convert from a `SocketBool` to a `bool`. +#[inline] +fn to_bool(value: SocketBool) -> bool { + value.0 != 0 +} + +/// Convert to seconds, rounding up if necessary. +#[inline] +fn duration_to_secs>(duration: Duration) -> io::Result { + let mut secs = duration.as_secs(); + if duration.subsec_nanos() != 0 { + secs = secs.checked_add(1).ok_or(io::Errno::INVAL)?; + } + T::try_from(secs).map_err(|_e| io::Errno::INVAL) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..e9138143dd882372b53ec3d3c3befae64136aa23 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/syscalls.rs @@ -0,0 +1,434 @@ +//! libc syscalls supporting `rustix::net`. + +use super::read_sockaddr::initialize_family_to_unspec; +use super::send_recv::{RecvFlags, SendFlags}; +use crate::backend::c; +#[cfg(target_os = "linux")] +use crate::backend::conv::ret_u32; +use crate::backend::conv::{borrowed_fd, ret, ret_owned_fd, ret_send_recv, send_recv_len}; +use crate::fd::{BorrowedFd, OwnedFd}; +use crate::io; +use crate::net::addr::SocketAddrArg; +#[cfg(target_os = "linux")] +use crate::net::MMsgHdr; +use crate::net::{ + AddressFamily, Protocol, Shutdown, SocketAddrAny, SocketAddrBuf, SocketFlags, SocketType, +}; +use crate::utils::as_ptr; +use core::mem::{size_of, MaybeUninit}; +use core::ptr::null_mut; +#[cfg(not(any( + windows, + target_os = "espidf", + target_os = "horizon", + target_os = "vita" +)))] +use { + super::msghdr::{noaddr_msghdr, with_msghdr, with_recv_msghdr}, + super::send_recv::ReturnFlags, + crate::io::{IoSlice, IoSliceMut}, + crate::net::{RecvAncillaryBuffer, RecvMsg, SendAncillaryBuffer}, +}; + +pub(crate) unsafe fn recv( + fd: BorrowedFd<'_>, + buf: (*mut u8, usize), + flags: RecvFlags, +) -> io::Result { + ret_send_recv(c::recv( + borrowed_fd(fd), + buf.0.cast(), + send_recv_len(buf.1), + bitflags_bits!(flags), + )) +} + +pub(crate) fn send(fd: BorrowedFd<'_>, buf: &[u8], flags: SendFlags) -> io::Result { + unsafe { + ret_send_recv(c::send( + borrowed_fd(fd), + buf.as_ptr().cast(), + send_recv_len(buf.len()), + bitflags_bits!(flags), + )) + } +} + +pub(crate) unsafe fn recvfrom( + fd: BorrowedFd<'_>, + buf: (*mut u8, usize), + flags: RecvFlags, +) -> io::Result<(usize, Option)> { + let mut addr = SocketAddrBuf::new(); + + // `recvfrom` does not write to the storage if the socket is + // connection-oriented sockets, so we initialize the family field to + // `AF_UNSPEC` so that we can detect this case. + initialize_family_to_unspec(addr.storage.as_mut_ptr().cast::()); + + let nread = ret_send_recv(c::recvfrom( + borrowed_fd(fd), + buf.0.cast(), + send_recv_len(buf.1), + bitflags_bits!(flags), + addr.storage.as_mut_ptr().cast::(), + &mut addr.len, + ))?; + + Ok((nread, addr.into_any_option())) +} + +pub(crate) fn sendto( + fd: BorrowedFd<'_>, + buf: &[u8], + flags: SendFlags, + addr: &impl SocketAddrArg, +) -> io::Result { + unsafe { + addr.with_sockaddr(|addr_ptr, addr_len| { + ret_send_recv(c::sendto( + borrowed_fd(fd), + buf.as_ptr().cast(), + send_recv_len(buf.len()), + bitflags_bits!(flags), + addr_ptr.cast(), + bitcast!(addr_len), + )) + }) + } +} + +pub(crate) fn socket( + domain: AddressFamily, + type_: SocketType, + protocol: Option, +) -> io::Result { + let raw_protocol = match protocol { + Some(p) => p.0.get(), + None => 0, + }; + unsafe { + ret_owned_fd(c::socket( + domain.0 as c::c_int, + type_.0 as c::c_int, + raw_protocol as c::c_int, + )) + } +} + +pub(crate) fn socket_with( + domain: AddressFamily, + type_: SocketType, + flags: SocketFlags, + protocol: Option, +) -> io::Result { + let raw_protocol = match protocol { + Some(p) => p.0.get(), + None => 0, + }; + unsafe { + ret_owned_fd(c::socket( + domain.0 as c::c_int, + (type_.0 | flags.bits()) as c::c_int, + raw_protocol as c::c_int, + )) + } +} + +pub(crate) fn bind(sockfd: BorrowedFd<'_>, addr: &impl SocketAddrArg) -> io::Result<()> { + unsafe { + addr.with_sockaddr(|addr_ptr, addr_len| { + ret(c::bind( + borrowed_fd(sockfd), + addr_ptr.cast(), + bitcast!(addr_len), + )) + }) + } +} + +pub(crate) fn connect(sockfd: BorrowedFd<'_>, addr: &impl SocketAddrArg) -> io::Result<()> { + unsafe { + addr.with_sockaddr(|addr_ptr, addr_len| { + ret(c::connect( + borrowed_fd(sockfd), + addr_ptr.cast(), + bitcast!(addr_len), + )) + }) + } +} + +pub(crate) fn connect_unspec(sockfd: BorrowedFd<'_>) -> io::Result<()> { + debug_assert_eq!(c::AF_UNSPEC, 0); + let addr = MaybeUninit::::zeroed(); + unsafe { + ret(c::connect( + borrowed_fd(sockfd), + as_ptr(&addr).cast(), + size_of::() as c::socklen_t, + )) + } +} + +pub(crate) fn listen(sockfd: BorrowedFd<'_>, backlog: c::c_int) -> io::Result<()> { + unsafe { ret(c::listen(borrowed_fd(sockfd), backlog)) } +} + +pub(crate) fn accept(sockfd: BorrowedFd<'_>) -> io::Result { + unsafe { + let owned_fd = ret_owned_fd(c::accept(borrowed_fd(sockfd), null_mut(), null_mut()))?; + Ok(owned_fd) + } +} + +#[cfg(not(any( + windows, + target_os = "espidf", + target_os = "horizon", + target_os = "vita" +)))] +pub(crate) fn recvmsg( + sockfd: BorrowedFd<'_>, + iov: &mut [IoSliceMut<'_>], + control: &mut RecvAncillaryBuffer<'_>, + msg_flags: RecvFlags, +) -> io::Result { + let mut addr = SocketAddrBuf::new(); + + // SAFETY: This passes the `msghdr` reference to the OS which reads the + // buffers only within the designated bounds. + let (bytes, flags) = unsafe { + with_recv_msghdr(&mut addr, iov, control, |msghdr| { + let bytes = ret_send_recv(c::recvmsg( + borrowed_fd(sockfd), + msghdr, + bitflags_bits!(msg_flags), + ))?; + Ok((bytes, msghdr.msg_flags)) + })? + }; + + Ok(RecvMsg { + bytes, + address: unsafe { addr.into_any_option() }, + flags: ReturnFlags::from_bits_retain(bitcast!(flags)), + }) +} + +#[cfg(not(any( + windows, + target_os = "espidf", + target_os = "horizon", + target_os = "vita" +)))] +pub(crate) fn sendmsg( + sockfd: BorrowedFd<'_>, + iov: &[IoSlice<'_>], + control: &mut SendAncillaryBuffer<'_, '_, '_>, + msg_flags: SendFlags, +) -> io::Result { + let msghdr = noaddr_msghdr(iov, control); + unsafe { + ret_send_recv(c::sendmsg( + borrowed_fd(sockfd), + &msghdr, + bitflags_bits!(msg_flags), + )) + } +} + +#[cfg(not(any( + windows, + target_os = "espidf", + target_os = "horizon", + target_os = "vita" +)))] +pub(crate) fn sendmsg_addr( + sockfd: BorrowedFd<'_>, + addr: &impl SocketAddrArg, + iov: &[IoSlice<'_>], + control: &mut SendAncillaryBuffer<'_, '_, '_>, + msg_flags: SendFlags, +) -> io::Result { + // SAFETY: This passes the `msghdr` reference to the OS which reads the + // buffers only within the designated bounds. + unsafe { + with_msghdr(addr, iov, control, |msghdr| { + ret_send_recv(c::sendmsg( + borrowed_fd(sockfd), + msghdr, + bitflags_bits!(msg_flags), + )) + }) + } +} + +#[cfg(target_os = "linux")] +pub(crate) fn sendmmsg( + sockfd: BorrowedFd<'_>, + msgs: &mut [MMsgHdr<'_>], + flags: SendFlags, +) -> io::Result { + unsafe { + ret_u32(c::sendmmsg( + borrowed_fd(sockfd), + msgs.as_mut_ptr() as _, + msgs.len().try_into().unwrap_or(c::c_uint::MAX), + bitflags_bits!(flags), + )) + .map(|ret| ret as usize) + } +} + +#[cfg(not(any( + apple, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "vita", +)))] +pub(crate) fn accept_with(sockfd: BorrowedFd<'_>, flags: SocketFlags) -> io::Result { + unsafe { + let owned_fd = ret_owned_fd(c::accept4( + borrowed_fd(sockfd), + null_mut(), + null_mut(), + flags.bits() as c::c_int, + ))?; + Ok(owned_fd) + } +} + +pub(crate) fn acceptfrom(sockfd: BorrowedFd<'_>) -> io::Result<(OwnedFd, Option)> { + unsafe { + let mut addr = SocketAddrBuf::new(); + let owned_fd = ret_owned_fd(c::accept( + borrowed_fd(sockfd), + addr.storage.as_mut_ptr().cast::(), + &mut addr.len, + ))?; + Ok((owned_fd, addr.into_any_option())) + } +} + +#[cfg(not(any( + apple, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "vita", +)))] +pub(crate) fn acceptfrom_with( + sockfd: BorrowedFd<'_>, + flags: SocketFlags, +) -> io::Result<(OwnedFd, Option)> { + unsafe { + let mut addr = SocketAddrBuf::new(); + let owned_fd = ret_owned_fd(c::accept4( + borrowed_fd(sockfd), + addr.storage.as_mut_ptr().cast::(), + &mut addr.len, + flags.bits() as c::c_int, + ))?; + Ok((owned_fd, addr.into_any_option())) + } +} + +/// Darwin lacks `accept4`, but does have `accept`. We define `SocketFlags` to +/// have no flags, so we can discard it here. +#[cfg(any( + apple, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "vita", +))] +pub(crate) fn accept_with(sockfd: BorrowedFd<'_>, _flags: SocketFlags) -> io::Result { + accept(sockfd) +} + +/// Darwin lacks `accept4`, but does have `accept`. We define `SocketFlags` to +/// have no flags, so we can discard it here. +#[cfg(any( + apple, + windows, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "vita", +))] +pub(crate) fn acceptfrom_with( + sockfd: BorrowedFd<'_>, + _flags: SocketFlags, +) -> io::Result<(OwnedFd, Option)> { + acceptfrom(sockfd) +} + +pub(crate) fn shutdown(sockfd: BorrowedFd<'_>, how: Shutdown) -> io::Result<()> { + unsafe { ret(c::shutdown(borrowed_fd(sockfd), how as c::c_int)) } +} + +pub(crate) fn getsockname(sockfd: BorrowedFd<'_>) -> io::Result { + unsafe { + let mut addr = SocketAddrBuf::new(); + ret(c::getsockname( + borrowed_fd(sockfd), + addr.storage.as_mut_ptr().cast::(), + &mut addr.len, + ))?; + Ok(addr.into_any()) + } +} + +pub(crate) fn getpeername(sockfd: BorrowedFd<'_>) -> io::Result> { + unsafe { + let mut addr = SocketAddrBuf::new(); + ret(c::getpeername( + borrowed_fd(sockfd), + addr.storage.as_mut_ptr().cast::(), + &mut addr.len, + ))?; + Ok(addr.into_any_option()) + } +} + +#[cfg(not(windows))] +pub(crate) fn socketpair( + domain: AddressFamily, + type_: SocketType, + flags: SocketFlags, + protocol: Option, +) -> io::Result<(OwnedFd, OwnedFd)> { + let raw_protocol = match protocol { + Some(p) => p.0.get(), + None => 0, + }; + unsafe { + let mut fds = MaybeUninit::<[OwnedFd; 2]>::uninit(); + ret(c::socketpair( + c::c_int::from(domain.0), + (type_.0 | flags.bits()) as c::c_int, + raw_protocol as c::c_int, + fds.as_mut_ptr().cast::(), + ))?; + + let [fd0, fd1] = fds.assume_init(); + Ok((fd0, fd1)) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/write_sockaddr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/write_sockaddr.rs new file mode 100644 index 0000000000000000000000000000000000000000..08f04646c014233f3096301cf10c7ce9e343dda4 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/net/write_sockaddr.rs @@ -0,0 +1,72 @@ +//! The BSD sockets API requires us to read the `sa_family` field before we can +//! interpret the rest of a `sockaddr` produced by the kernel. + +use super::ext::{in6_addr_new, in_addr_new, sockaddr_in6_new}; +use crate::backend::c; +use crate::net::{SocketAddrV4, SocketAddrV6}; + +pub(crate) fn encode_sockaddr_v4(v4: &SocketAddrV4) -> c::sockaddr_in { + c::sockaddr_in { + #[cfg(any( + bsd, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "vita", + ))] + sin_len: core::mem::size_of::() as _, + sin_family: c::AF_INET as _, + sin_port: u16::to_be(v4.port()), + sin_addr: in_addr_new(u32::from_ne_bytes(v4.ip().octets())), + #[cfg(not(any(target_os = "haiku", target_os = "vita")))] + sin_zero: [0; 8_usize], + #[cfg(target_os = "haiku")] + sin_zero: [0; 24_usize], + #[cfg(target_os = "vita")] + sin_zero: [0; 6_usize], + #[cfg(target_os = "vita")] + sin_vport: 0, + } +} + +pub(crate) fn encode_sockaddr_v6(v6: &SocketAddrV6) -> c::sockaddr_in6 { + #[cfg(any( + bsd, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "vita" + ))] + { + sockaddr_in6_new( + core::mem::size_of::() as _, + c::AF_INET6 as _, + u16::to_be(v6.port()), + u32::to_be(v6.flowinfo()), + in6_addr_new(v6.ip().octets()), + v6.scope_id(), + ) + } + #[cfg(not(any( + bsd, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + target_os = "vita" + )))] + { + sockaddr_in6_new( + c::AF_INET6 as _, + u16::to_be(v6.port()), + u32::to_be(v6.flowinfo()), + in6_addr_new(v6.ip().octets()), + v6.scope_id(), + ) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/param/auxv.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/param/auxv.rs new file mode 100644 index 0000000000000000000000000000000000000000..6b6ea955570a949ab066ee9ecfd226c3d2e20dff --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/param/auxv.rs @@ -0,0 +1,67 @@ +use crate::backend::c; +#[cfg(any( + all(target_os = "android", target_pointer_width = "64"), + target_os = "linux", +))] +use crate::ffi::CStr; + +// `getauxval` wasn't supported in glibc until 2.16. +#[cfg(any( + all(target_os = "android", target_pointer_width = "64"), + target_os = "linux", +))] +weak!(fn getauxval(c::c_ulong) -> *mut c::c_void); + +#[inline] +pub(crate) fn page_size() -> usize { + unsafe { c::sysconf(c::_SC_PAGESIZE) as usize } +} + +#[cfg(not(any(target_os = "horizon", target_os = "vita", target_os = "wasi")))] +#[inline] +pub(crate) fn clock_ticks_per_second() -> u64 { + unsafe { c::sysconf(c::_SC_CLK_TCK) as u64 } +} + +#[cfg(any( + all(target_os = "android", target_pointer_width = "64"), + target_os = "linux", +))] +#[inline] +pub(crate) fn linux_hwcap() -> (usize, usize) { + if let Some(libc_getauxval) = getauxval.get() { + unsafe { + let hwcap = libc_getauxval(c::AT_HWCAP) as usize; + let hwcap2 = libc_getauxval(c::AT_HWCAP2) as usize; + (hwcap, hwcap2) + } + } else { + (0, 0) + } +} + +#[cfg(any( + all(target_os = "android", target_pointer_width = "64"), + target_os = "linux", +))] +#[inline] +pub(crate) fn linux_minsigstksz() -> usize { + if let Some(libc_getauxval) = getauxval.get() { + unsafe { libc_getauxval(c::AT_MINSIGSTKSZ) as usize } + } else { + 0 + } +} + +#[cfg(any( + all(target_os = "android", target_pointer_width = "64"), + target_os = "linux", +))] +#[inline] +pub(crate) fn linux_execfn() -> &'static CStr { + if let Some(libc_getauxval) = getauxval.get() { + unsafe { CStr::from_ptr(libc_getauxval(c::AT_EXECFN).cast()) } + } else { + cstr!("") + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/param/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/param/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..2cb2fe78a4ff11f1d603c8f3c05b7b6d9a42a32a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/param/mod.rs @@ -0,0 +1 @@ +pub(crate) mod auxv; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pid/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pid/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..ef944f04d2627e93c3e742e586d754d72c7a2f39 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pid/mod.rs @@ -0,0 +1 @@ +pub(crate) mod syscalls; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pid/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pid/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..d0ed4bc9f0c03acb2ade7a196e000861940cef68 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pid/syscalls.rs @@ -0,0 +1,14 @@ +//! libc syscalls for PIDs + +use crate::backend::c; +use crate::pid::Pid; + +#[cfg(not(target_os = "wasi"))] +#[inline] +#[must_use] +pub(crate) fn getpid() -> Pid { + unsafe { + let pid = c::getpid(); + Pid::from_raw_unchecked(pid) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pipe/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pipe/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pipe/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pipe/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pipe/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..fe5249546b64593d9dfc4807668bab6a98381b5f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pipe/syscalls.rs @@ -0,0 +1,126 @@ +use crate::backend::c; +use crate::backend::conv::ret; +use crate::fd::OwnedFd; +use crate::io; +#[cfg(not(any( + apple, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "nto", + target_os = "wasi" +)))] +use crate::pipe::PipeFlags; +use core::mem::MaybeUninit; +#[cfg(linux_kernel)] +use { + crate::backend::conv::{borrowed_fd, ret_c_int, ret_usize}, + crate::backend::MAX_IOV, + crate::fd::BorrowedFd, + crate::pipe::{IoSliceRaw, SpliceFlags}, + crate::utils::option_as_mut_ptr, + core::cmp::min, +}; + +#[cfg(not(target_os = "wasi"))] +pub(crate) fn pipe() -> io::Result<(OwnedFd, OwnedFd)> { + unsafe { + let mut result = MaybeUninit::<[OwnedFd; 2]>::uninit(); + ret(c::pipe(result.as_mut_ptr().cast::()))?; + let [p0, p1] = result.assume_init(); + Ok((p0, p1)) + } +} + +#[cfg(not(any( + apple, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "nto", + target_os = "wasi" +)))] +pub(crate) fn pipe_with(flags: PipeFlags) -> io::Result<(OwnedFd, OwnedFd)> { + unsafe { + let mut result = MaybeUninit::<[OwnedFd; 2]>::uninit(); + ret(c::pipe2( + result.as_mut_ptr().cast::(), + bitflags_bits!(flags), + ))?; + let [p0, p1] = result.assume_init(); + Ok((p0, p1)) + } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn splice( + fd_in: BorrowedFd<'_>, + off_in: Option<&mut u64>, + fd_out: BorrowedFd<'_>, + off_out: Option<&mut u64>, + len: usize, + flags: SpliceFlags, +) -> io::Result { + let off_in = option_as_mut_ptr(off_in).cast(); + let off_out = option_as_mut_ptr(off_out).cast(); + + unsafe { + ret_usize(c::splice( + borrowed_fd(fd_in), + off_in, + borrowed_fd(fd_out), + off_out, + len, + flags.bits(), + )) + } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) unsafe fn vmsplice( + fd: BorrowedFd<'_>, + bufs: &[IoSliceRaw<'_>], + flags: SpliceFlags, +) -> io::Result { + ret_usize(c::vmsplice( + borrowed_fd(fd), + bufs.as_ptr().cast::(), + min(bufs.len(), MAX_IOV), + flags.bits(), + )) +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn tee( + fd_in: BorrowedFd<'_>, + fd_out: BorrowedFd<'_>, + len: usize, + flags: SpliceFlags, +) -> io::Result { + unsafe { + ret_usize(c::tee( + borrowed_fd(fd_in), + borrowed_fd(fd_out), + len, + flags.bits(), + )) + } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn fcntl_getpipe_size(fd: BorrowedFd<'_>) -> io::Result { + unsafe { ret_c_int(c::fcntl(borrowed_fd(fd), c::F_GETPIPE_SZ)).map(|size| size as usize) } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn fcntl_setpipe_size(fd: BorrowedFd<'_>, size: usize) -> io::Result { + let size: c::c_int = size.try_into().map_err(|_| io::Errno::PERM)?; + + unsafe { ret_c_int(c::fcntl(borrowed_fd(fd), c::F_SETPIPE_SZ, size)).map(|size| size as usize) } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pipe/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pipe/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..db04a9424029a81540fcee2d0304e04b3d6755e9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pipe/types.rs @@ -0,0 +1,117 @@ +#[cfg(linux_kernel)] +use crate::ffi; +#[cfg(linux_kernel)] +use core::marker::PhantomData; +#[cfg(not(any(apple, target_os = "wasi")))] +use {crate::backend::c, bitflags::bitflags}; + +#[cfg(not(any(apple, target_os = "wasi")))] +bitflags! { + /// `O_*` constants for use with [`pipe_with`]. + /// + /// [`pipe_with`]: crate::pipe::pipe_with + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct PipeFlags: u32 { + /// `O_CLOEXEC` + const CLOEXEC = bitcast!(c::O_CLOEXEC); + /// `O_DIRECT` + #[cfg(not(any( + solarish, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "nto", + target_os = "openbsd", + target_os = "redox", + target_os = "vita", + )))] + const DIRECT = bitcast!(c::O_DIRECT); + /// `O_NONBLOCK` + const NONBLOCK = bitcast!(c::O_NONBLOCK); + + /// + const _ = !0; + } +} + +#[cfg(linux_kernel)] +bitflags! { + /// `SPLICE_F_*` constants for use with [`splice`], [`vmsplice`], and + /// [`tee`]. + /// + /// [`splice`]: crate::pipe::splice + /// [`vmsplice`]: crate::pipe::splice + /// [`tee`]: crate::pipe::tee + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct SpliceFlags: ffi::c_uint { + /// `SPLICE_F_MOVE` + const MOVE = c::SPLICE_F_MOVE; + /// `SPLICE_F_NONBLOCK` + const NONBLOCK = c::SPLICE_F_NONBLOCK; + /// `SPLICE_F_MORE` + const MORE = c::SPLICE_F_MORE; + /// `SPLICE_F_GIFT` + const GIFT = c::SPLICE_F_GIFT; + + /// + const _ = !0; + } +} + +/// A buffer type for use with [`vmsplice`]. +/// +/// It is guaranteed to be ABI compatible with the iovec type on Unix platforms +/// and `WSABUF` on Windows. Unlike `IoSlice` and `IoSliceMut` it is +/// semantically like a raw pointer, and therefore can be shared or mutated as +/// needed. +/// +/// [`vmsplice`]: crate::pipe::vmsplice +#[cfg(linux_kernel)] +#[repr(transparent)] +pub struct IoSliceRaw<'a> { + _buf: c::iovec, + _lifetime: PhantomData<&'a ()>, +} + +#[cfg(linux_kernel)] +impl<'a> IoSliceRaw<'a> { + /// Creates a new `IoSlice` wrapping a byte slice. + pub fn from_slice(buf: &'a [u8]) -> Self { + IoSliceRaw { + _buf: c::iovec { + iov_base: (buf.as_ptr() as *mut u8).cast::(), + iov_len: buf.len() as _, + }, + _lifetime: PhantomData, + } + } + + /// Creates a new `IoSlice` wrapping a mutable byte slice. + pub fn from_slice_mut(buf: &'a mut [u8]) -> Self { + IoSliceRaw { + _buf: c::iovec { + iov_base: buf.as_mut_ptr().cast::(), + iov_len: buf.len() as _, + }, + _lifetime: PhantomData, + } + } +} + +#[cfg(test)] +mod tests { + #[allow(unused_imports)] + use super::*; + + #[cfg(not(any(apple, target_os = "wasi")))] + #[test] + fn test_types() { + assert_eq_size!(PipeFlags, c::c_int); + + #[cfg(linux_kernel)] + assert_eq_size!(SpliceFlags, c::c_int); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/prctl/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/prctl/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..ef944f04d2627e93c3e742e586d754d72c7a2f39 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/prctl/mod.rs @@ -0,0 +1 @@ +pub(crate) mod syscalls; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/prctl/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/prctl/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..451cecc29f19dddf9bb563ac21a37d4fd321f272 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/prctl/syscalls.rs @@ -0,0 +1,14 @@ +use crate::backend::c; +use crate::backend::conv::ret_c_int; +use crate::io; + +#[inline] +pub(crate) unsafe fn prctl( + option: c::c_int, + arg2: *mut c::c_void, + arg3: *mut c::c_void, + arg4: *mut c::c_void, + arg5: *mut c::c_void, +) -> io::Result { + ret_c_int(c::prctl(option, arg2, arg3, arg4, arg5)) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/process/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/process/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..a937d7f860e4e49313ac15c8c1b6bae2ec4b966b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/process/mod.rs @@ -0,0 +1,5 @@ +#[cfg(not(windows))] +pub(crate) mod syscalls; +pub(crate) mod types; +#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))] +pub(crate) mod wait; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/process/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/process/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..3c67f2c339222032d02510b34a018407a5223ea0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/process/syscalls.rs @@ -0,0 +1,704 @@ +//! libc syscalls supporting `rustix::process`. + +use crate::backend::c; +#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] +use crate::backend::conv::borrowed_fd; +#[cfg(any(target_os = "linux", feature = "fs"))] +use crate::backend::conv::c_str; +#[cfg(all(feature = "alloc", feature = "fs", not(target_os = "wasi")))] +use crate::backend::conv::ret_discarded_char_ptr; +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +use crate::backend::conv::ret_infallible; +#[cfg(not(target_os = "wasi"))] +use crate::backend::conv::ret_pid_t; +#[cfg(all(feature = "alloc", not(target_os = "wasi")))] +use crate::backend::conv::ret_usize; +use crate::backend::conv::{ret, ret_c_int}; +#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] +use crate::fd::BorrowedFd; +#[cfg(target_os = "linux")] +use crate::fd::{AsRawFd as _, OwnedFd, RawFd}; +#[cfg(any(target_os = "linux", feature = "fs"))] +use crate::ffi::CStr; +#[cfg(feature = "fs")] +use crate::fs::Mode; +use crate::io; +#[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::process::Flock; +#[cfg(all(feature = "alloc", not(target_os = "wasi")))] +use crate::process::Gid; +#[cfg(not(target_os = "wasi"))] +use crate::process::Pid; +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +use crate::process::Signal; +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "vita", + target_os = "wasi" +)))] +use crate::process::Uid; +#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))] +use crate::process::{RawPid, WaitOptions, WaitStatus}; +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +use crate::process::{Resource, Rlimit}; +#[cfg(not(any( + target_os = "cygwin", + target_os = "espidf", + target_os = "horizon", + target_os = "openbsd", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +use crate::process::{WaitId, WaitIdOptions, WaitIdStatus}; +use core::mem::MaybeUninit; +#[cfg(target_os = "linux")] +use { + super::super::conv::ret_owned_fd, crate::process::PidfdFlags, crate::process::PidfdGetfdFlags, +}; + +#[cfg(feature = "fs")] +#[cfg(not(target_os = "wasi"))] +pub(crate) fn chdir(path: &CStr) -> io::Result<()> { + unsafe { ret(c::chdir(c_str(path))) } +} + +#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] +pub(crate) fn fchdir(dirfd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { ret(c::fchdir(borrowed_fd(dirfd))) } +} + +#[cfg(feature = "fs")] +#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] +pub(crate) fn chroot(path: &CStr) -> io::Result<()> { + unsafe { ret(c::chroot(c_str(path))) } +} + +#[cfg(all(feature = "alloc", feature = "fs"))] +#[cfg(not(target_os = "wasi"))] +pub(crate) fn getcwd(buf: &mut [MaybeUninit]) -> io::Result<()> { + unsafe { ret_discarded_char_ptr(c::getcwd(buf.as_mut_ptr().cast(), buf.len())) } +} + +#[cfg(not(target_os = "wasi"))] +#[inline] +#[must_use] +pub(crate) fn getppid() -> Option { + unsafe { + let pid: i32 = c::getppid(); + Pid::from_raw(pid) + } +} + +#[cfg(not(target_os = "wasi"))] +#[inline] +pub(crate) fn getpgid(pid: Option) -> io::Result { + unsafe { + let pgid = ret_pid_t(c::getpgid(Pid::as_raw(pid) as _))?; + Ok(Pid::from_raw_unchecked(pgid)) + } +} + +#[cfg(not(target_os = "wasi"))] +#[inline] +pub(crate) fn setpgid(pid: Option, pgid: Option) -> io::Result<()> { + unsafe { ret(c::setpgid(Pid::as_raw(pid) as _, Pid::as_raw(pgid) as _)) } +} + +#[cfg(not(target_os = "wasi"))] +#[inline] +#[must_use] +pub(crate) fn getpgrp() -> Pid { + unsafe { + let pgid = c::getpgrp(); + Pid::from_raw_unchecked(pgid) + } +} + +#[cfg(not(target_os = "wasi"))] +#[cfg(feature = "fs")] +#[inline] +pub(crate) fn umask(mask: Mode) -> Mode { + unsafe { Mode::from_bits_retain(c::umask(mask.bits() as c::mode_t).into()) } +} + +#[cfg(not(any(target_os = "fuchsia", target_os = "vita", target_os = "wasi")))] +#[inline] +pub(crate) fn nice(inc: i32) -> io::Result { + libc_errno::set_errno(libc_errno::Errno(0)); + let r = unsafe { c::nice(inc) }; + if libc_errno::errno().0 != 0 { + ret_c_int(r) + } else { + Ok(r) + } +} + +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +pub(crate) fn getpriority_user(uid: Uid) -> io::Result { + libc_errno::set_errno(libc_errno::Errno(0)); + let r = unsafe { c::getpriority(c::PRIO_USER, uid.as_raw() as _) }; + if libc_errno::errno().0 != 0 { + ret_c_int(r) + } else { + Ok(r) + } +} + +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +pub(crate) fn getpriority_pgrp(pgid: Option) -> io::Result { + libc_errno::set_errno(libc_errno::Errno(0)); + let r = unsafe { c::getpriority(c::PRIO_PGRP, Pid::as_raw(pgid) as _) }; + if libc_errno::errno().0 != 0 { + ret_c_int(r) + } else { + Ok(r) + } +} + +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +pub(crate) fn getpriority_process(pid: Option) -> io::Result { + libc_errno::set_errno(libc_errno::Errno(0)); + let r = unsafe { c::getpriority(c::PRIO_PROCESS, Pid::as_raw(pid) as _) }; + if libc_errno::errno().0 != 0 { + ret_c_int(r) + } else { + Ok(r) + } +} + +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +pub(crate) fn setpriority_user(uid: Uid, priority: i32) -> io::Result<()> { + unsafe { ret(c::setpriority(c::PRIO_USER, uid.as_raw() as _, priority)) } +} + +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +pub(crate) fn setpriority_pgrp(pgid: Option, priority: i32) -> io::Result<()> { + unsafe { + ret(c::setpriority( + c::PRIO_PGRP, + Pid::as_raw(pgid) as _, + priority, + )) + } +} + +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +pub(crate) fn setpriority_process(pid: Option, priority: i32) -> io::Result<()> { + unsafe { + ret(c::setpriority( + c::PRIO_PROCESS, + Pid::as_raw(pid) as _, + priority, + )) + } +} + +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +pub(crate) fn getrlimit(limit: Resource) -> Rlimit { + let mut result = MaybeUninit::::uninit(); + unsafe { + ret_infallible(c::getrlimit(limit as _, result.as_mut_ptr())); + rlimit_from_libc(result.assume_init()) + } +} + +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +pub(crate) fn setrlimit(limit: Resource, new: Rlimit) -> io::Result<()> { + let lim = rlimit_to_libc(new)?; + unsafe { ret(c::setrlimit(limit as _, &lim)) } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn prlimit(pid: Option, limit: Resource, new: Rlimit) -> io::Result { + let lim = rlimit_to_libc(new)?; + let mut result = MaybeUninit::::uninit(); + unsafe { + ret(c::prlimit( + Pid::as_raw(pid), + limit as _, + &lim, + result.as_mut_ptr(), + ))?; + Ok(rlimit_from_libc(result.assume_init())) + } +} + +/// Convert a C `c::rlimit` to a Rust `Rlimit`. +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +fn rlimit_from_libc(lim: c::rlimit) -> Rlimit { + let current = if lim.rlim_cur == c::RLIM_INFINITY { + None + } else { + Some(lim.rlim_cur.try_into().unwrap()) + }; + let maximum = if lim.rlim_max == c::RLIM_INFINITY { + None + } else { + Some(lim.rlim_max.try_into().unwrap()) + }; + Rlimit { current, maximum } +} + +/// Convert a Rust [`Rlimit`] to a C `c::rlimit`. +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +fn rlimit_to_libc(lim: Rlimit) -> io::Result { + let Rlimit { current, maximum } = lim; + let rlim_cur = match current { + Some(r) => r.try_into().map_err(|_e| io::Errno::INVAL)?, + None => c::RLIM_INFINITY as _, + }; + let rlim_max = match maximum { + Some(r) => r.try_into().map_err(|_e| io::Errno::INVAL)?, + None => c::RLIM_INFINITY as _, + }; + Ok(c::rlimit { rlim_cur, rlim_max }) +} + +#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))] +#[inline] +pub(crate) fn wait(waitopts: WaitOptions) -> io::Result> { + _waitpid(!0, waitopts) +} + +#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))] +#[inline] +pub(crate) fn waitpid( + pid: Option, + waitopts: WaitOptions, +) -> io::Result> { + _waitpid(Pid::as_raw(pid), waitopts) +} + +#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))] +#[inline] +pub(crate) fn waitpgid(pgid: Pid, waitopts: WaitOptions) -> io::Result> { + _waitpid(-pgid.as_raw_nonzero().get(), waitopts) +} + +#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))] +#[inline] +pub(crate) fn _waitpid( + pid: RawPid, + waitopts: WaitOptions, +) -> io::Result> { + unsafe { + let mut status: c::c_int = 0; + let pid = ret_c_int(c::waitpid(pid as _, &mut status, waitopts.bits() as _))?; + Ok(Pid::from_raw(pid).map(|pid| (pid, WaitStatus::new(status as _)))) + } +} + +#[cfg(not(any( + target_os = "cygwin", + target_os = "espidf", + target_os = "horizon", + target_os = "openbsd", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +#[inline] +pub(crate) fn waitid(id: WaitId<'_>, options: WaitIdOptions) -> io::Result> { + // Get the id to wait on. + match id { + WaitId::All => _waitid_all(options), + WaitId::Pid(pid) => _waitid_pid(pid, options), + WaitId::Pgid(pgid) => _waitid_pgid(pgid, options), + #[cfg(target_os = "linux")] + WaitId::PidFd(fd) => _waitid_pidfd(fd, options), + #[cfg(not(target_os = "linux"))] + WaitId::__EatLifetime(_) => unreachable!(), + } +} + +#[cfg(not(any( + target_os = "cygwin", + target_os = "espidf", + target_os = "horizon", + target_os = "openbsd", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +#[inline] +fn _waitid_all(options: WaitIdOptions) -> io::Result> { + // `waitid` can return successfully without initializing the struct (no + // children found when using `WNOHANG`) + let mut status = MaybeUninit::::zeroed(); + unsafe { + ret(c::waitid( + c::P_ALL, + 0, + status.as_mut_ptr(), + options.bits() as _, + ))? + }; + + Ok(unsafe { cvt_waitid_status(status) }) +} + +#[cfg(not(any( + target_os = "cygwin", + target_os = "espidf", + target_os = "horizon", + target_os = "openbsd", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +#[inline] +fn _waitid_pid(pid: Pid, options: WaitIdOptions) -> io::Result> { + // `waitid` can return successfully without initializing the struct (no + // children found when using `WNOHANG`) + let mut status = MaybeUninit::::zeroed(); + unsafe { + ret(c::waitid( + c::P_PID, + Pid::as_raw(Some(pid)) as _, + status.as_mut_ptr(), + options.bits() as _, + ))? + }; + + Ok(unsafe { cvt_waitid_status(status) }) +} + +#[cfg(not(any( + target_os = "cygwin", + target_os = "espidf", + target_os = "horizon", + target_os = "openbsd", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +#[inline] +fn _waitid_pgid(pgid: Option, options: WaitIdOptions) -> io::Result> { + // `waitid` can return successfully without initializing the struct (no + // children found when using `WNOHANG`) + let mut status = MaybeUninit::::zeroed(); + unsafe { + ret(c::waitid( + c::P_PGID, + Pid::as_raw(pgid) as _, + status.as_mut_ptr(), + options.bits() as _, + ))? + }; + + Ok(unsafe { cvt_waitid_status(status) }) +} + +#[cfg(target_os = "linux")] +#[inline] +fn _waitid_pidfd(fd: BorrowedFd<'_>, options: WaitIdOptions) -> io::Result> { + // `waitid` can return successfully without initializing the struct (no + // children found when using `WNOHANG`) + let mut status = MaybeUninit::::zeroed(); + unsafe { + ret(c::waitid( + c::P_PIDFD, + fd.as_raw_fd() as _, + status.as_mut_ptr(), + options.bits() as _, + ))? + }; + + Ok(unsafe { cvt_waitid_status(status) }) +} + +/// Convert a `siginfo_t` to a `WaitIdStatus`. +/// +/// # Safety +/// +/// The caller must ensure that `status` is initialized and that `waitid` +/// returned successfully. +#[cfg(not(any( + target_os = "cygwin", + target_os = "espidf", + target_os = "horizon", + target_os = "openbsd", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +#[inline] +unsafe fn cvt_waitid_status(status: MaybeUninit) -> Option { + let status = status.assume_init(); + // `si_pid` is supposedly the better way to check that the struct has been + // filled, e.g. the Linux manual page says about the `WNOHANG` case “zero + // out the si_pid field before the call and check for a nonzero value”. + // But e.g. NetBSD/OpenBSD don't have it exposed in the libc crate for now, + // and some platforms don't have it at all. For simplicity, always check + // `si_signo`. We have zero-initialized the whole struct, and all kernels + // should set `SIGCHLD` here. + if status.si_signo == 0 { + None + } else { + Some(WaitIdStatus(status)) + } +} + +#[cfg(not(any(target_os = "redox", target_os = "wasi")))] +#[inline] +pub(crate) fn getsid(pid: Option) -> io::Result { + unsafe { + let pid = ret_pid_t(c::getsid(Pid::as_raw(pid) as _))?; + Ok(Pid::from_raw_unchecked(pid)) + } +} + +#[cfg(not(target_os = "wasi"))] +#[inline] +pub(crate) fn setsid() -> io::Result { + unsafe { + let pid = ret_c_int(c::setsid())?; + Ok(Pid::from_raw_unchecked(pid)) + } +} + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +#[inline] +pub(crate) fn kill_process(pid: Pid, sig: Signal) -> io::Result<()> { + unsafe { ret(c::kill(pid.as_raw_nonzero().get(), sig.as_raw())) } +} + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +#[inline] +pub(crate) fn kill_process_group(pid: Pid, sig: Signal) -> io::Result<()> { + unsafe { + ret(c::kill( + pid.as_raw_nonzero().get().wrapping_neg(), + sig.as_raw(), + )) + } +} + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +#[inline] +pub(crate) fn kill_current_process_group(sig: Signal) -> io::Result<()> { + unsafe { ret(c::kill(0, sig.as_raw())) } +} + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +pub(crate) fn test_kill_process(pid: Pid) -> io::Result<()> { + unsafe { ret(c::kill(pid.as_raw_nonzero().get(), 0)) } +} + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +#[inline] +pub(crate) fn test_kill_process_group(pid: Pid) -> io::Result<()> { + unsafe { ret(c::kill(pid.as_raw_nonzero().get().wrapping_neg(), 0)) } +} + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +#[inline] +pub(crate) fn test_kill_current_process_group() -> io::Result<()> { + unsafe { ret(c::kill(0, 0)) } +} + +#[cfg(freebsdlike)] +#[inline] +pub(crate) unsafe fn procctl( + idtype: c::idtype_t, + id: c::id_t, + option: c::c_int, + data: *mut c::c_void, +) -> io::Result<()> { + ret(c::procctl(idtype, id, option, data)) +} + +#[cfg(target_os = "linux")] +pub(crate) fn pidfd_open(pid: Pid, flags: PidfdFlags) -> io::Result { + syscall! { + fn pidfd_open( + pid: c::pid_t, + flags: c::c_uint + ) via SYS_pidfd_open -> c::c_int + } + unsafe { + ret_owned_fd(pidfd_open( + pid.as_raw_nonzero().get(), + bitflags_bits!(flags), + )) + } +} + +#[cfg(target_os = "linux")] +pub(crate) fn pidfd_send_signal(pidfd: BorrowedFd<'_>, sig: Signal) -> io::Result<()> { + syscall! { + fn pidfd_send_signal( + pid: c::pid_t, + sig: c::c_int, + info: *const c::siginfo_t, + flags: c::c_int + ) via SYS_pidfd_send_signal -> c::c_int + } + unsafe { + ret(pidfd_send_signal( + borrowed_fd(pidfd), + sig.as_raw(), + core::ptr::null(), + 0, + )) + } +} + +#[cfg(target_os = "linux")] +pub(crate) fn pidfd_getfd( + pidfd: BorrowedFd<'_>, + targetfd: RawFd, + flags: PidfdGetfdFlags, +) -> io::Result { + syscall! { + fn pidfd_getfd( + pidfd: c::c_int, + targetfd: c::c_int, + flags: c::c_uint + ) via SYS_pidfd_getfd -> c::c_int + } + unsafe { + ret_owned_fd(pidfd_getfd( + borrowed_fd(pidfd), + targetfd, + bitflags_bits!(flags), + )) + } +} + +#[cfg(target_os = "linux")] +pub(crate) fn pivot_root(new_root: &CStr, put_old: &CStr) -> io::Result<()> { + syscall! { + fn pivot_root( + new_root: *const c::c_char, + put_old: *const c::c_char + ) via SYS_pivot_root -> c::c_int + } + unsafe { ret(pivot_root(c_str(new_root), c_str(put_old))) } +} + +#[cfg(all(feature = "alloc", not(target_os = "wasi")))] +pub(crate) fn getgroups(buf: &mut [Gid]) -> io::Result { + let len = buf.len().try_into().map_err(|_| io::Errno::NOMEM)?; + + unsafe { ret_usize(c::getgroups(len, buf.as_mut_ptr().cast()) as isize) } +} + +#[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] +pub(crate) fn fcntl_getlk(fd: BorrowedFd<'_>, lock: &Flock) -> io::Result> { + let mut curr_lock: c::flock = lock.as_raw(); + unsafe { ret(c::fcntl(borrowed_fd(fd), c::F_GETLK, &mut curr_lock))? }; + + // If no blocking lock is found, `fcntl(GETLK, ..)` sets `l_type` to + // `F_UNLCK`. + if curr_lock.l_type == c::F_UNLCK as _ { + Ok(None) + } else { + Ok(Some(unsafe { Flock::from_raw_unchecked(curr_lock) })) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/process/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/process/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..4771ddafa88f93acc8c229744cc2e61a97f7ddbc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/process/types.rs @@ -0,0 +1,139 @@ +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +use crate::backend::c; + +/// A resource value for use with [`getrlimit`], [`setrlimit`], and +/// [`prlimit`]. +/// +/// [`getrlimit`]: crate::process::getrlimit +/// [`setrlimit`]: crate::process::setrlimit +/// [`prlimit`]: crate::process::prlimit +#[cfg(not(any( + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +#[derive(Copy, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(not(target_os = "l4re"), repr(u32))] +#[cfg_attr(target_os = "l4re", repr(u64))] +#[non_exhaustive] +pub enum Resource { + /// `RLIMIT_CPU` + Cpu = bitcast!(c::RLIMIT_CPU), + /// `RLIMIT_FSIZE` + Fsize = bitcast!(c::RLIMIT_FSIZE), + /// `RLIMIT_DATA` + Data = bitcast!(c::RLIMIT_DATA), + /// `RLIMIT_STACK` + Stack = bitcast!(c::RLIMIT_STACK), + /// `RLIMIT_CORE` + #[cfg(not(target_os = "haiku"))] + Core = bitcast!(c::RLIMIT_CORE), + /// `RLIMIT_RSS` + // "nto" has `RLIMIT_RSS`, but it has the same value as `RLIMIT_AS`. + #[cfg(not(any( + apple, + solarish, + target_os = "cygwin", + target_os = "haiku", + target_os = "nto", + )))] + Rss = bitcast!(c::RLIMIT_RSS), + /// `RLIMIT_NPROC` + #[cfg(not(any(solarish, target_os = "cygwin", target_os = "haiku")))] + Nproc = bitcast!(c::RLIMIT_NPROC), + /// `RLIMIT_NOFILE` + Nofile = bitcast!(c::RLIMIT_NOFILE), + /// `RLIMIT_MEMLOCK` + #[cfg(not(any(solarish, target_os = "aix", target_os = "cygwin", target_os = "haiku")))] + Memlock = bitcast!(c::RLIMIT_MEMLOCK), + /// `RLIMIT_AS` + #[cfg(not(target_os = "openbsd"))] + As = bitcast!(c::RLIMIT_AS), + /// `RLIMIT_LOCKS` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + )))] + Locks = bitcast!(c::RLIMIT_LOCKS), + /// `RLIMIT_SIGPENDING` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + )))] + Sigpending = bitcast!(c::RLIMIT_SIGPENDING), + /// `RLIMIT_MSGQUEUE` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + )))] + Msgqueue = bitcast!(c::RLIMIT_MSGQUEUE), + /// `RLIMIT_NICE` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + )))] + Nice = bitcast!(c::RLIMIT_NICE), + /// `RLIMIT_RTPRIO` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + )))] + Rtprio = bitcast!(c::RLIMIT_RTPRIO), + /// `RLIMIT_RTTIME` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "android", + target_os = "cygwin", + target_os = "emscripten", + target_os = "haiku", + target_os = "hurd", + target_os = "nto", + )))] + Rttime = bitcast!(c::RLIMIT_RTTIME), +} + +#[cfg(apple)] +#[allow(non_upper_case_globals)] +impl Resource { + /// `RLIMIT_RSS` + pub const Rss: Self = Self::As; +} + +#[cfg(freebsdlike)] +pub type RawId = c::id_t; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/process/wait.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/process/wait.rs new file mode 100644 index 0000000000000000000000000000000000000000..9f9810d7134d55b45f0b053697efa08dbe83fc25 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/process/wait.rs @@ -0,0 +1,17 @@ +use crate::backend::c; + +pub(crate) use c::{ + WEXITSTATUS, WIFCONTINUED, WIFEXITED, WIFSIGNALED, WIFSTOPPED, WNOHANG, WSTOPSIG, WTERMSIG, +}; + +#[cfg(not(target_os = "horizon"))] +pub(crate) use c::{WCONTINUED, WUNTRACED}; + +#[cfg(not(any( + target_os = "cygwin", + target_os = "horizon", + target_os = "openbsd", + target_os = "redox", + target_os = "wasi", +)))] +pub(crate) use c::{WEXITED, WNOWAIT, WSTOPPED}; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pty/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pty/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..ef944f04d2627e93c3e742e586d754d72c7a2f39 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pty/mod.rs @@ -0,0 +1 @@ +pub(crate) mod syscalls; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pty/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pty/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..8405cfdc674370be039cf5c2ee21cf030e31a6cf --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/pty/syscalls.rs @@ -0,0 +1,118 @@ +//! libc syscalls supporting `rustix::pty`. + +use crate::backend::c; +use crate::backend::conv::{borrowed_fd, ret}; +use crate::fd::BorrowedFd; +use crate::io; +#[cfg(all( + feature = "alloc", + any( + apple, + linux_like, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos" + ) +))] +use { + crate::ffi::{CStr, CString}, + crate::path::SMALL_PATH_BUFFER_SIZE, + alloc::borrow::ToOwned as _, + alloc::vec::Vec, +}; + +#[cfg(not(linux_kernel))] +use crate::{backend::conv::ret_owned_fd, fd::OwnedFd, pty::OpenptFlags}; + +#[cfg(not(linux_kernel))] +#[inline] +pub(crate) fn openpt(flags: OpenptFlags) -> io::Result { + unsafe { ret_owned_fd(c::posix_openpt(flags.bits() as _)) } +} + +#[cfg(all( + feature = "alloc", + any( + apple, + linux_like, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos" + ) +))] +#[inline] +pub(crate) fn ptsname(fd: BorrowedFd<'_>, 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 { + // On platforms with `ptsname_r`, use it. + #[cfg(any(linux_like, target_os = "fuchsia", target_os = "illumos"))] + let r = unsafe { c::ptsname_r(borrowed_fd(fd), buffer.as_mut_ptr().cast(), buffer.len()) }; + + // FreeBSD 12 doesn't have `ptsname_r`. + #[cfg(target_os = "freebsd")] + let r = unsafe { + weak! { + fn ptsname_r( + c::c_int, + *mut c::c_char, + c::size_t + ) -> c::c_int + } + if let Some(func) = ptsname_r.get() { + func(borrowed_fd(fd), buffer.as_mut_ptr().cast(), buffer.len()) + } else { + c::ENOSYS + } + }; + + // macOS 10.13.4 has `ptsname_r`; use it if we have it, otherwise fall + // back to calling the underlying ioctl directly. + #[cfg(apple)] + let r = unsafe { + weak! { fn ptsname_r(c::c_int, *mut c::c_char, c::size_t) -> c::c_int } + + if let Some(libc_ptsname_r) = ptsname_r.get() { + libc_ptsname_r(borrowed_fd(fd), buffer.as_mut_ptr().cast(), buffer.len()) + } else { + // The size declared in the `TIOCPTYGNAME` macro in + // sys/ttycom.h is 128. + let mut name: [u8; 128] = [0_u8; 128]; + match c::ioctl(borrowed_fd(fd), c::TIOCPTYGNAME as _, &mut name) { + 0 => { + let len = CStr::from_ptr(name.as_ptr().cast()).to_bytes().len(); + core::ptr::copy_nonoverlapping(name.as_ptr(), buffer.as_mut_ptr(), len + 1); + 0 + } + _ => libc_errno::errno().0, + } + } + }; + + if r == 0 { + return Ok(unsafe { CStr::from_ptr(buffer.as_ptr().cast()).to_owned() }); + } + if r != c::ERANGE { + return Err(io::Errno::from_raw_os_error(r)); + } + + // Use `Vec` reallocation strategy to grow capacity exponentially. + buffer.reserve(1); + buffer.resize(buffer.capacity(), 0_u8); + } +} + +#[inline] +pub(crate) fn unlockpt(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { ret(c::unlockpt(borrowed_fd(fd))) } +} + +#[cfg(not(linux_kernel))] +#[inline] +pub(crate) fn grantpt(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { ret(c::grantpt(borrowed_fd(fd))) } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/rand/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/rand/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/rand/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/rand/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/rand/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..ce17c6aa5ee299412632d5d05ef0347f17caf612 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/rand/syscalls.rs @@ -0,0 +1,14 @@ +//! libc syscalls supporting `rustix::rand`. + +#[cfg(linux_kernel)] +use {crate::backend::c, crate::backend::conv::ret_usize, crate::io, crate::rand::GetRandomFlags}; + +#[cfg(linux_kernel)] +pub(crate) unsafe fn getrandom(buf: (*mut u8, usize), flags: GetRandomFlags) -> io::Result { + // `getrandom` wasn't supported in glibc until 2.25. + weak_or_syscall! { + fn getrandom(buf: *mut c::c_void, buflen: c::size_t, flags: c::c_uint) via SYS_getrandom -> c::ssize_t + } + + ret_usize(getrandom(buf.0.cast(), buf.1, flags.bits())) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/rand/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/rand/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..46690b57f8f0856bd0a48947ce43ed256343e774 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/rand/types.rs @@ -0,0 +1,24 @@ +#[cfg(linux_kernel)] +use crate::backend::c; +#[cfg(linux_kernel)] +use bitflags::bitflags; + +#[cfg(linux_kernel)] +bitflags! { + /// `GRND_*` flags for use with [`getrandom`]. + /// + /// [`getrandom`]: crate::rand::getrandom + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct GetRandomFlags: u32 { + /// `GRND_RANDOM` + const RANDOM = c::GRND_RANDOM; + /// `GRND_NONBLOCK` + const NONBLOCK = c::GRND_NONBLOCK; + /// `GRND_INSECURE` + const INSECURE = c::GRND_INSECURE; + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/shm/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/shm/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/shm/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/shm/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/shm/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..e5d61ac6d823a74d894d02fdf49cfe41184b0bde --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/shm/syscalls.rs @@ -0,0 +1,24 @@ +use crate::ffi::CStr; + +use crate::backend::c; +use crate::backend::conv::{c_str, ret, ret_owned_fd}; +use crate::fd::OwnedFd; +use crate::fs::Mode; +use crate::{io, shm}; + +pub(crate) fn shm_open(name: &CStr, oflags: shm::OFlags, mode: Mode) -> io::Result { + // On this platforms, `mode_t` is `u16` and can't be passed directly to a + // variadic function. + #[cfg(apple)] + let mode: c::c_uint = mode.bits().into(); + + // Otherwise, cast to `mode_t` as that's what `open` is documented to take. + #[cfg(not(apple))] + let mode: c::mode_t = mode.bits() as _; + + unsafe { ret_owned_fd(c::shm_open(c_str(name), bitflags_bits!(oflags), mode)) } +} + +pub(crate) fn shm_unlink(name: &CStr) -> io::Result<()> { + unsafe { ret(c::shm_unlink(c_str(name))) } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/shm/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/shm/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..59f19b38f38076ab4b23d6d082d2949d59620f31 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/shm/types.rs @@ -0,0 +1,30 @@ +use crate::backend::c; +use bitflags::bitflags; + +bitflags! { + /// `O_*` constants for use with [`shm::open`]. + /// + /// [`shm::open`]: crate:shm::open + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct ShmOFlags: u32 { + /// `O_CREAT` + #[doc(alias = "CREAT")] + const CREATE = bitcast!(c::O_CREAT); + + /// `O_EXCL` + const EXCL = bitcast!(c::O_EXCL); + + /// `O_RDONLY` + const RDONLY = bitcast!(c::O_RDONLY); + + /// `O_RDWR` + const RDWR = bitcast!(c::O_RDWR); + + /// `O_TRUNC` + const TRUNC = bitcast!(c::O_TRUNC); + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/system/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/system/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff7fd564bda2d6c347d164f982b08446aa91915 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/system/mod.rs @@ -0,0 +1,3 @@ +#[cfg(not(windows))] +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/system/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/system/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..0e8a7b36fb2e4e95825cead2e96edb500da4a988 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/system/syscalls.rs @@ -0,0 +1,162 @@ +//! libc syscalls supporting `rustix::process`. + +use super::types::RawUname; +use crate::backend::c; +#[cfg(not(target_os = "wasi"))] +use crate::backend::conv::ret_infallible; +#[cfg(target_os = "linux")] +use crate::system::RebootCommand; +use core::mem::MaybeUninit; +#[cfg(linux_kernel)] +use { + crate::backend::conv::c_str, crate::fd::BorrowedFd, crate::ffi::CStr, crate::system::Sysinfo, +}; +#[cfg(not(any( + target_os = "emscripten", + target_os = "espidf", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +use {crate::backend::conv::ret, crate::io}; + +#[cfg(not(target_os = "wasi"))] +#[inline] +pub(crate) fn uname() -> RawUname { + let mut uname = MaybeUninit::::uninit(); + unsafe { + let r = c::uname(uname.as_mut_ptr()); + + // On POSIX, `uname` is documented to return non-negative on success + // instead of the usual 0, though some specific systems do document + // that they always use zero allowing us to skip this check. + #[cfg(not(any(apple, freebsdlike, linux_like, target_os = "netbsd")))] + let r = core::cmp::min(r, 0); + + ret_infallible(r); + uname.assume_init() + } +} + +#[cfg(linux_kernel)] +pub(crate) fn sysinfo() -> Sysinfo { + let mut info = MaybeUninit::::uninit(); + unsafe { + ret_infallible(c::sysinfo(info.as_mut_ptr())); + info.assume_init() + } +} + +#[cfg(not(any( + target_os = "emscripten", + target_os = "espidf", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +pub(crate) fn sethostname(name: &[u8]) -> io::Result<()> { + unsafe { + ret(c::sethostname( + name.as_ptr().cast(), + name.len().try_into().map_err(|_| io::Errno::INVAL)?, + )) + } +} + +#[cfg(not(any( + target_os = "android", + target_os = "cygwin", + target_os = "emscripten", + target_os = "espidf", + target_os = "illumos", + target_os = "haiku", + target_os = "horizon", + target_os = "redox", + target_os = "solaris", + target_os = "vita", + target_os = "wasi", +)))] +pub(crate) fn setdomainname(name: &[u8]) -> io::Result<()> { + unsafe { + ret(c::setdomainname( + name.as_ptr().cast(), + name.len().try_into().map_err(|_| io::Errno::INVAL)?, + )) + } +} + +// +#[cfg(target_os = "android")] +pub(crate) fn setdomainname(name: &[u8]) -> io::Result<()> { + syscall! { + fn setdomainname( + name: *const c::c_char, + len: c::size_t + ) via SYS_setdomainname -> c::c_int + } + + unsafe { + ret(setdomainname( + name.as_ptr().cast(), + name.len().try_into().map_err(|_| io::Errno::INVAL)?, + )) + } +} + +#[cfg(target_os = "linux")] +pub(crate) fn reboot(cmd: RebootCommand) -> io::Result<()> { + unsafe { ret(c::reboot(cmd as i32)) } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn init_module(image: &[u8], param_values: &CStr) -> io::Result<()> { + syscall! { + fn init_module( + module_image: *const c::c_void, + len: c::c_ulong, + param_values: *const c::c_char + ) via SYS_init_module -> c::c_int + } + + unsafe { + ret(init_module( + image.as_ptr().cast(), + image.len() as _, + c_str(param_values), + )) + } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn finit_module( + fd: BorrowedFd<'_>, + param_values: &CStr, + flags: c::c_int, +) -> io::Result<()> { + use crate::fd::AsRawFd as _; + + syscall! { + fn finit_module( + fd: c::c_int, + param_values: *const c::c_char, + flags: c::c_int + ) via SYS_finit_module -> c::c_int + } + + unsafe { ret(finit_module(fd.as_raw_fd(), c_str(param_values), flags)) } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn delete_module(name: &CStr, flags: c::c_int) -> io::Result<()> { + syscall! { + fn delete_module( + name: *const c::c_char, + flags: c::c_int + ) via SYS_delete_module -> c::c_int + } + unsafe { ret(delete_module(c_str(name), flags)) } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/system/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/system/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..731e89bed5c029fe404b1d41be5c14b21e9fa13f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/system/types.rs @@ -0,0 +1,8 @@ +use crate::backend::c; + +/// `sysinfo` +#[cfg(linux_kernel)] +pub type Sysinfo = c::sysinfo; + +#[cfg(not(target_os = "wasi"))] +pub(crate) type RawUname = c::utsname; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/termios/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/termios/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/termios/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/termios/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/termios/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..dbe4a6e039e1fa74192ff5548a8b708414296bbd --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/termios/syscalls.rs @@ -0,0 +1,531 @@ +//! libc syscalls supporting `rustix::termios`. +//! +//! # Safety +//! +//! See the `rustix::backend::syscalls` module documentation for details. + +use crate::backend::c; +#[cfg(not(target_os = "wasi"))] +use crate::backend::conv::ret_pid_t; +use crate::backend::conv::{borrowed_fd, ret}; +use crate::fd::BorrowedFd; +#[cfg(feature = "alloc")] +#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] +use crate::ffi::CStr; +#[cfg(any( + not(target_os = "espidf"), + not(any(target_os = "fuchsia", target_os = "wasi")) +))] +use core::mem::MaybeUninit; +#[cfg(not(target_os = "wasi"))] +use {crate::io, crate::pid::Pid}; +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +use { + crate::termios::{Action, OptionalActions, QueueSelector, Termios, Winsize}, + crate::utils::as_mut_ptr, +}; + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +pub(crate) fn tcgetattr(fd: BorrowedFd<'_>) -> io::Result { + // On Linux, use `TCGETS2`, and fall back to `TCGETS` if needed. + #[cfg(linux_kernel)] + { + use crate::termios::{ControlModes, InputModes, LocalModes, OutputModes, SpecialCodes}; + + let mut termios2 = MaybeUninit::::uninit(); + let ptr = termios2.as_mut_ptr(); + + // SAFETY: This invokes the `TCGETS2` ioctl, which initializes the full + // `Termios` structure. + let termios2 = unsafe { + match ret(c::ioctl(borrowed_fd(fd), c::TCGETS2 as _, ptr)) { + Ok(()) => {} + + // A `NOTTY` or `ACCESS` might mean the OS doesn't support + // `TCGETS2`, for example a seccomp environment or WSL that + // only knows about `TCGETS`. Fall back to the old `TCGETS`. + #[cfg(not(any(target_arch = "powerpc", target_arch = "powerpc64")))] + Err(io::Errno::NOTTY) | Err(io::Errno::ACCESS) => { + tcgetattr_fallback(fd, &mut termios2)? + } + + Err(err) => return Err(err), + } + + // Now all the fields are set. + termios2.assume_init() + }; + + // Convert from the Linux `termios2` to our `Termios`. + let mut result = Termios { + input_modes: InputModes::from_bits_retain(termios2.c_iflag), + output_modes: OutputModes::from_bits_retain(termios2.c_oflag), + control_modes: ControlModes::from_bits_retain(termios2.c_cflag), + local_modes: LocalModes::from_bits_retain(termios2.c_lflag), + line_discipline: termios2.c_line, + special_codes: SpecialCodes(Default::default()), + + // On PowerPC musl targets, `c_ispeed`/`c_ospeed` are named + // `__c_ispeed`/`__c_ospeed`. + #[cfg(not(all( + target_env = "musl", + any(target_arch = "powerpc", target_arch = "powerpc64") + )))] + input_speed: termios2.c_ispeed, + #[cfg(not(all( + target_env = "musl", + any(target_arch = "powerpc", target_arch = "powerpc64") + )))] + output_speed: termios2.c_ospeed, + #[cfg(all( + target_env = "musl", + any(target_arch = "powerpc", target_arch = "powerpc64") + ))] + input_speed: termios2.__c_ispeed, + #[cfg(all( + target_env = "musl", + any(target_arch = "powerpc", target_arch = "powerpc64") + ))] + output_speed: termios2.__c_ospeed, + }; + + // Copy in the control codes, since libc's `c_cc` array may have a + // different length from the ioctl's. + let nccs = termios2.c_cc.len(); + result.special_codes.0[..nccs].copy_from_slice(&termios2.c_cc); + + Ok(result) + } + + #[cfg(not(linux_kernel))] + unsafe { + let mut result = MaybeUninit::::uninit(); + + // `result` is a `Termios` which starts with the same layout as + // `c::termios`, so we can cast the pointer. + ret(c::tcgetattr(borrowed_fd(fd), result.as_mut_ptr().cast()))?; + + Ok(result.assume_init()) + } +} + +/// Implement `tcgetattr` using the old `TCGETS` ioctl. +#[cfg(all( + linux_kernel, + not(any(target_arch = "powerpc", target_arch = "powerpc64")) +))] +#[cold] +fn tcgetattr_fallback( + fd: BorrowedFd<'_>, + termios: &mut MaybeUninit, +) -> io::Result<()> { + use crate::termios::speed; + use core::ptr::{addr_of, addr_of_mut}; + + // SAFETY: This invokes the `TCGETS` ioctl, which, if it succeeds, + // initializes the `Termios` structure except for the `input_speed` and + // `output_speed` fields, which we manually initialize before forming a + // reference to the full `Termios`. + unsafe { + let ptr = termios.as_mut_ptr(); + + // Do the old `TCGETS` call, which doesn't initialize `input_speed` or + // `output_speed`. + ret(c::ioctl(borrowed_fd(fd), c::TCGETS as _, ptr))?; + + // Read the `control_modes` field without forming a reference to the + // `Termios` because it isn't fully initialized yet. + let control_modes = addr_of!((*ptr).c_cflag).read(); + + // Infer `output_speed`. + let encoded_out = control_modes & c::CBAUD; + let output_speed = match speed::decode(encoded_out) { + Some(output_speed) => output_speed, + None => return Err(io::Errno::RANGE), + }; + addr_of_mut!((*ptr).c_ospeed).write(output_speed); + + // Infer `input_speed`. For input speeds, `B0` is special-cased to mean + // the input speed is the same as the output speed. + let encoded_in = (control_modes & c::CIBAUD) >> c::IBSHIFT; + let input_speed = if encoded_in == c::B0 { + output_speed + } else { + match speed::decode(encoded_in) { + Some(input_speed) => input_speed, + None => return Err(io::Errno::RANGE), + } + }; + addr_of_mut!((*ptr).c_ispeed).write(input_speed); + } + + Ok(()) +} + +#[cfg(not(target_os = "wasi"))] +pub(crate) fn tcgetpgrp(fd: BorrowedFd<'_>) -> io::Result { + unsafe { + let pid = ret_pid_t(c::tcgetpgrp(borrowed_fd(fd)))?; + + // This doesn't appear to be documented, but on Linux, it appears + // `tcsetpgrp` can succeed and set the pid to 0 if we pass it a + // pseudo-terminal device fd. For now, translate it into `OPNOTSUPP`. + #[cfg(linux_kernel)] + if pid == 0 { + return Err(io::Errno::OPNOTSUPP); + } + + Ok(Pid::from_raw_unchecked(pid)) + } +} + +#[cfg(not(target_os = "wasi"))] +pub(crate) fn tcsetpgrp(fd: BorrowedFd<'_>, pid: Pid) -> io::Result<()> { + unsafe { ret(c::tcsetpgrp(borrowed_fd(fd), pid.as_raw_nonzero().get())) } +} + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +pub(crate) fn tcsetattr( + fd: BorrowedFd<'_>, + optional_actions: OptionalActions, + termios: &Termios, +) -> io::Result<()> { + // On Linux, use `TCSETS2`, and fall back to `TCSETS` if needed. + #[cfg(linux_kernel)] + { + use crate::termios::speed; + + let output_speed = termios.output_speed(); + let input_speed = termios.input_speed(); + + let mut termios2 = c::termios2 { + c_iflag: termios.input_modes.bits(), + c_oflag: termios.output_modes.bits(), + c_cflag: termios.control_modes.bits(), + c_lflag: termios.local_modes.bits(), + c_line: termios.line_discipline, + c_cc: Default::default(), + + // On PowerPC musl targets, `c_ispeed`/`c_ospeed` are named + // `__c_ispeed`/`__c_ospeed`. + #[cfg(not(all( + target_env = "musl", + any(target_arch = "powerpc", target_arch = "powerpc64") + )))] + c_ispeed: input_speed, + #[cfg(not(all( + target_env = "musl", + any(target_arch = "powerpc", target_arch = "powerpc64") + )))] + c_ospeed: output_speed, + #[cfg(all( + target_env = "musl", + any(target_arch = "powerpc", target_arch = "powerpc64") + ))] + __c_ispeed: input_speed, + #[cfg(all( + target_env = "musl", + any(target_arch = "powerpc", target_arch = "powerpc64") + ))] + __c_ospeed: output_speed, + }; + + // Ensure that our input and output speeds are set, as `libc` + // routines don't always support setting these separately. + termios2.c_cflag &= !c::CBAUD; + termios2.c_cflag |= speed::encode(output_speed).unwrap_or(c::BOTHER); + termios2.c_cflag &= !c::CIBAUD; + termios2.c_cflag |= speed::encode(input_speed).unwrap_or(c::BOTHER) << c::IBSHIFT; + + // Copy in the control codes, since libc's `c_cc` array may have a + // different length from the ioctl's. + let nccs = termios2.c_cc.len(); + termios2 + .c_cc + .copy_from_slice(&termios.special_codes.0[..nccs]); + + // Translate from `optional_actions` into a `TCSETS2` ioctl request + // code. On MIPS, `optional_actions` has `TCSETS` added to it. + let request = c::TCSETS2 as c::c_ulong + + if cfg!(any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6" + )) { + optional_actions as c::c_ulong - c::TCSETS as c::c_ulong + } else { + optional_actions as c::c_ulong + }; + + // SAFETY: This invokes the `TCSETS2` ioctl. + unsafe { + match ret(c::ioctl(borrowed_fd(fd), request as _, &termios2)) { + Ok(()) => Ok(()), + + // Similar to `tcgetattr_fallback`, `NOTTY` or `ACCESS` might + // mean the OS doesn't support `TCSETS2`. Fall back to the old + // `TCSETS`. + #[cfg(not(any(target_arch = "powerpc", target_arch = "powerpc64")))] + Err(io::Errno::NOTTY) | Err(io::Errno::ACCESS) => { + tcsetattr_fallback(fd, optional_actions, &termios2) + } + + Err(err) => Err(err), + } + } + } + + #[cfg(not(linux_kernel))] + unsafe { + ret(c::tcsetattr( + borrowed_fd(fd), + optional_actions as _, + crate::utils::as_ptr(termios).cast(), + )) + } +} + +/// Implement `tcsetattr` using the old `TCSETS` ioctl. +#[cfg(all( + linux_kernel, + not(any(target_arch = "powerpc", target_arch = "powerpc64")) +))] +#[cold] +fn tcsetattr_fallback( + fd: BorrowedFd<'_>, + optional_actions: OptionalActions, + termios2: &c::termios2, +) -> io::Result<()> { + // `TCSETS` silently accepts `BOTHER` in `c_cflag` even though it doesn't + // read `c_ispeed`/`c_ospeed`, so detect this case and fail if needed. + let encoded_out = termios2.c_cflag & c::CBAUD; + let encoded_in = (termios2.c_cflag & c::CIBAUD) >> c::IBSHIFT; + if encoded_out == c::BOTHER || encoded_in == c::BOTHER { + return Err(io::Errno::RANGE); + } + + // Translate from `optional_actions` into a `TCSETS` ioctl request code. On + // MIPS, `optional_actions` already has `TCSETS` added to it. + let request = if cfg!(any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6" + )) { + optional_actions as c::c_ulong + } else { + optional_actions as c::c_ulong + c::TCSETS as c::c_ulong + }; + + // SAFETY: This invokes the `TCSETS` ioctl. + unsafe { ret(c::ioctl(borrowed_fd(fd), request as _, termios2)) } +} + +#[cfg(not(target_os = "wasi"))] +pub(crate) fn tcsendbreak(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { ret(c::tcsendbreak(borrowed_fd(fd), 0)) } +} + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +pub(crate) fn tcdrain(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { ret(c::tcdrain(borrowed_fd(fd))) } +} + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +pub(crate) fn tcflush(fd: BorrowedFd<'_>, queue_selector: QueueSelector) -> io::Result<()> { + unsafe { ret(c::tcflush(borrowed_fd(fd), queue_selector as _)) } +} + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +pub(crate) fn tcflow(fd: BorrowedFd<'_>, action: Action) -> io::Result<()> { + unsafe { ret(c::tcflow(borrowed_fd(fd), action as _)) } +} + +#[cfg(not(target_os = "wasi"))] +pub(crate) fn tcgetsid(fd: BorrowedFd<'_>) -> io::Result { + unsafe { + let pid = ret_pid_t(c::tcgetsid(borrowed_fd(fd)))?; + Ok(Pid::from_raw_unchecked(pid)) + } +} + +#[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "wasi")))] +pub(crate) fn tcsetwinsize(fd: BorrowedFd<'_>, winsize: Winsize) -> io::Result<()> { + unsafe { ret(c::ioctl(borrowed_fd(fd), c::TIOCSWINSZ, &winsize)) } +} + +#[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "wasi")))] +pub(crate) fn tcgetwinsize(fd: BorrowedFd<'_>) -> io::Result { + unsafe { + let mut buf = MaybeUninit::::uninit(); + ret(c::ioctl( + borrowed_fd(fd), + c::TIOCGWINSZ.into(), + buf.as_mut_ptr(), + ))?; + Ok(buf.assume_init()) + } +} + +#[cfg(not(any(target_os = "espidf", target_os = "nto", target_os = "wasi")))] +#[inline] +pub(crate) fn set_speed(termios: &mut Termios, arbitrary_speed: u32) -> io::Result<()> { + #[cfg(bsd)] + let encoded_speed = arbitrary_speed; + + #[cfg(not(bsd))] + let encoded_speed = match crate::termios::speed::encode(arbitrary_speed) { + Some(encoded_speed) => encoded_speed, + #[cfg(linux_kernel)] + None => c::BOTHER, + #[cfg(not(linux_kernel))] + None => return Err(io::Errno::INVAL), + }; + + #[cfg(not(linux_kernel))] + unsafe { + ret(c::cfsetspeed( + as_mut_ptr(termios).cast(), + encoded_speed.into(), + )) + } + + // Linux libc implementations don't support arbitrary speeds, so we encode + // the speed manually. + #[cfg(linux_kernel)] + { + use crate::termios::ControlModes; + + debug_assert_eq!(encoded_speed & !c::CBAUD, 0); + + termios.control_modes -= ControlModes::from_bits_retain(c::CBAUD | c::CIBAUD); + termios.control_modes |= + ControlModes::from_bits_retain(encoded_speed | (encoded_speed << c::IBSHIFT)); + + termios.input_speed = arbitrary_speed; + termios.output_speed = arbitrary_speed; + + Ok(()) + } +} + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +#[inline] +pub(crate) fn set_output_speed(termios: &mut Termios, arbitrary_speed: u32) -> io::Result<()> { + #[cfg(bsd)] + let encoded_speed = arbitrary_speed; + + #[cfg(not(bsd))] + let encoded_speed = match crate::termios::speed::encode(arbitrary_speed) { + Some(encoded_speed) => encoded_speed, + #[cfg(linux_kernel)] + None => c::BOTHER, + #[cfg(not(linux_kernel))] + None => return Err(io::Errno::INVAL), + }; + + #[cfg(not(linux_kernel))] + unsafe { + ret(c::cfsetospeed( + as_mut_ptr(termios).cast(), + encoded_speed.into(), + )) + } + + // Linux libc implementations don't support arbitrary speeds or setting the + // input and output speeds separately, so we encode the speed manually. + #[cfg(linux_kernel)] + { + use crate::termios::ControlModes; + + debug_assert_eq!(encoded_speed & !c::CBAUD, 0); + + termios.control_modes -= ControlModes::from_bits_retain(c::CBAUD); + termios.control_modes |= ControlModes::from_bits_retain(encoded_speed); + + termios.output_speed = arbitrary_speed; + + Ok(()) + } +} + +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +#[inline] +pub(crate) fn set_input_speed(termios: &mut Termios, arbitrary_speed: u32) -> io::Result<()> { + #[cfg(bsd)] + let encoded_speed = arbitrary_speed; + + #[cfg(not(bsd))] + let encoded_speed = match crate::termios::speed::encode(arbitrary_speed) { + Some(encoded_speed) => encoded_speed, + #[cfg(linux_kernel)] + None => c::BOTHER, + #[cfg(not(linux_kernel))] + None => return Err(io::Errno::INVAL), + }; + + #[cfg(not(linux_kernel))] + unsafe { + ret(c::cfsetispeed( + as_mut_ptr(termios).cast(), + encoded_speed.into(), + )) + } + + // Linux libc implementations don't support arbitrary speeds or setting the + // input and output speeds separately, so we encode the speed manually. + #[cfg(linux_kernel)] + { + use crate::termios::ControlModes; + + debug_assert_eq!(encoded_speed & !c::CBAUD, 0); + + termios.control_modes -= ControlModes::from_bits_retain(c::CIBAUD); + termios.control_modes |= ControlModes::from_bits_retain(encoded_speed << c::IBSHIFT); + + termios.input_speed = arbitrary_speed; + + Ok(()) + } +} + +#[cfg(not(any(target_os = "espidf", target_os = "nto", target_os = "wasi")))] +#[inline] +pub(crate) fn cfmakeraw(termios: &mut Termios) { + unsafe { + // On AIX, cfmakeraw() has a return type of 'int' instead of 'void'. + // If the argument 'termios' is NULL, it returns -1; otherwise, it returns 0. + // We believe it is safe to ignore the return value. + #[cfg(target_os = "aix")] + { + let _ = c::cfmakeraw(as_mut_ptr(termios).cast()); + } + + #[cfg(not(target_os = "aix"))] + { + c::cfmakeraw(as_mut_ptr(termios).cast()); + } + } +} + +pub(crate) fn isatty(fd: BorrowedFd<'_>) -> bool { + // Use the return value of `isatty` alone. We don't check `errno` because + // we return `bool` rather than `io::Result`, because we assume + // `BorrowedFd` protects us from `EBADF`, and any other reasonably + // anticipated `errno` value would end up interpreted as “assume it's not a + // terminal” anyway. + unsafe { c::isatty(borrowed_fd(fd)) != 0 } +} + +#[cfg(feature = "alloc")] +#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] +pub(crate) fn ttyname(dirfd: BorrowedFd<'_>, buf: &mut [MaybeUninit]) -> io::Result { + unsafe { + // `ttyname_r` returns its error status rather than using `errno`. + match c::ttyname_r(borrowed_fd(dirfd), buf.as_mut_ptr().cast(), buf.len()) { + 0 => Ok(CStr::from_ptr(buf.as_ptr().cast()).to_bytes().len()), + err => Err(io::Errno::from_raw_os_error(err)), + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/termios/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/termios/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..4b0d29f5bf8634c49d4b8cf9b40c878cf37e49b1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/termios/types.rs @@ -0,0 +1,17 @@ +//! Types for the `termios` module. + +#![allow(non_camel_case_types)] + +#[cfg(not(any(target_os = "espidf", target_os = "redox")))] +use crate::ffi; + +// We don't want to use `tcflag_t` directly so we don't expose libc +// publicly. Redox uses `u32`, apple uses `c_ulong`, everything else +// seems to use `c_uint`. + +#[cfg(apple)] +pub type tcflag_t = ffi::c_ulong; +#[cfg(target_os = "redox")] +pub type tcflag_t = u32; +#[cfg(not(any(apple, target_os = "espidf", target_os = "redox", target_os = "wasi")))] +pub type tcflag_t = ffi::c_uint; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/cpu_set.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/cpu_set.rs new file mode 100644 index 0000000000000000000000000000000000000000..30473b7083424d5bfc510f4baa44c9a20cf7e472 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/cpu_set.rs @@ -0,0 +1,68 @@ +//! Rust implementation of the `CPU_*` macro API. + +#![allow(non_snake_case)] + +use super::types::{RawCpuSet, CPU_SETSIZE}; +use crate::backend::c; + +#[inline] +pub(crate) fn CPU_SET(cpu: usize, cpuset: &mut RawCpuSet) { + assert!( + cpu < CPU_SETSIZE, + "cpu out of bounds: the cpu max is {} but the cpu is {}", + CPU_SETSIZE, + cpu + ); + unsafe { c::CPU_SET(cpu, cpuset) } +} + +#[inline] +pub(crate) fn CPU_ZERO(cpuset: &mut RawCpuSet) { + unsafe { c::CPU_ZERO(cpuset) } +} + +#[inline] +pub(crate) fn CPU_CLR(cpu: usize, cpuset: &mut RawCpuSet) { + assert!( + cpu < CPU_SETSIZE, + "cpu out of bounds: the cpu max is {} but the cpu is {}", + CPU_SETSIZE, + cpu + ); + unsafe { c::CPU_CLR(cpu, cpuset) } +} + +#[inline] +pub(crate) fn CPU_ISSET(cpu: usize, cpuset: &RawCpuSet) -> bool { + assert!( + cpu < CPU_SETSIZE, + "cpu out of bounds: the cpu max is {} but the cpu is {}", + CPU_SETSIZE, + cpu + ); + unsafe { c::CPU_ISSET(cpu, cpuset) } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn CPU_COUNT(cpuset: &RawCpuSet) -> u32 { + unsafe { c::CPU_COUNT(cpuset).try_into().unwrap() } +} + +#[inline] +pub(crate) fn CPU_EQUAL(this: &RawCpuSet, that: &RawCpuSet) -> bool { + #[cfg(any(linux_like, target_os = "fuchsia", target_os = "hurd"))] + unsafe { + c::CPU_EQUAL(this, that) + } + + #[cfg(not(any(linux_like, target_os = "fuchsia", target_os = "hurd")))] + unsafe { + for i in 0..c::CPU_SETSIZE as usize { + if c::CPU_ISSET(i, this) != c::CPU_ISSET(i, that) { + return false; + } + } + true + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/futex.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/futex.rs new file mode 100644 index 0000000000000000000000000000000000000000..5e836a9ab7d7034d95aad3126edf869564fae2bc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/futex.rs @@ -0,0 +1,91 @@ +use crate::backend::c; + +bitflags::bitflags! { + /// `FUTEX_*` flags for use with the functions in [`futex`]. + /// + /// [`futex`]: mod@crate::thread::futex + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct Flags: u32 { + /// `FUTEX_PRIVATE_FLAG` + const PRIVATE = bitcast!(c::FUTEX_PRIVATE_FLAG); + /// `FUTEX_CLOCK_REALTIME` + const CLOCK_REALTIME = bitcast!(c::FUTEX_CLOCK_REALTIME); + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `FUTEX2_*` flags for use with the functions in [`Waitv`]. + /// + /// Not to be confused with [`WaitvFlags`], which is passed as an argument + /// to the `waitv` function. + /// + /// [`Waitv`]: crate::thread::futex::Waitv + /// [`WaitvFlags`]: crate::thread::futex::WaitvFlags + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct WaitFlags: u32 { + /// `FUTEX_U8` + const SIZE_U8 = linux_raw_sys::general::FUTEX2_SIZE_U8; + /// `FUTEX_U16` + const SIZE_U16 = linux_raw_sys::general::FUTEX2_SIZE_U16; + /// `FUTEX_U32` + const SIZE_U32 = linux_raw_sys::general::FUTEX2_SIZE_U32; + /// `FUTEX_U64` + const SIZE_U64 = linux_raw_sys::general::FUTEX2_SIZE_U64; + /// `FUTEX_SIZE_MASK` + const SIZE_MASK = linux_raw_sys::general::FUTEX2_SIZE_MASK; + + /// `FUTEX2_NUMA` + const NUMA = linux_raw_sys::general::FUTEX2_NUMA; + + /// `FUTEX2_PRIVATE` + const PRIVATE = linux_raw_sys::general::FUTEX2_PRIVATE; + + /// + const _ = !0; + } +} + +/// `FUTEX_*` operations for use with the futex syscall wrappers. +#[derive(Debug, Copy, Clone, Eq, PartialEq)] +#[repr(u32)] +pub(crate) enum Operation { + /// `FUTEX_WAIT` + Wait = bitcast!(c::FUTEX_WAIT), + /// `FUTEX_WAKE` + Wake = bitcast!(c::FUTEX_WAKE), + /// `FUTEX_FD` + Fd = bitcast!(c::FUTEX_FD), + /// `FUTEX_REQUEUE` + Requeue = bitcast!(c::FUTEX_REQUEUE), + /// `FUTEX_CMP_REQUEUE` + CmpRequeue = bitcast!(c::FUTEX_CMP_REQUEUE), + /// `FUTEX_WAKE_OP` + WakeOp = bitcast!(c::FUTEX_WAKE_OP), + /// `FUTEX_LOCK_PI` + LockPi = bitcast!(c::FUTEX_LOCK_PI), + /// `FUTEX_UNLOCK_PI` + UnlockPi = bitcast!(c::FUTEX_UNLOCK_PI), + /// `FUTEX_TRYLOCK_PI` + TrylockPi = bitcast!(c::FUTEX_TRYLOCK_PI), + /// `FUTEX_WAIT_BITSET` + WaitBitset = bitcast!(c::FUTEX_WAIT_BITSET), + /// `FUTEX_WAKE_BITSET` + WakeBitset = bitcast!(c::FUTEX_WAKE_BITSET), + /// `FUTEX_WAIT_REQUEUE_PI` + WaitRequeuePi = bitcast!(c::FUTEX_WAIT_REQUEUE_PI), + /// `FUTEX_CMP_REQUEUE_PI` + CmpRequeuePi = bitcast!(c::FUTEX_CMP_REQUEUE_PI), + /// `FUTEX_LOCK_PI2` + LockPi2 = bitcast!(c::FUTEX_LOCK_PI2), +} + +/// `FUTEX_WAITERS` +pub const WAITERS: u32 = linux_raw_sys::general::FUTEX_WAITERS; + +/// `FUTEX_OWNER_DIED` +pub const OWNER_DIED: u32 = linux_raw_sys::general::FUTEX_OWNER_DIED; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..ea2bfd7190426b30aa394d6c586dd1f9d28acb01 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/mod.rs @@ -0,0 +1,7 @@ +#[cfg(any(freebsdlike, linux_kernel, target_os = "fuchsia"))] +pub(crate) mod cpu_set; +#[cfg(linux_kernel)] +pub(crate) mod futex; +#[cfg(not(windows))] +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..84356fee4483cd616145b329e9caddbd73589d6e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/syscalls.rs @@ -0,0 +1,792 @@ +//! libc syscalls supporting `rustix::thread`. + +#[cfg(any(freebsdlike, linux_kernel, target_os = "fuchsia"))] +use super::types::RawCpuSet; +use crate::backend::c; +use crate::backend::conv::ret; +use crate::io; +#[cfg(any(freebsdlike, linux_kernel, target_os = "fuchsia"))] +use crate::pid::Pid; +#[cfg(not(any( + apple, + freebsdlike, + target_os = "emscripten", + target_os = "espidf", + target_os = "haiku", + target_os = "openbsd", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +use crate::thread::ClockId; +#[cfg(linux_kernel)] +use crate::thread::{Cpuid, MembarrierCommand, MembarrierQuery}; +#[cfg(not(target_os = "redox"))] +use crate::thread::{NanosleepRelativeResult, Timespec}; +#[cfg(all(target_env = "gnu", fix_y2038))] +use crate::timespec::LibcTimespec; +#[cfg(not(fix_y2038))] +use crate::timespec::{as_libc_timespec_mut_ptr, as_libc_timespec_ptr}; +#[cfg(linux_kernel)] +use crate::utils::option_as_ptr; +use core::mem::MaybeUninit; +#[cfg(linux_kernel)] +use core::sync::atomic::AtomicU32; +#[cfg(linux_kernel)] +use { + crate::backend::conv::{borrowed_fd, ret_c_int, ret_u32, ret_usize}, + crate::fd::BorrowedFd, + crate::thread::futex, + crate::utils::as_mut_ptr, +}; + +#[cfg(all(target_env = "gnu", fix_y2038))] +weak!(fn __clock_nanosleep_time64(c::clockid_t, c::c_int, *const LibcTimespec, *mut LibcTimespec) -> c::c_int); +#[cfg(all(target_env = "gnu", fix_y2038))] +weak!(fn __nanosleep64(*const LibcTimespec, *mut LibcTimespec) -> c::c_int); + +#[cfg(not(any( + apple, + target_os = "dragonfly", + target_os = "emscripten", + target_os = "espidf", + target_os = "freebsd", // FreeBSD 12 has clock_nanosleep, but libc targets FreeBSD 11. + target_os = "haiku", + target_os = "horizon", + target_os = "openbsd", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +#[inline] +pub(crate) fn clock_nanosleep_relative(id: ClockId, request: &Timespec) -> NanosleepRelativeResult { + // Old 32-bit version: libc has `clock_nanosleep` but it is not y2038 safe + // by default. But there may be a `__clock_nanosleep_time64` we can use. + #[cfg(fix_y2038)] + { + #[cfg(target_env = "gnu")] + if let Some(libc_clock_nanosleep) = __clock_nanosleep_time64.get() { + let flags = 0; + let mut remain = MaybeUninit::::uninit(); + + unsafe { + return match libc_clock_nanosleep( + id as c::clockid_t, + flags, + &request.clone().into(), + remain.as_mut_ptr(), + ) { + 0 => NanosleepRelativeResult::Ok, + err if err == io::Errno::INTR.0 => { + NanosleepRelativeResult::Interrupted(remain.assume_init().into()) + } + err => NanosleepRelativeResult::Err(io::Errno(err)), + }; + } + } + + clock_nanosleep_relative_old(id, request) + } + + // Main version: libc is y2038 safe and has `clock_nanosleep`. + #[cfg(not(fix_y2038))] + unsafe { + let flags = 0; + let mut remain = MaybeUninit::::uninit(); + + match c::clock_nanosleep( + id as c::clockid_t, + flags, + as_libc_timespec_ptr(request), + as_libc_timespec_mut_ptr(&mut remain), + ) { + 0 => NanosleepRelativeResult::Ok, + err if err == io::Errno::INTR.0 => { + NanosleepRelativeResult::Interrupted(remain.assume_init()) + } + err => NanosleepRelativeResult::Err(io::Errno(err)), + } + } +} + +#[cfg(all( + fix_y2038, + not(any( + apple, + target_os = "emscripten", + target_os = "haiku", + target_os = "horizon", + target_os = "vita" + )) +))] +fn clock_nanosleep_relative_old( + id: crate::clockid::ClockId, + request: &Timespec, +) -> NanosleepRelativeResult { + let tv_sec = match request.tv_sec.try_into() { + Ok(tv_sec) => tv_sec, + Err(_) => return NanosleepRelativeResult::Err(io::Errno::OVERFLOW), + }; + let tv_nsec = match request.tv_nsec.try_into() { + Ok(tv_nsec) => tv_nsec, + Err(_) => return NanosleepRelativeResult::Err(io::Errno::INVAL), + }; + let old_request = c::timespec { tv_sec, tv_nsec }; + let mut old_remain = MaybeUninit::::uninit(); + let flags = 0; + + unsafe { + match c::clock_nanosleep( + id as c::clockid_t, + flags, + &old_request, + old_remain.as_mut_ptr(), + ) { + 0 => NanosleepRelativeResult::Ok, + err if err == io::Errno::INTR.0 => { + let old_remain = old_remain.assume_init(); + let remain = Timespec { + tv_sec: old_remain.tv_sec.into(), + tv_nsec: old_remain.tv_nsec.into(), + }; + NanosleepRelativeResult::Interrupted(remain) + } + err => NanosleepRelativeResult::Err(io::Errno(err)), + } + } +} + +#[cfg(not(any( + apple, + target_os = "dragonfly", + target_os = "emscripten", + target_os = "espidf", + target_os = "freebsd", // FreeBSD 12 has clock_nanosleep, but libc targets FreeBSD 11. + target_os = "haiku", + target_os = "horizon", + target_os = "openbsd", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +#[inline] +pub(crate) fn clock_nanosleep_absolute(id: ClockId, request: &Timespec) -> io::Result<()> { + // Old 32-bit version: libc has `clock_nanosleep` but it is not y2038 safe + // by default. But there may be a `__clock_nanosleep_time64` we can use. + #[cfg(fix_y2038)] + { + #[cfg(target_env = "gnu")] + if let Some(libc_clock_nanosleep) = __clock_nanosleep_time64.get() { + let flags = c::TIMER_ABSTIME; + unsafe { + return match libc_clock_nanosleep( + id as c::clockid_t, + flags, + &request.clone().into(), + core::ptr::null_mut(), + ) { + 0 => Ok(()), + err => Err(io::Errno(err)), + }; + } + } + + clock_nanosleep_absolute_old(id, request) + } + + // Main version: libc is y2038 safe and has `clock_nanosleep`. + #[cfg(not(fix_y2038))] + { + let flags = c::TIMER_ABSTIME; + + match unsafe { + c::clock_nanosleep( + id as c::clockid_t, + flags as _, + as_libc_timespec_ptr(request), + core::ptr::null_mut(), + ) + } { + 0 => Ok(()), + err => Err(io::Errno(err)), + } + } +} + +#[cfg(all( + fix_y2038, + not(any( + apple, + target_os = "emscripten", + target_os = "haiku", + target_os = "horizon", + target_os = "vita" + )) +))] +fn clock_nanosleep_absolute_old(id: crate::clockid::ClockId, request: &Timespec) -> io::Result<()> { + let flags = c::TIMER_ABSTIME; + + let old_request = c::timespec { + tv_sec: request.tv_sec.try_into().map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: request.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, + }; + match unsafe { + c::clock_nanosleep( + id as c::clockid_t, + flags, + &old_request, + core::ptr::null_mut(), + ) + } { + 0 => Ok(()), + err => Err(io::Errno(err)), + } +} + +#[cfg(not(target_os = "redox"))] +#[inline] +pub(crate) fn nanosleep(request: &Timespec) -> NanosleepRelativeResult { + // Old 32-bit version: libc has `nanosleep` but it is not y2038 safe by + // default. But there may be a `__nanosleep64` we can use. + #[cfg(fix_y2038)] + { + #[cfg(target_env = "gnu")] + if let Some(libc_nanosleep) = __nanosleep64.get() { + let mut remain = MaybeUninit::::uninit(); + unsafe { + return match ret(libc_nanosleep(&request.clone().into(), remain.as_mut_ptr())) { + Ok(()) => NanosleepRelativeResult::Ok, + Err(io::Errno::INTR) => { + NanosleepRelativeResult::Interrupted(remain.assume_init().into()) + } + Err(err) => NanosleepRelativeResult::Err(err), + }; + } + } + + nanosleep_old(request) + } + + // Main version: libc is y2038 safe and has `nanosleep`. + #[cfg(not(fix_y2038))] + unsafe { + let mut remain = MaybeUninit::::uninit(); + + match ret(c::nanosleep( + as_libc_timespec_ptr(request), + as_libc_timespec_mut_ptr(&mut remain), + )) { + Ok(()) => NanosleepRelativeResult::Ok, + Err(io::Errno::INTR) => NanosleepRelativeResult::Interrupted(remain.assume_init()), + Err(err) => NanosleepRelativeResult::Err(err), + } + } +} + +#[cfg(fix_y2038)] +fn nanosleep_old(request: &Timespec) -> NanosleepRelativeResult { + let tv_sec = match request.tv_sec.try_into() { + Ok(tv_sec) => tv_sec, + Err(_) => return NanosleepRelativeResult::Err(io::Errno::OVERFLOW), + }; + let tv_nsec = match request.tv_nsec.try_into() { + Ok(tv_nsec) => tv_nsec, + Err(_) => return NanosleepRelativeResult::Err(io::Errno::INVAL), + }; + let old_request = c::timespec { tv_sec, tv_nsec }; + let mut old_remain = MaybeUninit::::uninit(); + + unsafe { + match ret(c::nanosleep(&old_request, old_remain.as_mut_ptr())) { + Ok(()) => NanosleepRelativeResult::Ok, + Err(io::Errno::INTR) => { + let old_remain = old_remain.assume_init(); + let remain = Timespec { + tv_sec: old_remain.tv_sec.into(), + tv_nsec: old_remain.tv_nsec.into(), + }; + NanosleepRelativeResult::Interrupted(remain) + } + Err(err) => NanosleepRelativeResult::Err(err), + } + } +} + +#[cfg(linux_kernel)] +#[inline] +#[must_use] +pub(crate) fn gettid() -> Pid { + // `gettid` wasn't supported in glibc until 2.30, and musl until 1.2.2, + // so use `syscall`. + // + weak_or_syscall! { + fn gettid() via SYS_gettid -> c::pid_t + } + + unsafe { + let tid = gettid(); + Pid::from_raw_unchecked(tid) + } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn setns(fd: BorrowedFd<'_>, nstype: c::c_int) -> io::Result { + // `setns` wasn't supported in glibc until 2.14, and musl until 0.9.5, + // so use `syscall`. + weak_or_syscall! { + fn setns(fd: c::c_int, nstype: c::c_int) via SYS_setns -> c::c_int + } + + unsafe { ret_c_int(setns(borrowed_fd(fd), nstype)) } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) unsafe fn unshare(flags: crate::thread::UnshareFlags) -> io::Result<()> { + ret(c::unshare(flags.bits() as i32)) +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn capget( + header: &mut linux_raw_sys::general::__user_cap_header_struct, + data: &mut [MaybeUninit], +) -> io::Result<()> { + syscall! { + fn capget( + hdrp: *mut linux_raw_sys::general::__user_cap_header_struct, + data: *mut linux_raw_sys::general::__user_cap_data_struct + ) via SYS_capget -> c::c_int + } + + unsafe { + ret(capget( + as_mut_ptr(header), + data.as_mut_ptr() + .cast::(), + )) + } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn capset( + header: &mut linux_raw_sys::general::__user_cap_header_struct, + data: &[linux_raw_sys::general::__user_cap_data_struct], +) -> io::Result<()> { + syscall! { + fn capset( + hdrp: *mut linux_raw_sys::general::__user_cap_header_struct, + data: *const linux_raw_sys::general::__user_cap_data_struct + ) via SYS_capset -> c::c_int + } + + unsafe { ret(capset(as_mut_ptr(header), data.as_ptr())) } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn setuid_thread(uid: crate::ugid::Uid) -> io::Result<()> { + syscall! { + fn setuid(uid: c::uid_t) via SYS_setuid -> c::c_int + } + + unsafe { ret(setuid(uid.as_raw())) } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn setresuid_thread( + ruid: Option, + euid: Option, + suid: Option, +) -> io::Result<()> { + #[cfg(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc"))] + const SYS: c::c_long = c::SYS_setresuid32 as c::c_long; + #[cfg(not(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc")))] + const SYS: c::c_long = c::SYS_setresuid as c::c_long; + + syscall! { + fn setresuid(ruid: c::uid_t, euid: c::uid_t, suid: c::uid_t) via SYS -> c::c_int + } + + unsafe { + ret(setresuid( + ruid.map_or(-1_i32 as u32, |x| x.as_raw()), + euid.map_or(-1_i32 as u32, |x| x.as_raw()), + suid.map_or(-1_i32 as u32, |x| x.as_raw()), + )) + } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn setgid_thread(gid: crate::ugid::Gid) -> io::Result<()> { + syscall! { + fn setgid(gid: c::gid_t) via SYS_setgid -> c::c_int + } + + unsafe { ret(setgid(gid.as_raw())) } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn setresgid_thread( + rgid: Option, + egid: Option, + sgid: Option, +) -> io::Result<()> { + #[cfg(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc"))] + const SYS: c::c_long = c::SYS_setresgid32 as c::c_long; + #[cfg(not(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc")))] + const SYS: c::c_long = c::SYS_setresgid as c::c_long; + + syscall! { + fn setresgid(rgid: c::gid_t, egid: c::gid_t, sgid: c::gid_t) via SYS -> c::c_int + } + + unsafe { + ret(setresgid( + rgid.map_or(-1_i32 as u32, |x| x.as_raw()), + egid.map_or(-1_i32 as u32, |x| x.as_raw()), + sgid.map_or(-1_i32 as u32, |x| x.as_raw()), + )) + } +} + +/// # Safety +/// +/// The raw pointers must point to valid aligned memory. +#[cfg(linux_kernel)] +pub(crate) unsafe fn futex_val2( + uaddr: *const AtomicU32, + op: super::futex::Operation, + flags: futex::Flags, + val: u32, + val2: u32, + uaddr2: *const AtomicU32, + val3: u32, +) -> io::Result { + // Pass `val2` in the least-significant bytes of the `timeout` argument. + // [“the kernel casts the timeout value first to unsigned long, then to + // uint32_t”], so we perform that exact conversion in reverse to create + // the pointer. + // + // [“the kernel casts the timeout value first to unsigned long, then to uint32_t”]: https://man7.org/linux/man-pages/man2/futex.2.html + let timeout = val2 as usize as *const Timespec; + + #[cfg(all( + target_pointer_width = "32", + not(any(target_arch = "aarch64", target_arch = "x86_64")) + ))] + { + // TODO: Upstream this to the libc crate. + #[allow(non_upper_case_globals)] + const SYS_futex_time64: i32 = linux_raw_sys::general::__NR_futex_time64 as i32; + + syscall! { + fn futex_time64( + uaddr: *const AtomicU32, + futex_op: c::c_int, + val: u32, + timeout: *const Timespec, + uaddr2: *const AtomicU32, + val3: u32 + ) via SYS_futex_time64 -> c::ssize_t + } + + ret_usize(futex_time64( + uaddr, + op as i32 | flags.bits() as i32, + val, + timeout, + uaddr2, + val3, + )) + } + + #[cfg(any( + target_pointer_width = "64", + target_arch = "aarch64", + target_arch = "x86_64" + ))] + { + syscall! { + fn futex( + uaddr: *const AtomicU32, + futex_op: c::c_int, + val: u32, + timeout: *const Timespec, + uaddr2: *const AtomicU32, + val3: u32 + ) via SYS_futex -> c::c_long + } + + ret_usize(futex( + uaddr, + op as i32 | flags.bits() as i32, + val, + timeout.cast(), + uaddr2, + val3, + ) as isize) + } +} + +/// # Safety +/// +/// The raw pointers must point to valid aligned memory. +#[cfg(linux_kernel)] +pub(crate) unsafe fn futex_timeout( + uaddr: *const AtomicU32, + op: super::futex::Operation, + flags: futex::Flags, + val: u32, + timeout: Option<&Timespec>, + uaddr2: *const AtomicU32, + val3: u32, +) -> io::Result { + #[cfg(all( + target_pointer_width = "32", + not(any(target_arch = "aarch64", target_arch = "x86_64")) + ))] + { + // TODO: Upstream this to the libc crate. + #[allow(non_upper_case_globals)] + const SYS_futex_time64: i32 = linux_raw_sys::general::__NR_futex_time64 as i32; + + syscall! { + fn futex_time64( + uaddr: *const AtomicU32, + futex_op: c::c_int, + val: u32, + timeout: *const Timespec, + uaddr2: *const AtomicU32, + val3: u32 + ) via SYS_futex_time64 -> c::ssize_t + } + + ret_usize(futex_time64( + uaddr, + op as i32 | flags.bits() as i32, + val, + option_as_ptr(timeout), + uaddr2, + val3, + )) + .or_else(|err| { + // See the comments in `clock_gettime_via_syscall` about emulation. + if err == io::Errno::NOSYS { + futex_old_timespec(uaddr, op, flags, val, timeout, uaddr2, val3) + } else { + Err(err) + } + }) + } + + #[cfg(any( + target_pointer_width = "64", + target_arch = "aarch64", + target_arch = "x86_64" + ))] + { + syscall! { + fn futex( + uaddr: *const AtomicU32, + futex_op: c::c_int, + val: u32, + timeout: *const Timespec, + uaddr2: *const AtomicU32, + val3: u32 + ) via SYS_futex -> c::c_long + } + + ret_usize(futex( + uaddr, + op as i32 | flags.bits() as i32, + val, + option_as_ptr(timeout).cast(), + uaddr2, + val3, + ) as isize) + } +} + +/// # Safety +/// +/// The raw pointers must point to valid aligned memory. +#[cfg(linux_kernel)] +#[cfg(all( + target_pointer_width = "32", + not(any(target_arch = "aarch64", target_arch = "x86_64")) +))] +unsafe fn futex_old_timespec( + uaddr: *const AtomicU32, + op: super::futex::Operation, + flags: futex::Flags, + val: u32, + timeout: Option<&Timespec>, + uaddr2: *const AtomicU32, + val3: u32, +) -> io::Result { + syscall! { + fn futex( + uaddr: *const AtomicU32, + futex_op: c::c_int, + val: u32, + timeout: *const linux_raw_sys::general::__kernel_old_timespec, + uaddr2: *const AtomicU32, + val3: u32 + ) via SYS_futex -> c::c_long + } + + let old_timeout = if let Some(timeout) = timeout { + Some(linux_raw_sys::general::__kernel_old_timespec { + tv_sec: timeout.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, + tv_nsec: timeout.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, + }) + } else { + None + }; + ret_usize(futex( + uaddr, + op as i32 | flags.bits() as i32, + val, + option_as_ptr(old_timeout.as_ref()), + uaddr2, + val3, + ) as isize) +} + +#[cfg(linux_kernel)] +pub(crate) fn futex_waitv( + waiters: &[futex::Wait], + flags: futex::WaitvFlags, + timeout: Option<&Timespec>, + clockid: ClockId, +) -> io::Result { + use futex::Wait as FutexWait; + use linux_raw_sys::general::__kernel_clockid_t as clockid_t; + syscall! { + fn futex_waitv( + waiters: *const FutexWait, + nr_futexes: c::c_uint, + flags: c::c_uint, + timeout: *const Timespec, + clockid: clockid_t + ) via SYS_futex_waitv -> c::c_int + } + + let nr_futexes: c::c_uint = waiters.len().try_into().map_err(|_| io::Errno::INVAL)?; + + unsafe { + ret_c_int(futex_waitv( + waiters.as_ptr(), + nr_futexes, + flags.bits(), + option_as_ptr(timeout).cast(), + clockid as _, + )) + .map(|n| n as usize) + } +} + +#[cfg(linux_kernel)] +#[inline] +pub(crate) fn setgroups_thread(groups: &[crate::ugid::Gid]) -> io::Result<()> { + syscall! { + fn setgroups(size: c::size_t, list: *const c::gid_t) via SYS_setgroups -> c::c_int + } + ret(unsafe { setgroups(groups.len(), groups.as_ptr().cast()) }) +} + +#[cfg(any(linux_kernel, target_os = "dragonfly"))] +#[inline] +pub(crate) fn sched_getcpu() -> usize { + let r = unsafe { c::sched_getcpu() }; + debug_assert!(r >= 0); + r as usize +} + +#[cfg(any(freebsdlike, linux_kernel, target_os = "fuchsia"))] +#[inline] +pub(crate) fn sched_getaffinity(pid: Option, cpuset: &mut RawCpuSet) -> io::Result<()> { + unsafe { + ret(c::sched_getaffinity( + Pid::as_raw(pid) as _, + core::mem::size_of::(), + cpuset, + )) + } +} + +#[cfg(any(freebsdlike, linux_kernel, target_os = "fuchsia"))] +#[inline] +pub(crate) fn sched_setaffinity(pid: Option, cpuset: &RawCpuSet) -> io::Result<()> { + unsafe { + ret(c::sched_setaffinity( + Pid::as_raw(pid) as _, + core::mem::size_of::(), + cpuset, + )) + } +} + +#[inline] +pub(crate) fn sched_yield() { + unsafe { + let _ = c::sched_yield(); + } +} + +// The `membarrier` syscall has a third argument, but it's only used when +// the `flags` argument is `MEMBARRIER_CMD_FLAG_CPU`. +#[cfg(linux_kernel)] +syscall! { + fn membarrier_all( + cmd: c::c_int, + flags: c::c_uint + ) via SYS_membarrier -> c::c_int +} + +#[cfg(linux_kernel)] +pub(crate) fn membarrier_query() -> MembarrierQuery { + // glibc does not have a wrapper for `membarrier`; [the documentation] + // says to use `syscall`. + // + // [the documentation]: https://man7.org/linux/man-pages/man2/membarrier.2.html#NOTES + const MEMBARRIER_CMD_QUERY: u32 = 0; + unsafe { + match ret_u32(membarrier_all(MEMBARRIER_CMD_QUERY as i32, 0)) { + Ok(query) => MembarrierQuery::from_bits_retain(query), + Err(_) => MembarrierQuery::empty(), + } + } +} + +#[cfg(linux_kernel)] +pub(crate) fn membarrier(cmd: MembarrierCommand) -> io::Result<()> { + unsafe { ret(membarrier_all(cmd as i32, 0)) } +} + +#[cfg(linux_kernel)] +pub(crate) fn membarrier_cpu(cmd: MembarrierCommand, cpu: Cpuid) -> io::Result<()> { + const MEMBARRIER_CMD_FLAG_CPU: u32 = 1; + + syscall! { + fn membarrier_cpu( + cmd: c::c_int, + flags: c::c_uint, + cpu_id: c::c_int + ) via SYS_membarrier -> c::c_int + } + + unsafe { + ret(membarrier_cpu( + cmd as i32, + MEMBARRIER_CMD_FLAG_CPU, + bitcast!(cpu.as_raw()), + )) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..105749ed946f6d49aac035ca660900efb95ac61a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/thread/types.rs @@ -0,0 +1,60 @@ +#[cfg(all( + any(freebsdlike, linux_kernel, target_os = "fuchsia"), + not(any(target_os = "espidf", target_os = "vita")) +))] +use crate::backend::c; + +/// A command for use with [`membarrier`] and [`membarrier_cpu`]. +/// +/// For `MEMBARRIER_CMD_QUERY`, see [`membarrier_query`]. +/// +/// [`membarrier`]: crate::thread::membarrier +/// [`membarrier_cpu`]: crate::thread::membarrier_cpu +/// [`membarrier_query`]: crate::thread::membarrier_query +#[cfg(linux_kernel)] +#[derive(Copy, Clone, Eq, PartialEq, Debug)] +#[repr(u32)] +#[non_exhaustive] +pub enum MembarrierCommand { + /// `MEMBARRIER_CMD_GLOBAL` + #[doc(alias = "Shared")] + #[doc(alias = "MEMBARRIER_CMD_SHARED")] + Global = c::MEMBARRIER_CMD_GLOBAL as u32, + /// `MEMBARRIER_CMD_GLOBAL_EXPEDITED` + GlobalExpedited = c::MEMBARRIER_CMD_GLOBAL_EXPEDITED as u32, + /// `MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED` + RegisterGlobalExpedited = c::MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED as u32, + /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED` + PrivateExpedited = c::MEMBARRIER_CMD_PRIVATE_EXPEDITED as u32, + /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED` + RegisterPrivateExpedited = c::MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED as u32, + /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE` + PrivateExpeditedSyncCore = c::MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE as u32, + /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE` + RegisterPrivateExpeditedSyncCore = + c::MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE as u32, + /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ` (since Linux 5.10) + PrivateExpeditedRseq = c::MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ as u32, + /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ` (since Linux 5.10) + RegisterPrivateExpeditedRseq = c::MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ as u32, +} + +/// A CPU identifier as a raw integer. +#[cfg(linux_kernel)] +pub type RawCpuid = u32; + +#[cfg(any(linux_kernel, target_os = "fuchsia"))] +pub(crate) type RawCpuSet = c::cpu_set_t; +#[cfg(freebsdlike)] +pub(crate) type RawCpuSet = c::cpuset_t; + +#[cfg(any(freebsdlike, linux_kernel, target_os = "fuchsia"))] +#[inline] +pub(crate) fn raw_cpu_set_new() -> RawCpuSet { + let mut set = unsafe { core::mem::zeroed() }; + super::cpu_set::CPU_ZERO(&mut set); + set +} + +#[cfg(any(freebsdlike, linux_kernel, target_os = "fuchsia"))] +pub(crate) const CPU_SETSIZE: usize = c::CPU_SETSIZE as usize; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/time/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/time/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff7fd564bda2d6c347d164f982b08446aa91915 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/time/mod.rs @@ -0,0 +1,3 @@ +#[cfg(not(windows))] +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/time/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/time/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..8c730cef0c0468ff85988023edb8780b6bb3b3b1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/time/syscalls.rs @@ -0,0 +1,526 @@ +//! libc syscalls supporting `rustix::time`. + +use crate::backend::c; +use crate::backend::conv::ret; +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +#[cfg(any(all(target_env = "gnu", fix_y2038), not(fix_y2038)))] +use crate::backend::time::types::LibcItimerspec; +#[cfg(not(target_os = "wasi"))] +use crate::clockid::{ClockId, DynamicClockId}; +use crate::io; +#[cfg(not(fix_y2038))] +use crate::timespec::as_libc_timespec_mut_ptr; +#[cfg(not(fix_y2038))] +#[cfg(not(any( + target_os = "redox", + target_os = "wasi", + all(apple, not(target_os = "macos")) +)))] +use crate::timespec::as_libc_timespec_ptr; +#[cfg(all(target_env = "gnu", fix_y2038))] +use crate::timespec::LibcTimespec; +use crate::timespec::Timespec; +use core::mem::MaybeUninit; +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +use { + crate::backend::conv::{borrowed_fd, ret_owned_fd}, + crate::fd::{BorrowedFd, OwnedFd}, + crate::time::{Itimerspec, TimerfdClockId, TimerfdFlags, TimerfdTimerFlags}, +}; + +#[cfg(all(target_env = "gnu", fix_y2038))] +weak!(fn __clock_gettime64(c::clockid_t, *mut LibcTimespec) -> c::c_int); +#[cfg(all(target_env = "gnu", fix_y2038))] +weak!(fn __clock_settime64(c::clockid_t, *const LibcTimespec) -> c::c_int); +#[cfg(all(target_env = "gnu", fix_y2038))] +weak!(fn __clock_getres64(c::clockid_t, *mut LibcTimespec) -> c::c_int); +#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] +#[cfg(all(target_env = "gnu", fix_y2038))] +weak!(fn __timerfd_gettime64(c::c_int, *mut LibcItimerspec) -> c::c_int); +#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] +#[cfg(all(target_env = "gnu", fix_y2038))] +weak!(fn __timerfd_settime64(c::c_int, c::c_int, *const LibcItimerspec, *mut LibcItimerspec) -> c::c_int); + +#[cfg(not(any(target_os = "redox", target_os = "wasi")))] +#[inline] +#[must_use] +pub(crate) fn clock_getres(id: ClockId) -> Timespec { + // Old 32-bit version: libc has `clock_getres` but it is not y2038 safe by + // default. But there may be a `__clock_getres64` we can use. + #[cfg(fix_y2038)] + { + #[cfg(target_env = "gnu")] + if let Some(libc_clock_getres) = __clock_getres64.get() { + let mut timespec = MaybeUninit::::uninit(); + unsafe { + ret(libc_clock_getres(id as c::clockid_t, timespec.as_mut_ptr())).unwrap(); + return timespec.assume_init().into(); + } + } + + clock_getres_old(id) + } + + // Main version: libc is y2038 safe and has `clock_getres`. + #[cfg(not(fix_y2038))] + unsafe { + let mut timespec = MaybeUninit::::uninit(); + let _ = c::clock_getres(id as c::clockid_t, as_libc_timespec_mut_ptr(&mut timespec)); + timespec.assume_init() + } +} + +#[cfg(fix_y2038)] +#[must_use] +fn clock_getres_old(id: ClockId) -> Timespec { + let mut old_timespec = MaybeUninit::::uninit(); + + let old_timespec = unsafe { + ret(c::clock_getres( + id as c::clockid_t, + old_timespec.as_mut_ptr(), + )) + .unwrap(); + old_timespec.assume_init() + }; + + Timespec { + tv_sec: old_timespec.tv_sec.into(), + tv_nsec: old_timespec.tv_nsec.into(), + } +} + +#[cfg(not(target_os = "wasi"))] +#[inline] +#[must_use] +pub(crate) fn clock_gettime(id: ClockId) -> Timespec { + // Old 32-bit version: libc has `clock_gettime` but it is not y2038 safe by + // default. But there may be a `__clock_gettime64` we can use. + #[cfg(fix_y2038)] + { + #[cfg(target_env = "gnu")] + if let Some(libc_clock_gettime) = __clock_gettime64.get() { + let mut timespec = MaybeUninit::::uninit(); + unsafe { + ret(libc_clock_gettime( + id as c::clockid_t, + timespec.as_mut_ptr(), + )) + .unwrap(); + return timespec.assume_init().into(); + } + } + + clock_gettime_old(id) + } + + // Use `.unwrap()` here because `clock_getres` can fail if the clock itself + // overflows a number of seconds, but if that happens, the monotonic clocks + // can't maintain their invariants, or the realtime clocks aren't properly + // configured. + #[cfg(not(fix_y2038))] + unsafe { + let mut timespec = MaybeUninit::::uninit(); + ret(c::clock_gettime( + id as c::clockid_t, + as_libc_timespec_mut_ptr(&mut timespec), + )) + .unwrap(); + let timespec = timespec.assume_init(); + #[cfg(apple)] + let timespec = fix_negative_timespec_nsecs(timespec); + timespec + } +} + +#[cfg(fix_y2038)] +#[must_use] +fn clock_gettime_old(id: ClockId) -> Timespec { + let mut old_timespec = MaybeUninit::::uninit(); + + let old_timespec = unsafe { + ret(c::clock_gettime( + id as c::clockid_t, + old_timespec.as_mut_ptr(), + )) + .unwrap(); + old_timespec.assume_init() + }; + + Timespec { + tv_sec: old_timespec.tv_sec.into(), + tv_nsec: old_timespec.tv_nsec.into(), + } +} + +#[cfg(not(target_os = "wasi"))] +#[inline] +pub(crate) fn clock_gettime_dynamic(id: DynamicClockId<'_>) -> io::Result { + let id: c::clockid_t = match id { + DynamicClockId::Known(id) => id as c::clockid_t, + + #[cfg(linux_kernel)] + DynamicClockId::Dynamic(fd) => { + use crate::fd::AsRawFd as _; + const CLOCKFD: i32 = 3; + (!fd.as_raw_fd() << 3) | CLOCKFD + } + + #[cfg(not(linux_kernel))] + DynamicClockId::Dynamic(_fd) => { + // Dynamic clocks are not supported on this platform. + return Err(io::Errno::INVAL); + } + + #[cfg(any(linux_kernel, target_os = "fuchsia"))] + DynamicClockId::RealtimeAlarm => c::CLOCK_REALTIME_ALARM, + + #[cfg(linux_kernel)] + DynamicClockId::Tai => c::CLOCK_TAI, + + #[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "openbsd" + ))] + DynamicClockId::Boottime => c::CLOCK_BOOTTIME, + + #[cfg(any(linux_kernel, target_os = "fuchsia"))] + DynamicClockId::BoottimeAlarm => c::CLOCK_BOOTTIME_ALARM, + }; + + // Old 32-bit version: libc has `clock_gettime` but it is not y2038 + // safe by default. But there may be a `__clock_gettime64` we can use. + #[cfg(fix_y2038)] + { + #[cfg(target_env = "gnu")] + if let Some(libc_clock_gettime) = __clock_gettime64.get() { + let mut timespec = MaybeUninit::::uninit(); + unsafe { + ret(libc_clock_gettime( + id as c::clockid_t, + timespec.as_mut_ptr(), + ))?; + + return Ok(timespec.assume_init().into()); + } + } + + clock_gettime_dynamic_old(id) + } + + // Main version: libc is y2038 safe and has `clock_gettime`. + #[cfg(not(fix_y2038))] + unsafe { + let mut timespec = MaybeUninit::::uninit(); + + ret(c::clock_gettime( + id as c::clockid_t, + as_libc_timespec_mut_ptr(&mut timespec), + ))?; + let timespec = timespec.assume_init(); + #[cfg(apple)] + let timespec = fix_negative_timespec_nsecs(timespec); + Ok(timespec) + } +} + +#[cfg(fix_y2038)] +#[inline] +fn clock_gettime_dynamic_old(id: c::clockid_t) -> io::Result { + let mut old_timespec = MaybeUninit::::uninit(); + + let old_timespec = unsafe { + ret(c::clock_gettime( + id as c::clockid_t, + old_timespec.as_mut_ptr(), + ))?; + + old_timespec.assume_init() + }; + + Ok(Timespec { + tv_sec: old_timespec.tv_sec.into(), + tv_nsec: old_timespec.tv_nsec.into(), + }) +} + +#[cfg(not(any( + target_os = "redox", + target_os = "wasi", + all(apple, not(target_os = "macos")) +)))] +#[inline] +pub(crate) fn clock_settime(id: ClockId, timespec: Timespec) -> io::Result<()> { + // Old 32-bit version: libc has `clock_gettime` but it is not y2038 safe by + // default. But there may be a `__clock_settime64` we can use. + #[cfg(fix_y2038)] + { + #[cfg(target_env = "gnu")] + if let Some(libc_clock_settime) = __clock_settime64.get() { + unsafe { + let mut new_timespec = core::mem::zeroed::(); + new_timespec.tv_sec = timespec.tv_sec; + new_timespec.tv_nsec = timespec.tv_nsec as _; + return ret(libc_clock_settime(id as c::clockid_t, &new_timespec)); + } + } + + clock_settime_old(id, timespec) + } + + // Main version: libc is y2038 safe and has `clock_settime`. + #[cfg(not(fix_y2038))] + unsafe { + ret(c::clock_settime( + id as c::clockid_t, + as_libc_timespec_ptr(×pec), + )) + } +} + +#[cfg(not(any( + target_os = "redox", + target_os = "wasi", + all(apple, not(target_os = "macos")) +)))] +#[cfg(fix_y2038)] +fn clock_settime_old(id: ClockId, timespec: Timespec) -> io::Result<()> { + let old_timespec = c::timespec { + tv_sec: timespec + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: timespec.tv_nsec as _, + }; + + unsafe { ret(c::clock_settime(id as c::clockid_t, &old_timespec)) } +} + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +pub(crate) fn timerfd_create(id: TimerfdClockId, flags: TimerfdFlags) -> io::Result { + unsafe { ret_owned_fd(c::timerfd_create(id as c::clockid_t, bitflags_bits!(flags))) } +} + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +pub(crate) fn timerfd_settime( + fd: BorrowedFd<'_>, + flags: TimerfdTimerFlags, + new_value: &Itimerspec, +) -> io::Result { + // Old 32-bit version: libc has `timerfd_settime` but it is not y2038 safe + // by default. But there may be a `__timerfd_settime64` we can use. + #[cfg(fix_y2038)] + { + #[cfg(target_env = "gnu")] + if let Some(libc_timerfd_settime) = __timerfd_settime64.get() { + let mut result = MaybeUninit::::uninit(); + unsafe { + ret(libc_timerfd_settime( + borrowed_fd(fd), + bitflags_bits!(flags), + &new_value.clone().into(), + result.as_mut_ptr(), + ))?; + return Ok(result.assume_init().into()); + } + } + + timerfd_settime_old(fd, flags, new_value) + } + + #[cfg(not(fix_y2038))] + unsafe { + use crate::backend::time::types::{as_libc_itimerspec_mut_ptr, as_libc_itimerspec_ptr}; + + let mut result = MaybeUninit::::uninit(); + ret(c::timerfd_settime( + borrowed_fd(fd), + bitflags_bits!(flags), + as_libc_itimerspec_ptr(new_value), + as_libc_itimerspec_mut_ptr(&mut result), + ))?; + Ok(result.assume_init()) + } +} + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +#[cfg(fix_y2038)] +fn timerfd_settime_old( + fd: BorrowedFd<'_>, + flags: TimerfdTimerFlags, + new_value: &Itimerspec, +) -> io::Result { + let mut old_result = MaybeUninit::::uninit(); + + // Convert `new_value` to the old `itimerspec` format. + let old_new_value = c::itimerspec { + it_interval: c::timespec { + tv_sec: new_value + .it_interval + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: new_value + .it_interval + .tv_nsec + .try_into() + .map_err(|_| io::Errno::INVAL)?, + }, + it_value: c::timespec { + tv_sec: new_value + .it_value + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: new_value + .it_value + .tv_nsec + .try_into() + .map_err(|_| io::Errno::INVAL)?, + }, + }; + + let old_result = unsafe { + ret(c::timerfd_settime( + borrowed_fd(fd), + bitflags_bits!(flags), + &old_new_value, + old_result.as_mut_ptr(), + ))?; + old_result.assume_init() + }; + + Ok(Itimerspec { + it_interval: Timespec { + tv_sec: old_result + .it_interval + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: old_result.it_interval.tv_nsec as _, + }, + it_value: Timespec { + tv_sec: old_result + .it_interval + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: old_result.it_interval.tv_nsec as _, + }, + }) +} + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +pub(crate) fn timerfd_gettime(fd: BorrowedFd<'_>) -> io::Result { + // Old 32-bit version: libc has `timerfd_gettime` but it is not y2038 safe + // by default. But there may be a `__timerfd_gettime64` we can use. + #[cfg(fix_y2038)] + { + #[cfg(target_env = "gnu")] + if let Some(libc_timerfd_gettime) = __timerfd_gettime64.get() { + let mut result = MaybeUninit::::uninit(); + unsafe { + ret(libc_timerfd_gettime(borrowed_fd(fd), result.as_mut_ptr()))?; + return Ok(result.assume_init().into()); + } + } + + timerfd_gettime_old(fd) + } + + #[cfg(not(fix_y2038))] + unsafe { + use crate::backend::time::types::as_libc_itimerspec_mut_ptr; + + let mut result = MaybeUninit::::uninit(); + ret(c::timerfd_gettime( + borrowed_fd(fd), + as_libc_itimerspec_mut_ptr(&mut result), + ))?; + Ok(result.assume_init()) + } +} + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +#[cfg(fix_y2038)] +fn timerfd_gettime_old(fd: BorrowedFd<'_>) -> io::Result { + let mut old_result = MaybeUninit::::uninit(); + + let old_result = unsafe { + ret(c::timerfd_gettime(borrowed_fd(fd), old_result.as_mut_ptr()))?; + old_result.assume_init() + }; + + Ok(Itimerspec { + it_interval: Timespec { + tv_sec: old_result + .it_interval + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: old_result.it_interval.tv_nsec as _, + }, + it_value: Timespec { + tv_sec: old_result + .it_interval + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: old_result.it_interval.tv_nsec as _, + }, + }) +} + +/// See [`crate::timespec::fix_negative_nsecs`] for details. +#[cfg(apple)] +#[cfg(not(fix_y2038))] +fn fix_negative_timespec_nsecs(mut ts: Timespec) -> Timespec { + let (sec, nsec) = crate::timespec::fix_negative_nsecs(ts.tv_sec as _, ts.tv_nsec as _); + ts.tv_sec = sec as _; + ts.tv_nsec = nsec as _; + ts +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/time/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/time/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..b6e0bdc4ec2fc439fcc35f473b664155689aaa95 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/time/types.rs @@ -0,0 +1,266 @@ +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +use crate::backend::c; +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +use crate::time::Itimerspec; +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +#[cfg(fix_y2038)] +use crate::timespec::LibcTimespec; +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +use bitflags::bitflags; + +/// On most platforms, `LibcItimerspec` is just `Itimerspec`. +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +#[cfg(not(fix_y2038))] +pub(crate) type LibcItimerspec = Itimerspec; + +/// On 32-bit glibc platforms, `LibcTimespec` differs from `Timespec`, so we +/// define our own struct, with bidirectional `From` impls. +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +#[cfg(fix_y2038)] +#[repr(C)] +#[derive(Debug, Clone)] +pub(crate) struct LibcItimerspec { + pub it_interval: LibcTimespec, + pub it_value: LibcTimespec, +} + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +#[cfg(fix_y2038)] +impl From for Itimerspec { + #[inline] + fn from(t: LibcItimerspec) -> Self { + Self { + it_interval: t.it_interval.into(), + it_value: t.it_value.into(), + } + } +} + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +#[cfg(fix_y2038)] +impl From for LibcItimerspec { + #[inline] + fn from(t: Itimerspec) -> Self { + Self { + it_interval: t.it_interval.into(), + it_value: t.it_value.into(), + } + } +} + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +#[cfg(not(fix_y2038))] +pub(crate) fn as_libc_itimerspec_ptr(itimerspec: &Itimerspec) -> *const c::itimerspec { + #[cfg(test)] + { + assert_eq_size!(Itimerspec, c::itimerspec); + } + crate::utils::as_ptr(itimerspec).cast::() +} + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +#[cfg(not(fix_y2038))] +pub(crate) fn as_libc_itimerspec_mut_ptr( + itimerspec: &mut core::mem::MaybeUninit, +) -> *mut c::itimerspec { + #[cfg(test)] + { + assert_eq_size!(Itimerspec, c::itimerspec); + } + itimerspec.as_mut_ptr().cast::() +} + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +bitflags! { + /// `TFD_*` flags for use with [`timerfd_create`]. + /// + /// [`timerfd_create`]: crate::time::timerfd_create + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct TimerfdFlags: u32 { + /// `TFD_NONBLOCK` + #[doc(alias = "TFD_NONBLOCK")] + const NONBLOCK = bitcast!(c::TFD_NONBLOCK); + + /// `TFD_CLOEXEC` + #[doc(alias = "TFD_CLOEXEC")] + const CLOEXEC = bitcast!(c::TFD_CLOEXEC); + + /// + const _ = !0; + } +} + +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +bitflags! { + /// `TFD_TIMER_*` flags for use with [`timerfd_settime`]. + /// + /// [`timerfd_settime`]: crate::time::timerfd_settime + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct TimerfdTimerFlags: u32 { + /// `TFD_TIMER_ABSTIME` + #[doc(alias = "TFD_TIMER_ABSTIME")] + const ABSTIME = bitcast!(c::TFD_TIMER_ABSTIME); + + /// `TFD_TIMER_CANCEL_ON_SET` + #[cfg(not(target_os = "fuchsia"))] + #[doc(alias = "TFD_TIMER_CANCEL_ON_SET")] + const CANCEL_ON_SET = bitcast!(c::TFD_TIMER_CANCEL_ON_SET); + + /// + const _ = !0; + } +} + +/// `CLOCK_*` constants for use with [`timerfd_create`]. +/// +/// [`timerfd_create`]: crate::time::timerfd_create +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" +))] +#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] +#[repr(u32)] +#[non_exhaustive] +pub enum TimerfdClockId { + /// `CLOCK_REALTIME`—A clock that tells the “real” time. + /// + /// This is a clock that tells the amount of time elapsed since the Unix + /// epoch, 1970-01-01T00:00:00Z. The clock is externally settable, so it is + /// not monotonic. Successive reads may see decreasing times, so it isn't + /// reliable for measuring durations. + #[doc(alias = "CLOCK_REALTIME")] + Realtime = bitcast!(c::CLOCK_REALTIME), + + /// `CLOCK_MONOTONIC`—A clock that tells an abstract time. + /// + /// Unlike `Realtime`, this clock is not based on a fixed known epoch, so + /// individual times aren't meaningful. However, since it isn't settable, + /// it is reliable for measuring durations. + /// + /// This clock does not advance while the system is suspended; see + /// `Boottime` for a clock that does. + #[doc(alias = "CLOCK_MONOTONIC")] + Monotonic = bitcast!(c::CLOCK_MONOTONIC), + + /// `CLOCK_BOOTTIME`—Like `Monotonic`, but advances while suspended. + /// + /// This clock is similar to `Monotonic`, but does advance while the system + /// is suspended. + #[doc(alias = "CLOCK_BOOTTIME")] + #[cfg(any(linux_kernel, target_os = "fuchsia", target_os = "openbsd"))] + Boottime = bitcast!(c::CLOCK_BOOTTIME), + + /// `CLOCK_REALTIME_ALARM`—Like `Realtime`, but wakes a suspended system. + /// + /// This clock is like `Realtime`, but can wake up a suspended system. + /// + /// Use of this clock requires the `CAP_WAKE_ALARM` Linux capability. + #[cfg(linux_kernel)] + #[doc(alias = "CLOCK_REALTIME_ALARM")] + RealtimeAlarm = bitcast!(c::CLOCK_REALTIME_ALARM), + + /// `CLOCK_BOOTTIME_ALARM`—Like `Boottime`, but wakes a suspended system. + /// + /// This clock is like `Boottime`, but can wake up a suspended system. + /// + /// Use of this clock requires the `CAP_WAKE_ALARM` Linux capability. + #[cfg(any(linux_kernel, target_os = "cygwin", target_os = "fuchsia"))] + #[doc(alias = "CLOCK_BOOTTIME_ALARM")] + BoottimeAlarm = bitcast!(c::CLOCK_BOOTTIME_ALARM), +} + +#[cfg(test)] +mod tests { + #[allow(unused_imports)] + use super::*; + + #[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", + target_os = "netbsd" + ))] + #[test] + fn test_types() { + assert_eq_size!(TimerfdFlags, c::c_int); + assert_eq_size!(TimerfdTimerFlags, c::c_int); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/ugid/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/ugid/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..ef944f04d2627e93c3e742e586d754d72c7a2f39 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/ugid/mod.rs @@ -0,0 +1 @@ +pub(crate) mod syscalls; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/ugid/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/ugid/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..f191116ef25e28d8e003b37f2215c09ff6ed8fbb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/libc/ugid/syscalls.rs @@ -0,0 +1,42 @@ +use crate::backend::c; +use crate::ugid::{Gid, RawGid, RawUid, Uid}; + +#[cfg(not(target_os = "wasi"))] +#[inline] +#[must_use] +pub(crate) fn getuid() -> Uid { + unsafe { + let uid = c::getuid() as RawUid; + Uid::from_raw(uid) + } +} + +#[cfg(not(target_os = "wasi"))] +#[inline] +#[must_use] +pub(crate) fn geteuid() -> Uid { + unsafe { + let uid = c::geteuid() as RawUid; + Uid::from_raw(uid) + } +} + +#[cfg(not(target_os = "wasi"))] +#[inline] +#[must_use] +pub(crate) fn getgid() -> Gid { + unsafe { + let gid = c::getgid() as RawGid; + Gid::from_raw(gid) + } +} + +#[cfg(not(target_os = "wasi"))] +#[inline] +#[must_use] +pub(crate) fn getegid() -> Gid { + unsafe { + let gid = c::getegid() as RawGid; + Gid::from_raw(gid) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/arch/thumb.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/arch/thumb.rs new file mode 100644 index 0000000000000000000000000000000000000000..0989430d9671a2844e5623ba3a814b7b6705bcb0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/arch/thumb.rs @@ -0,0 +1,323 @@ +//! arm Linux system calls, using thumb-mode. +//! +//! In thumb-mode, r7 is the frame pointer and is not permitted to be used in +//! an inline asm operand, so we have to use a different register and copy it +//! into r7 inside the inline asm. + +use crate::backend::reg::{ + ArgReg, FromAsm, RetReg, SyscallNumber, ToAsm as _, A0, A1, A2, A3, A4, A5, R0, +}; +use core::arch::asm; + +#[inline] +pub(in crate::backend) unsafe fn syscall0_readonly(nr: SyscallNumber<'_>) -> RetReg { + let r0; + asm!( + "mov {tmp}, r7", + "mov r7, {nr}", + "svc 0", + "mov r7, {tmp}", + nr = in(reg) nr.to_asm(), + tmp = out(reg) _, + lateout("r0") r0, + options(nostack, preserves_flags, readonly) + ); + FromAsm::from_asm(r0) +} + +#[inline] +pub(in crate::backend) unsafe fn syscall1(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> RetReg { + let r0; + asm!( + "mov {tmp}, r7", + "mov r7, {nr}", + "svc 0", + "mov r7, {tmp}", + nr = in(reg) nr.to_asm(), + tmp = out(reg) _, + inlateout("r0") a0.to_asm() => r0, + options(nostack, preserves_flags) + ); + FromAsm::from_asm(r0) +} + +#[inline] +pub(in crate::backend) unsafe fn syscall1_readonly( + nr: SyscallNumber<'_>, + a0: ArgReg<'_, A0>, +) -> RetReg { + let r0; + asm!( + "mov {tmp}, r7", + "mov r7, {nr}", + "svc 0", + "mov r7, {tmp}", + nr = in(reg) nr.to_asm(), + tmp = out(reg) _, + inlateout("r0") a0.to_asm() => r0, + options(nostack, preserves_flags, readonly) + ); + FromAsm::from_asm(r0) +} + +#[inline] +pub(in crate::backend) unsafe fn syscall1_noreturn(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> ! { + asm!( + "mov r7, {nr}", + "svc 0", + "udf #16", + nr = in(reg) nr.to_asm(), + in("r0") a0.to_asm(), + options(nostack, noreturn) + ) +} + +#[inline] +pub(in crate::backend) unsafe fn syscall2( + nr: SyscallNumber<'_>, + a0: ArgReg<'_, A0>, + a1: ArgReg<'_, A1>, +) -> RetReg { + let r0; + asm!( + "mov {tmp}, r7", + "mov r7, {nr}", + "svc 0", + "mov r7, {tmp}", + nr = in(reg) nr.to_asm(), + tmp = out(reg) _, + inlateout("r0") a0.to_asm() => r0, + in("r1") a1.to_asm(), + options(nostack, preserves_flags) + ); + FromAsm::from_asm(r0) +} + +#[inline] +pub(in crate::backend) unsafe fn syscall2_readonly( + nr: SyscallNumber<'_>, + a0: ArgReg<'_, A0>, + a1: ArgReg<'_, A1>, +) -> RetReg { + let r0; + asm!( + "mov {tmp}, r7", + "mov r7, {nr}", + "svc 0", + "mov r7, {tmp}", + nr = in(reg) nr.to_asm(), + tmp = out(reg) _, + inlateout("r0") a0.to_asm() => r0, + in("r1") a1.to_asm(), + options(nostack, preserves_flags, readonly) + ); + FromAsm::from_asm(r0) +} + +#[inline] +pub(in crate::backend) unsafe fn syscall3( + nr: SyscallNumber<'_>, + a0: ArgReg<'_, A0>, + a1: ArgReg<'_, A1>, + a2: ArgReg<'_, A2>, +) -> RetReg { + let r0; + asm!( + "mov {tmp}, r7", + "mov r7, {nr}", + "svc 0", + "mov r7, {tmp}", + nr = in(reg) nr.to_asm(), + tmp = out(reg) _, + inlateout("r0") a0.to_asm() => r0, + in("r1") a1.to_asm(), + in("r2") a2.to_asm(), + options(nostack, preserves_flags) + ); + FromAsm::from_asm(r0) +} + +#[inline] +pub(in crate::backend) unsafe fn syscall3_readonly( + nr: SyscallNumber<'_>, + a0: ArgReg<'_, A0>, + a1: ArgReg<'_, A1>, + a2: ArgReg<'_, A2>, +) -> RetReg { + let r0; + asm!( + "mov {tmp}, r7", + "mov r7, {nr}", + "svc 0", + "mov r7, {tmp}", + nr = in(reg) nr.to_asm(), + tmp = out(reg) _, + inlateout("r0") a0.to_asm() => r0, + in("r1") a1.to_asm(), + in("r2") a2.to_asm(), + options(nostack, preserves_flags, readonly) + ); + FromAsm::from_asm(r0) +} + +#[inline] +pub(in crate::backend) unsafe fn syscall4( + nr: SyscallNumber<'_>, + a0: ArgReg<'_, A0>, + a1: ArgReg<'_, A1>, + a2: ArgReg<'_, A2>, + a3: ArgReg<'_, A3>, +) -> RetReg { + let r0; + asm!( + "mov {tmp}, r7", + "mov r7, {nr}", + "svc 0", + "mov r7, {tmp}", + nr = in(reg) nr.to_asm(), + tmp = out(reg) _, + inlateout("r0") a0.to_asm() => r0, + in("r1") a1.to_asm(), + in("r2") a2.to_asm(), + in("r3") a3.to_asm(), + options(nostack, preserves_flags) + ); + FromAsm::from_asm(r0) +} + +#[inline] +pub(in crate::backend) unsafe fn syscall4_readonly( + nr: SyscallNumber<'_>, + a0: ArgReg<'_, A0>, + a1: ArgReg<'_, A1>, + a2: ArgReg<'_, A2>, + a3: ArgReg<'_, A3>, +) -> RetReg { + let r0; + asm!( + "mov {tmp}, r7", + "mov r7, {nr}", + "svc 0", + "mov r7, {tmp}", + nr = in(reg) nr.to_asm(), + tmp = out(reg) _, + inlateout("r0") a0.to_asm() => r0, + in("r1") a1.to_asm(), + in("r2") a2.to_asm(), + in("r3") a3.to_asm(), + options(nostack, preserves_flags, readonly) + ); + FromAsm::from_asm(r0) +} + +#[inline] +pub(in crate::backend) unsafe fn syscall5( + nr: SyscallNumber<'_>, + a0: ArgReg<'_, A0>, + a1: ArgReg<'_, A1>, + a2: ArgReg<'_, A2>, + a3: ArgReg<'_, A3>, + a4: ArgReg<'_, A4>, +) -> RetReg { + let r0; + asm!( + "mov {tmp}, r7", + "mov r7, {nr}", + "svc 0", + "mov r7, {tmp}", + nr = in(reg) nr.to_asm(), + tmp = out(reg) _, + inlateout("r0") a0.to_asm() => r0, + in("r1") a1.to_asm(), + in("r2") a2.to_asm(), + in("r3") a3.to_asm(), + in("r4") a4.to_asm(), + options(nostack, preserves_flags) + ); + FromAsm::from_asm(r0) +} + +#[inline] +pub(in crate::backend) unsafe fn syscall5_readonly( + nr: SyscallNumber<'_>, + a0: ArgReg<'_, A0>, + a1: ArgReg<'_, A1>, + a2: ArgReg<'_, A2>, + a3: ArgReg<'_, A3>, + a4: ArgReg<'_, A4>, +) -> RetReg { + let r0; + asm!( + "mov {tmp}, r7", + "mov r7, {nr}", + "svc 0", + "mov r7, {tmp}", + nr = in(reg) nr.to_asm(), + tmp = out(reg) _, + inlateout("r0") a0.to_asm() => r0, + in("r1") a1.to_asm(), + in("r2") a2.to_asm(), + in("r3") a3.to_asm(), + in("r4") a4.to_asm(), + options(nostack, preserves_flags, readonly) + ); + FromAsm::from_asm(r0) +} + +#[inline] +pub(in crate::backend) unsafe fn syscall6( + nr: SyscallNumber<'_>, + a0: ArgReg<'_, A0>, + a1: ArgReg<'_, A1>, + a2: ArgReg<'_, A2>, + a3: ArgReg<'_, A3>, + a4: ArgReg<'_, A4>, + a5: ArgReg<'_, A5>, +) -> RetReg { + let r0; + asm!( + "mov {tmp}, r7", + "mov r7, {nr}", + "svc 0", + "mov r7, {tmp}", + nr = in(reg) nr.to_asm(), + tmp = out(reg) _, + inlateout("r0") a0.to_asm() => r0, + in("r1") a1.to_asm(), + in("r2") a2.to_asm(), + in("r3") a3.to_asm(), + in("r4") a4.to_asm(), + in("r5") a5.to_asm(), + options(nostack, preserves_flags) + ); + FromAsm::from_asm(r0) +} + +#[inline] +pub(in crate::backend) unsafe fn syscall6_readonly( + nr: SyscallNumber<'_>, + a0: ArgReg<'_, A0>, + a1: ArgReg<'_, A1>, + a2: ArgReg<'_, A2>, + a3: ArgReg<'_, A3>, + a4: ArgReg<'_, A4>, + a5: ArgReg<'_, A5>, +) -> RetReg { + let r0; + asm!( + "mov {tmp}, r7", + "mov r7, {nr}", + "svc 0", + "mov r7, {tmp}", + nr = in(reg) nr.to_asm(), + tmp = out(reg) _, + inlateout("r0") a0.to_asm() => r0, + in("r1") a1.to_asm(), + in("r2") a2.to_asm(), + in("r3") a3.to_asm(), + in("r4") a4.to_asm(), + in("r5") a5.to_asm(), + options(nostack, preserves_flags, readonly) + ); + FromAsm::from_asm(r0) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/event/epoll.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/event/epoll.rs new file mode 100644 index 0000000000000000000000000000000000000000..093129dbb6a4954bf4ae2c16af953df7a7fc8abe --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/event/epoll.rs @@ -0,0 +1,74 @@ +use crate::ffi; +use bitflags::bitflags; + +bitflags! { + /// `EPOLL_*` for use with [`epoll::create`]. + /// + /// [`epoll::create`]: crate::event::epoll::create + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct CreateFlags: ffi::c_uint { + /// `EPOLL_CLOEXEC` + const CLOEXEC = linux_raw_sys::general::EPOLL_CLOEXEC; + + /// + const _ = !0; + } +} + +bitflags! { + /// `EPOLL*` for use with [`epoll::add`]. + /// + /// [`epoll::add`]: crate::event::epoll::add + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct EventFlags: u32 { + /// `EPOLLIN` + const IN = linux_raw_sys::general::EPOLLIN as u32; + + /// `EPOLLOUT` + const OUT = linux_raw_sys::general::EPOLLOUT as u32; + + /// `EPOLLPRI` + const PRI = linux_raw_sys::general::EPOLLPRI as u32; + + /// `EPOLLERR` + const ERR = linux_raw_sys::general::EPOLLERR as u32; + + /// `EPOLLHUP` + const HUP = linux_raw_sys::general::EPOLLHUP as u32; + + /// `EPOLLRDNORM` + const RDNORM = linux_raw_sys::general::EPOLLRDNORM as u32; + + /// `EPOLLRDBAND` + const RDBAND = linux_raw_sys::general::EPOLLRDBAND as u32; + + /// `EPOLLWRNORM` + const WRNORM = linux_raw_sys::general::EPOLLWRNORM as u32; + + /// `EPOLLWRBAND` + const WRBAND = linux_raw_sys::general::EPOLLWRBAND as u32; + + /// `EPOLLMSG` + const MSG = linux_raw_sys::general::EPOLLMSG as u32; + + /// `EPOLLRDHUP` + const RDHUP = linux_raw_sys::general::EPOLLRDHUP as u32; + + /// `EPOLLET` + const ET = linux_raw_sys::general::EPOLLET as u32; + + /// `EPOLLONESHOT` + const ONESHOT = linux_raw_sys::general::EPOLLONESHOT as u32; + + /// `EPOLLWAKEUP` + const WAKEUP = linux_raw_sys::general::EPOLLWAKEUP as u32; + + /// `EPOLLEXCLUSIVE` + const EXCLUSIVE = linux_raw_sys::general::EPOLLEXCLUSIVE as u32; + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/event/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/event/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..8a4e24bd63b1bdc44761a2674690a2b3748a1b0e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/event/syscalls.rs @@ -0,0 +1,358 @@ +//! linux_raw syscalls supporting `rustix::event`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use crate::backend::conv::{ + by_ref, c_int, c_uint, opt_mut, opt_ref, pass_usize, ret, ret_c_int, ret_error, ret_owned_fd, + ret_usize, size_of, slice_mut, zero, +}; +use crate::event::{epoll, EventfdFlags, FdSetElement, PollFd, Timespec}; +use crate::fd::{BorrowedFd, OwnedFd}; +use crate::io; +use core::ptr::null_mut; +use linux_raw_sys::general::{kernel_sigset_t, EPOLL_CTL_ADD, EPOLL_CTL_DEL, EPOLL_CTL_MOD}; + +#[inline] +pub(crate) fn poll(fds: &mut [PollFd<'_>], timeout: Option<&Timespec>) -> io::Result { + let (fds_addr_mut, fds_len) = slice_mut(fds); + + #[cfg(target_pointer_width = "32")] + unsafe { + // If we don't have Linux 5.1, and the timeout fits in a + // `__kernel_old_timespec`, use plain `ppoll`. + // + // We do this unconditionally, rather than trying `ppoll_time64` and + // falling back on `Errno::NOSYS`, because seccomp configurations will + // sometimes abort the process on syscalls they don't recognize. + #[cfg(not(feature = "linux_5_1"))] + { + use linux_raw_sys::general::__kernel_old_timespec; + + // If we don't have a timeout, or if we can convert the timeout to + // a `__kernel_old_timespec`, the use `__NR_ppoll`. + fn convert(timeout: &Timespec) -> Option<__kernel_old_timespec> { + Some(__kernel_old_timespec { + tv_sec: timeout.tv_sec.try_into().ok()?, + tv_nsec: timeout.tv_nsec.try_into().ok()?, + }) + } + let old_timeout = if let Some(timeout) = timeout { + match convert(timeout) { + // Could not convert timeout. + None => None, + // Could convert timeout. Ok! + Some(old_timeout) => Some(Some(old_timeout)), + } + } else { + // No timeout. Ok! + Some(None) + }; + if let Some(mut old_timeout) = old_timeout { + // Call `ppoll`. + // + // Linux's `ppoll` mutates the timeout argument. Our public + // interface does not do this, because it's not portable to other + // platforms, so we create a temporary value to hide this behavior. + return ret_usize(syscall!( + __NR_ppoll, + fds_addr_mut, + fds_len, + opt_mut(old_timeout.as_mut()), + zero(), + size_of::() + )); + } + } + + // We either have Linux 5.1 or the timeout didn't fit in + // `__kernel_old_timespec` so `__NR_ppoll_time64` will either + // succeed or fail due to our having no other options. + + // Call `ppoll_time64`. + // + // Linux's `ppoll_time64` mutates the timeout argument. Our public + // interface does not do this, because it's not portable to other + // platforms, so we create a temporary value to hide this behavior. + ret_usize(syscall!( + __NR_ppoll_time64, + fds_addr_mut, + fds_len, + opt_mut(timeout.copied().as_mut()), + zero(), + size_of::() + )) + } + + #[cfg(target_pointer_width = "64")] + unsafe { + // Call `ppoll`. + // + // Linux's `ppoll` mutates the timeout argument. Our public interface + // does not do this, because it's not portable to other platforms, so + // we create a temporary value to hide this behavior. + ret_usize(syscall!( + __NR_ppoll, + fds_addr_mut, + fds_len, + opt_mut(timeout.copied().as_mut()), + zero(), + size_of::() + )) + } +} + +pub(crate) unsafe fn select( + nfds: i32, + readfds: Option<&mut [FdSetElement]>, + writefds: Option<&mut [FdSetElement]>, + exceptfds: Option<&mut [FdSetElement]>, + timeout: Option<&crate::timespec::Timespec>, +) -> io::Result { + let len = crate::event::fd_set_num_elements_for_bitvector(nfds); + + let readfds = match readfds { + Some(readfds) => { + assert!(readfds.len() >= len); + readfds.as_mut_ptr() + } + None => null_mut(), + }; + let writefds = match writefds { + Some(writefds) => { + assert!(writefds.len() >= len); + writefds.as_mut_ptr() + } + None => null_mut(), + }; + let exceptfds = match exceptfds { + Some(exceptfds) => { + assert!(exceptfds.len() >= len); + exceptfds.as_mut_ptr() + } + None => null_mut(), + }; + + #[cfg(target_pointer_width = "32")] + { + // If we don't have Linux 5.1, and the timeout fits in a + // `__kernel_old_timespec`, use plain `pselect6`. + // + // We do this unconditionally, rather than trying `pselect6_time64` and + // falling back on `Errno::NOSYS`, because seccomp configurations will + // sometimes abort the process on syscalls they don't recognize. + #[cfg(not(feature = "linux_5_1"))] + { + use linux_raw_sys::general::__kernel_old_timespec; + + // If we don't have a timeout, or if we can convert the timeout to + // a `__kernel_old_timespec`, the use `__NR_pselect6`. + fn convert(timeout: &Timespec) -> Option<__kernel_old_timespec> { + Some(__kernel_old_timespec { + tv_sec: timeout.tv_sec.try_into().ok()?, + tv_nsec: timeout.tv_nsec.try_into().ok()?, + }) + } + let old_timeout = if let Some(timeout) = timeout { + match convert(timeout) { + // Could not convert timeout. + None => None, + // Could convert timeout. Ok! + Some(old_timeout) => Some(Some(old_timeout)), + } + } else { + // No timeout. Ok! + Some(None) + }; + if let Some(mut old_timeout) = old_timeout { + // Call `pselect6`. + // + // Linux's `pselect6` mutates the timeout argument. Our public + // interface does not do this, because it's not portable to other + // platforms, so we create a temporary value to hide this behavior. + return ret_c_int(syscall!( + __NR_pselect6, + c_int(nfds), + readfds, + writefds, + exceptfds, + opt_mut(old_timeout.as_mut()), + zero() + )); + } + } + + // We either have Linux 5.1 or the timeout didn't fit in + // `__kernel_old_timespec` so `__NR_pselect6_time64` will either + // succeed or fail due to our having no other options. + + // Call `pselect6_time64`. + // + // Linux's `pselect6_time64` mutates the timeout argument. Our public + // interface does not do this, because it's not portable to other + // platforms, so we create a temporary value to hide this behavior. + ret_c_int(syscall!( + __NR_pselect6_time64, + c_int(nfds), + readfds, + writefds, + exceptfds, + opt_mut(timeout.copied().as_mut()), + zero() + )) + } + + #[cfg(target_pointer_width = "64")] + { + // Call `pselect6`. + // + // Linux's `pselect6` mutates the timeout argument. Our public interface + // does not do this, because it's not portable to other platforms, so we + // create a temporary value to hide this behavior. + ret_c_int(syscall!( + __NR_pselect6, + c_int(nfds), + readfds, + writefds, + exceptfds, + opt_mut(timeout.copied().as_mut()), + zero() + )) + } +} + +#[inline] +pub(crate) fn epoll_create(flags: epoll::CreateFlags) -> io::Result { + // SAFETY: `__NR_epoll_create1` doesn't access any user memory. + unsafe { ret_owned_fd(syscall_readonly!(__NR_epoll_create1, flags)) } +} + +#[inline] +pub(crate) fn epoll_add( + epfd: BorrowedFd<'_>, + fd: BorrowedFd<'_>, + event: &epoll::Event, +) -> io::Result<()> { + // SAFETY: `__NR_epoll_ctl` with `EPOLL_CTL_ADD` doesn't modify any user + // memory, and it only reads from `event`. + unsafe { + ret(syscall_readonly!( + __NR_epoll_ctl, + epfd, + c_uint(EPOLL_CTL_ADD), + fd, + by_ref(event) + )) + } +} + +#[inline] +pub(crate) fn epoll_mod( + epfd: BorrowedFd<'_>, + fd: BorrowedFd<'_>, + event: &epoll::Event, +) -> io::Result<()> { + // SAFETY: `__NR_epoll_ctl` with `EPOLL_CTL_MOD` doesn't modify any user + // memory, and it only reads from `event`. + unsafe { + ret(syscall_readonly!( + __NR_epoll_ctl, + epfd, + c_uint(EPOLL_CTL_MOD), + fd, + by_ref(event) + )) + } +} + +#[inline] +pub(crate) fn epoll_del(epfd: BorrowedFd<'_>, fd: BorrowedFd<'_>) -> io::Result<()> { + // SAFETY: `__NR_epoll_ctl` with `EPOLL_CTL_DEL` doesn't access any user + // memory. + unsafe { + ret(syscall_readonly!( + __NR_epoll_ctl, + epfd, + c_uint(EPOLL_CTL_DEL), + fd, + zero() + )) + } +} + +#[inline] +pub(crate) unsafe fn epoll_wait( + epfd: BorrowedFd<'_>, + events: (*mut crate::event::epoll::Event, usize), + timeout: Option<&Timespec>, +) -> io::Result { + // If we don't have Linux 5.1, and the timeout fits in an `i32`, use plain + // `epoll_pwait`. + // + // We do this unconditionally, rather than trying `epoll_pwait2` and + // falling back on `Errno::NOSYS`, because seccomp configurations will + // sometimes abort the process on syscalls they don't recognize. + #[cfg(not(feature = "linux_5_11"))] + { + // If we don't have a timeout, or if we can convert the timeout to an + // `i32`, the use `__NR_epoll_pwait`. + let old_timeout = if let Some(timeout) = timeout { + // Try to convert the timeout; if this is `Some`, we're ok! + timeout.as_c_int_millis() + } else { + // No timeout. Ok! + Some(-1) + }; + if let Some(old_timeout) = old_timeout { + // Call `epoll_pwait`. + return ret_usize(syscall!( + __NR_epoll_pwait, + epfd, + events.0, + pass_usize(events.1), + c_int(old_timeout), + zero() + )); + } + } + + // Call `epoll_pwait2`. + // + // We either have Linux 5.1 or the timeout didn't fit in an `i32`, so + // `__NR_epoll_pwait2` will either succeed or fail due to our having no + // other options. + ret_usize(syscall!( + __NR_epoll_pwait2, + epfd, + events.0, + pass_usize(events.1), + opt_ref(timeout), + zero() + )) +} + +#[inline] +pub(crate) fn eventfd(initval: u32, flags: EventfdFlags) -> io::Result { + unsafe { ret_owned_fd(syscall_readonly!(__NR_eventfd2, c_uint(initval), flags)) } +} + +#[inline] +pub(crate) fn pause() { + unsafe { + #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] + let error = ret_error(syscall_readonly!( + __NR_ppoll, + zero(), + zero(), + zero(), + zero() + )); + + #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))] + let error = ret_error(syscall_readonly!(__NR_pause)); + + debug_assert_eq!(error, io::Errno::INTR); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/event/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/event/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..9d320dfec365868f8c09944d27acc4376f5492e1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/event/types.rs @@ -0,0 +1,21 @@ +use crate::ffi; +use bitflags::bitflags; + +bitflags! { + /// `EFD_*` flags for use with [`eventfd`]. + /// + /// [`eventfd`]: crate::event::eventfd + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct EventfdFlags: ffi::c_uint { + /// `EFD_CLOEXEC` + const CLOEXEC = linux_raw_sys::general::EFD_CLOEXEC; + /// `EFD_NONBLOCK` + const NONBLOCK = linux_raw_sys::general::EFD_NONBLOCK; + /// `EFD_SEMAPHORE` + const SEMAPHORE = linux_raw_sys::general::EFD_SEMAPHORE; + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/dir.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/dir.rs new file mode 100644 index 0000000000000000000000000000000000000000..ef02b470f53864f06dced7d9d104bec78664e0f2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/dir.rs @@ -0,0 +1,389 @@ +use crate::fd::{AsFd, BorrowedFd, OwnedFd}; +use crate::ffi::{CStr, CString}; +use crate::fs::{ + fcntl_getfl, fstat, fstatfs, fstatvfs, openat, FileType, Mode, OFlags, Stat, StatFs, StatVfs, +}; +use crate::io; +#[cfg(feature = "process")] +use crate::process::fchdir; +use crate::utils::as_ptr; +use alloc::borrow::ToOwned as _; +use alloc::vec::Vec; +use core::fmt; +use core::mem::size_of; +use linux_raw_sys::general::{linux_dirent64, SEEK_SET}; + +/// `DIR*` +pub struct Dir { + /// The `OwnedFd` that we read directory entries from. + fd: OwnedFd, + + /// Have we seen any errors in this iteration? + any_errors: bool, + + /// Should we rewind the stream on the next iteration? + rewind: bool, + + /// The buffer for `linux_dirent64` entries. + buf: Vec, + + /// Where we are in the buffer. + pos: usize, +} + +impl Dir { + /// Take ownership of `fd` and construct a `Dir` that reads entries from + /// the given directory file descriptor. + #[inline] + pub fn new>(fd: Fd) -> io::Result { + Self::_new(fd.into()) + } + + #[inline] + fn _new(fd: OwnedFd) -> io::Result { + Ok(Self { + fd, + any_errors: false, + rewind: false, + buf: Vec::new(), + pos: 0, + }) + } + + /// Returns the file descriptor associated with the directory stream. + /// + /// The file descriptor is used internally by the directory stream. As a result, it is useful + /// only for functions which do not depend or alter the file position. + /// + /// # References + /// + /// - [POSIX] + /// + /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/dirfd.html + #[inline] + #[doc(alias = "dirfd")] + pub fn fd<'a>(&'a self) -> io::Result> { + Ok(self.fd.as_fd()) + } + + /// Borrow `fd` and construct a `Dir` that reads entries from the given + /// directory file descriptor. + #[inline] + pub fn read_from(fd: Fd) -> io::Result { + Self::_read_from(fd.as_fd()) + } + + #[inline] + fn _read_from(fd: BorrowedFd<'_>) -> io::Result { + let flags = fcntl_getfl(fd)?; + let fd_for_dir = openat(fd, cstr!("."), flags | OFlags::CLOEXEC, Mode::empty())?; + + Ok(Self { + fd: fd_for_dir, + any_errors: false, + rewind: false, + buf: Vec::new(), + pos: 0, + }) + } + + /// `rewinddir(self)` + #[inline] + pub fn rewind(&mut self) { + self.any_errors = false; + self.rewind = true; + self.pos = self.buf.len(); + } + + /// `seekdir(self, offset)` + /// + /// This function is only available on 64-bit platforms because it's + /// implemented using [`libc::seekdir`] which only supports offsets that + /// fit in a `c_long`. + /// + /// [`libc::seekdir`]: https://docs.rs/libc/*/arm-unknown-linux-gnueabihf/libc/fn.seekdir.html + // In the linux_raw backend here, we don't use `libc::seekdir` and don't + // have this limitation, but it's a goal of rustix to support the same API + // on both the linux_raw and libc backends. + #[cfg(target_pointer_width = "64")] + #[cfg_attr(docsrs, doc(cfg(target_pointer_width = "64")))] + #[doc(alias = "seekdir")] + #[inline] + pub fn seek(&mut self, offset: i64) -> io::Result<()> { + self.any_errors = false; + self.rewind = false; + self.pos = self.buf.len(); + match io::retry_on_intr(|| { + crate::backend::fs::syscalls::_seek(self.fd.as_fd(), offset, SEEK_SET) + }) { + Ok(_) => Ok(()), + Err(err) => { + self.any_errors = true; + Err(err) + } + } + } + + /// `readdir(self)`, where `None` means the end of the directory. + pub fn read(&mut self) -> Option> { + // If we've seen errors, don't continue to try to read anything + // further. + if self.any_errors { + return None; + } + + // If a rewind was requested, seek to the beginning. + if self.rewind { + self.rewind = false; + match io::retry_on_intr(|| { + crate::backend::fs::syscalls::_seek(self.fd.as_fd(), 0, SEEK_SET) + }) { + Ok(_) => (), + Err(err) => { + self.any_errors = true; + return Some(Err(err)); + } + } + } + + // Compute linux_dirent64 field offsets. + let z = linux_dirent64 { + d_ino: 0_u64, + d_off: 0_i64, + d_type: 0_u8, + d_reclen: 0_u16, + d_name: Default::default(), + }; + let base = as_ptr(&z) as usize; + let offsetof_d_reclen = (as_ptr(&z.d_reclen) as usize) - base; + let offsetof_d_name = (as_ptr(&z.d_name) as usize) - base; + let offsetof_d_ino = (as_ptr(&z.d_ino) as usize) - base; + let offsetof_d_off = (as_ptr(&z.d_off) as usize) - base; + let offsetof_d_type = (as_ptr(&z.d_type) as usize) - base; + + // Test if we need more entries, and if so, read more. + if self.buf.len() - self.pos < size_of::() { + match self.read_more()? { + Ok(()) => (), + Err(err) => return Some(Err(err)), + } + } + + // We successfully read an entry. Extract the fields. + let pos = self.pos; + + // Do an unaligned u16 load. + let d_reclen = u16::from_ne_bytes([ + self.buf[pos + offsetof_d_reclen], + self.buf[pos + offsetof_d_reclen + 1], + ]); + assert!(self.buf.len() - pos >= d_reclen as usize); + self.pos += d_reclen as usize; + + // Read the NUL-terminated name from the `d_name` field. Without + // `unsafe`, we need to scan for the NUL twice: once to obtain a size + // for the slice, and then once within `CStr::from_bytes_with_nul`. + let name_start = pos + offsetof_d_name; + let name_len = self.buf[name_start..] + .iter() + .position(|x| *x == b'\0') + .unwrap(); + let name = CStr::from_bytes_with_nul(&self.buf[name_start..][..=name_len]).unwrap(); + let name = name.to_owned(); + assert!(name.as_bytes().len() <= self.buf.len() - name_start); + + // Do an unaligned `u64` load for `d_ino`. + let d_ino = u64::from_ne_bytes([ + self.buf[pos + offsetof_d_ino], + self.buf[pos + offsetof_d_ino + 1], + self.buf[pos + offsetof_d_ino + 2], + self.buf[pos + offsetof_d_ino + 3], + self.buf[pos + offsetof_d_ino + 4], + self.buf[pos + offsetof_d_ino + 5], + self.buf[pos + offsetof_d_ino + 6], + self.buf[pos + offsetof_d_ino + 7], + ]); + + // Do an unaligned `i64` load for `d_off`. + let d_off = i64::from_ne_bytes([ + self.buf[pos + offsetof_d_off], + self.buf[pos + offsetof_d_off + 1], + self.buf[pos + offsetof_d_off + 2], + self.buf[pos + offsetof_d_off + 3], + self.buf[pos + offsetof_d_off + 4], + self.buf[pos + offsetof_d_off + 5], + self.buf[pos + offsetof_d_off + 6], + self.buf[pos + offsetof_d_off + 7], + ]); + + let d_type = self.buf[pos + offsetof_d_type]; + + // Check that our types correspond to the `linux_dirent64` types. + let _ = linux_dirent64 { + d_ino, + d_off, + d_type, + d_reclen, + d_name: Default::default(), + }; + + Some(Ok(DirEntry { + d_ino, + d_off, + d_type, + name, + })) + } + + #[must_use] + fn read_more(&mut self) -> Option> { + // The first few times we're called, we allocate a relatively small + // buffer, because many directories are small. If we're called more, + // use progressively larger allocations, up to a fixed maximum. + // + // The specific sizes and policy here have not been tuned in detail yet + // and may need to be adjusted. In doing so, we should be careful to + // avoid unbounded buffer growth. This buffer only exists to share the + // cost of a `getdents` call over many entries, so if it gets too big, + // cache and heap usage will outweigh the benefit. And ultimately, + // directories can contain more entries than we can allocate contiguous + // memory for, so we'll always need to cap the size at some point. + if self.buf.len() < 1024 * size_of::() { + self.buf.reserve(32 * size_of::()); + } + self.buf.resize(self.buf.capacity(), 0); + let nread = match io::retry_on_intr(|| { + crate::backend::fs::syscalls::getdents(self.fd.as_fd(), &mut self.buf) + }) { + Ok(nread) => nread, + Err(io::Errno::NOENT) => { + self.any_errors = true; + return None; + } + Err(err) => { + self.any_errors = true; + return Some(Err(err)); + } + }; + self.buf.resize(nread, 0); + self.pos = 0; + if nread == 0 { + None + } else { + Some(Ok(())) + } + } + + /// `fstat(self)` + #[inline] + pub fn stat(&self) -> io::Result { + fstat(&self.fd) + } + + /// `fstatfs(self)` + #[inline] + pub fn statfs(&self) -> io::Result { + fstatfs(&self.fd) + } + + /// `fstatvfs(self)` + #[inline] + pub fn statvfs(&self) -> io::Result { + fstatvfs(&self.fd) + } + + /// `fchdir(self)` + #[cfg(feature = "process")] + #[cfg_attr(docsrs, doc(cfg(feature = "process")))] + #[inline] + pub fn chdir(&self) -> io::Result<()> { + fchdir(&self.fd) + } +} + +impl Iterator for Dir { + type Item = io::Result; + + #[inline] + fn next(&mut self) -> Option { + Self::read(self) + } +} + +impl fmt::Debug for Dir { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("Dir").field("fd", &self.fd).finish() + } +} + +/// `struct dirent` +#[derive(Debug)] +pub struct DirEntry { + d_ino: u64, + d_type: u8, + d_off: i64, + name: CString, +} + +impl DirEntry { + /// Returns the file name of this directory entry. + #[inline] + pub fn file_name(&self) -> &CStr { + &self.name + } + + /// Returns the “offset” of this directory entry. This is not a true + /// numerical offset but an opaque cookie that identifies a position in the + /// given stream. + #[inline] + pub fn offset(&self) -> i64 { + self.d_off + } + + /// Returns the type of this directory entry. + #[inline] + pub fn file_type(&self) -> FileType { + FileType::from_dirent_d_type(self.d_type) + } + + /// Return the inode number of this directory entry. + #[inline] + pub fn ino(&self) -> u64 { + self.d_ino + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn dir_iterator_handles_io_errors() { + // create a dir, keep the FD, then delete the dir + let tmp = tempfile::tempdir().unwrap(); + let fd = crate::fs::openat( + crate::fs::CWD, + tmp.path(), + crate::fs::OFlags::RDONLY | crate::fs::OFlags::CLOEXEC, + crate::fs::Mode::empty(), + ) + .unwrap(); + + let file_fd = crate::fs::openat( + &fd, + tmp.path().join("test.txt"), + crate::fs::OFlags::WRONLY | crate::fs::OFlags::CREATE, + crate::fs::Mode::RWXU, + ) + .unwrap(); + + let mut dir = Dir::read_from(&fd).unwrap(); + + // Reach inside the `Dir` and replace its directory with a file, which + // will cause the subsequent `getdents64` to fail. + crate::io::dup2(&file_fd, &mut dir.fd).unwrap(); + + assert!(matches!(dir.next(), Some(Err(_)))); + assert!(dir.next().is_none()); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/inotify.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/inotify.rs new file mode 100644 index 0000000000000000000000000000000000000000..eb13d9106d052347145d1685ed36e427edf928a0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/inotify.rs @@ -0,0 +1,124 @@ +//! inotify support for working with inotify objects. + +use crate::ffi; +use bitflags::bitflags; + +bitflags! { + /// `IN_*` for use with [`inotify::init`]. + /// + /// [`inotify::init`]: crate::fs::inotify::init + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct CreateFlags: ffi::c_uint { + /// `IN_CLOEXEC` + const CLOEXEC = linux_raw_sys::general::IN_CLOEXEC; + /// `IN_NONBLOCK` + const NONBLOCK = linux_raw_sys::general::IN_NONBLOCK; + + /// + const _ = !0; + } +} + +bitflags! { + /// `IN*` for use with [`inotify::add_watch`]. + /// + /// [`inotify::add_watch`]: crate::fs::inotify::add_watch + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct WatchFlags: ffi::c_uint { + /// `IN_ACCESS` + const ACCESS = linux_raw_sys::general::IN_ACCESS; + /// `IN_ATTRIB` + const ATTRIB = linux_raw_sys::general::IN_ATTRIB; + /// `IN_CLOSE_NOWRITE` + const CLOSE_NOWRITE = linux_raw_sys::general::IN_CLOSE_NOWRITE; + /// `IN_CLOSE_WRITE` + const CLOSE_WRITE = linux_raw_sys::general::IN_CLOSE_WRITE; + /// `IN_CREATE` + const CREATE = linux_raw_sys::general::IN_CREATE; + /// `IN_DELETE` + const DELETE = linux_raw_sys::general::IN_DELETE; + /// `IN_DELETE_SELF` + const DELETE_SELF = linux_raw_sys::general::IN_DELETE_SELF; + /// `IN_MODIFY` + const MODIFY = linux_raw_sys::general::IN_MODIFY; + /// `IN_MOVE_SELF` + const MOVE_SELF = linux_raw_sys::general::IN_MOVE_SELF; + /// `IN_MOVED_FROM` + const MOVED_FROM = linux_raw_sys::general::IN_MOVED_FROM; + /// `IN_MOVED_TO` + const MOVED_TO = linux_raw_sys::general::IN_MOVED_TO; + /// `IN_OPEN` + const OPEN = linux_raw_sys::general::IN_OPEN; + + /// `IN_CLOSE` + const CLOSE = linux_raw_sys::general::IN_CLOSE; + /// `IN_MOVE` + const MOVE = linux_raw_sys::general::IN_MOVE; + /// `IN_ALL_EVENTS` + const ALL_EVENTS = linux_raw_sys::general::IN_ALL_EVENTS; + + /// `IN_DONT_FOLLOW` + const DONT_FOLLOW = linux_raw_sys::general::IN_DONT_FOLLOW; + /// `IN_EXCL_UNLINK` + const EXCL_UNLINK = linux_raw_sys::general::IN_EXCL_UNLINK; + /// `IN_MASK_ADD` + const MASK_ADD = linux_raw_sys::general::IN_MASK_ADD; + /// `IN_MASK_CREATE` + const MASK_CREATE = linux_raw_sys::general::IN_MASK_CREATE; + /// `IN_ONESHOT` + const ONESHOT = linux_raw_sys::general::IN_ONESHOT; + /// `IN_ONLYDIR` + const ONLYDIR = linux_raw_sys::general::IN_ONLYDIR; + + /// + const _ = !0; + } +} + +bitflags! { + /// `IN*` for use with [`inotify::Reader`]. + /// + /// [`inotify::Reader`]: crate::fs::inotify::InotifyReader + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct ReadFlags: ffi::c_uint { + /// `IN_ACCESS` + const ACCESS = linux_raw_sys::general::IN_ACCESS; + /// `IN_ATTRIB` + const ATTRIB = linux_raw_sys::general::IN_ATTRIB; + /// `IN_CLOSE_NOWRITE` + const CLOSE_NOWRITE = linux_raw_sys::general::IN_CLOSE_NOWRITE; + /// `IN_CLOSE_WRITE` + const CLOSE_WRITE = linux_raw_sys::general::IN_CLOSE_WRITE; + /// `IN_CREATE` + const CREATE = linux_raw_sys::general::IN_CREATE; + /// `IN_DELETE` + const DELETE = linux_raw_sys::general::IN_DELETE; + /// `IN_DELETE_SELF` + const DELETE_SELF = linux_raw_sys::general::IN_DELETE_SELF; + /// `IN_MODIFY` + const MODIFY = linux_raw_sys::general::IN_MODIFY; + /// `IN_MOVE_SELF` + const MOVE_SELF = linux_raw_sys::general::IN_MOVE_SELF; + /// `IN_MOVED_FROM` + const MOVED_FROM = linux_raw_sys::general::IN_MOVED_FROM; + /// `IN_MOVED_TO` + const MOVED_TO = linux_raw_sys::general::IN_MOVED_TO; + /// `IN_OPEN` + const OPEN = linux_raw_sys::general::IN_OPEN; + + /// `IN_IGNORED` + const IGNORED = linux_raw_sys::general::IN_IGNORED; + /// `IN_ISDIR` + const ISDIR = linux_raw_sys::general::IN_ISDIR; + /// `IN_Q_OVERFLOW` + const QUEUE_OVERFLOW = linux_raw_sys::general::IN_Q_OVERFLOW; + /// `IN_UNMOUNT` + const UNMOUNT = linux_raw_sys::general::IN_UNMOUNT; + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/makedev.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/makedev.rs new file mode 100644 index 0000000000000000000000000000000000000000..284ba2f1010185f6fdf518e273b1b17369bca8c5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/makedev.rs @@ -0,0 +1,19 @@ +use crate::fs::Dev; + +#[inline] +pub(crate) fn makedev(maj: u32, min: u32) -> Dev { + ((u64::from(maj) & 0xffff_f000_u64) << 32) + | ((u64::from(maj) & 0x0000_0fff_u64) << 8) + | ((u64::from(min) & 0xffff_ff00_u64) << 12) + | (u64::from(min) & 0x0000_00ff_u64) +} + +#[inline] +pub(crate) fn major(dev: Dev) -> u32 { + (((dev >> 31 >> 1) & 0xffff_f000) | ((dev >> 8) & 0x0000_0fff)) as u32 +} + +#[inline] +pub(crate) fn minor(dev: Dev) -> u32 { + (((dev >> 12) & 0xffff_ff00) | (dev & 0x0000_00ff)) as u32 +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..9f53c5dba6284227652718a7dda85d1744af0e87 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/mod.rs @@ -0,0 +1,13 @@ +#[cfg(feature = "alloc")] +pub(crate) mod dir; +pub mod inotify; +pub(crate) mod makedev; +pub(crate) mod syscalls; +pub(crate) mod types; + +// TODO: Fix linux-raw-sys to define ioctl codes for sparc. +#[cfg(any(target_arch = "sparc", target_arch = "sparc64"))] +pub(crate) const EXT4_IOC_RESIZE_FS: u32 = 0x8008_6610; + +#[cfg(not(any(target_arch = "sparc", target_arch = "sparc64")))] +pub(crate) use linux_raw_sys::ioctl::EXT4_IOC_RESIZE_FS; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..908272f455809e99526a6dd130f03650c6087207 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/syscalls.rs @@ -0,0 +1,1730 @@ +//! linux_raw syscalls supporting `rustix::fs`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code)] +#![allow(clippy::undocumented_unsafe_blocks)] + +use crate::backend::c; +use crate::backend::conv::fs::oflags_for_open_how; +#[cfg(any( + not(feature = "linux_4_11"), + target_arch = "aarch64", + target_arch = "riscv64", + target_arch = "mips", + target_arch = "mips32r6", + all( + target_pointer_width = "32", + any(target_arch = "arm", target_arch = "powerpc"), + ) +))] +use crate::backend::conv::zero; +use crate::backend::conv::{ + by_ref, c_int, c_uint, dev_t, opt_mut, pass_usize, raw_fd, ret, ret_c_int, ret_c_uint, + ret_infallible, ret_owned_fd, ret_usize, size_of, slice, slice_mut, +}; +#[cfg(target_pointer_width = "64")] +use crate::backend::conv::{loff_t, loff_t_from_u64, ret_u64}; +use crate::fd::{BorrowedFd, OwnedFd}; +use crate::ffi::CStr; +#[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] +use crate::fs::CWD; +use crate::fs::{ + inotify, Access, Advice, AtFlags, FallocateFlags, FileType, FlockOperation, Fsid, Gid, + MemfdFlags, Mode, OFlags, RenameFlags, ResolveFlags, SealFlags, SeekFrom, Stat, StatFs, + StatVfs, StatVfsMountFlags, Statx, StatxFlags, Timestamps, Uid, XattrFlags, +}; +use crate::io; +use core::mem::MaybeUninit; +use core::num::NonZeroU64; +#[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] +use linux_raw_sys::general::stat as linux_stat64; +use linux_raw_sys::general::{ + open_how, AT_EACCESS, AT_FDCWD, AT_REMOVEDIR, AT_SYMLINK_NOFOLLOW, F_ADD_SEALS, F_GETFL, + F_GET_SEALS, F_SETFL, SEEK_CUR, SEEK_DATA, SEEK_END, SEEK_HOLE, SEEK_SET, STATX__RESERVED, +}; +#[cfg(target_pointer_width = "32")] +use { + crate::backend::conv::{hi, lo, slice_just_addr}, + linux_raw_sys::general::stat64 as linux_stat64, + linux_raw_sys::general::timespec as __kernel_old_timespec, +}; + +#[inline] +pub(crate) fn open(path: &CStr, flags: OFlags, mode: Mode) -> io::Result { + // Always enable support for large files. + let flags = flags | OFlags::LARGEFILE; + + #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] + { + openat(CWD, path, flags, mode) + } + #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))] + unsafe { + ret_owned_fd(syscall_readonly!(__NR_open, path, flags, mode)) + } +} + +#[inline] +pub(crate) fn openat( + dirfd: BorrowedFd<'_>, + path: &CStr, + flags: OFlags, + mode: Mode, +) -> io::Result { + // Always enable support for large files. + let flags = flags | OFlags::LARGEFILE; + + unsafe { ret_owned_fd(syscall_readonly!(__NR_openat, dirfd, path, flags, mode)) } +} + +#[inline] +pub(crate) fn openat2( + dirfd: BorrowedFd<'_>, + path: &CStr, + mut flags: OFlags, + mode: Mode, + resolve: ResolveFlags, +) -> io::Result { + // Enable support for large files, but not with `O_PATH` because + // `openat2` doesn't like those flags together. + if !flags.contains(OFlags::PATH) { + flags |= OFlags::from_bits_retain(c::O_LARGEFILE); + } + + unsafe { + ret_owned_fd(syscall_readonly!( + __NR_openat2, + dirfd, + path, + by_ref(&open_how { + flags: oflags_for_open_how(flags), + mode: u64::from(mode.bits()), + resolve: resolve.bits(), + }), + size_of::() + )) + } +} + +#[inline] +pub(crate) fn chmod(path: &CStr, mode: Mode) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_fchmodat, + raw_fd(AT_FDCWD), + path, + mode + )) + } +} + +#[inline] +pub(crate) fn chmodat( + dirfd: BorrowedFd<'_>, + path: &CStr, + mode: Mode, + flags: AtFlags, +) -> io::Result<()> { + if flags == AtFlags::SYMLINK_NOFOLLOW { + return Err(io::Errno::OPNOTSUPP); + } + if !flags.is_empty() { + return Err(io::Errno::INVAL); + } + unsafe { ret(syscall_readonly!(__NR_fchmodat, dirfd, path, mode)) } +} + +#[inline] +pub(crate) fn fchmod(fd: BorrowedFd<'_>, mode: Mode) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_fchmod, fd, mode)) } +} + +#[inline] +pub(crate) fn chownat( + dirfd: BorrowedFd<'_>, + path: &CStr, + owner: Option, + group: Option, + flags: AtFlags, +) -> io::Result<()> { + unsafe { + let (ow, gr) = crate::ugid::translate_fchown_args(owner, group); + ret(syscall_readonly!( + __NR_fchownat, + dirfd, + path, + c_uint(ow), + c_uint(gr), + flags + )) + } +} + +#[inline] +pub(crate) fn chown(path: &CStr, owner: Option, group: Option) -> io::Result<()> { + // Most architectures have a `chown` syscall. + #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))] + unsafe { + let (ow, gr) = crate::ugid::translate_fchown_args(owner, group); + ret(syscall_readonly!(__NR_chown, path, c_uint(ow), c_uint(gr))) + } + + // Aarch64 and RISC-V don't, so use `fchownat`. + #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] + unsafe { + let (ow, gr) = crate::ugid::translate_fchown_args(owner, group); + ret(syscall_readonly!( + __NR_fchownat, + raw_fd(AT_FDCWD), + path, + c_uint(ow), + c_uint(gr), + zero() + )) + } +} + +#[inline] +pub(crate) fn fchown(fd: BorrowedFd<'_>, owner: Option, group: Option) -> io::Result<()> { + unsafe { + let (ow, gr) = crate::ugid::translate_fchown_args(owner, group); + ret(syscall_readonly!(__NR_fchown, fd, c_uint(ow), c_uint(gr))) + } +} + +#[inline] +pub(crate) fn mknodat( + dirfd: BorrowedFd<'_>, + path: &CStr, + file_type: FileType, + mode: Mode, + dev: u64, +) -> io::Result<()> { + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall_readonly!( + __NR_mknodat, + dirfd, + path, + (mode, file_type), + dev_t(dev)? + )) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall_readonly!( + __NR_mknodat, + dirfd, + path, + (mode, file_type), + dev_t(dev) + )) + } +} + +#[inline] +pub(crate) fn seek(fd: BorrowedFd<'_>, pos: SeekFrom) -> io::Result { + let (whence, offset) = match pos { + SeekFrom::Start(pos) => { + let pos: u64 = pos; + // Silently cast; we'll get `EINVAL` if the value is negative. + (SEEK_SET, pos as i64) + } + SeekFrom::End(offset) => (SEEK_END, offset), + SeekFrom::Current(offset) => (SEEK_CUR, offset), + SeekFrom::Data(pos) => { + let pos: u64 = pos; + // Silently cast; we'll get `EINVAL` if the value is negative. + (SEEK_DATA, pos as i64) + } + SeekFrom::Hole(pos) => { + let pos: u64 = pos; + // Silently cast; we'll get `EINVAL` if the value is negative. + (SEEK_HOLE, pos as i64) + } + }; + _seek(fd, offset, whence) +} + +#[inline] +pub(crate) fn _seek(fd: BorrowedFd<'_>, offset: i64, whence: c::c_uint) -> io::Result { + #[cfg(target_pointer_width = "32")] + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(syscall!( + __NR__llseek, + fd, + // Don't use the hi/lo functions here because Linux's llseek + // takes its 64-bit argument differently from everything else. + pass_usize((offset >> 32) as usize), + pass_usize(offset as usize), + &mut result, + c_uint(whence) + ))?; + Ok(result.assume_init()) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret_u64(syscall_readonly!( + __NR_lseek, + fd, + loff_t(offset), + c_uint(whence) + )) + } +} + +#[inline] +pub(crate) fn tell(fd: BorrowedFd<'_>) -> io::Result { + _seek(fd, 0, SEEK_CUR).map(|x| x as u64) +} + +#[inline] +pub(crate) fn ftruncate(fd: BorrowedFd<'_>, length: u64) -> io::Result<()> { + // + #[cfg(all( + target_pointer_width = "32", + any( + target_arch = "arm", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "powerpc" + ), + ))] + unsafe { + ret(syscall_readonly!( + __NR_ftruncate64, + fd, + zero(), + hi(length), + lo(length) + )) + } + #[cfg(all( + target_pointer_width = "32", + not(any( + target_arch = "arm", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "powerpc" + )), + ))] + unsafe { + ret(syscall_readonly!( + __NR_ftruncate64, + fd, + hi(length), + lo(length) + )) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall_readonly!( + __NR_ftruncate, + fd, + loff_t_from_u64(length) + )) + } +} + +#[inline] +pub(crate) fn fallocate( + fd: BorrowedFd<'_>, + mode: FallocateFlags, + offset: u64, + len: u64, +) -> io::Result<()> { + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall_readonly!( + __NR_fallocate, + fd, + mode, + hi(offset), + lo(offset), + hi(len), + lo(len) + )) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall_readonly!( + __NR_fallocate, + fd, + mode, + loff_t_from_u64(offset), + loff_t_from_u64(len) + )) + } +} + +#[inline] +pub(crate) fn fadvise( + fd: BorrowedFd<'_>, + pos: u64, + len: Option, + advice: Advice, +) -> io::Result<()> { + let len = match len { + None => 0, + Some(len) => len.get(), + }; + + // On ARM, the arguments are reordered so that the `len` and `pos` argument + // pairs are aligned. And ARM has a custom syscall code for this. + #[cfg(target_arch = "arm")] + unsafe { + ret(syscall_readonly!( + __NR_arm_fadvise64_64, + fd, + advice, + hi(pos), + lo(pos), + hi(len), + lo(len) + )) + } + + // On powerpc, the arguments are reordered as on ARM. + #[cfg(target_arch = "powerpc")] + unsafe { + ret(syscall_readonly!( + __NR_fadvise64_64, + fd, + advice, + hi(pos), + lo(pos), + hi(len), + lo(len) + )) + } + + // On mips, the arguments are not reordered, and padding is inserted + // instead to ensure alignment. + #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] + unsafe { + ret(syscall_readonly!( + __NR_fadvise64, + fd, + zero(), + hi(pos), + lo(pos), + hi(len), + lo(len), + advice + )) + } + + // For all other 32-bit architectures, use `fadvise64_64` so that we get a + // 64-bit length. + #[cfg(all( + target_pointer_width = "32", + not(any( + target_arch = "arm", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "powerpc" + )), + ))] + unsafe { + ret(syscall_readonly!( + __NR_fadvise64_64, + fd, + hi(pos), + lo(pos), + hi(len), + lo(len), + advice + )) + } + + // On 64-bit architectures, use `fadvise64` which is sufficient. + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall_readonly!( + __NR_fadvise64, + fd, + loff_t_from_u64(pos), + loff_t_from_u64(len), + advice + )) + } +} + +#[inline] +pub(crate) fn fsync(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_fsync, fd)) } +} + +#[inline] +pub(crate) fn fdatasync(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_fdatasync, fd)) } +} + +#[inline] +pub(crate) fn flock(fd: BorrowedFd<'_>, operation: FlockOperation) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_flock, + fd, + c_uint(operation as c::c_uint) + )) + } +} + +#[inline] +pub(crate) fn syncfs(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_syncfs, fd)) } +} + +#[inline] +pub(crate) fn sync() { + unsafe { ret_infallible(syscall_readonly!(__NR_sync)) } +} + +#[inline] +pub(crate) fn fstat(fd: BorrowedFd<'_>) -> io::Result { + // 32-bit and mips64 Linux: `struct stat64` is not y2038 compatible; use + // `statx`. + // + // And, some old platforms don't support `statx`, and some fail with a + // confusing error code, so we call `crate::fs::statx` to handle that. If + // `statx` isn't available, fall back to the buggy system call. + #[cfg(any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ))] + { + match crate::fs::statx(fd, cstr!(""), AtFlags::EMPTY_PATH, StatxFlags::BASIC_STATS) { + Ok(x) => statx_to_stat(x), + Err(io::Errno::NOSYS) => fstat_old(fd), + Err(err) => Err(err), + } + } + + #[cfg(all( + target_pointer_width = "64", + not(target_arch = "mips64"), + not(target_arch = "mips64r6") + ))] + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(syscall!(__NR_fstat, fd, &mut result))?; + + #[cfg(sanitize_memory)] + crate::msan::unpoison_maybe_uninit(&result); + + Ok(result.assume_init()) + } +} + +#[cfg(any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6", +))] +fn fstat_old(fd: BorrowedFd<'_>) -> io::Result { + let mut result = MaybeUninit::::uninit(); + + #[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] + unsafe { + ret(syscall!(__NR_fstat, fd, &mut result))?; + stat_to_stat(result.assume_init()) + } + + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall!(__NR_fstat64, fd, &mut result))?; + stat_to_stat(result.assume_init()) + } +} + +#[inline] +pub(crate) fn stat(path: &CStr) -> io::Result { + // See the comments in `fstat` about using `crate::fs::statx` here. + #[cfg(any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ))] + { + match crate::fs::statx( + crate::fs::CWD, + path, + AtFlags::empty(), + StatxFlags::BASIC_STATS, + ) { + Ok(x) => statx_to_stat(x), + Err(io::Errno::NOSYS) => stat_old(path), + Err(err) => Err(err), + } + } + + #[cfg(all( + target_pointer_width = "64", + not(target_arch = "mips64"), + not(target_arch = "mips64r6"), + ))] + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(syscall!( + __NR_newfstatat, + raw_fd(AT_FDCWD), + path, + &mut result, + c_uint(0) + ))?; + Ok(result.assume_init()) + } +} + +#[cfg(any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" +))] +fn stat_old(path: &CStr) -> io::Result { + let mut result = MaybeUninit::::uninit(); + + #[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] + unsafe { + ret(syscall!( + __NR_newfstatat, + raw_fd(AT_FDCWD), + path, + &mut result, + c_uint(0) + ))?; + stat_to_stat(result.assume_init()) + } + + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall!( + __NR_fstatat64, + raw_fd(AT_FDCWD), + path, + &mut result, + c_uint(0) + ))?; + stat_to_stat(result.assume_init()) + } +} + +#[inline] +pub(crate) fn statat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result { + // See the comments in `fstat` about using `crate::fs::statx` here. + #[cfg(any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ))] + { + match crate::fs::statx(dirfd, path, flags, StatxFlags::BASIC_STATS) { + Ok(x) => statx_to_stat(x), + Err(io::Errno::NOSYS) => statat_old(dirfd, path, flags), + Err(err) => Err(err), + } + } + + #[cfg(all( + target_pointer_width = "64", + not(target_arch = "mips64"), + not(target_arch = "mips64r6"), + ))] + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(syscall!(__NR_newfstatat, dirfd, path, &mut result, flags))?; + Ok(result.assume_init()) + } +} + +#[cfg(any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" +))] +fn statat_old(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result { + let mut result = MaybeUninit::::uninit(); + + #[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] + unsafe { + ret(syscall!(__NR_newfstatat, dirfd, path, &mut result, flags))?; + stat_to_stat(result.assume_init()) + } + + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall!(__NR_fstatat64, dirfd, path, &mut result, flags))?; + stat_to_stat(result.assume_init()) + } +} + +#[inline] +pub(crate) fn lstat(path: &CStr) -> io::Result { + // See the comments in `fstat` about using `crate::fs::statx` here. + #[cfg(any(target_pointer_width = "32", target_arch = "mips64"))] + { + match crate::fs::statx( + crate::fs::CWD, + path, + AtFlags::SYMLINK_NOFOLLOW, + StatxFlags::BASIC_STATS, + ) { + Ok(x) => statx_to_stat(x), + Err(io::Errno::NOSYS) => lstat_old(path), + Err(err) => Err(err), + } + } + + #[cfg(all(target_pointer_width = "64", not(target_arch = "mips64")))] + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(syscall!( + __NR_newfstatat, + raw_fd(AT_FDCWD), + path, + &mut result, + c_uint(AT_SYMLINK_NOFOLLOW) + ))?; + Ok(result.assume_init()) + } +} + +#[cfg(any(target_pointer_width = "32", target_arch = "mips64"))] +fn lstat_old(path: &CStr) -> io::Result { + let mut result = MaybeUninit::::uninit(); + + #[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] + unsafe { + ret(syscall!( + __NR_newfstatat, + raw_fd(AT_FDCWD), + path, + &mut result, + c_uint(AT_SYMLINK_NOFOLLOW) + ))?; + stat_to_stat(result.assume_init()) + } + + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall!( + __NR_fstatat64, + raw_fd(AT_FDCWD), + path, + &mut result, + c_uint(AT_SYMLINK_NOFOLLOW) + ))?; + stat_to_stat(result.assume_init()) + } +} + +/// Convert from a Linux `statx` value to rustix's `Stat`. +#[cfg(any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" +))] +fn statx_to_stat(x: crate::fs::Statx) -> io::Result { + Ok(Stat { + st_dev: crate::fs::makedev(x.stx_dev_major, x.stx_dev_minor), + st_mode: x.stx_mode.into(), + st_nlink: x.stx_nlink.into(), + st_uid: x.stx_uid.into(), + st_gid: x.stx_gid.into(), + st_rdev: crate::fs::makedev(x.stx_rdev_major, x.stx_rdev_minor), + st_size: x.stx_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_blksize: x.stx_blksize.into(), + st_blocks: x.stx_blocks.into(), + st_atime: i64::from(x.stx_atime.tv_sec), + st_atime_nsec: x.stx_atime.tv_nsec.into(), + st_mtime: i64::from(x.stx_mtime.tv_sec), + st_mtime_nsec: x.stx_mtime.tv_nsec.into(), + st_ctime: i64::from(x.stx_ctime.tv_sec), + st_ctime_nsec: x.stx_ctime.tv_nsec.into(), + st_ino: x.stx_ino.into(), + }) +} + +/// Convert from a Linux `stat64` value to rustix's `Stat`. +#[cfg(target_pointer_width = "32")] +fn stat_to_stat(s64: linux_raw_sys::general::stat64) -> io::Result { + Ok(Stat { + st_dev: s64.st_dev.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_mode: s64.st_mode.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_nlink: s64.st_nlink.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_uid: s64.st_uid.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_gid: s64.st_gid.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_rdev: s64.st_rdev.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_size: s64.st_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_blksize: s64.st_blksize.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_blocks: s64.st_blocks.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_atime: i64::from(s64.st_atime.to_signed()), + st_atime_nsec: s64 + .st_atime_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + st_mtime: i64::from(s64.st_mtime.to_signed()), + st_mtime_nsec: s64 + .st_mtime_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + st_ctime: i64::from(s64.st_ctime.to_signed()), + st_ctime_nsec: s64 + .st_ctime_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + st_ino: s64.st_ino.try_into().map_err(|_| io::Errno::OVERFLOW)?, + }) +} + +/// Convert from a Linux `stat` value to rustix's `Stat`. +#[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] +fn stat_to_stat(s: linux_raw_sys::general::stat) -> io::Result { + Ok(Stat { + st_dev: s.st_dev.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_mode: s.st_mode.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_nlink: s.st_nlink.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_uid: s.st_uid.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_gid: s.st_gid.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_rdev: s.st_rdev.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_size: s.st_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_blksize: s.st_blksize.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_blocks: s.st_blocks.try_into().map_err(|_| io::Errno::OVERFLOW)?, + st_atime: i64::from(s.st_atime.to_signed()), + st_atime_nsec: s + .st_atime_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + st_mtime: i64::from(s.st_mtime.to_signed()), + st_mtime_nsec: s + .st_mtime_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + st_ctime: i64::from(s.st_ctime.to_signed()), + st_ctime_nsec: s + .st_ctime_nsec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + st_ino: s.st_ino.try_into().map_err(|_| io::Errno::OVERFLOW)?, + }) +} + +#[inline] +pub(crate) fn statx( + dirfd: BorrowedFd<'_>, + path: &CStr, + flags: AtFlags, + mask: StatxFlags, +) -> io::Result { + // If a future Linux kernel adds more fields to `struct statx` and users + // passing flags unknown to rustix in `StatxFlags`, we could end up + // writing outside of the buffer. To prevent this possibility, we mask off + // any flags that we don't know about. + // + // This includes `STATX__RESERVED`, which has a value that we know, but + // which could take on arbitrary new meaning in the future. Linux currently + // rejects this flag with `EINVAL`, so we do the same. + // + // This doesn't rely on `STATX_ALL` because [it's deprecated] and already + // doesn't represent all the known flags. + // + // [it's deprecated]: https://patchwork.kernel.org/project/linux-fsdevel/patch/20200505095915.11275-7-mszeredi@redhat.com/ + if (mask.bits() & STATX__RESERVED) == STATX__RESERVED { + return Err(io::Errno::INVAL); + } + let mask = mask & StatxFlags::all(); + + unsafe { + let mut statx_buf = MaybeUninit::::uninit(); + ret(syscall!( + __NR_statx, + dirfd, + path, + flags, + mask, + &mut statx_buf + ))?; + Ok(statx_buf.assume_init()) + } +} + +#[cfg(not(feature = "linux_4_11"))] +#[inline] +pub(crate) fn is_statx_available() -> bool { + unsafe { + // Call `statx` with null pointers so that if it fails for any reason + // other than `EFAULT`, we know it's not supported. This can use + // "readonly" because we don't pass it a buffer to mutate. + matches!( + ret(syscall_readonly!( + __NR_statx, + raw_fd(AT_FDCWD), + zero(), + zero(), + zero(), + zero() + )), + Err(io::Errno::FAULT) + ) + } +} + +#[inline] +pub(crate) fn fstatfs(fd: BorrowedFd<'_>) -> io::Result { + #[cfg(target_pointer_width = "32")] + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(syscall!( + __NR_fstatfs64, + fd, + size_of::(), + &mut result + ))?; + Ok(result.assume_init()) + } + + #[cfg(target_pointer_width = "64")] + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(syscall!(__NR_fstatfs, fd, &mut result))?; + Ok(result.assume_init()) + } +} + +#[inline] +pub(crate) fn fstatvfs(fd: BorrowedFd<'_>) -> io::Result { + // Linux doesn't have an `fstatvfs` syscall; we have to do `fstatfs` and + // translate the fields as best we can. + let statfs = fstatfs(fd)?; + + Ok(statfs_to_statvfs(statfs)) +} + +#[inline] +pub(crate) fn statfs(path: &CStr) -> io::Result { + #[cfg(target_pointer_width = "32")] + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(syscall!( + __NR_statfs64, + path, + size_of::(), + &mut result + ))?; + Ok(result.assume_init()) + } + #[cfg(target_pointer_width = "64")] + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(syscall!(__NR_statfs, path, &mut result))?; + Ok(result.assume_init()) + } +} + +#[inline] +pub(crate) fn statvfs(path: &CStr) -> io::Result { + // Linux doesn't have a `statvfs` syscall; we have to do `statfs` and + // translate the fields as best we can. + let statfs = statfs(path)?; + + Ok(statfs_to_statvfs(statfs)) +} + +fn statfs_to_statvfs(statfs: StatFs) -> StatVfs { + let Fsid { val } = Fsid { + val: statfs.f_fsid.val, + }; + let [f_fsid_val0, f_fsid_val1]: [i32; 2] = val; + + StatVfs { + f_bsize: statfs.f_bsize as u64, + f_frsize: if statfs.f_frsize != 0 { + statfs.f_frsize + } else { + statfs.f_bsize + } as u64, + f_blocks: statfs.f_blocks as u64, + f_bfree: statfs.f_bfree as u64, + f_bavail: statfs.f_bavail as u64, + f_files: statfs.f_files as u64, + f_ffree: statfs.f_ffree as u64, + f_favail: statfs.f_ffree as u64, + f_fsid: u64::from(f_fsid_val0 as u32) | (u64::from(f_fsid_val1 as u32) << 32), + f_flag: StatVfsMountFlags::from_bits_retain(statfs.f_flags as u64), + f_namemax: statfs.f_namelen as u64, + } +} + +#[cfg(feature = "alloc")] +#[inline] +pub(crate) fn readlink(path: &CStr, buf: &mut [u8]) -> io::Result { + let (buf_addr_mut, buf_len) = slice_mut(buf); + unsafe { + ret_usize(syscall!( + __NR_readlinkat, + raw_fd(AT_FDCWD), + path, + buf_addr_mut, + buf_len + )) + } +} + +#[inline] +pub(crate) unsafe fn readlinkat( + dirfd: BorrowedFd<'_>, + path: &CStr, + buf: (*mut u8, usize), +) -> io::Result { + ret_usize(syscall!( + __NR_readlinkat, + dirfd, + path, + buf.0, + pass_usize(buf.1) + )) +} + +#[inline] +pub(crate) fn fcntl_getfl(fd: BorrowedFd<'_>) -> io::Result { + #[cfg(target_pointer_width = "32")] + unsafe { + ret_c_uint(syscall_readonly!(__NR_fcntl64, fd, c_uint(F_GETFL))) + .map(OFlags::from_bits_retain) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret_c_uint(syscall_readonly!(__NR_fcntl, fd, c_uint(F_GETFL))).map(OFlags::from_bits_retain) + } +} + +#[inline] +pub(crate) fn fcntl_setfl(fd: BorrowedFd<'_>, flags: OFlags) -> io::Result<()> { + // Always enable support for large files. + let flags = flags | OFlags::from_bits_retain(c::O_LARGEFILE); + + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall_readonly!(__NR_fcntl64, fd, c_uint(F_SETFL), flags)) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall_readonly!(__NR_fcntl, fd, c_uint(F_SETFL), flags)) + } +} + +#[inline] +pub(crate) fn fcntl_get_seals(fd: BorrowedFd<'_>) -> io::Result { + #[cfg(target_pointer_width = "32")] + unsafe { + ret_c_int(syscall_readonly!(__NR_fcntl64, fd, c_uint(F_GET_SEALS))) + .map(|seals| SealFlags::from_bits_retain(seals as u32)) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret_c_int(syscall_readonly!(__NR_fcntl, fd, c_uint(F_GET_SEALS))) + .map(|seals| SealFlags::from_bits_retain(seals as u32)) + } +} + +#[inline] +pub(crate) fn fcntl_add_seals(fd: BorrowedFd<'_>, seals: SealFlags) -> io::Result<()> { + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall_readonly!( + __NR_fcntl64, + fd, + c_uint(F_ADD_SEALS), + seals + )) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall_readonly!( + __NR_fcntl, + fd, + c_uint(F_ADD_SEALS), + seals + )) + } +} + +#[inline] +pub(crate) fn fcntl_lock(fd: BorrowedFd<'_>, operation: FlockOperation) -> io::Result<()> { + #[cfg(target_pointer_width = "64")] + use linux_raw_sys::general::{flock, F_SETLK, F_SETLKW}; + #[cfg(target_pointer_width = "32")] + use linux_raw_sys::general::{flock64 as flock, F_SETLK64 as F_SETLK, F_SETLKW64 as F_SETLKW}; + use linux_raw_sys::general::{F_RDLCK, F_UNLCK, F_WRLCK}; + + let (cmd, l_type) = match operation { + FlockOperation::LockShared => (F_SETLKW, F_RDLCK), + FlockOperation::LockExclusive => (F_SETLKW, F_WRLCK), + FlockOperation::Unlock => (F_SETLKW, F_UNLCK), + FlockOperation::NonBlockingLockShared => (F_SETLK, F_RDLCK), + FlockOperation::NonBlockingLockExclusive => (F_SETLK, F_WRLCK), + FlockOperation::NonBlockingUnlock => (F_SETLK, F_UNLCK), + }; + + let lock = flock { + l_type: l_type as _, + + // When `l_len` is zero, this locks all the bytes from + // `l_whence`/`l_start` to the end of the file, even as the + // file grows dynamically. + l_whence: SEEK_SET as _, + l_start: 0, + l_len: 0, + + // Unused. + l_pid: 0, + }; + + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall_readonly!( + __NR_fcntl64, + fd, + c_uint(cmd), + by_ref(&lock) + )) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall_readonly!( + __NR_fcntl, + fd, + c_uint(cmd), + by_ref(&lock) + )) + } +} + +#[inline] +pub(crate) fn rename(old_path: &CStr, new_path: &CStr) -> io::Result<()> { + #[cfg(target_arch = "riscv64")] + unsafe { + ret(syscall_readonly!( + __NR_renameat2, + raw_fd(AT_FDCWD), + old_path, + raw_fd(AT_FDCWD), + new_path, + c_uint(0) + )) + } + #[cfg(not(target_arch = "riscv64"))] + unsafe { + ret(syscall_readonly!( + __NR_renameat, + raw_fd(AT_FDCWD), + old_path, + raw_fd(AT_FDCWD), + new_path + )) + } +} + +#[inline] +pub(crate) fn renameat( + old_dirfd: BorrowedFd<'_>, + old_path: &CStr, + new_dirfd: BorrowedFd<'_>, + new_path: &CStr, +) -> io::Result<()> { + #[cfg(target_arch = "riscv64")] + unsafe { + ret(syscall_readonly!( + __NR_renameat2, + old_dirfd, + old_path, + new_dirfd, + new_path, + c_uint(0) + )) + } + #[cfg(not(target_arch = "riscv64"))] + unsafe { + ret(syscall_readonly!( + __NR_renameat, + old_dirfd, + old_path, + new_dirfd, + new_path + )) + } +} + +#[inline] +pub(crate) fn renameat2( + old_dirfd: BorrowedFd<'_>, + old_path: &CStr, + new_dirfd: BorrowedFd<'_>, + new_path: &CStr, + flags: RenameFlags, +) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_renameat2, + old_dirfd, + old_path, + new_dirfd, + new_path, + flags + )) + } +} + +#[inline] +pub(crate) fn unlink(path: &CStr) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_unlinkat, + raw_fd(AT_FDCWD), + path, + c_uint(0) + )) + } +} + +#[inline] +pub(crate) fn unlinkat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_unlinkat, dirfd, path, flags)) } +} + +#[inline] +pub(crate) fn rmdir(path: &CStr) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_unlinkat, + raw_fd(AT_FDCWD), + path, + c_uint(AT_REMOVEDIR) + )) + } +} + +#[inline] +pub(crate) fn link(old_path: &CStr, new_path: &CStr) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_linkat, + raw_fd(AT_FDCWD), + old_path, + raw_fd(AT_FDCWD), + new_path, + c_uint(0) + )) + } +} + +#[inline] +pub(crate) fn linkat( + old_dirfd: BorrowedFd<'_>, + old_path: &CStr, + new_dirfd: BorrowedFd<'_>, + new_path: &CStr, + flags: AtFlags, +) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_linkat, + old_dirfd, + old_path, + new_dirfd, + new_path, + flags + )) + } +} + +#[inline] +pub(crate) fn symlink(old_path: &CStr, new_path: &CStr) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_symlinkat, + old_path, + raw_fd(AT_FDCWD), + new_path + )) + } +} + +#[inline] +pub(crate) fn symlinkat(old_path: &CStr, dirfd: BorrowedFd<'_>, new_path: &CStr) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_symlinkat, old_path, dirfd, new_path)) } +} + +#[inline] +pub(crate) fn mkdir(path: &CStr, mode: Mode) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_mkdirat, + raw_fd(AT_FDCWD), + path, + mode + )) + } +} + +#[inline] +pub(crate) fn mkdirat(dirfd: BorrowedFd<'_>, path: &CStr, mode: Mode) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_mkdirat, dirfd, path, mode)) } +} + +#[cfg(feature = "alloc")] +#[inline] +pub(crate) fn getdents(fd: BorrowedFd<'_>, dirent: &mut [u8]) -> io::Result { + let (dirent_addr_mut, dirent_len) = slice_mut(dirent); + + unsafe { ret_usize(syscall!(__NR_getdents64, fd, dirent_addr_mut, dirent_len)) } +} + +#[inline] +pub(crate) fn getdents_uninit( + fd: BorrowedFd<'_>, + dirent: &mut [MaybeUninit], +) -> io::Result { + let (dirent_addr_mut, dirent_len) = slice_mut(dirent); + + unsafe { ret_usize(syscall!(__NR_getdents64, fd, dirent_addr_mut, dirent_len)) } +} + +#[inline] +pub(crate) fn utimensat( + dirfd: BorrowedFd<'_>, + path: &CStr, + times: &Timestamps, + flags: AtFlags, +) -> io::Result<()> { + _utimensat(dirfd, Some(path), times, flags) +} + +#[inline] +fn _utimensat( + dirfd: BorrowedFd<'_>, + path: Option<&CStr>, + times: &Timestamps, + flags: AtFlags, +) -> io::Result<()> { + // `utimensat_time64` was introduced in Linux 5.1. The old `utimensat` + // syscall is not y2038-compatible on 32-bit architectures. + #[cfg(target_pointer_width = "32")] + unsafe { + match ret(syscall_readonly!( + __NR_utimensat_time64, + dirfd, + path, + by_ref(times), + flags + )) { + Err(io::Errno::NOSYS) => _utimensat_old(dirfd, path, times, flags), + otherwise => otherwise, + } + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall_readonly!( + __NR_utimensat, + dirfd, + path, + by_ref(times), + flags + )) + } +} + +#[cfg(target_pointer_width = "32")] +unsafe fn _utimensat_old( + dirfd: BorrowedFd<'_>, + path: Option<&CStr>, + times: &Timestamps, + flags: AtFlags, +) -> io::Result<()> { + // See the comments in `clock_gettime_via_syscall` about emulation. + let old_times = [ + __kernel_old_timespec { + tv_sec: times + .last_access + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: times + .last_access + .tv_nsec + .try_into() + .map_err(|_| io::Errno::INVAL)?, + }, + __kernel_old_timespec { + tv_sec: times + .last_modification + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: times + .last_modification + .tv_nsec + .try_into() + .map_err(|_| io::Errno::INVAL)?, + }, + ]; + // The length of the array is fixed and not passed into the syscall. + let old_times_addr = slice_just_addr(&old_times); + ret(syscall_readonly!( + __NR_utimensat, + dirfd, + path, + old_times_addr, + flags + )) +} + +#[inline] +pub(crate) fn futimens(fd: BorrowedFd<'_>, times: &Timestamps) -> io::Result<()> { + _utimensat(fd, None, times, AtFlags::empty()) +} + +#[inline] +pub(crate) fn access(path: &CStr, access: Access) -> io::Result<()> { + #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] + { + accessat_noflags(CWD, path, access) + } + + #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))] + unsafe { + ret(syscall_readonly!(__NR_access, path, access)) + } +} + +pub(crate) fn accessat( + dirfd: BorrowedFd<'_>, + path: &CStr, + access: Access, + flags: AtFlags, +) -> io::Result<()> { + if !flags + .difference(AtFlags::EACCESS | AtFlags::SYMLINK_NOFOLLOW) + .is_empty() + { + return Err(io::Errno::INVAL); + } + + // Linux's `faccessat` syscall doesn't have a flags argument, so if we have + // any flags, use the newer `faccessat2` introduced in Linux 5.8 which + // does. Unless we're on Android where using newer system calls can cause + // seccomp to abort the process. + #[cfg(not(target_os = "android"))] + if !flags.is_empty() { + unsafe { + match ret(syscall_readonly!( + __NR_faccessat2, + dirfd, + path, + access, + flags + )) { + Ok(()) => return Ok(()), + Err(io::Errno::NOSYS) => {} + Err(other) => return Err(other), + } + } + } + + // Linux's `faccessat` doesn't have a flags parameter. If we have + // `AT_EACCESS` and we're not setuid or setgid, we can emulate it. + if flags.is_empty() + || (flags.bits() == AT_EACCESS + && crate::backend::ugid::syscalls::getuid() + == crate::backend::ugid::syscalls::geteuid() + && crate::backend::ugid::syscalls::getgid() + == crate::backend::ugid::syscalls::getegid()) + { + return accessat_noflags(dirfd, path, access); + } + + Err(io::Errno::NOSYS) +} + +#[inline] +fn accessat_noflags(dirfd: BorrowedFd<'_>, path: &CStr, access: Access) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_faccessat, dirfd, path, access)) } +} + +#[inline] +pub(crate) fn copy_file_range( + fd_in: BorrowedFd<'_>, + off_in: Option<&mut u64>, + fd_out: BorrowedFd<'_>, + off_out: Option<&mut u64>, + len: usize, +) -> io::Result { + unsafe { + ret_usize(syscall!( + __NR_copy_file_range, + fd_in, + opt_mut(off_in), + fd_out, + opt_mut(off_out), + pass_usize(len), + c_uint(0) + )) + } +} + +#[inline] +pub(crate) fn memfd_create(name: &CStr, flags: MemfdFlags) -> io::Result { + unsafe { ret_owned_fd(syscall_readonly!(__NR_memfd_create, name, flags)) } +} + +#[inline] +pub(crate) fn sendfile( + out_fd: BorrowedFd<'_>, + in_fd: BorrowedFd<'_>, + offset: Option<&mut u64>, + count: usize, +) -> io::Result { + #[cfg(target_pointer_width = "32")] + unsafe { + ret_usize(syscall!( + __NR_sendfile64, + out_fd, + in_fd, + opt_mut(offset), + pass_usize(count) + )) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret_usize(syscall!( + __NR_sendfile, + out_fd, + in_fd, + opt_mut(offset), + pass_usize(count) + )) + } +} + +#[inline] +pub(crate) fn inotify_init1(flags: inotify::CreateFlags) -> io::Result { + unsafe { ret_owned_fd(syscall_readonly!(__NR_inotify_init1, flags)) } +} + +#[inline] +pub(crate) fn inotify_add_watch( + infd: BorrowedFd<'_>, + path: &CStr, + flags: inotify::WatchFlags, +) -> io::Result { + unsafe { ret_c_int(syscall_readonly!(__NR_inotify_add_watch, infd, path, flags)) } +} + +#[inline] +pub(crate) fn inotify_rm_watch(infd: BorrowedFd<'_>, wfd: i32) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_inotify_rm_watch, infd, c_int(wfd))) } +} + +#[inline] +pub(crate) unsafe fn getxattr( + path: &CStr, + name: &CStr, + value: (*mut u8, usize), +) -> io::Result { + ret_usize(syscall!( + __NR_getxattr, + path, + name, + value.0, + pass_usize(value.1) + )) +} + +#[inline] +pub(crate) unsafe fn lgetxattr( + path: &CStr, + name: &CStr, + value: (*mut u8, usize), +) -> io::Result { + ret_usize(syscall!( + __NR_lgetxattr, + path, + name, + value.0, + pass_usize(value.1) + )) +} + +#[inline] +pub(crate) unsafe fn fgetxattr( + fd: BorrowedFd<'_>, + name: &CStr, + value: (*mut u8, usize), +) -> io::Result { + ret_usize(syscall!( + __NR_fgetxattr, + fd, + name, + value.0, + pass_usize(value.1) + )) +} + +#[inline] +pub(crate) fn setxattr( + path: &CStr, + name: &CStr, + value: &[u8], + flags: XattrFlags, +) -> io::Result<()> { + let (value_addr, value_len) = slice(value); + unsafe { + ret(syscall_readonly!( + __NR_setxattr, + path, + name, + value_addr, + value_len, + flags + )) + } +} + +#[inline] +pub(crate) fn lsetxattr( + path: &CStr, + name: &CStr, + value: &[u8], + flags: XattrFlags, +) -> io::Result<()> { + let (value_addr, value_len) = slice(value); + unsafe { + ret(syscall_readonly!( + __NR_lsetxattr, + path, + name, + value_addr, + value_len, + flags + )) + } +} + +#[inline] +pub(crate) fn fsetxattr( + fd: BorrowedFd<'_>, + name: &CStr, + value: &[u8], + flags: XattrFlags, +) -> io::Result<()> { + let (value_addr, value_len) = slice(value); + unsafe { + ret(syscall_readonly!( + __NR_fsetxattr, + fd, + name, + value_addr, + value_len, + flags + )) + } +} + +#[inline] +pub(crate) unsafe fn listxattr(path: &CStr, list: (*mut u8, usize)) -> io::Result { + ret_usize(syscall!(__NR_listxattr, path, list.0, pass_usize(list.1))) +} + +#[inline] +pub(crate) unsafe fn llistxattr(path: &CStr, list: (*mut u8, usize)) -> io::Result { + ret_usize(syscall!(__NR_llistxattr, path, list.0, pass_usize(list.1))) +} + +#[inline] +pub(crate) unsafe fn flistxattr(fd: BorrowedFd<'_>, list: (*mut u8, usize)) -> io::Result { + ret_usize(syscall!(__NR_flistxattr, fd, list.0, pass_usize(list.1))) +} + +#[inline] +pub(crate) fn removexattr(path: &CStr, name: &CStr) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_removexattr, path, name)) } +} + +#[inline] +pub(crate) fn lremovexattr(path: &CStr, name: &CStr) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_lremovexattr, path, name)) } +} + +#[inline] +pub(crate) fn fremovexattr(fd: BorrowedFd<'_>, name: &CStr) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_fremovexattr, fd, name)) } +} + +// Some linux_raw_sys structs have unsigned types for values which are +// interpreted as signed. This defines a utility or casting to the +// same-sized signed type. +#[cfg(any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" +))] +mod to_signed { + pub(super) trait ToSigned { + type Signed; + fn to_signed(self) -> Self::Signed; + } + impl ToSigned for u32 { + type Signed = i32; + + fn to_signed(self) -> Self::Signed { + self as _ + } + } + impl ToSigned for i32 { + type Signed = i32; + + fn to_signed(self) -> Self::Signed { + self + } + } + impl ToSigned for u64 { + type Signed = i64; + + fn to_signed(self) -> Self::Signed { + self as _ + } + } + impl ToSigned for i64 { + type Signed = i64; + + fn to_signed(self) -> Self::Signed { + self + } + } +} +#[cfg(any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" +))] +use to_signed::*; + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_sizes() { + assert_eq_size!(linux_raw_sys::general::__kernel_loff_t, u64); + assert_eq_align!(linux_raw_sys::general::__kernel_loff_t, u64); + + // Assert that `Timestamps` has the expected layout. + assert_eq_size!([linux_raw_sys::general::__kernel_timespec; 2], Timestamps); + assert_eq_align!([linux_raw_sys::general::__kernel_timespec; 2], Timestamps); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..fc19a3f4707959525f3570664fd9a6084cf48b4e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/fs/types.rs @@ -0,0 +1,850 @@ +use crate::ffi; +use bitflags::bitflags; + +bitflags! { + /// `*_OK` constants for use with [`accessat`]. + /// + /// [`accessat`]: fn.accessat.html + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct Access: ffi::c_uint { + /// `R_OK` + const READ_OK = linux_raw_sys::general::R_OK; + + /// `W_OK` + const WRITE_OK = linux_raw_sys::general::W_OK; + + /// `X_OK` + const EXEC_OK = linux_raw_sys::general::X_OK; + + /// `F_OK` + const EXISTS = linux_raw_sys::general::F_OK; + + /// + const _ = !0; + } +} + +bitflags! { + /// `AT_*` constants for use with [`openat`], [`statat`], and other `*at` + /// functions. + /// + /// [`openat`]: crate::fs::openat + /// [`statat`]: crate::fs::statat + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct AtFlags: ffi::c_uint { + /// `AT_SYMLINK_NOFOLLOW` + const SYMLINK_NOFOLLOW = linux_raw_sys::general::AT_SYMLINK_NOFOLLOW; + + /// `AT_EACCESS` + const EACCESS = linux_raw_sys::general::AT_EACCESS; + + /// `AT_REMOVEDIR` + const REMOVEDIR = linux_raw_sys::general::AT_REMOVEDIR; + + /// `AT_SYMLINK_FOLLOW` + const SYMLINK_FOLLOW = linux_raw_sys::general::AT_SYMLINK_FOLLOW; + + /// `AT_NO_AUTOMOUNT` + const NO_AUTOMOUNT = linux_raw_sys::general::AT_NO_AUTOMOUNT; + + /// `AT_EMPTY_PATH` + const EMPTY_PATH = linux_raw_sys::general::AT_EMPTY_PATH; + + /// `AT_STATX_SYNC_AS_STAT` + const STATX_SYNC_AS_STAT = linux_raw_sys::general::AT_STATX_SYNC_AS_STAT; + + /// `AT_STATX_FORCE_SYNC` + const STATX_FORCE_SYNC = linux_raw_sys::general::AT_STATX_FORCE_SYNC; + + /// `AT_STATX_DONT_SYNC` + const STATX_DONT_SYNC = linux_raw_sys::general::AT_STATX_DONT_SYNC; + + /// + const _ = !0; + } +} + +bitflags! { + /// `S_I*` constants for use with [`openat`], [`chmodat`], and [`fchmod`]. + /// + /// [`openat`]: crate::fs::openat + /// [`chmodat`]: crate::fs::chmodat + /// [`fchmod`]: crate::fs::fchmod + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct Mode: RawMode { + /// `S_IRWXU` + const RWXU = linux_raw_sys::general::S_IRWXU; + + /// `S_IRUSR` + const RUSR = linux_raw_sys::general::S_IRUSR; + + /// `S_IWUSR` + const WUSR = linux_raw_sys::general::S_IWUSR; + + /// `S_IXUSR` + const XUSR = linux_raw_sys::general::S_IXUSR; + + /// `S_IRWXG` + const RWXG = linux_raw_sys::general::S_IRWXG; + + /// `S_IRGRP` + const RGRP = linux_raw_sys::general::S_IRGRP; + + /// `S_IWGRP` + const WGRP = linux_raw_sys::general::S_IWGRP; + + /// `S_IXGRP` + const XGRP = linux_raw_sys::general::S_IXGRP; + + /// `S_IRWXO` + const RWXO = linux_raw_sys::general::S_IRWXO; + + /// `S_IROTH` + const ROTH = linux_raw_sys::general::S_IROTH; + + /// `S_IWOTH` + const WOTH = linux_raw_sys::general::S_IWOTH; + + /// `S_IXOTH` + const XOTH = linux_raw_sys::general::S_IXOTH; + + /// `S_ISUID` + const SUID = linux_raw_sys::general::S_ISUID; + + /// `S_ISGID` + const SGID = linux_raw_sys::general::S_ISGID; + + /// `S_ISVTX` + const SVTX = linux_raw_sys::general::S_ISVTX; + + /// + const _ = !0; + } +} + +impl Mode { + /// Construct a `Mode` from the mode bits of the `st_mode` field of a + /// `Mode`. + #[inline] + pub const fn from_raw_mode(st_mode: RawMode) -> Self { + Self::from_bits_truncate(st_mode & !linux_raw_sys::general::S_IFMT) + } + + /// Construct an `st_mode` value from a `Mode`. + #[inline] + pub const fn as_raw_mode(self) -> RawMode { + self.bits() + } +} + +impl From for Mode { + /// Support conversions from raw mode values to `Mode`. + /// + /// ``` + /// use rustix::fs::{Mode, RawMode}; + /// assert_eq!(Mode::from(0o700), Mode::RWXU); + /// ``` + #[inline] + fn from(st_mode: RawMode) -> Self { + Self::from_raw_mode(st_mode) + } +} + +impl From for RawMode { + /// Support conversions from `Mode` to raw mode values. + /// + /// ``` + /// use rustix::fs::{Mode, RawMode}; + /// assert_eq!(RawMode::from(Mode::RWXU), 0o700); + /// ``` + #[inline] + fn from(mode: Mode) -> Self { + mode.as_raw_mode() + } +} + +bitflags! { + /// `O_*` constants for use with [`openat`]. + /// + /// [`openat`]: crate::fs::openat + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct OFlags: ffi::c_uint { + /// `O_ACCMODE` + const ACCMODE = linux_raw_sys::general::O_ACCMODE; + + /// Similar to `ACCMODE`, but just includes the read/write flags, and + /// no other flags. + /// + /// On some platforms, `PATH` may be included in `ACCMODE`, when + /// sometimes we really just want the read/write bits. Caution is + /// indicated, as the presence of `PATH` may mean that the read/write + /// bits don't have their usual meaning. + const RWMODE = linux_raw_sys::general::O_RDONLY | + linux_raw_sys::general::O_WRONLY | + linux_raw_sys::general::O_RDWR; + + /// `O_APPEND` + const APPEND = linux_raw_sys::general::O_APPEND; + + /// `O_CREAT` + #[doc(alias = "CREAT")] + const CREATE = linux_raw_sys::general::O_CREAT; + + /// `O_DIRECTORY` + const DIRECTORY = linux_raw_sys::general::O_DIRECTORY; + + /// `O_DSYNC` + const DSYNC = linux_raw_sys::general::O_SYNC; + + /// `O_EXCL` + const EXCL = linux_raw_sys::general::O_EXCL; + + /// `O_FSYNC` + const FSYNC = linux_raw_sys::general::O_SYNC; + + /// `O_NOFOLLOW` + const NOFOLLOW = linux_raw_sys::general::O_NOFOLLOW; + + /// `O_NONBLOCK` + const NONBLOCK = linux_raw_sys::general::O_NONBLOCK; + + /// `O_RDONLY` + const RDONLY = linux_raw_sys::general::O_RDONLY; + + /// `O_WRONLY` + const WRONLY = linux_raw_sys::general::O_WRONLY; + + /// `O_RDWR` + /// + /// This is not equal to `RDONLY | WRONLY`. It's a distinct flag. + const RDWR = linux_raw_sys::general::O_RDWR; + + /// `O_NOCTTY` + const NOCTTY = linux_raw_sys::general::O_NOCTTY; + + /// `O_RSYNC` + const RSYNC = linux_raw_sys::general::O_SYNC; + + /// `O_SYNC` + const SYNC = linux_raw_sys::general::O_SYNC; + + /// `O_TRUNC` + const TRUNC = linux_raw_sys::general::O_TRUNC; + + /// `O_PATH` + const PATH = linux_raw_sys::general::O_PATH; + + /// `O_CLOEXEC` + const CLOEXEC = linux_raw_sys::general::O_CLOEXEC; + + /// `O_TMPFILE` + const TMPFILE = linux_raw_sys::general::O_TMPFILE; + + /// `O_NOATIME` + const NOATIME = linux_raw_sys::general::O_NOATIME; + + /// `O_DIRECT` + const DIRECT = linux_raw_sys::general::O_DIRECT; + + /// `O_LARGEFILE` + /// + /// Rustix and/or libc will automatically set this flag when + /// appropriate in the [`rustix::fs::open`] family of functions, so + /// typical users do not need to care about it. It may be reported in + /// the return of `fcntl_getfl`, though. + const LARGEFILE = linux_raw_sys::general::O_LARGEFILE; + + /// `O_ASYNC`, `FASYNC` + /// + /// This flag can't be used with the [`rustix::fs::open`] family of + /// functions, use [`rustix::fs::fcntl_setfl`] instead. + const ASYNC = linux_raw_sys::general::FASYNC; + + /// + const _ = !0; + } +} + +bitflags! { + /// `RESOLVE_*` constants for use with [`openat2`]. + /// + /// [`openat2`]: crate::fs::openat2 + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct ResolveFlags: u64 { + /// `RESOLVE_NO_XDEV` + const NO_XDEV = linux_raw_sys::general::RESOLVE_NO_XDEV as u64; + + /// `RESOLVE_NO_MAGICLINKS` + const NO_MAGICLINKS = linux_raw_sys::general::RESOLVE_NO_MAGICLINKS as u64; + + /// `RESOLVE_NO_SYMLINKS` + const NO_SYMLINKS = linux_raw_sys::general::RESOLVE_NO_SYMLINKS as u64; + + /// `RESOLVE_BENEATH` + const BENEATH = linux_raw_sys::general::RESOLVE_BENEATH as u64; + + /// `RESOLVE_IN_ROOT` + const IN_ROOT = linux_raw_sys::general::RESOLVE_IN_ROOT as u64; + + /// `RESOLVE_CACHED` (since Linux 5.12) + const CACHED = linux_raw_sys::general::RESOLVE_CACHED as u64; + + /// + const _ = !0; + } +} + +bitflags! { + /// `RENAME_*` constants for use with [`renameat_with`]. + /// + /// [`renameat_with`]: crate::fs::renameat_with + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct RenameFlags: ffi::c_uint { + /// `RENAME_EXCHANGE` + const EXCHANGE = linux_raw_sys::general::RENAME_EXCHANGE; + + /// `RENAME_NOREPLACE` + const NOREPLACE = linux_raw_sys::general::RENAME_NOREPLACE; + + /// `RENAME_WHITEOUT` + const WHITEOUT = linux_raw_sys::general::RENAME_WHITEOUT; + + /// + const _ = !0; + } +} + +/// `S_IF*` constants for use with [`mknodat`] and [`Stat`]'s `st_mode` field. +/// +/// [`mknodat`]: crate::fs::mknodat +/// [`Stat`]: crate::fs::Stat +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum FileType { + /// `S_IFREG` + RegularFile = linux_raw_sys::general::S_IFREG as isize, + + /// `S_IFDIR` + Directory = linux_raw_sys::general::S_IFDIR as isize, + + /// `S_IFLNK` + Symlink = linux_raw_sys::general::S_IFLNK as isize, + + /// `S_IFIFO` + #[doc(alias = "IFO")] + Fifo = linux_raw_sys::general::S_IFIFO as isize, + + /// `S_IFSOCK` + Socket = linux_raw_sys::general::S_IFSOCK as isize, + + /// `S_IFCHR` + CharacterDevice = linux_raw_sys::general::S_IFCHR as isize, + + /// `S_IFBLK` + BlockDevice = linux_raw_sys::general::S_IFBLK as isize, + + /// An unknown filesystem object. + Unknown, +} + +impl FileType { + /// Construct a `FileType` from the `S_IFMT` bits of the `st_mode` field of + /// a `Stat`. + #[inline] + pub const fn from_raw_mode(st_mode: RawMode) -> Self { + match st_mode & linux_raw_sys::general::S_IFMT { + linux_raw_sys::general::S_IFREG => Self::RegularFile, + linux_raw_sys::general::S_IFDIR => Self::Directory, + linux_raw_sys::general::S_IFLNK => Self::Symlink, + linux_raw_sys::general::S_IFIFO => Self::Fifo, + linux_raw_sys::general::S_IFSOCK => Self::Socket, + linux_raw_sys::general::S_IFCHR => Self::CharacterDevice, + linux_raw_sys::general::S_IFBLK => Self::BlockDevice, + _ => Self::Unknown, + } + } + + /// Construct an `st_mode` value from a `FileType`. + #[inline] + pub const fn as_raw_mode(self) -> RawMode { + match self { + Self::RegularFile => linux_raw_sys::general::S_IFREG, + Self::Directory => linux_raw_sys::general::S_IFDIR, + Self::Symlink => linux_raw_sys::general::S_IFLNK, + Self::Fifo => linux_raw_sys::general::S_IFIFO, + Self::Socket => linux_raw_sys::general::S_IFSOCK, + Self::CharacterDevice => linux_raw_sys::general::S_IFCHR, + Self::BlockDevice => linux_raw_sys::general::S_IFBLK, + Self::Unknown => linux_raw_sys::general::S_IFMT, + } + } + + /// Construct a `FileType` from the `d_type` field of a `c::dirent`. + #[inline] + pub(crate) const fn from_dirent_d_type(d_type: u8) -> Self { + match d_type as u32 { + linux_raw_sys::general::DT_REG => Self::RegularFile, + linux_raw_sys::general::DT_DIR => Self::Directory, + linux_raw_sys::general::DT_LNK => Self::Symlink, + linux_raw_sys::general::DT_SOCK => Self::Socket, + linux_raw_sys::general::DT_FIFO => Self::Fifo, + linux_raw_sys::general::DT_CHR => Self::CharacterDevice, + linux_raw_sys::general::DT_BLK => Self::BlockDevice, + // linux_raw_sys::general::DT_UNKNOWN | + _ => Self::Unknown, + } + } +} + +/// `POSIX_FADV_*` constants for use with [`fadvise`]. +/// +/// [`fadvise`]: crate::fs::fadvise +#[derive(Debug, Copy, Clone, Eq, PartialEq)] +#[repr(u32)] +pub enum Advice { + /// `POSIX_FADV_NORMAL` + Normal = linux_raw_sys::general::POSIX_FADV_NORMAL, + + /// `POSIX_FADV_SEQUENTIAL` + Sequential = linux_raw_sys::general::POSIX_FADV_SEQUENTIAL, + + /// `POSIX_FADV_RANDOM` + Random = linux_raw_sys::general::POSIX_FADV_RANDOM, + + /// `POSIX_FADV_NOREUSE` + NoReuse = linux_raw_sys::general::POSIX_FADV_NOREUSE, + + /// `POSIX_FADV_WILLNEED` + WillNeed = linux_raw_sys::general::POSIX_FADV_WILLNEED, + + /// `POSIX_FADV_DONTNEED` + DontNeed = linux_raw_sys::general::POSIX_FADV_DONTNEED, +} + +bitflags! { + /// `MFD_*` constants for use with [`memfd_create`]. + /// + /// [`memfd_create`]: crate::fs::memfd_create + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MemfdFlags: ffi::c_uint { + /// `MFD_CLOEXEC` + const CLOEXEC = linux_raw_sys::general::MFD_CLOEXEC; + + /// `MFD_ALLOW_SEALING` + const ALLOW_SEALING = linux_raw_sys::general::MFD_ALLOW_SEALING; + + /// `MFD_HUGETLB` (since Linux 4.14) + const HUGETLB = linux_raw_sys::general::MFD_HUGETLB; + + /// `MFD_NOEXEC_SEAL` (since Linux 6.3) + const NOEXEC_SEAL = linux_raw_sys::general::MFD_NOEXEC_SEAL; + /// `MFD_EXEC` (since Linux 6.3) + const EXEC = linux_raw_sys::general::MFD_EXEC; + + /// `MFD_HUGE_64KB` + const HUGE_64KB = linux_raw_sys::general::MFD_HUGE_64KB; + /// `MFD_HUGE_512KB` + const HUGE_512KB = linux_raw_sys::general::MFD_HUGE_512KB; + /// `MFD_HUGE_1MB` + const HUGE_1MB = linux_raw_sys::general::MFD_HUGE_1MB; + /// `MFD_HUGE_2MB` + const HUGE_2MB = linux_raw_sys::general::MFD_HUGE_2MB; + /// `MFD_HUGE_8MB` + const HUGE_8MB = linux_raw_sys::general::MFD_HUGE_8MB; + /// `MFD_HUGE_16MB` + const HUGE_16MB = linux_raw_sys::general::MFD_HUGE_16MB; + /// `MFD_HUGE_32MB` + const HUGE_32MB = linux_raw_sys::general::MFD_HUGE_32MB; + /// `MFD_HUGE_256MB` + const HUGE_256MB = linux_raw_sys::general::MFD_HUGE_256MB; + /// `MFD_HUGE_512MB` + const HUGE_512MB = linux_raw_sys::general::MFD_HUGE_512MB; + /// `MFD_HUGE_1GB` + const HUGE_1GB = linux_raw_sys::general::MFD_HUGE_1GB; + /// `MFD_HUGE_2GB` + const HUGE_2GB = linux_raw_sys::general::MFD_HUGE_2GB; + /// `MFD_HUGE_16GB` + const HUGE_16GB = linux_raw_sys::general::MFD_HUGE_16GB; + + /// + const _ = !0; + } +} + +bitflags! { + /// `F_SEAL_*` constants for use with [`fcntl_add_seals`] and + /// [`fcntl_get_seals`]. + /// + /// [`fcntl_add_seals`]: crate::fs::fcntl_add_seals + /// [`fcntl_get_seals`]: crate::fs::fcntl_get_seals + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct SealFlags: u32 { + /// `F_SEAL_SEAL` + const SEAL = linux_raw_sys::general::F_SEAL_SEAL; + /// `F_SEAL_SHRINK` + const SHRINK = linux_raw_sys::general::F_SEAL_SHRINK; + /// `F_SEAL_GROW` + const GROW = linux_raw_sys::general::F_SEAL_GROW; + /// `F_SEAL_WRITE` + const WRITE = linux_raw_sys::general::F_SEAL_WRITE; + /// `F_SEAL_FUTURE_WRITE` (since Linux 5.1) + const FUTURE_WRITE = linux_raw_sys::general::F_SEAL_FUTURE_WRITE; + /// `F_SEAL_EXEC` (since Linux 6.3) + const EXEC = linux_raw_sys::general::F_SEAL_EXEC; + + /// + const _ = !0; + } +} + +bitflags! { + /// `FALLOC_FL_*` constants for use with [`fallocate`]. + /// + /// [`fallocate`]: crate::fs::fallocate + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct FallocateFlags: u32 { + /// `FALLOC_FL_KEEP_SIZE` + const KEEP_SIZE = linux_raw_sys::general::FALLOC_FL_KEEP_SIZE; + /// `FALLOC_FL_PUNCH_HOLE` + const PUNCH_HOLE = linux_raw_sys::general::FALLOC_FL_PUNCH_HOLE; + /// `FALLOC_FL_NO_HIDE_STALE` + const NO_HIDE_STALE = linux_raw_sys::general::FALLOC_FL_NO_HIDE_STALE; + /// `FALLOC_FL_COLLAPSE_RANGE` + const COLLAPSE_RANGE = linux_raw_sys::general::FALLOC_FL_COLLAPSE_RANGE; + /// `FALLOC_FL_ZERO_RANGE` + const ZERO_RANGE = linux_raw_sys::general::FALLOC_FL_ZERO_RANGE; + /// `FALLOC_FL_INSERT_RANGE` + const INSERT_RANGE = linux_raw_sys::general::FALLOC_FL_INSERT_RANGE; + /// `FALLOC_FL_UNSHARE_RANGE` + const UNSHARE_RANGE = linux_raw_sys::general::FALLOC_FL_UNSHARE_RANGE; + + /// + const _ = !0; + } +} + +bitflags! { + /// `ST_*` constants for use with [`StatVfs`]. + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct StatVfsMountFlags: u64 { + /// `ST_MANDLOCK` + const MANDLOCK = linux_raw_sys::general::MS_MANDLOCK as u64; + + /// `ST_NOATIME` + const NOATIME = linux_raw_sys::general::MS_NOATIME as u64; + + /// `ST_NODEV` + const NODEV = linux_raw_sys::general::MS_NODEV as u64; + + /// `ST_NODIRATIME` + const NODIRATIME = linux_raw_sys::general::MS_NODIRATIME as u64; + + /// `ST_NOEXEC` + const NOEXEC = linux_raw_sys::general::MS_NOEXEC as u64; + + /// `ST_NOSUID` + const NOSUID = linux_raw_sys::general::MS_NOSUID as u64; + + /// `ST_RDONLY` + const RDONLY = linux_raw_sys::general::MS_RDONLY as u64; + + /// `ST_RELATIME` + const RELATIME = linux_raw_sys::general::MS_RELATIME as u64; + + /// `ST_SYNCHRONOUS` + const SYNCHRONOUS = linux_raw_sys::general::MS_SYNCHRONOUS as u64; + + /// + const _ = !0; + } +} + +/// `LOCK_*` constants for use with [`flock`] and [`fcntl_lock`]. +/// +/// [`flock`]: crate::fs::flock +/// [`fcntl_lock`]: crate::fs::fcntl_lock +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +#[repr(u32)] +pub enum FlockOperation { + /// `LOCK_SH` + LockShared = linux_raw_sys::general::LOCK_SH, + /// `LOCK_EX` + LockExclusive = linux_raw_sys::general::LOCK_EX, + /// `LOCK_UN` + Unlock = linux_raw_sys::general::LOCK_UN, + /// `LOCK_SH | LOCK_NB` + NonBlockingLockShared = linux_raw_sys::general::LOCK_SH | linux_raw_sys::general::LOCK_NB, + /// `LOCK_EX | LOCK_NB` + NonBlockingLockExclusive = linux_raw_sys::general::LOCK_EX | linux_raw_sys::general::LOCK_NB, + /// `LOCK_UN | LOCK_NB` + NonBlockingUnlock = linux_raw_sys::general::LOCK_UN | linux_raw_sys::general::LOCK_NB, +} + +/// `struct stat` for use with [`statat`] and [`fstat`]. +/// +/// [`statat`]: crate::fs::statat +/// [`fstat`]: crate::fs::fstat +// On 32-bit with `struct stat64` and mips64 with `struct stat`, Linux's +// `st_mtime` and friends are 32-bit, so we use our own struct, populated from +// `statx` where possible, to avoid the y2038 bug. +#[cfg(any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" +))] +#[derive(Debug, Copy, Clone)] +#[allow(missing_docs)] +#[non_exhaustive] +pub struct Stat { + pub st_dev: u64, + pub st_mode: u32, + pub st_nlink: u32, + pub st_uid: u32, + pub st_gid: u32, + pub st_rdev: u64, + pub st_size: i64, + pub st_blksize: u32, + pub st_blocks: u64, + pub st_atime: i64, + pub st_atime_nsec: u32, + pub st_mtime: i64, + pub st_mtime_nsec: u32, + pub st_ctime: i64, + pub st_ctime_nsec: u32, + pub st_ino: u64, +} + +/// `struct stat` for use with [`statat`] and [`fstat`]. +/// +/// [`statat`]: crate::fs::statat +/// [`fstat`]: crate::fs::fstat +#[repr(C)] +#[derive(Debug, Copy, Clone)] +#[allow(missing_docs)] +#[non_exhaustive] +#[cfg(target_arch = "x86_64")] +pub struct Stat { + pub st_dev: ffi::c_ulong, + pub st_ino: ffi::c_ulong, + pub st_nlink: ffi::c_ulong, + pub st_mode: ffi::c_uint, + pub st_uid: ffi::c_uint, + pub st_gid: ffi::c_uint, + pub(crate) __pad0: ffi::c_uint, + pub st_rdev: ffi::c_ulong, + pub st_size: ffi::c_long, + pub st_blksize: ffi::c_long, + pub st_blocks: ffi::c_long, + pub st_atime: ffi::c_long, + pub st_atime_nsec: ffi::c_ulong, + pub st_mtime: ffi::c_long, + pub st_mtime_nsec: ffi::c_ulong, + pub st_ctime: ffi::c_long, + pub st_ctime_nsec: ffi::c_ulong, + pub(crate) __unused: [ffi::c_long; 3], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +#[allow(missing_docs)] +#[non_exhaustive] +#[cfg(target_arch = "aarch64")] +pub struct Stat { + pub st_dev: ffi::c_ulong, + pub st_ino: ffi::c_ulong, + pub st_mode: ffi::c_uint, + pub st_nlink: ffi::c_uint, + pub st_uid: ffi::c_uint, + pub st_gid: ffi::c_uint, + pub st_rdev: ffi::c_ulong, + pub(crate) __pad1: ffi::c_ulong, + pub st_size: ffi::c_long, + pub st_blksize: ffi::c_int, + pub(crate) __pad2: ffi::c_int, + pub st_blocks: ffi::c_long, + pub st_atime: ffi::c_long, + pub st_atime_nsec: ffi::c_ulong, + pub st_mtime: ffi::c_long, + pub st_mtime_nsec: ffi::c_ulong, + pub st_ctime: ffi::c_long, + pub st_ctime_nsec: ffi::c_ulong, + pub(crate) __unused4: ffi::c_uint, + pub(crate) __unused5: ffi::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +#[allow(missing_docs)] +#[non_exhaustive] +#[cfg(target_arch = "riscv64")] +pub struct Stat { + pub st_dev: ffi::c_ulong, + pub st_ino: ffi::c_ulong, + pub st_mode: ffi::c_uint, + pub st_nlink: ffi::c_uint, + pub st_uid: ffi::c_uint, + pub st_gid: ffi::c_uint, + pub st_rdev: ffi::c_ulong, + pub(crate) __pad1: ffi::c_ulong, + pub st_size: ffi::c_long, + pub st_blksize: ffi::c_int, + pub(crate) __pad2: ffi::c_int, + pub st_blocks: ffi::c_long, + pub st_atime: ffi::c_long, + pub st_atime_nsec: ffi::c_ulong, + pub st_mtime: ffi::c_long, + pub st_mtime_nsec: ffi::c_ulong, + pub st_ctime: ffi::c_long, + pub st_ctime_nsec: ffi::c_ulong, + pub(crate) __unused4: ffi::c_uint, + pub(crate) __unused5: ffi::c_uint, +} +// This follows `stat`. powerpc64 defines a `stat64` but it's not used. +#[repr(C)] +#[derive(Debug, Copy, Clone)] +#[allow(missing_docs)] +#[non_exhaustive] +#[cfg(target_arch = "powerpc64")] +pub struct Stat { + pub st_dev: ffi::c_ulong, + pub st_ino: ffi::c_ulong, + pub st_nlink: ffi::c_ulong, + pub st_mode: ffi::c_uint, + pub st_uid: ffi::c_uint, + pub st_gid: ffi::c_uint, + pub st_rdev: ffi::c_ulong, + pub st_size: ffi::c_long, + pub st_blksize: ffi::c_ulong, + pub st_blocks: ffi::c_ulong, + pub st_atime: ffi::c_long, + pub st_atime_nsec: ffi::c_ulong, + pub st_mtime: ffi::c_long, + pub st_mtime_nsec: ffi::c_ulong, + pub st_ctime: ffi::c_long, + pub st_ctime_nsec: ffi::c_ulong, + pub(crate) __unused4: ffi::c_ulong, + pub(crate) __unused5: ffi::c_ulong, + pub(crate) __unused6: ffi::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +#[allow(missing_docs)] +#[non_exhaustive] +#[cfg(target_arch = "s390x")] +pub struct Stat { + pub st_dev: ffi::c_ulong, + pub st_ino: ffi::c_ulong, + pub st_nlink: ffi::c_ulong, + pub st_mode: ffi::c_uint, + pub st_uid: ffi::c_uint, + pub st_gid: ffi::c_uint, + pub(crate) __pad1: ffi::c_uint, + pub st_rdev: ffi::c_ulong, + pub st_size: ffi::c_long, // Linux has `c_ulong` but we make it signed. + pub st_atime: ffi::c_long, + pub st_atime_nsec: ffi::c_ulong, + pub st_mtime: ffi::c_long, + pub st_mtime_nsec: ffi::c_ulong, + pub st_ctime: ffi::c_long, + pub st_ctime_nsec: ffi::c_ulong, + pub st_blksize: ffi::c_ulong, + pub st_blocks: ffi::c_long, + pub(crate) __unused: [ffi::c_ulong; 3], +} + +/// `struct statfs` for use with [`statfs`] and [`fstatfs`]. +/// +/// [`statfs`]: crate::fs::statfs +/// [`fstatfs`]: crate::fs::fstatfs +#[allow(clippy::module_name_repetitions)] +#[repr(C)] +#[cfg_attr(target_arch = "arm", repr(packed(4)))] +#[derive(Debug, Copy, Clone)] +#[allow(missing_docs)] +#[non_exhaustive] +pub struct StatFs { + pub f_type: FsWord, + #[cfg(not(any(target_arch = "arm", target_arch = "s390x")))] + pub f_bsize: ffi::c_long, + #[cfg(any(target_arch = "arm", target_arch = "s390x"))] + pub f_bsize: ffi::c_uint, + pub f_blocks: u64, + pub f_bfree: u64, + pub f_bavail: u64, + pub f_files: u64, + pub f_ffree: u64, + pub f_fsid: Fsid, + #[cfg(not(any(target_arch = "arm", target_arch = "s390x")))] + pub f_namelen: ffi::c_long, + #[cfg(any(target_arch = "arm", target_arch = "s390x"))] + pub f_namelen: ffi::c_uint, + #[cfg(not(any(target_arch = "arm", target_arch = "s390x")))] + pub f_frsize: ffi::c_long, + #[cfg(any(target_arch = "arm", target_arch = "s390x"))] + pub f_frsize: ffi::c_uint, + #[cfg(not(any(target_arch = "arm", target_arch = "s390x")))] + pub f_flags: ffi::c_long, + #[cfg(any(target_arch = "arm", target_arch = "s390x"))] + pub f_flags: ffi::c_uint, + #[cfg(not(target_arch = "s390x"))] + pub(crate) f_spare: [ffi::c_long; 4], + #[cfg(target_arch = "s390x")] + pub(crate) f_spare: [ffi::c_uint; 5], +} + +/// `fsid_t` for use with [`StatFs`]. +#[repr(C)] +#[derive(Debug, Copy, Clone)] +#[allow(missing_docs)] +pub struct Fsid { + pub(crate) val: [ffi::c_int; 2], +} + +/// `struct statvfs` for use with [`statvfs`] and [`fstatvfs`]. +/// +/// [`statvfs`]: crate::fs::statvfs +/// [`fstatvfs`]: crate::fs::fstatvfs +#[allow(missing_docs)] +pub struct StatVfs { + pub f_bsize: u64, + pub f_frsize: u64, + pub f_blocks: u64, + pub f_bfree: u64, + pub f_bavail: u64, + pub f_files: u64, + pub f_ffree: u64, + pub f_favail: u64, + pub f_fsid: u64, + pub f_flag: StatVfsMountFlags, + pub f_namemax: u64, +} + +/// `mode_t` +pub type RawMode = ffi::c_uint; + +/// `dev_t` +// Within the kernel the `dev_t` is 32-bit, but userspace uses a 64-bit field. +pub type Dev = u64; + +/// `__fsword_t` +#[cfg(not(any( + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "s390x" +)))] +pub type FsWord = ffi::c_long; + +/// `__fsword_t` +#[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] +pub type FsWord = i64; + +/// `__fsword_t` +#[cfg(target_arch = "s390x")] +pub type FsWord = u32; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..4ddf6df5fac9694a673f0df640d1767b62e783bc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io/errno.rs @@ -0,0 +1,552 @@ +//! The `rustix` `Errno` type. +//! +//! This type holds an OS error code, which conceptually corresponds to an +//! `errno` value. +//! +//! # Safety +//! +//! Linux uses error codes in `-4095..0`; we use rustc attributes to describe +//! this restricted range of values. +#![allow(unsafe_code)] +#![cfg_attr(not(rustc_attrs), allow(unused_unsafe))] + +use crate::backend::c; +use crate::backend::fd::RawFd; +use crate::backend::reg::{RetNumber, RetReg}; +use crate::io; +use linux_raw_sys::errno; + +/// `errno`—An error code. +/// +/// The error type for `rustix` APIs. This is similar to [`std::io::Error`], +/// but only holds an OS error code, and no extra error value. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Winsock] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/errno.html +/// [Linux]: https://man7.org/linux/man-pages/man3/errno.3.html +/// [Winsock]: https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2 +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?errno +/// [NetBSD]: https://man.netbsd.org/errno.2 +/// [OpenBSD]: https://man.openbsd.org/errno.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=errno§ion=2 +/// [illumos]: https://illumos.org/man/3C/errno +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Error-Codes.html +#[repr(transparent)] +#[doc(alias = "errno")] +#[derive(Eq, PartialEq, Hash, Copy, Clone)] +// Linux returns negated error codes, and we leave them in negated form, so +// error codes are in `-4095..0`. +#[cfg_attr(rustc_attrs, rustc_layout_scalar_valid_range_start(0xf001))] +#[cfg_attr(rustc_attrs, rustc_layout_scalar_valid_range_end(0xffff))] +pub struct Errno(u16); + +impl Errno { + /// Extract an `Errno` value from a `std::io::Error`. + /// + /// This isn't a `From` conversion because it's expected to be relatively + /// uncommon. + #[cfg(feature = "std")] + #[inline] + pub fn from_io_error(io_err: &std::io::Error) -> Option { + io_err.raw_os_error().and_then(|raw| { + // `std::io::Error` could theoretically have arbitrary OS error + // values, so check that they're in Linux's range. + if (1..4096).contains(&raw) { + Some(Self::from_errno(raw as u32)) + } else { + None + } + }) + } + + /// Extract the raw OS error number from this error. + #[inline] + pub const fn raw_os_error(self) -> i32 { + (self.0 as i16 as i32).wrapping_neg() + } + + /// Construct an `Errno` from a raw OS error number. + #[inline] + pub const fn from_raw_os_error(raw: i32) -> Self { + Self::from_errno(raw as u32) + } + + /// Convert from a C `errno` value (which is positive) to an `Errno`. + const fn from_errno(raw: u32) -> Self { + // We store error values in negated form, so that we don't have to + // negate them after every syscall. + let encoded = raw.wrapping_neg() as u16; + + // TODO: Use Range::contains, once that's `const`. + assert!(encoded >= 0xf001); + + // SAFETY: Linux syscalls return negated error values in the range + // `-4095..0`, which we just asserted. + unsafe { Self(encoded) } + } +} + +/// Check for an error from the result of a syscall which encodes a +/// `c::c_int` on success. +#[inline] +pub(in crate::backend) fn try_decode_c_int( + raw: RetReg, +) -> io::Result { + if raw.is_in_range(-4095..0) { + // SAFETY: `raw` must be in `-4095..0`, and we just checked that raw is + // in that range. + return Err(unsafe { Errno(raw.decode_error_code()) }); + } + + Ok(raw.decode_c_int()) +} + +/// Check for an error from the result of a syscall which encodes a +/// `c::c_uint` on success. +#[inline] +pub(in crate::backend) fn try_decode_c_uint( + raw: RetReg, +) -> io::Result { + if raw.is_in_range(-4095..0) { + // SAFETY: `raw` must be in `-4095..0`, and we just checked that raw is + // in that range. + return Err(unsafe { Errno(raw.decode_error_code()) }); + } + + Ok(raw.decode_c_uint()) +} + +/// Check for an error from the result of a syscall which encodes a `usize` on +/// success. +#[inline] +pub(in crate::backend) fn try_decode_usize(raw: RetReg) -> io::Result { + if raw.is_in_range(-4095..0) { + // SAFETY: `raw` must be in `-4095..0`, and we just checked that raw is + // in that range. + return Err(unsafe { Errno(raw.decode_error_code()) }); + } + + Ok(raw.decode_usize()) +} + +/// Check for an error from the result of a syscall which encodes a +/// `*mut c_void` on success. +#[inline] +pub(in crate::backend) fn try_decode_void_star( + raw: RetReg, +) -> io::Result<*mut c::c_void> { + if raw.is_in_range(-4095..0) { + // SAFETY: `raw` must be in `-4095..0`, and we just checked that raw is + // in that range. + return Err(unsafe { Errno(raw.decode_error_code()) }); + } + + Ok(raw.decode_void_star()) +} + +/// Check for an error from the result of a syscall which encodes a +/// `u64` on success. +#[cfg(target_pointer_width = "64")] +#[inline] +pub(in crate::backend) fn try_decode_u64(raw: RetReg) -> io::Result { + if raw.is_in_range(-4095..0) { + // SAFETY: `raw` must be in `-4095..0`, and we just checked that raw is + // in that range. + return Err(unsafe { Errno(raw.decode_error_code()) }); + } + + Ok(raw.decode_u64()) +} + +/// Check for an error from the result of a syscall which encodes a file +/// descriptor on success. +/// +/// # Safety +/// +/// This must only be used with syscalls which return file descriptors on +/// success. +#[inline] +pub(in crate::backend) unsafe fn try_decode_raw_fd( + raw: RetReg, +) -> io::Result { + // Instead of using `check_result` here, we just check for negative, since + // this function is only used for system calls which return file + // descriptors, and this produces smaller code. + if raw.is_negative() { + debug_assert!(raw.is_in_range(-4095..0)); + + // Tell the optimizer that we know the value is in the error range. + // This helps it avoid unnecessary integer conversions. + #[cfg(core_intrinsics)] + { + core::intrinsics::assume(raw.is_in_range(-4095..0)); + } + + return Err(Errno(raw.decode_error_code())); + } + + Ok(raw.decode_raw_fd()) +} + +/// Check for an error from the result of a syscall which encodes no value on +/// success. On success, return the unconsumed `raw` value. +/// +/// # Safety +/// +/// This must only be used with syscalls which return no value on success. +#[inline] +pub(in crate::backend) unsafe fn try_decode_void( + raw: RetReg, +) -> io::Result<()> { + // Instead of using `check_result` here, we just check for zero, since this + // function is only used for system calls which have no other return value, + // and this produces smaller code. + if raw.is_nonzero() { + debug_assert!(raw.is_in_range(-4095..0)); + + // Tell the optimizer that we know the value is in the error range. + // This helps it avoid unnecessary integer conversions. + #[cfg(core_intrinsics)] + { + core::intrinsics::assume(raw.is_in_range(-4095..0)); + } + + return Err(Errno(raw.decode_error_code())); + } + + raw.decode_void(); + + Ok(()) +} + +/// Check for an error from the result of a syscall which does not return on +/// success. On success, return the unconsumed `raw` value. +/// +/// # Safety +/// +/// This must only be used with syscalls which do not return on success. +#[cfg(any(feature = "event", feature = "runtime", feature = "system"))] +#[inline] +pub(in crate::backend) unsafe fn try_decode_error(raw: RetReg) -> io::Errno { + debug_assert!(raw.is_in_range(-4095..0)); + + // Tell the optimizer that we know the value is in the error range. + // This helps it avoid unnecessary integer conversions. + #[cfg(core_intrinsics)] + { + core::intrinsics::assume(raw.is_in_range(-4095..0)); + } + + Errno(raw.decode_error_code()) +} + +/// Return the contained `usize` value. +#[cfg(not(debug_assertions))] +#[inline] +pub(in crate::backend) fn decode_usize_infallible(raw: RetReg) -> usize { + raw.decode_usize() +} + +/// Return the contained `c_int` value. +#[cfg(not(debug_assertions))] +#[inline] +pub(in crate::backend) fn decode_c_int_infallible(raw: RetReg) -> c::c_int { + raw.decode_c_int() +} + +/// Return the contained `c_uint` value. +#[cfg(not(debug_assertions))] +#[inline] +pub(in crate::backend) fn decode_c_uint_infallible(raw: RetReg) -> c::c_uint { + raw.decode_c_uint() +} + +impl Errno { + /// `EACCES` + #[doc(alias = "ACCES")] + pub const ACCESS: Self = Self::from_errno(errno::EACCES); + /// `EADDRINUSE` + pub const ADDRINUSE: Self = Self::from_errno(errno::EADDRINUSE); + /// `EADDRNOTAVAIL` + pub const ADDRNOTAVAIL: Self = Self::from_errno(errno::EADDRNOTAVAIL); + /// `EADV` + pub const ADV: Self = Self::from_errno(errno::EADV); + /// `EAFNOSUPPORT` + pub const AFNOSUPPORT: Self = Self::from_errno(errno::EAFNOSUPPORT); + /// `EAGAIN` + pub const AGAIN: Self = Self::from_errno(errno::EAGAIN); + /// `EALREADY` + pub const ALREADY: Self = Self::from_errno(errno::EALREADY); + /// `EBADE` + pub const BADE: Self = Self::from_errno(errno::EBADE); + /// `EBADF` + pub const BADF: Self = Self::from_errno(errno::EBADF); + /// `EBADFD` + pub const BADFD: Self = Self::from_errno(errno::EBADFD); + /// `EBADMSG` + pub const BADMSG: Self = Self::from_errno(errno::EBADMSG); + /// `EBADR` + pub const BADR: Self = Self::from_errno(errno::EBADR); + /// `EBADRQC` + pub const BADRQC: Self = Self::from_errno(errno::EBADRQC); + /// `EBADSLT` + pub const BADSLT: Self = Self::from_errno(errno::EBADSLT); + /// `EBFONT` + pub const BFONT: Self = Self::from_errno(errno::EBFONT); + /// `EBUSY` + pub const BUSY: Self = Self::from_errno(errno::EBUSY); + /// `ECANCELED` + pub const CANCELED: Self = Self::from_errno(errno::ECANCELED); + /// `ECHILD` + pub const CHILD: Self = Self::from_errno(errno::ECHILD); + /// `ECHRNG` + pub const CHRNG: Self = Self::from_errno(errno::ECHRNG); + /// `ECOMM` + pub const COMM: Self = Self::from_errno(errno::ECOMM); + /// `ECONNABORTED` + pub const CONNABORTED: Self = Self::from_errno(errno::ECONNABORTED); + /// `ECONNREFUSED` + pub const CONNREFUSED: Self = Self::from_errno(errno::ECONNREFUSED); + /// `ECONNRESET` + pub const CONNRESET: Self = Self::from_errno(errno::ECONNRESET); + /// `EDEADLK` + pub const DEADLK: Self = Self::from_errno(errno::EDEADLK); + /// `EDEADLOCK` + pub const DEADLOCK: Self = Self::from_errno(errno::EDEADLOCK); + /// `EDESTADDRREQ` + pub const DESTADDRREQ: Self = Self::from_errno(errno::EDESTADDRREQ); + /// `EDOM` + pub const DOM: Self = Self::from_errno(errno::EDOM); + /// `EDOTDOT` + pub const DOTDOT: Self = Self::from_errno(errno::EDOTDOT); + /// `EDQUOT` + pub const DQUOT: Self = Self::from_errno(errno::EDQUOT); + /// `EEXIST` + pub const EXIST: Self = Self::from_errno(errno::EEXIST); + /// `EFAULT` + pub const FAULT: Self = Self::from_errno(errno::EFAULT); + /// `EFBIG` + pub const FBIG: Self = Self::from_errno(errno::EFBIG); + /// `EHOSTDOWN` + pub const HOSTDOWN: Self = Self::from_errno(errno::EHOSTDOWN); + /// `EHOSTUNREACH` + pub const HOSTUNREACH: Self = Self::from_errno(errno::EHOSTUNREACH); + /// `EHWPOISON` + pub const HWPOISON: Self = Self::from_errno(errno::EHWPOISON); + /// `EIDRM` + pub const IDRM: Self = Self::from_errno(errno::EIDRM); + /// `EILSEQ` + pub const ILSEQ: Self = Self::from_errno(errno::EILSEQ); + /// `EINPROGRESS` + pub const INPROGRESS: Self = Self::from_errno(errno::EINPROGRESS); + /// `EINTR` + /// + /// For a convenient way to retry system calls that exit with `INTR`, use + /// [`retry_on_intr`]. + /// + /// [`retry_on_intr`]: io::retry_on_intr + pub const INTR: Self = Self::from_errno(errno::EINTR); + /// `EINVAL` + pub const INVAL: Self = Self::from_errno(errno::EINVAL); + /// `EIO` + pub const IO: Self = Self::from_errno(errno::EIO); + /// `EISCONN` + pub const ISCONN: Self = Self::from_errno(errno::EISCONN); + /// `EISDIR` + pub const ISDIR: Self = Self::from_errno(errno::EISDIR); + /// `EISNAM` + pub const ISNAM: Self = Self::from_errno(errno::EISNAM); + /// `EKEYEXPIRED` + pub const KEYEXPIRED: Self = Self::from_errno(errno::EKEYEXPIRED); + /// `EKEYREJECTED` + pub const KEYREJECTED: Self = Self::from_errno(errno::EKEYREJECTED); + /// `EKEYREVOKED` + pub const KEYREVOKED: Self = Self::from_errno(errno::EKEYREVOKED); + /// `EL2HLT` + pub const L2HLT: Self = Self::from_errno(errno::EL2HLT); + /// `EL2NSYNC` + pub const L2NSYNC: Self = Self::from_errno(errno::EL2NSYNC); + /// `EL3HLT` + pub const L3HLT: Self = Self::from_errno(errno::EL3HLT); + /// `EL3RST` + pub const L3RST: Self = Self::from_errno(errno::EL3RST); + /// `ELIBACC` + pub const LIBACC: Self = Self::from_errno(errno::ELIBACC); + /// `ELIBBAD` + pub const LIBBAD: Self = Self::from_errno(errno::ELIBBAD); + /// `ELIBEXEC` + pub const LIBEXEC: Self = Self::from_errno(errno::ELIBEXEC); + /// `ELIBMAX` + pub const LIBMAX: Self = Self::from_errno(errno::ELIBMAX); + /// `ELIBSCN` + pub const LIBSCN: Self = Self::from_errno(errno::ELIBSCN); + /// `ELNRNG` + pub const LNRNG: Self = Self::from_errno(errno::ELNRNG); + /// `ELOOP` + pub const LOOP: Self = Self::from_errno(errno::ELOOP); + /// `EMEDIUMTYPE` + pub const MEDIUMTYPE: Self = Self::from_errno(errno::EMEDIUMTYPE); + /// `EMFILE` + pub const MFILE: Self = Self::from_errno(errno::EMFILE); + /// `EMLINK` + pub const MLINK: Self = Self::from_errno(errno::EMLINK); + /// `EMSGSIZE` + pub const MSGSIZE: Self = Self::from_errno(errno::EMSGSIZE); + /// `EMULTIHOP` + pub const MULTIHOP: Self = Self::from_errno(errno::EMULTIHOP); + /// `ENAMETOOLONG` + pub const NAMETOOLONG: Self = Self::from_errno(errno::ENAMETOOLONG); + /// `ENAVAIL` + pub const NAVAIL: Self = Self::from_errno(errno::ENAVAIL); + /// `ENETDOWN` + pub const NETDOWN: Self = Self::from_errno(errno::ENETDOWN); + /// `ENETRESET` + pub const NETRESET: Self = Self::from_errno(errno::ENETRESET); + /// `ENETUNREACH` + pub const NETUNREACH: Self = Self::from_errno(errno::ENETUNREACH); + /// `ENFILE` + pub const NFILE: Self = Self::from_errno(errno::ENFILE); + /// `ENOANO` + pub const NOANO: Self = Self::from_errno(errno::ENOANO); + /// `ENOBUFS` + pub const NOBUFS: Self = Self::from_errno(errno::ENOBUFS); + /// `ENOCSI` + pub const NOCSI: Self = Self::from_errno(errno::ENOCSI); + /// `ENODATA` + #[doc(alias = "NOATTR")] + pub const NODATA: Self = Self::from_errno(errno::ENODATA); + /// `ENODEV` + pub const NODEV: Self = Self::from_errno(errno::ENODEV); + /// `ENOENT` + pub const NOENT: Self = Self::from_errno(errno::ENOENT); + /// `ENOEXEC` + pub const NOEXEC: Self = Self::from_errno(errno::ENOEXEC); + /// `ENOKEY` + pub const NOKEY: Self = Self::from_errno(errno::ENOKEY); + /// `ENOLCK` + pub const NOLCK: Self = Self::from_errno(errno::ENOLCK); + /// `ENOLINK` + pub const NOLINK: Self = Self::from_errno(errno::ENOLINK); + /// `ENOMEDIUM` + pub const NOMEDIUM: Self = Self::from_errno(errno::ENOMEDIUM); + /// `ENOMEM` + pub const NOMEM: Self = Self::from_errno(errno::ENOMEM); + /// `ENOMSG` + pub const NOMSG: Self = Self::from_errno(errno::ENOMSG); + /// `ENONET` + pub const NONET: Self = Self::from_errno(errno::ENONET); + /// `ENOPKG` + pub const NOPKG: Self = Self::from_errno(errno::ENOPKG); + /// `ENOPROTOOPT` + pub const NOPROTOOPT: Self = Self::from_errno(errno::ENOPROTOOPT); + /// `ENOSPC` + pub const NOSPC: Self = Self::from_errno(errno::ENOSPC); + /// `ENOSR` + pub const NOSR: Self = Self::from_errno(errno::ENOSR); + /// `ENOSTR` + pub const NOSTR: Self = Self::from_errno(errno::ENOSTR); + /// `ENOSYS` + pub const NOSYS: Self = Self::from_errno(errno::ENOSYS); + /// `ENOTBLK` + pub const NOTBLK: Self = Self::from_errno(errno::ENOTBLK); + /// `ENOTCONN` + pub const NOTCONN: Self = Self::from_errno(errno::ENOTCONN); + /// `ENOTDIR` + pub const NOTDIR: Self = Self::from_errno(errno::ENOTDIR); + /// `ENOTEMPTY` + pub const NOTEMPTY: Self = Self::from_errno(errno::ENOTEMPTY); + /// `ENOTNAM` + pub const NOTNAM: Self = Self::from_errno(errno::ENOTNAM); + /// `ENOTRECOVERABLE` + pub const NOTRECOVERABLE: Self = Self::from_errno(errno::ENOTRECOVERABLE); + /// `ENOTSOCK` + pub const NOTSOCK: Self = Self::from_errno(errno::ENOTSOCK); + /// `ENOTSUP` + // On Linux, `ENOTSUP` has the same value as `EOPNOTSUPP`. + pub const NOTSUP: Self = Self::from_errno(errno::EOPNOTSUPP); + /// `ENOTTY` + pub const NOTTY: Self = Self::from_errno(errno::ENOTTY); + /// `ENOTUNIQ` + pub const NOTUNIQ: Self = Self::from_errno(errno::ENOTUNIQ); + /// `ENXIO` + pub const NXIO: Self = Self::from_errno(errno::ENXIO); + /// `EOPNOTSUPP` + pub const OPNOTSUPP: Self = Self::from_errno(errno::EOPNOTSUPP); + /// `EOVERFLOW` + pub const OVERFLOW: Self = Self::from_errno(errno::EOVERFLOW); + /// `EOWNERDEAD` + pub const OWNERDEAD: Self = Self::from_errno(errno::EOWNERDEAD); + /// `EPERM` + pub const PERM: Self = Self::from_errno(errno::EPERM); + /// `EPFNOSUPPORT` + pub const PFNOSUPPORT: Self = Self::from_errno(errno::EPFNOSUPPORT); + /// `EPIPE` + pub const PIPE: Self = Self::from_errno(errno::EPIPE); + /// `EPROTO` + pub const PROTO: Self = Self::from_errno(errno::EPROTO); + /// `EPROTONOSUPPORT` + pub const PROTONOSUPPORT: Self = Self::from_errno(errno::EPROTONOSUPPORT); + /// `EPROTOTYPE` + pub const PROTOTYPE: Self = Self::from_errno(errno::EPROTOTYPE); + /// `ERANGE` + pub const RANGE: Self = Self::from_errno(errno::ERANGE); + /// `EREMCHG` + pub const REMCHG: Self = Self::from_errno(errno::EREMCHG); + /// `EREMOTE` + pub const REMOTE: Self = Self::from_errno(errno::EREMOTE); + /// `EREMOTEIO` + pub const REMOTEIO: Self = Self::from_errno(errno::EREMOTEIO); + /// `ERESTART` + pub const RESTART: Self = Self::from_errno(errno::ERESTART); + /// `ERFKILL` + pub const RFKILL: Self = Self::from_errno(errno::ERFKILL); + /// `EROFS` + pub const ROFS: Self = Self::from_errno(errno::EROFS); + /// `ESHUTDOWN` + pub const SHUTDOWN: Self = Self::from_errno(errno::ESHUTDOWN); + /// `ESOCKTNOSUPPORT` + pub const SOCKTNOSUPPORT: Self = Self::from_errno(errno::ESOCKTNOSUPPORT); + /// `ESPIPE` + pub const SPIPE: Self = Self::from_errno(errno::ESPIPE); + /// `ESRCH` + pub const SRCH: Self = Self::from_errno(errno::ESRCH); + /// `ESRMNT` + pub const SRMNT: Self = Self::from_errno(errno::ESRMNT); + /// `ESTALE` + pub const STALE: Self = Self::from_errno(errno::ESTALE); + /// `ESTRPIPE` + pub const STRPIPE: Self = Self::from_errno(errno::ESTRPIPE); + /// `ETIME` + pub const TIME: Self = Self::from_errno(errno::ETIME); + /// `ETIMEDOUT` + pub const TIMEDOUT: Self = Self::from_errno(errno::ETIMEDOUT); + /// `E2BIG` + #[doc(alias = "2BIG")] + pub const TOOBIG: Self = Self::from_errno(errno::E2BIG); + /// `ETOOMANYREFS` + pub const TOOMANYREFS: Self = Self::from_errno(errno::ETOOMANYREFS); + /// `ETXTBSY` + pub const TXTBSY: Self = Self::from_errno(errno::ETXTBSY); + /// `EUCLEAN` + pub const UCLEAN: Self = Self::from_errno(errno::EUCLEAN); + /// `EUNATCH` + pub const UNATCH: Self = Self::from_errno(errno::EUNATCH); + /// `EUSERS` + pub const USERS: Self = Self::from_errno(errno::EUSERS); + /// `EWOULDBLOCK` + pub const WOULDBLOCK: Self = Self::from_errno(errno::EWOULDBLOCK); + /// `EXDEV` + pub const XDEV: Self = Self::from_errno(errno::EXDEV); + /// `EXFULL` + pub const XFULL: Self = Self::from_errno(errno::EXFULL); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..9477b9b9524a44b270d3a727740c9b89de6dc095 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io/mod.rs @@ -0,0 +1,3 @@ +pub(crate) mod errno; +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..527f5fe9499d3f5445d7f0010abbe1e6048efbab --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io/syscalls.rs @@ -0,0 +1,376 @@ +//! linux_raw syscalls supporting `rustix::io`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code)] +#![allow(clippy::undocumented_unsafe_blocks)] + +#[cfg(target_pointer_width = "64")] +use crate::backend::conv::loff_t_from_u64; +#[cfg(all( + target_pointer_width = "32", + any( + target_arch = "arm", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "powerpc" + ), +))] +use crate::backend::conv::zero; +use crate::backend::conv::{ + c_uint, pass_usize, raw_fd, ret, ret_c_int, ret_c_uint, ret_discarded_fd, ret_owned_fd, + ret_usize, slice, +}; +#[cfg(target_pointer_width = "32")] +use crate::backend::conv::{hi, lo}; +use crate::backend::{c, MAX_IOV}; +use crate::fd::{AsFd as _, BorrowedFd, OwnedFd, RawFd}; +use crate::io::{self, DupFlags, FdFlags, IoSlice, IoSliceMut, ReadWriteFlags}; +use crate::ioctl::{IoctlOutput, Opcode}; +use core::cmp; +use linux_raw_sys::general::{F_DUPFD_CLOEXEC, F_GETFD, F_SETFD}; + +#[inline] +pub(crate) unsafe fn read(fd: BorrowedFd<'_>, buf: (*mut u8, usize)) -> io::Result { + let r = ret_usize(syscall!(__NR_read, fd, buf.0, pass_usize(buf.1))); + + #[cfg(sanitize_memory)] + if let Ok(len) = r { + crate::msan::unpoison(buf.0, len); + } + + r +} + +#[inline] +pub(crate) unsafe fn pread( + fd: BorrowedFd<'_>, + buf: (*mut u8, usize), + pos: u64, +) -> io::Result { + // + #[cfg(all( + target_pointer_width = "32", + any( + target_arch = "arm", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "powerpc" + ), + ))] + let r = ret_usize(syscall!( + __NR_pread64, + fd, + buf.0, + pass_usize(buf.1), + zero(), + hi(pos), + lo(pos) + )); + + #[cfg(all( + target_pointer_width = "32", + not(any( + target_arch = "arm", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "powerpc" + )), + ))] + let r = ret_usize(syscall!( + __NR_pread64, + fd, + buf.0, + pass_usize(buf.1), + hi(pos), + lo(pos) + )); + + #[cfg(target_pointer_width = "64")] + let r = ret_usize(syscall!( + __NR_pread64, + fd, + buf.0, + pass_usize(buf.1), + loff_t_from_u64(pos) + )); + + #[cfg(sanitize_memory)] + if let Ok(len) = r { + crate::msan::unpoison(buf.0, len); + } + + r +} + +#[inline] +pub(crate) fn readv(fd: BorrowedFd<'_>, bufs: &mut [IoSliceMut<'_>]) -> io::Result { + let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); + + unsafe { ret_usize(syscall!(__NR_readv, fd, bufs_addr, bufs_len)) } +} + +#[inline] +pub(crate) fn preadv( + fd: BorrowedFd<'_>, + bufs: &mut [IoSliceMut<'_>], + pos: u64, +) -> io::Result { + let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); + + // Unlike the plain "p" functions, the "pv" functions pass their offset in + // an endian-independent way, and always in two registers. + unsafe { + ret_usize(syscall!( + __NR_preadv, + fd, + bufs_addr, + bufs_len, + pass_usize(pos as usize), + pass_usize((pos >> 32) as usize) + )) + } +} + +#[inline] +pub(crate) fn preadv2( + fd: BorrowedFd<'_>, + bufs: &mut [IoSliceMut<'_>], + pos: u64, + flags: ReadWriteFlags, +) -> io::Result { + let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); + + // Unlike the plain "p" functions, the "pv" functions pass their offset in + // an endian-independent way, and always in two registers. + unsafe { + ret_usize(syscall!( + __NR_preadv2, + fd, + bufs_addr, + bufs_len, + pass_usize(pos as usize), + pass_usize((pos >> 32) as usize), + flags + )) + } +} + +#[inline] +pub(crate) fn write(fd: BorrowedFd<'_>, buf: &[u8]) -> io::Result { + let (buf_addr, buf_len) = slice(buf); + + unsafe { ret_usize(syscall_readonly!(__NR_write, fd, buf_addr, buf_len)) } +} + +#[inline] +pub(crate) fn pwrite(fd: BorrowedFd<'_>, buf: &[u8], pos: u64) -> io::Result { + let (buf_addr, buf_len) = slice(buf); + + // + #[cfg(all( + target_pointer_width = "32", + any( + target_arch = "arm", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "powerpc" + ), + ))] + unsafe { + ret_usize(syscall_readonly!( + __NR_pwrite64, + fd, + buf_addr, + buf_len, + zero(), + hi(pos), + lo(pos) + )) + } + #[cfg(all( + target_pointer_width = "32", + not(any( + target_arch = "arm", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "powerpc" + )), + ))] + unsafe { + ret_usize(syscall_readonly!( + __NR_pwrite64, + fd, + buf_addr, + buf_len, + hi(pos), + lo(pos) + )) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret_usize(syscall_readonly!( + __NR_pwrite64, + fd, + buf_addr, + buf_len, + loff_t_from_u64(pos) + )) + } +} + +#[inline] +pub(crate) fn writev(fd: BorrowedFd<'_>, bufs: &[IoSlice<'_>]) -> io::Result { + let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); + + unsafe { ret_usize(syscall_readonly!(__NR_writev, fd, bufs_addr, bufs_len)) } +} + +#[inline] +pub(crate) fn pwritev(fd: BorrowedFd<'_>, bufs: &[IoSlice<'_>], pos: u64) -> io::Result { + let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); + + // Unlike the plain "p" functions, the "pv" functions pass their offset in + // an endian-independent way, and always in two registers. + unsafe { + ret_usize(syscall_readonly!( + __NR_pwritev, + fd, + bufs_addr, + bufs_len, + pass_usize(pos as usize), + pass_usize((pos >> 32) as usize) + )) + } +} + +#[inline] +pub(crate) fn pwritev2( + fd: BorrowedFd<'_>, + bufs: &[IoSlice<'_>], + pos: u64, + flags: ReadWriteFlags, +) -> io::Result { + let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); + + // Unlike the plain "p" functions, the "pv" functions pass their offset in + // an endian-independent way, and always in two registers. + unsafe { + ret_usize(syscall_readonly!( + __NR_pwritev2, + fd, + bufs_addr, + bufs_len, + pass_usize(pos as usize), + pass_usize((pos >> 32) as usize), + flags + )) + } +} + +#[inline] +pub(crate) unsafe fn close(fd: RawFd) { + // See the documentation for [`io::close`] for why errors are ignored. + syscall_readonly!(__NR_close, raw_fd(fd)).decode_void(); +} + +#[cfg(feature = "try_close")] +#[inline] +pub(crate) unsafe fn try_close(fd: RawFd) -> io::Result<()> { + ret(syscall_readonly!(__NR_close, raw_fd(fd))) +} + +#[inline] +pub(crate) unsafe fn ioctl( + fd: BorrowedFd<'_>, + request: Opcode, + arg: *mut c::c_void, +) -> io::Result { + ret_c_int(syscall!(__NR_ioctl, fd, c_uint(request), arg)) +} + +#[inline] +pub(crate) unsafe fn ioctl_readonly( + fd: BorrowedFd<'_>, + request: Opcode, + arg: *mut c::c_void, +) -> io::Result { + ret_c_int(syscall_readonly!(__NR_ioctl, fd, c_uint(request), arg)) +} + +#[inline] +pub(crate) fn dup(fd: BorrowedFd<'_>) -> io::Result { + unsafe { ret_owned_fd(syscall_readonly!(__NR_dup, fd)) } +} + +#[allow(clippy::needless_pass_by_ref_mut)] +#[inline] +pub(crate) fn dup2(fd: BorrowedFd<'_>, new: &mut OwnedFd) -> io::Result<()> { + #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] + { + // We don't need to worry about the difference between `dup2` and + // `dup3` when the file descriptors are equal because we have an + // `&mut OwnedFd` which means `fd` doesn't alias it. + dup3(fd, new, DupFlags::empty()) + } + + #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))] + unsafe { + ret_discarded_fd(syscall_readonly!(__NR_dup2, fd, new.as_fd())) + } +} + +#[allow(clippy::needless_pass_by_ref_mut)] +#[inline] +pub(crate) fn dup3(fd: BorrowedFd<'_>, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> { + unsafe { ret_discarded_fd(syscall_readonly!(__NR_dup3, fd, new.as_fd(), flags)) } +} + +#[inline] +pub(crate) fn fcntl_getfd(fd: BorrowedFd<'_>) -> io::Result { + #[cfg(target_pointer_width = "32")] + unsafe { + ret_c_uint(syscall_readonly!(__NR_fcntl64, fd, c_uint(F_GETFD))) + .map(FdFlags::from_bits_retain) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret_c_uint(syscall_readonly!(__NR_fcntl, fd, c_uint(F_GETFD))) + .map(FdFlags::from_bits_retain) + } +} + +#[inline] +pub(crate) fn fcntl_setfd(fd: BorrowedFd<'_>, flags: FdFlags) -> io::Result<()> { + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall_readonly!(__NR_fcntl64, fd, c_uint(F_SETFD), flags)) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall_readonly!(__NR_fcntl, fd, c_uint(F_SETFD), flags)) + } +} + +#[inline] +pub(crate) fn fcntl_dupfd_cloexec(fd: BorrowedFd<'_>, min: RawFd) -> io::Result { + #[cfg(target_pointer_width = "32")] + unsafe { + ret_owned_fd(syscall_readonly!( + __NR_fcntl64, + fd, + c_uint(F_DUPFD_CLOEXEC), + raw_fd(min) + )) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret_owned_fd(syscall_readonly!( + __NR_fcntl, + fd, + c_uint(F_DUPFD_CLOEXEC), + raw_fd(min) + )) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..533f97325902939273b7db536a6cbd0df8744f5c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io/types.rs @@ -0,0 +1,57 @@ +use crate::ffi; +use bitflags::bitflags; + +bitflags! { + /// `FD_*` constants for use with [`fcntl_getfd`] and [`fcntl_setfd`]. + /// + /// [`fcntl_getfd`]: crate::io::fcntl_getfd + /// [`fcntl_setfd`]: crate::io::fcntl_setfd + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct FdFlags: ffi::c_uint { + /// `FD_CLOEXEC` + const CLOEXEC = linux_raw_sys::general::FD_CLOEXEC; + + /// + const _ = !0; + } +} + +bitflags! { + /// `RWF_*` constants for use with [`preadv2`] and [`pwritev2`]. + /// + /// [`preadv2`]: crate::io::preadv2 + /// [`pwritev2`]: crate::io::pwritev + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct ReadWriteFlags: ffi::c_uint { + /// `RWF_DSYNC` (since Linux 4.7) + const DSYNC = linux_raw_sys::general::RWF_DSYNC; + /// `RWF_HIPRI` (since Linux 4.6) + const HIPRI = linux_raw_sys::general::RWF_HIPRI; + /// `RWF_SYNC` (since Linux 4.7) + const SYNC = linux_raw_sys::general::RWF_SYNC; + /// `RWF_NOWAIT` (since Linux 4.14) + const NOWAIT = linux_raw_sys::general::RWF_NOWAIT; + /// `RWF_APPEND` (since Linux 4.16) + const APPEND = linux_raw_sys::general::RWF_APPEND; + + /// + const _ = !0; + } +} + +bitflags! { + /// `O_*` constants for use with [`dup2`]. + /// + /// [`dup2`]: crate::io::dup2 + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct DupFlags: ffi::c_uint { + /// `O_CLOEXEC` + const CLOEXEC = linux_raw_sys::general::O_CLOEXEC; + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io_uring/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io_uring/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..ef944f04d2627e93c3e742e586d754d72c7a2f39 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io_uring/mod.rs @@ -0,0 +1 @@ +pub(crate) mod syscalls; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io_uring/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io_uring/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..36edd4c0c0f6a84f86003928ad33d5cad4452568 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/io_uring/syscalls.rs @@ -0,0 +1,83 @@ +//! linux_raw syscalls supporting `rustix::io_uring`. +//! +//! # Safety +//! +//! See the `rustix::backend::syscalls` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use crate::backend::conv::{by_mut, c_uint, pass_usize, ret_c_uint, ret_owned_fd}; +use crate::fd::{BorrowedFd, OwnedFd}; +use crate::io; +use crate::io_uring::{io_uring_params, IoringEnterFlags, IoringRegisterFlags, IoringRegisterOp}; +use core::ffi::c_void; + +#[inline] +pub(crate) fn io_uring_setup(entries: u32, params: &mut io_uring_params) -> io::Result { + unsafe { + ret_owned_fd(syscall!( + __NR_io_uring_setup, + c_uint(entries), + by_mut(params) + )) + } +} + +#[inline] +pub(crate) unsafe fn io_uring_register( + fd: BorrowedFd<'_>, + opcode: IoringRegisterOp, + arg: *const c_void, + nr_args: u32, +) -> io::Result { + // This is not `syscall_readonly` because when `opcode` is + // `IoringRegisterOp::RegisterRingFds`, `arg`'s pointee is mutated. + ret_c_uint(syscall!( + __NR_io_uring_register, + fd, + c_uint(opcode as u32), + arg, + c_uint(nr_args) + )) +} + +#[inline] +pub(crate) unsafe fn io_uring_register_with( + fd: BorrowedFd<'_>, + opcode: IoringRegisterOp, + flags: IoringRegisterFlags, + arg: *const c_void, + nr_args: u32, +) -> io::Result { + // This is not `syscall_readonly` because when `opcode` is + // `IoringRegisterOp::RegisterRingFds`, `arg`'s pointee is mutated. + ret_c_uint(syscall!( + __NR_io_uring_register, + fd, + c_uint((opcode as u32) | bitflags_bits!(flags)), + arg, + c_uint(nr_args) + )) +} + +#[inline] +pub(crate) unsafe fn io_uring_enter( + fd: BorrowedFd<'_>, + to_submit: u32, + min_complete: u32, + flags: IoringEnterFlags, + arg: *const c_void, + size: usize, +) -> io::Result { + // This is not `_readonly` because `io_uring_enter` waits for I/O to + // complete, and I/O could involve writing to memory buffers, which + // could be a side effect depended on by the caller. + ret_c_uint(syscall!( + __NR_io_uring_enter, + fd, + c_uint(to_submit), + c_uint(min_complete), + flags, + arg, + pass_usize(size) + )) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mm/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mm/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mm/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mm/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mm/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..84881906f382af7ff6d2160c68f9b000f7d27d25 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mm/syscalls.rs @@ -0,0 +1,239 @@ +//! linux_raw syscalls supporting `rustix::io`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code)] +#![allow(clippy::undocumented_unsafe_blocks)] + +use super::types::{ + Advice, MapFlags, MlockAllFlags, MlockFlags, MprotectFlags, MremapFlags, MsyncFlags, ProtFlags, + UserfaultfdFlags, +}; +use crate::backend::c; +#[cfg(target_pointer_width = "64")] +use crate::backend::conv::loff_t_from_u64; +use crate::backend::conv::{c_uint, no_fd, pass_usize, ret, ret_owned_fd, ret_void_star}; +use crate::fd::{BorrowedFd, OwnedFd}; +use crate::ffi::c_void; +use crate::io; +use linux_raw_sys::general::{MAP_ANONYMOUS, MREMAP_FIXED}; + +#[inline] +pub(crate) fn madvise(addr: *mut c_void, len: usize, advice: Advice) -> io::Result<()> { + unsafe { + ret(syscall!( + __NR_madvise, + addr, + pass_usize(len), + c_uint(advice as c::c_uint) + )) + } +} + +#[inline] +pub(crate) unsafe fn msync(addr: *mut c_void, len: usize, flags: MsyncFlags) -> io::Result<()> { + ret(syscall!(__NR_msync, addr, pass_usize(len), flags)) +} + +/// # Safety +/// +/// `mmap` is primarily unsafe due to the `addr` parameter, as anything working +/// with memory pointed to by raw pointers is unsafe. +#[inline] +pub(crate) unsafe fn mmap( + addr: *mut c_void, + length: usize, + prot: ProtFlags, + flags: MapFlags, + fd: BorrowedFd<'_>, + offset: u64, +) -> io::Result<*mut c_void> { + #[cfg(target_pointer_width = "32")] + { + ret_void_star(syscall!( + __NR_mmap2, + addr, + pass_usize(length), + prot, + flags, + fd, + (offset / 4096) + .try_into() + .map(pass_usize) + .map_err(|_| io::Errno::INVAL)? + )) + } + #[cfg(target_pointer_width = "64")] + { + ret_void_star(syscall!( + __NR_mmap, + addr, + pass_usize(length), + prot, + flags, + fd, + loff_t_from_u64(offset) + )) + } +} + +/// # Safety +/// +/// `mmap` is primarily unsafe due to the `addr` parameter, as anything working +/// with memory pointed to by raw pointers is unsafe. +#[inline] +pub(crate) unsafe fn mmap_anonymous( + addr: *mut c_void, + length: usize, + prot: ProtFlags, + flags: MapFlags, +) -> io::Result<*mut c_void> { + #[cfg(target_pointer_width = "32")] + { + ret_void_star(syscall!( + __NR_mmap2, + addr, + pass_usize(length), + prot, + c_uint(flags.bits() | MAP_ANONYMOUS), + no_fd(), + pass_usize(0) + )) + } + #[cfg(target_pointer_width = "64")] + { + ret_void_star(syscall!( + __NR_mmap, + addr, + pass_usize(length), + prot, + c_uint(flags.bits() | MAP_ANONYMOUS), + no_fd(), + loff_t_from_u64(0) + )) + } +} + +#[inline] +pub(crate) unsafe fn mprotect( + ptr: *mut c_void, + len: usize, + flags: MprotectFlags, +) -> io::Result<()> { + ret(syscall!(__NR_mprotect, ptr, pass_usize(len), flags)) +} + +/// # Safety +/// +/// `munmap` is primarily unsafe due to the `addr` parameter, as anything +/// working with memory pointed to by raw pointers is unsafe. +#[inline] +pub(crate) unsafe fn munmap(addr: *mut c_void, length: usize) -> io::Result<()> { + ret(syscall!(__NR_munmap, addr, pass_usize(length))) +} + +/// # Safety +/// +/// `mremap` is primarily unsafe due to the `old_address` parameter, as +/// anything working with memory pointed to by raw pointers is unsafe. +#[inline] +pub(crate) unsafe fn mremap( + old_address: *mut c_void, + old_size: usize, + new_size: usize, + flags: MremapFlags, +) -> io::Result<*mut c_void> { + ret_void_star(syscall!( + __NR_mremap, + old_address, + pass_usize(old_size), + pass_usize(new_size), + flags + )) +} + +/// # Safety +/// +/// `mremap_fixed` is primarily unsafe due to the `old_address` and +/// `new_address` parameters, as anything working with memory pointed to by raw +/// pointers is unsafe. +#[inline] +pub(crate) unsafe fn mremap_fixed( + old_address: *mut c_void, + old_size: usize, + new_size: usize, + flags: MremapFlags, + new_address: *mut c_void, +) -> io::Result<*mut c_void> { + ret_void_star(syscall!( + __NR_mremap, + old_address, + pass_usize(old_size), + pass_usize(new_size), + c_uint(flags.bits() | MREMAP_FIXED), + new_address + )) +} + +/// # Safety +/// +/// `mlock` operates on raw pointers and may round out to the nearest page +/// boundaries. +#[inline] +pub(crate) unsafe fn mlock(addr: *mut c_void, length: usize) -> io::Result<()> { + ret(syscall!(__NR_mlock, addr, pass_usize(length))) +} + +/// # Safety +/// +/// `mlock_with` operates on raw pointers and may round out to the nearest page +/// boundaries. +#[inline] +pub(crate) unsafe fn mlock_with( + addr: *mut c_void, + length: usize, + flags: MlockFlags, +) -> io::Result<()> { + ret(syscall!(__NR_mlock2, addr, pass_usize(length), flags)) +} + +/// # Safety +/// +/// `munlock` operates on raw pointers and may round out to the nearest page +/// boundaries. +#[inline] +pub(crate) unsafe fn munlock(addr: *mut c_void, length: usize) -> io::Result<()> { + ret(syscall!(__NR_munlock, addr, pass_usize(length))) +} + +#[inline] +pub(crate) unsafe fn userfaultfd(flags: UserfaultfdFlags) -> io::Result { + ret_owned_fd(syscall_readonly!(__NR_userfaultfd, flags)) +} + +/// Locks all pages mapped into the address space of the calling process. +/// +/// This includes the pages of the code, data, and stack segment, as well as +/// shared libraries, user space kernel data, shared memory, and memory-mapped +/// files. All mapped pages are guaranteed to be resident in RAM when the call +/// returns successfully; the pages are guaranteed to stay in RAM until later +/// unlocked. +#[inline] +pub(crate) fn mlockall(flags: MlockAllFlags) -> io::Result<()> { + // When `mlockall` is used with `MCL_ONFAULT | MCL_FUTURE`, the ordering + // of `mlockall` with respect to arbitrary loads may be significant, + // because if a load happens and evokes a fault before the `mlockall`, + // the memory doesn't get locked, but if the load and therefore + // the fault happens after, then the memory does get locked. + // + // So to be conservative in this regard, we use `syscall` instead of + // `syscall_readonly` + unsafe { ret(syscall!(__NR_mlockall, flags)) } +} + +/// Unlocks all pages mapped into the address space of the calling process. +#[inline] +pub(crate) fn munlockall() -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_munlockall)) } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mm/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mm/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..c6806fc4139fcf466fec3c844d0f142f8e54ae01 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mm/types.rs @@ -0,0 +1,297 @@ +use crate::ffi; +use bitflags::bitflags; + +bitflags! { + /// `PROT_*` flags for use with [`mmap`]. + /// + /// For `PROT_NONE`, use `ProtFlags::empty()`. + /// + /// [`mmap`]: crate::mm::mmap + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct ProtFlags: u32 { + /// `PROT_READ` + const READ = linux_raw_sys::general::PROT_READ; + /// `PROT_WRITE` + const WRITE = linux_raw_sys::general::PROT_WRITE; + /// `PROT_EXEC` + const EXEC = linux_raw_sys::general::PROT_EXEC; + + /// + const _ = !0; + } +} + +bitflags! { + /// `PROT_*` flags for use with [`mprotect`]. + /// + /// For `PROT_NONE`, use `MprotectFlags::empty()`. + /// + /// [`mprotect`]: crate::mm::mprotect + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MprotectFlags: u32 { + /// `PROT_READ` + const READ = linux_raw_sys::general::PROT_READ; + /// `PROT_WRITE` + const WRITE = linux_raw_sys::general::PROT_WRITE; + /// `PROT_EXEC` + const EXEC = linux_raw_sys::general::PROT_EXEC; + /// `PROT_GROWSUP` + const GROWSUP = linux_raw_sys::general::PROT_GROWSUP; + /// `PROT_GROWSDOWN` + const GROWSDOWN = linux_raw_sys::general::PROT_GROWSDOWN; + /// `PROT_SEM` + const SEM = linux_raw_sys::general::PROT_SEM; + /// `PROT_BTI` + #[cfg(target_arch = "aarch64")] + const BTI = linux_raw_sys::general::PROT_BTI; + /// `PROT_MTE` + #[cfg(target_arch = "aarch64")] + const MTE = linux_raw_sys::general::PROT_MTE; + /// `PROT_SAO` + #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] + const SAO = linux_raw_sys::general::PROT_SAO; + /// `PROT_ADI` + #[cfg(any(target_arch = "sparc", target_arch = "sparc64"))] + const ADI = linux_raw_sys::general::PROT_ADI; + + /// + const _ = !0; + } +} + +bitflags! { + /// `MAP_*` flags for use with [`mmap`]. + /// + /// For `MAP_ANONYMOUS` (aka `MAP_ANON`), see [`mmap_anonymous`]. + /// + /// [`mmap`]: crate::mm::mmap + /// [`mmap_anonymous`]: crates::mm::mmap_anonymous + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MapFlags: u32 { + /// `MAP_SHARED` + const SHARED = linux_raw_sys::general::MAP_SHARED; + /// `MAP_SHARED_VALIDATE` (since Linux 4.15) + const SHARED_VALIDATE = linux_raw_sys::general::MAP_SHARED_VALIDATE; + /// `MAP_PRIVATE` + const PRIVATE = linux_raw_sys::general::MAP_PRIVATE; + /// `MAP_DENYWRITE` + const DENYWRITE = linux_raw_sys::general::MAP_DENYWRITE; + /// `MAP_FIXED` + const FIXED = linux_raw_sys::general::MAP_FIXED; + /// `MAP_FIXED_NOREPLACE` (since Linux 4.17) + const FIXED_NOREPLACE = linux_raw_sys::general::MAP_FIXED_NOREPLACE; + /// `MAP_GROWSDOWN` + const GROWSDOWN = linux_raw_sys::general::MAP_GROWSDOWN; + /// `MAP_HUGETLB` + const HUGETLB = linux_raw_sys::general::MAP_HUGETLB; + /// `MAP_HUGE_2MB` (since Linux 3.8) + const HUGE_2MB = linux_raw_sys::general::MAP_HUGE_2MB; + /// `MAP_HUGE_1GB` (since Linux 3.8) + const HUGE_1GB = linux_raw_sys::general::MAP_HUGE_1GB; + /// `MAP_LOCKED` + const LOCKED = linux_raw_sys::general::MAP_LOCKED; + /// `MAP_NORESERVE` + const NORESERVE = linux_raw_sys::general::MAP_NORESERVE; + /// `MAP_POPULATE` + const POPULATE = linux_raw_sys::general::MAP_POPULATE; + /// `MAP_STACK` + const STACK = linux_raw_sys::general::MAP_STACK; + /// `MAP_SYNC` (since Linux 4.15) + #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6", target_arch = "mips64", target_arch = "mips64r6")))] + const SYNC = linux_raw_sys::general::MAP_SYNC; + /// `MAP_UNINITIALIZED` + #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6", target_arch = "mips64", target_arch = "mips64r6")))] + const UNINITIALIZED = linux_raw_sys::general::MAP_UNINITIALIZED; + /// `MAP_DROPPABLE` + const DROPPABLE = linux_raw_sys::general::MAP_DROPPABLE; + + /// + const _ = !0; + } +} + +bitflags! { + /// `MREMAP_*` flags for use with [`mremap`]. + /// + /// For `MREMAP_FIXED`, see [`mremap_fixed`]. + /// + /// [`mremap`]: crate::mm::mremap + /// [`mremap_fixed`]: crate::mm::mremap_fixed + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MremapFlags: u32 { + /// `MREMAP_MAYMOVE` + const MAYMOVE = linux_raw_sys::general::MREMAP_MAYMOVE; + /// `MREMAP_DONTUNMAP` (since Linux 5.7) + const DONTUNMAP = linux_raw_sys::general::MREMAP_DONTUNMAP; + + /// + const _ = !0; + } +} + +bitflags! { + /// `MS_*` flags for use with [`msync`]. + /// + /// [`msync`]: crate::mm::msync + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MsyncFlags: u32 { + /// `MS_SYNC`—Requests an update and waits for it to complete. + const SYNC = linux_raw_sys::general::MS_SYNC; + /// `MS_ASYNC`—Specifies that an update be scheduled, but the call + /// returns immediately. + const ASYNC = linux_raw_sys::general::MS_ASYNC; + /// `MS_INVALIDATE`—Asks to invalidate other mappings of the same + /// file (so that they can be updated with the fresh values just + /// written). + const INVALIDATE = linux_raw_sys::general::MS_INVALIDATE; + + /// + const _ = !0; + } +} + +bitflags! { + /// `MLOCK_*` flags for use with [`mlock_with`]. + /// + /// [`mlock_with`]: crate::mm::mlock_with + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MlockFlags: u32 { + /// `MLOCK_ONFAULT` + const ONFAULT = linux_raw_sys::general::MLOCK_ONFAULT; + + /// + const _ = !0; + } +} + +/// `POSIX_MADV_*` constants for use with [`madvise`]. +/// +/// [`madvise`]: crate::mm::madvise +#[derive(Debug, Copy, Clone, Eq, PartialEq)] +#[repr(u32)] +#[non_exhaustive] +pub enum Advice { + /// `POSIX_MADV_NORMAL` + Normal = linux_raw_sys::general::MADV_NORMAL, + + /// `POSIX_MADV_SEQUENTIAL` + Sequential = linux_raw_sys::general::MADV_SEQUENTIAL, + + /// `POSIX_MADV_RANDOM` + Random = linux_raw_sys::general::MADV_RANDOM, + + /// `POSIX_MADV_WILLNEED` + WillNeed = linux_raw_sys::general::MADV_WILLNEED, + + /// `MADV_DONTNEED` + LinuxDontNeed = linux_raw_sys::general::MADV_DONTNEED, + + /// `MADV_FREE` (since Linux 4.5) + LinuxFree = linux_raw_sys::general::MADV_FREE, + /// `MADV_REMOVE` + LinuxRemove = linux_raw_sys::general::MADV_REMOVE, + /// `MADV_DONTFORK` + LinuxDontFork = linux_raw_sys::general::MADV_DONTFORK, + /// `MADV_DOFORK` + LinuxDoFork = linux_raw_sys::general::MADV_DOFORK, + /// `MADV_HWPOISON` + LinuxHwPoison = linux_raw_sys::general::MADV_HWPOISON, + /// `MADV_SOFT_OFFLINE` + #[cfg(not(any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6" + )))] + LinuxSoftOffline = linux_raw_sys::general::MADV_SOFT_OFFLINE, + /// `MADV_MERGEABLE` + LinuxMergeable = linux_raw_sys::general::MADV_MERGEABLE, + /// `MADV_UNMERGEABLE` + LinuxUnmergeable = linux_raw_sys::general::MADV_UNMERGEABLE, + /// `MADV_HUGEPAGE` + LinuxHugepage = linux_raw_sys::general::MADV_HUGEPAGE, + /// `MADV_NOHUGEPAGE` + LinuxNoHugepage = linux_raw_sys::general::MADV_NOHUGEPAGE, + /// `MADV_DONTDUMP` (since Linux 3.4) + LinuxDontDump = linux_raw_sys::general::MADV_DONTDUMP, + /// `MADV_DODUMP` (since Linux 3.4) + LinuxDoDump = linux_raw_sys::general::MADV_DODUMP, + /// `MADV_WIPEONFORK` (since Linux 4.14) + LinuxWipeOnFork = linux_raw_sys::general::MADV_WIPEONFORK, + /// `MADV_KEEPONFORK` (since Linux 4.14) + LinuxKeepOnFork = linux_raw_sys::general::MADV_KEEPONFORK, + /// `MADV_COLD` (since Linux 5.4) + LinuxCold = linux_raw_sys::general::MADV_COLD, + /// `MADV_PAGEOUT` (since Linux 5.4) + LinuxPageOut = linux_raw_sys::general::MADV_PAGEOUT, + /// `MADV_POPULATE_READ` (since Linux 5.14) + LinuxPopulateRead = linux_raw_sys::general::MADV_POPULATE_READ, + /// `MADV_POPULATE_WRITE` (since Linux 5.14) + LinuxPopulateWrite = linux_raw_sys::general::MADV_POPULATE_WRITE, + /// `MADV_DONTNEED_LOCKED` (since Linux 5.18) + LinuxDontneedLocked = linux_raw_sys::general::MADV_DONTNEED_LOCKED, +} + +#[allow(non_upper_case_globals)] +impl Advice { + /// `POSIX_MADV_DONTNEED` + /// + /// On Linux, this is mapped to `POSIX_MADV_NORMAL` because Linux's + /// `MADV_DONTNEED` differs from `POSIX_MADV_DONTNEED`. See `LinuxDontNeed` + /// for the Linux behavior. + pub const DontNeed: Self = Self::Normal; +} + +bitflags! { + /// `O_*` flags for use with [`userfaultfd`]. + /// + /// [`userfaultfd`]: crate::mm::userfaultfd + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct UserfaultfdFlags: ffi::c_uint { + /// `O_CLOEXEC` + const CLOEXEC = linux_raw_sys::general::O_CLOEXEC; + /// `O_NONBLOCK` + const NONBLOCK = linux_raw_sys::general::O_NONBLOCK; + + /// + const _ = !0; + } +} + +bitflags! { + /// `MCL_*` flags for use with [`mlockall`]. + /// + /// [`mlockall`]: crate::mm::mlockall + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MlockAllFlags: u32 { + /// Used together with `MCL_CURRENT`, `MCL_FUTURE`, or both. Mark all + /// current (with `MCL_CURRENT`) or future (with `MCL_FUTURE`) mappings + /// to lock pages when they are faulted in. When used with + /// `MCL_CURRENT`, all present pages are locked, but `mlockall` will + /// not fault in non-present pages. When used with `MCL_FUTURE`, all + /// future mappings will be marked to lock pages when they are faulted + /// in, but they will not be populated by the lock when the mapping is + /// created. `MCL_ONFAULT` must be used with either `MCL_CURRENT` or + /// `MCL_FUTURE` or both. + const ONFAULT = linux_raw_sys::general::MCL_ONFAULT; + /// Lock all pages which will become mapped into the address space of + /// the process in the future. These could be, for instance, new pages + /// required by a growing heap and stack as well as new memory-mapped + /// files or shared memory regions. + const FUTURE = linux_raw_sys::general::MCL_FUTURE; + /// Lock all pages which are currently mapped into the address space of + /// the process. + const CURRENT = linux_raw_sys::general::MCL_CURRENT; + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mount/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mount/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mount/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mount/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mount/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..6fc69240a32f1f6e8b73e1406bc8d7689853d5f5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mount/syscalls.rs @@ -0,0 +1,237 @@ +//! linux_raw syscalls supporting `rustix::mount`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code)] +#![allow(clippy::undocumented_unsafe_blocks)] + +use crate::backend::conv::{ret, ret_owned_fd, slice, zero}; +use crate::fd::{BorrowedFd, OwnedFd}; +use crate::ffi::CStr; +use crate::io; + +#[inline] +pub(crate) fn mount( + source: Option<&CStr>, + target: &CStr, + file_system_type: Option<&CStr>, + flags: super::types::MountFlagsArg, + data: Option<&CStr>, +) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_mount, + source, + target, + file_system_type, + flags, + data + )) + } +} + +#[inline] +pub(crate) fn unmount(target: &CStr, flags: super::types::UnmountFlags) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_umount2, target, flags)) } +} + +#[inline] +pub(crate) fn fsopen(fs_name: &CStr, flags: super::types::FsOpenFlags) -> io::Result { + unsafe { ret_owned_fd(syscall_readonly!(__NR_fsopen, fs_name, flags)) } +} + +#[inline] +pub(crate) fn fsmount( + fs_fd: BorrowedFd<'_>, + flags: super::types::FsMountFlags, + attr_flags: super::types::MountAttrFlags, +) -> io::Result { + unsafe { ret_owned_fd(syscall_readonly!(__NR_fsmount, fs_fd, flags, attr_flags)) } +} + +#[inline] +pub(crate) fn move_mount( + from_dfd: BorrowedFd<'_>, + from_pathname: &CStr, + to_dfd: BorrowedFd<'_>, + to_pathname: &CStr, + flags: super::types::MoveMountFlags, +) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_move_mount, + from_dfd, + from_pathname, + to_dfd, + to_pathname, + flags + )) + } +} + +#[inline] +pub(crate) fn open_tree( + dfd: BorrowedFd<'_>, + filename: &CStr, + flags: super::types::OpenTreeFlags, +) -> io::Result { + unsafe { ret_owned_fd(syscall_readonly!(__NR_open_tree, dfd, filename, flags)) } +} + +#[inline] +pub(crate) fn fspick( + dfd: BorrowedFd<'_>, + path: &CStr, + flags: super::types::FsPickFlags, +) -> io::Result { + unsafe { ret_owned_fd(syscall_readonly!(__NR_fspick, dfd, path, flags)) } +} + +#[inline] +pub(crate) fn fsconfig_set_flag(fs_fd: BorrowedFd<'_>, key: &CStr) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_fsconfig, + fs_fd, + super::types::FsConfigCmd::SetFlag, + key, + zero(), + zero() + )) + } +} + +#[inline] +pub(crate) fn fsconfig_set_string( + fs_fd: BorrowedFd<'_>, + key: &CStr, + value: &CStr, +) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_fsconfig, + fs_fd, + super::types::FsConfigCmd::SetString, + key, + value, + zero() + )) + } +} + +#[inline] +pub(crate) fn fsconfig_set_binary( + fs_fd: BorrowedFd<'_>, + key: &CStr, + value: &[u8], +) -> io::Result<()> { + let (value_addr, value_len) = slice(value); + unsafe { + ret(syscall_readonly!( + __NR_fsconfig, + fs_fd, + super::types::FsConfigCmd::SetBinary, + key, + value_addr, + value_len + )) + } +} + +#[inline] +pub(crate) fn fsconfig_set_fd( + fs_fd: BorrowedFd<'_>, + key: &CStr, + fd: BorrowedFd<'_>, +) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_fsconfig, + fs_fd, + super::types::FsConfigCmd::SetFd, + key, + zero(), + fd + )) + } +} + +#[inline] +pub(crate) fn fsconfig_set_path( + fs_fd: BorrowedFd<'_>, + key: &CStr, + path: &CStr, + fd: BorrowedFd<'_>, +) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_fsconfig, + fs_fd, + super::types::FsConfigCmd::SetPath, + key, + path, + fd + )) + } +} + +#[inline] +pub(crate) fn fsconfig_set_path_empty( + fs_fd: BorrowedFd<'_>, + key: &CStr, + fd: BorrowedFd<'_>, +) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_fsconfig, + fs_fd, + super::types::FsConfigCmd::SetPathEmpty, + key, + cstr!(""), + fd + )) + } +} + +#[inline] +pub(crate) fn fsconfig_create(fs_fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_fsconfig, + fs_fd, + super::types::FsConfigCmd::Create, + zero(), + zero(), + zero() + )) + } +} + +#[inline] +pub(crate) fn fsconfig_reconfigure(fs_fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_fsconfig, + fs_fd, + super::types::FsConfigCmd::Reconfigure, + zero(), + zero(), + zero() + )) + } +} + +#[inline] +pub(crate) fn fsconfig_create_excl(fs_fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_fsconfig, + fs_fd, + super::types::FsConfigCmd::CreateExclusive, + zero(), + zero(), + zero() + )) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mount/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mount/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..548b74ed2304979798777d577761321812ebf4f1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/mount/types.rs @@ -0,0 +1,335 @@ +use crate::ffi; +use bitflags::bitflags; + +bitflags! { + /// `MS_*` constants for use with [`mount`]. + /// + /// [`mount`]: crate::mount::mount + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MountFlags: ffi::c_uint { + /// `MS_BIND` + const BIND = linux_raw_sys::general::MS_BIND; + + /// `MS_DIRSYNC` + const DIRSYNC = linux_raw_sys::general::MS_DIRSYNC; + + /// `MS_LAZYTIME` + const LAZYTIME = linux_raw_sys::general::MS_LAZYTIME; + + /// `MS_MANDLOCK` + #[doc(alias = "MANDLOCK")] + const PERMIT_MANDATORY_FILE_LOCKING = linux_raw_sys::general::MS_MANDLOCK; + + /// `MS_NOATIME` + const NOATIME = linux_raw_sys::general::MS_NOATIME; + + /// `MS_NODEV` + const NODEV = linux_raw_sys::general::MS_NODEV; + + /// `MS_NODIRATIME` + const NODIRATIME = linux_raw_sys::general::MS_NODIRATIME; + + /// `MS_NOEXEC` + const NOEXEC = linux_raw_sys::general::MS_NOEXEC; + + /// `MS_NOSUID` + const NOSUID = linux_raw_sys::general::MS_NOSUID; + + /// `MS_RDONLY` + const RDONLY = linux_raw_sys::general::MS_RDONLY; + + /// `MS_REC` + const REC = linux_raw_sys::general::MS_REC; + + /// `MS_RELATIME` + const RELATIME = linux_raw_sys::general::MS_RELATIME; + + /// `MS_SILENT` + const SILENT = linux_raw_sys::general::MS_SILENT; + + /// `MS_STRICTATIME` + const STRICTATIME = linux_raw_sys::general::MS_STRICTATIME; + + /// `MS_SYNCHRONOUS` + const SYNCHRONOUS = linux_raw_sys::general::MS_SYNCHRONOUS; + + /// `MS_NOSYMFOLLOW` + const NOSYMFOLLOW = linux_raw_sys::general::MS_NOSYMFOLLOW; + + /// + const _ = !0; + } +} + +bitflags! { + /// `MNT_*` constants for use with [`unmount`]. + /// + /// [`unmount`]: crate::mount::unmount + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct UnmountFlags: ffi::c_uint { + /// `MNT_FORCE` + const FORCE = linux_raw_sys::general::MNT_FORCE; + /// `MNT_DETACH` + const DETACH = linux_raw_sys::general::MNT_DETACH; + /// `MNT_EXPIRE` + const EXPIRE = linux_raw_sys::general::MNT_EXPIRE; + /// `UMOUNT_NOFOLLOW` + const NOFOLLOW = linux_raw_sys::general::UMOUNT_NOFOLLOW; + + /// + const _ = !0; + } +} + +bitflags! { + /// `FSOPEN_*` constants for use with [`fsopen`]. + /// + /// [`fsopen`]: crate::mount::fsopen + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct FsOpenFlags: ffi::c_uint { + /// `FSOPEN_CLOEXEC` + const FSOPEN_CLOEXEC = linux_raw_sys::general::FSOPEN_CLOEXEC; + + /// + const _ = !0; + } +} + +bitflags! { + /// `FSMOUNT_*` constants for use with [`fsmount`]. + /// + /// [`fsmount`]: crate::mount::fsmount + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct FsMountFlags: ffi::c_uint { + /// `FSMOUNT_CLOEXEC` + const FSMOUNT_CLOEXEC = linux_raw_sys::general::FSMOUNT_CLOEXEC; + + /// + const _ = !0; + } +} + +/// `FSCONFIG_*` constants for use with the `fsconfig` syscall. +#[derive(Debug, Copy, Clone, Eq, PartialEq)] +#[repr(u32)] +pub(crate) enum FsConfigCmd { + /// `FSCONFIG_SET_FLAG` + SetFlag = linux_raw_sys::general::fsconfig_command::FSCONFIG_SET_FLAG as u32, + + /// `FSCONFIG_SET_STRING` + SetString = linux_raw_sys::general::fsconfig_command::FSCONFIG_SET_STRING as u32, + + /// `FSCONFIG_SET_BINARY` + SetBinary = linux_raw_sys::general::fsconfig_command::FSCONFIG_SET_BINARY as u32, + + /// `FSCONFIG_SET_PATH` + SetPath = linux_raw_sys::general::fsconfig_command::FSCONFIG_SET_PATH as u32, + + /// `FSCONFIG_SET_PATH_EMPTY` + SetPathEmpty = linux_raw_sys::general::fsconfig_command::FSCONFIG_SET_PATH_EMPTY as u32, + + /// `FSCONFIG_SET_FD` + SetFd = linux_raw_sys::general::fsconfig_command::FSCONFIG_SET_FD as u32, + + /// `FSCONFIG_CMD_CREATE` + Create = linux_raw_sys::general::fsconfig_command::FSCONFIG_CMD_CREATE as u32, + + /// `FSCONFIG_CMD_RECONFIGURE` + Reconfigure = linux_raw_sys::general::fsconfig_command::FSCONFIG_CMD_RECONFIGURE as u32, + + /// `FSCONFIG_CMD_CREATE_EXCL` (since Linux 6.6) + CreateExclusive = linux_raw_sys::general::fsconfig_command::FSCONFIG_CMD_CREATE_EXCL as u32, +} + +bitflags! { + /// `MOUNT_ATTR_*` constants for use with [`fsmount`]. + /// + /// [`fsmount`]: crate::mount::fsmount + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MountAttrFlags: ffi::c_uint { + /// `MOUNT_ATTR_RDONLY` + const MOUNT_ATTR_RDONLY = linux_raw_sys::general::MOUNT_ATTR_RDONLY; + + /// `MOUNT_ATTR_NOSUID` + const MOUNT_ATTR_NOSUID = linux_raw_sys::general::MOUNT_ATTR_NOSUID; + + /// `MOUNT_ATTR_NODEV` + const MOUNT_ATTR_NODEV = linux_raw_sys::general::MOUNT_ATTR_NODEV; + + /// `MOUNT_ATTR_NOEXEC` + const MOUNT_ATTR_NOEXEC = linux_raw_sys::general::MOUNT_ATTR_NOEXEC; + + /// `MOUNT_ATTR__ATIME` + const MOUNT_ATTR__ATIME = linux_raw_sys::general::MOUNT_ATTR__ATIME; + + /// `MOUNT_ATTR_RELATIME` + const MOUNT_ATTR_RELATIME = linux_raw_sys::general::MOUNT_ATTR_RELATIME; + + /// `MOUNT_ATTR_NOATIME` + const MOUNT_ATTR_NOATIME = linux_raw_sys::general::MOUNT_ATTR_NOATIME; + + /// `MOUNT_ATTR_STRICTATIME` + const MOUNT_ATTR_STRICTATIME = linux_raw_sys::general::MOUNT_ATTR_STRICTATIME; + + /// `MOUNT_ATTR_NODIRATIME` + const MOUNT_ATTR_NODIRATIME = linux_raw_sys::general::MOUNT_ATTR_NODIRATIME; + + /// `MOUNT_ATTR_NOUSER` + const MOUNT_ATTR_IDMAP = linux_raw_sys::general::MOUNT_ATTR_IDMAP; + + /// `MOUNT_ATTR__ATIME_FLAGS` + const MOUNT_ATTR_NOSYMFOLLOW = linux_raw_sys::general::MOUNT_ATTR_NOSYMFOLLOW; + + /// `MOUNT_ATTR__ATIME_FLAGS` + const MOUNT_ATTR_SIZE_VER0 = linux_raw_sys::general::MOUNT_ATTR_SIZE_VER0; + + /// + const _ = !0; + } +} + +bitflags! { + /// `MOVE_MOUNT_*` constants for use with [`move_mount`]. + /// + /// [`move_mount`]: crate::mount::move_mount + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MoveMountFlags: ffi::c_uint { + /// `MOVE_MOUNT_F_EMPTY_PATH` + const MOVE_MOUNT_F_SYMLINKS = linux_raw_sys::general::MOVE_MOUNT_F_SYMLINKS; + + /// `MOVE_MOUNT_F_AUTOMOUNTS` + const MOVE_MOUNT_F_AUTOMOUNTS = linux_raw_sys::general::MOVE_MOUNT_F_AUTOMOUNTS; + + /// `MOVE_MOUNT_F_EMPTY_PATH` + const MOVE_MOUNT_F_EMPTY_PATH = linux_raw_sys::general::MOVE_MOUNT_F_EMPTY_PATH; + + /// `MOVE_MOUNT_T_SYMLINKS` + const MOVE_MOUNT_T_SYMLINKS = linux_raw_sys::general::MOVE_MOUNT_T_SYMLINKS; + + /// `MOVE_MOUNT_T_AUTOMOUNTS` + const MOVE_MOUNT_T_AUTOMOUNTS = linux_raw_sys::general::MOVE_MOUNT_T_AUTOMOUNTS; + + /// `MOVE_MOUNT_T_EMPTY_PATH` + const MOVE_MOUNT_T_EMPTY_PATH = linux_raw_sys::general::MOVE_MOUNT_T_EMPTY_PATH; + + /// `MOVE_MOUNT__MASK` + const MOVE_MOUNT_SET_GROUP = linux_raw_sys::general::MOVE_MOUNT_SET_GROUP; + + /// `MOVE_MOUNT_BENEATH` (since Linux 6.5) + const MOVE_MOUNT_BENEATH = linux_raw_sys::general::MOVE_MOUNT_BENEATH; + + /// `MOVE_MOUNT__MASK` + const MOVE_MOUNT__MASK = linux_raw_sys::general::MOVE_MOUNT__MASK; + + /// + const _ = !0; + } +} + +bitflags! { + /// `OPENTREE_*` constants for use with [`open_tree`]. + /// + /// [`open_tree`]: crate::mount::open_tree + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct OpenTreeFlags: ffi::c_uint { + /// `OPENTREE_CLONE` + const OPEN_TREE_CLONE = linux_raw_sys::general::OPEN_TREE_CLONE; + + /// `OPENTREE_CLOEXEC` + const OPEN_TREE_CLOEXEC = linux_raw_sys::general::OPEN_TREE_CLOEXEC; + + /// `AT_EMPTY_PATH` + const AT_EMPTY_PATH = linux_raw_sys::general::AT_EMPTY_PATH; + + /// `AT_NO_AUTOMOUNT` + const AT_NO_AUTOMOUNT = linux_raw_sys::general::AT_NO_AUTOMOUNT; + + /// `AT_RECURSIVE` + const AT_RECURSIVE = linux_raw_sys::general::AT_RECURSIVE; + + /// `AT_SYMLINK_NOFOLLOW` + const AT_SYMLINK_NOFOLLOW = linux_raw_sys::general::AT_SYMLINK_NOFOLLOW; + + /// + const _ = !0; + } +} + +bitflags! { + /// `FSPICK_*` constants for use with [`fspick`]. + /// + /// [`fspick`]: crate::mount::fspick + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct FsPickFlags: ffi::c_uint { + /// `FSPICK_CLOEXEC` + const FSPICK_CLOEXEC = linux_raw_sys::general::FSPICK_CLOEXEC; + + /// `FSPICK_SYMLINK_NOFOLLOW` + const FSPICK_SYMLINK_NOFOLLOW = linux_raw_sys::general::FSPICK_SYMLINK_NOFOLLOW; + + /// `FSPICK_NO_AUTOMOUNT` + const FSPICK_NO_AUTOMOUNT = linux_raw_sys::general::FSPICK_NO_AUTOMOUNT; + + /// `FSPICK_EMPTY_PATH` + const FSPICK_EMPTY_PATH = linux_raw_sys::general::FSPICK_EMPTY_PATH; + + /// + const _ = !0; + } +} + +bitflags! { + /// `MS_*` constants for use with [`mount_change`]. + /// + /// [`mount_change`]: crate::mount::mount_change + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct MountPropagationFlags: ffi::c_uint { + /// `MS_SILENT` + const SILENT = linux_raw_sys::general::MS_SILENT; + /// `MS_SHARED` + const SHARED = linux_raw_sys::general::MS_SHARED; + /// `MS_PRIVATE` + const PRIVATE = linux_raw_sys::general::MS_PRIVATE; + /// Mark a mount as a downstream of its current peer group. + /// + /// Mount and unmount events propagate from the upstream peer group + /// into the downstream. + /// + /// In Linux documentation, this flag is named `MS_SLAVE`, and the + /// concepts of “upstream” and “downstream” are called + /// “master” and “slave”. + #[doc(alias = "SLAVE")] + const DOWNSTREAM = linux_raw_sys::general::MS_SLAVE; + /// `MS_UNBINDABLE` + const UNBINDABLE = linux_raw_sys::general::MS_UNBINDABLE; + /// `MS_REC` + const REC = linux_raw_sys::general::MS_REC; + + /// + const _ = !0; + } +} + +bitflags! { + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub(crate) struct InternalMountFlags: ffi::c_uint { + const REMOUNT = linux_raw_sys::general::MS_REMOUNT; + const MOVE = linux_raw_sys::general::MS_MOVE; + + /// + const _ = !0; + } +} + +#[repr(transparent)] +pub(crate) struct MountFlagsArg(pub(crate) ffi::c_uint); diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/addr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/addr.rs new file mode 100644 index 0000000000000000000000000000000000000000..7138b57133e34500d9ee43626ab4dee7ab8ae97a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/addr.rs @@ -0,0 +1,300 @@ +//! Socket address utilities. +//! +//! # Safety +//! +//! This file uses `CStr::from_bytes_with_nul_unchecked` on a string it knows +//! to be NUL-terminated. +#![allow(unsafe_code)] + +use crate::backend::c; +use crate::ffi::CStr; +use crate::net::addr::SocketAddrLen; +use crate::net::AddressFamily; +use crate::{io, path}; +use core::cmp::Ordering; +use core::hash::{Hash, Hasher}; +use core::{fmt, slice}; +#[cfg(feature = "alloc")] +use {crate::ffi::CString, alloc::borrow::Cow, alloc::vec::Vec}; + +/// `struct sockaddr_un` +#[derive(Clone)] +#[doc(alias = "sockaddr_un")] +pub struct SocketAddrUnix { + pub(crate) unix: c::sockaddr_un, + len: c::socklen_t, +} + +impl SocketAddrUnix { + /// Construct a new Unix-domain address from a filesystem path. + #[inline] + pub fn new(path: P) -> io::Result { + path.into_with_c_str(Self::_new) + } + + #[inline] + fn _new(path: &CStr) -> io::Result { + let mut unix = Self::init(); + let mut bytes = path.to_bytes_with_nul(); + if bytes.len() > unix.sun_path.len() { + bytes = path.to_bytes(); // without NUL + if bytes.len() > unix.sun_path.len() { + return Err(io::Errno::NAMETOOLONG); + } + } + for (i, b) in bytes.iter().enumerate() { + unix.sun_path[i] = bitcast!(*b); + } + let len = offsetof_sun_path() + bytes.len(); + let len = len.try_into().unwrap(); + Ok(Self { unix, len }) + } + + /// Construct a new abstract Unix-domain address from a byte slice. + #[inline] + pub fn new_abstract_name(name: &[u8]) -> io::Result { + let mut unix = Self::init(); + let id = &mut unix.sun_path[1..]; + + // SAFETY: Convert `&mut [c_char]` to `&mut [u8]`. + let id = unsafe { slice::from_raw_parts_mut(id.as_mut_ptr().cast::(), id.len()) }; + + if let Some(id) = id.get_mut(..name.len()) { + id.copy_from_slice(name); + let len = offsetof_sun_path() + 1 + name.len(); + let len = len.try_into().unwrap(); + Ok(Self { unix, len }) + } else { + Err(io::Errno::NAMETOOLONG) + } + } + + /// Construct a new unnamed address. + /// + /// The kernel will assign an abstract Unix-domain address to the socket + /// when you call [`bind`][crate::net::bind]. You can inspect the assigned + /// name with [`getsockname`][crate::net::getsockname]. + /// + /// # References + /// - [Linux] + /// + /// [Linux]: https://www.man7.org/linux/man-pages/man7/unix.7.html + #[inline] + pub fn new_unnamed() -> Self { + Self { + unix: Self::init(), + len: offsetof_sun_path() as SocketAddrLen, + } + } + + const fn init() -> c::sockaddr_un { + c::sockaddr_un { + sun_family: c::AF_UNIX as _, + sun_path: [0; 108], + } + } + + /// For a filesystem path address, return the path. + #[inline] + #[cfg(feature = "alloc")] + #[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] + pub fn path(&self) -> Option> { + let bytes = self.bytes()?; + if !bytes.is_empty() && bytes[0] != 0 { + if self.unix.sun_path.len() == bytes.len() { + // SAFETY: There are no NULs contained in bytes. + unsafe { Self::path_with_termination(bytes) } + } else { + // SAFETY: `from_bytes_with_nul_unchecked` since the string is + // NUL-terminated. + Some(unsafe { CStr::from_bytes_with_nul_unchecked(bytes) }.into()) + } + } else { + None + } + } + + /// If the `sun_path` field is not NUL-terminated, terminate it. + /// + /// SAFETY: The input `bytes` must not contain any NULs. + #[cfg(feature = "alloc")] + #[cold] + unsafe fn path_with_termination(bytes: &[u8]) -> Option> { + let mut owned = Vec::with_capacity(bytes.len() + 1); + owned.extend_from_slice(bytes); + owned.push(b'\0'); + // SAFETY: `from_vec_with_nul_unchecked` since the string is + // NUL-terminated and `bytes` does not contain any NULs. + Some(Cow::Owned( + CString::from_vec_with_nul_unchecked(owned).into(), + )) + } + + /// For a filesystem path address, return the path as a byte sequence, + /// excluding the NUL terminator. + #[inline] + pub fn path_bytes(&self) -> Option<&[u8]> { + let bytes = self.bytes()?; + if !bytes.is_empty() && bytes[0] != 0 { + if self.unix.sun_path.len() == self.len() - offsetof_sun_path() { + // There is no NUL terminator. + Some(bytes) + } else { + // Remove the NUL terminator. + Some(&bytes[..bytes.len() - 1]) + } + } else { + None + } + } + + /// For an abstract address, return the identifier. + #[inline] + pub fn abstract_name(&self) -> Option<&[u8]> { + if let [0, bytes @ ..] = self.bytes()? { + Some(bytes) + } else { + None + } + } + + /// `true` if the socket address is unnamed. + #[inline] + pub fn is_unnamed(&self) -> bool { + self.bytes() == Some(&[]) + } + + #[inline] + pub(crate) fn addr_len(&self) -> SocketAddrLen { + bitcast!(self.len) + } + + #[inline] + pub(crate) fn len(&self) -> usize { + self.addr_len() as usize + } + + #[inline] + fn bytes(&self) -> Option<&[u8]> { + let len = self.len(); + if len != 0 { + let bytes = &self.unix.sun_path[..len - offsetof_sun_path()]; + // SAFETY: `from_raw_parts` to convert from `&[c_char]` to `&[u8]`. + Some(unsafe { slice::from_raw_parts(bytes.as_ptr().cast(), bytes.len()) }) + } else { + None + } + } +} + +impl PartialEq for SocketAddrUnix { + #[inline] + fn eq(&self, other: &Self) -> bool { + let self_len = self.len() - offsetof_sun_path(); + let other_len = other.len() - offsetof_sun_path(); + self.unix.sun_path[..self_len].eq(&other.unix.sun_path[..other_len]) + } +} + +impl Eq for SocketAddrUnix {} + +impl PartialOrd for SocketAddrUnix { + #[inline] + fn partial_cmp(&self, other: &Self) -> Option { + Some(self.cmp(other)) + } +} + +impl Ord for SocketAddrUnix { + #[inline] + fn cmp(&self, other: &Self) -> Ordering { + let self_len = self.len() - offsetof_sun_path(); + let other_len = other.len() - offsetof_sun_path(); + self.unix.sun_path[..self_len].cmp(&other.unix.sun_path[..other_len]) + } +} + +impl Hash for SocketAddrUnix { + #[inline] + fn hash(&self, state: &mut H) { + let self_len = self.len() - offsetof_sun_path(); + self.unix.sun_path[..self_len].hash(state) + } +} + +impl fmt::Debug for SocketAddrUnix { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + #[cfg(feature = "alloc")] + if let Some(path) = self.path() { + return path.fmt(f); + } + if let Some(bytes) = self.path_bytes() { + if let Ok(s) = core::str::from_utf8(bytes) { + return s.fmt(f); + } + return bytes.fmt(f); + } + if let Some(name) = self.abstract_name() { + return name.fmt(f); + } + "(unnamed)".fmt(f) + } +} + +/// `struct sockaddr_storage` +/// +/// This type is guaranteed to be large enough to hold any encoded socket +/// address. +#[repr(transparent)] +#[derive(Copy, Clone)] +#[doc(alias = "sockaddr_storage")] +pub struct SocketAddrStorage(c::sockaddr_storage); + +// SAFETY: Bindgen adds a union with a raw pointer for alignment but it's never +// used. `sockaddr_storage` is just a bunch of bytes and it doesn't hold +// pointers. +unsafe impl Send for SocketAddrStorage {} + +// SAFETY: Same as with `Send`. +unsafe impl Sync for SocketAddrStorage {} + +impl SocketAddrStorage { + /// Return a socket addr storage initialized to all zero bytes. The + /// `sa_family` is set to [`AddressFamily::UNSPEC`]. + pub fn zeroed() -> Self { + assert_eq!(c::AF_UNSPEC, 0); + // SAFETY: `sockaddr_storage` is meant to be zero-initializable. + unsafe { core::mem::zeroed() } + } + + /// Return the `sa_family` of this socket address. + pub fn family(&self) -> AddressFamily { + // SAFETY: `self.0` is a `sockaddr_storage` so it has enough space. + unsafe { + AddressFamily::from_raw(crate::backend::net::read_sockaddr::read_sa_family( + crate::utils::as_ptr(&self.0).cast::(), + )) + } + } + + /// Clear the `sa_family` of this socket address to + /// [`AddressFamily::UNSPEC`]. + pub fn clear_family(&mut self) { + // SAFETY: `self.0` is a `sockaddr_storage` so it has enough space. + unsafe { + crate::backend::net::read_sockaddr::initialize_family_to_unspec( + crate::utils::as_mut_ptr(&mut self.0).cast::(), + ) + } + } +} + +/// Return the offset of the `sun_path` field of `sockaddr_un`. +#[inline] +pub(crate) fn offsetof_sun_path() -> usize { + let z = c::sockaddr_un { + sun_family: 0_u16, + sun_path: [0; 108], + }; + (crate::utils::as_ptr(&z.sun_path) as usize) - (crate::utils::as_ptr(&z) as usize) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..169954f23992520031e7fb12cacb25fecb4528f3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/mod.rs @@ -0,0 +1,8 @@ +pub(crate) mod addr; +pub(crate) mod msghdr; +pub(crate) mod netdevice; +pub(crate) mod read_sockaddr; +pub(crate) mod send_recv; +pub(crate) mod sockopt; +pub(crate) mod syscalls; +pub(crate) mod write_sockaddr; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/msghdr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/msghdr.rs new file mode 100644 index 0000000000000000000000000000000000000000..0343e18c3a9b2aa416a8efd13dd49ab2c4409c97 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/msghdr.rs @@ -0,0 +1,125 @@ +//! Utilities for dealing with message headers. +//! +//! These take closures rather than returning a `c::msghdr` directly because +//! the message headers may reference stack-local data. + +#![allow(unsafe_code)] + +use crate::backend::c; + +use crate::io::{self, IoSlice, IoSliceMut}; +use crate::net::addr::SocketAddrArg; +use crate::net::{RecvAncillaryBuffer, SendAncillaryBuffer, SocketAddrBuf}; + +use core::ptr::null_mut; + +fn msg_iov_len(len: usize) -> c::size_t { + // This cast cannot overflow. + len as c::size_t +} + +fn msg_control_len(len: usize) -> c::size_t { + // Same as above. + len as c::size_t +} + +/// Create a message header intended to receive a datagram. +/// +/// # Safety +/// +/// If `f` dereferences the pointers in the `msghdr`, it must do so only within +/// the bounds indicated by the associated lengths in the `msghdr`. +/// +/// And, if `f` returns `Ok`, it must have updated the `msg_controllen` field +/// of the `msghdr` to indicate how many bytes it initialized. +pub(crate) unsafe fn with_recv_msghdr( + name: &mut SocketAddrBuf, + iov: &mut [IoSliceMut<'_>], + control: &mut RecvAncillaryBuffer<'_>, + f: impl FnOnce(&mut c::msghdr) -> io::Result, +) -> io::Result { + control.clear(); + + let mut msghdr = c::msghdr { + msg_name: name.storage.as_mut_ptr().cast(), + msg_namelen: bitcast!(name.len), + msg_iov: iov.as_mut_ptr().cast(), + msg_iovlen: msg_iov_len(iov.len()), + msg_control: control.as_control_ptr().cast(), + msg_controllen: msg_control_len(control.control_len()), + msg_flags: 0, + }; + + let res = f(&mut msghdr); + + // Reset the control length. + if res.is_ok() { + // SAFETY: `f` returned `Ok`, so our safety condition requires `f` to + // have initialized `msg_controllen` bytes. + control.set_control_len(msghdr.msg_controllen as usize); + } + + name.len = bitcast!(msghdr.msg_namelen); + + res +} + +/// Create a message header intended to send without an address. +/// +/// The returned `msghdr` will contain raw pointers to the memory +/// referenced by `iov` and `control`. +pub(crate) fn noaddr_msghdr( + iov: &[IoSlice<'_>], + control: &mut SendAncillaryBuffer<'_, '_, '_>, +) -> c::msghdr { + c::msghdr { + msg_name: null_mut(), + msg_namelen: 0, + msg_iov: iov.as_ptr() as _, + msg_iovlen: msg_iov_len(iov.len()), + msg_control: control.as_control_ptr().cast(), + msg_controllen: msg_control_len(control.control_len()), + msg_flags: 0, + } +} + +/// Create a message header intended to send with the specified address. +/// +/// This creates a `c::msghdr` and calls a function `f` on it. The `msghdr`'s +/// raw pointers may point to temporaries, so this function should avoid +/// storing the pointers anywhere that would outlive the function call. +/// +/// # Safety +/// +/// If `f` dereferences the pointers in the `msghdr`, it must do so only within +/// the bounds indicated by the associated lengths in the `msghdr`. +pub(crate) unsafe fn with_msghdr( + addr: &impl SocketAddrArg, + iov: &[IoSlice<'_>], + control: &mut SendAncillaryBuffer<'_, '_, '_>, + f: impl FnOnce(&c::msghdr) -> R, +) -> R { + addr.with_sockaddr(|addr_ptr, addr_len| { + // Pass a reference to the `c::msghdr` instead of passing it by value + // because it may contain pointers to temporary objects that won't live + // beyond the call to `with_sockaddr`. + let mut msghdr = noaddr_msghdr(iov, control); + msghdr.msg_name = addr_ptr as _; + msghdr.msg_namelen = bitcast!(addr_len); + + f(&msghdr) + }) +} + +/// Create a zero-initialized message header struct value. +pub(crate) fn zero_msghdr() -> c::msghdr { + c::msghdr { + msg_name: null_mut(), + msg_namelen: 0, + msg_iov: null_mut(), + msg_iovlen: 0, + msg_control: null_mut(), + msg_controllen: 0, + msg_flags: 0, + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/netdevice.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/netdevice.rs new file mode 100644 index 0000000000000000000000000000000000000000..1736d9da85e1d07d615702716d1207984b6735da --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/netdevice.rs @@ -0,0 +1,66 @@ +//! Wrappers for netdevice ioctls. + +#![allow(unsafe_code)] + +use crate::backend::io::syscalls::ioctl; +use crate::fd::BorrowedFd; +use crate::io; +use core::ptr::addr_of_mut; +use core::{slice, str}; +use linux_raw_sys::ctypes::c_char; +use linux_raw_sys::ioctl::{SIOCGIFINDEX, SIOCGIFNAME}; +use linux_raw_sys::net::{ifreq, ifreq__bindgen_ty_1, ifreq__bindgen_ty_2, IFNAMSIZ}; + +pub(crate) fn name_to_index(fd: BorrowedFd<'_>, if_name: &str) -> io::Result { + let if_name_bytes = if_name.as_bytes(); + if if_name_bytes.len() >= IFNAMSIZ as usize { + return Err(io::Errno::NODEV); + } + if if_name_bytes.contains(&0) { + return Err(io::Errno::NODEV); + } + + // SAFETY: Convert `&[u8]` to `&[c_char]`. + let if_name_bytes = unsafe { + slice::from_raw_parts(if_name_bytes.as_ptr().cast::(), if_name_bytes.len()) + }; + + let mut ifreq = ifreq { + ifr_ifrn: ifreq__bindgen_ty_1 { ifrn_name: [0; 16] }, + ifr_ifru: ifreq__bindgen_ty_2 { ifru_ivalue: 0 }, + }; + unsafe { ifreq.ifr_ifrn.ifrn_name[..if_name_bytes.len()].copy_from_slice(if_name_bytes) }; + + unsafe { ioctl(fd, SIOCGIFINDEX, addr_of_mut!(ifreq).cast()) }?; + let index = unsafe { ifreq.ifr_ifru.ifru_ivalue }; + Ok(index as u32) +} + +pub(crate) fn index_to_name(fd: BorrowedFd<'_>, index: u32) -> io::Result<(usize, [u8; 16])> { + let mut ifreq = ifreq { + ifr_ifrn: ifreq__bindgen_ty_1 { ifrn_name: [0; 16] }, + ifr_ifru: ifreq__bindgen_ty_2 { + ifru_ivalue: index as _, + }, + }; + + unsafe { ioctl(fd, SIOCGIFNAME, addr_of_mut!(ifreq).cast()) }?; + + if let Some(nul_byte) = unsafe { ifreq.ifr_ifrn.ifrn_name } + .iter() + .position(|ch| *ch == 0) + { + let ifrn_name = unsafe { &ifreq.ifr_ifrn.ifrn_name[..nul_byte] }; + + // SAFETY: Convert `&[c_char]` to `&[u8]`. + let ifrn_name = + unsafe { slice::from_raw_parts(ifrn_name.as_ptr().cast::(), ifrn_name.len()) }; + + let mut name_buf = [0; 16]; + name_buf[..ifrn_name.len()].copy_from_slice(ifrn_name); + + Ok((nul_byte, name_buf)) + } else { + Err(io::Errno::INVAL) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/read_sockaddr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/read_sockaddr.rs new file mode 100644 index 0000000000000000000000000000000000000000..f18cd4833d0ab7594999b4f476344543c28d7772 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/read_sockaddr.rs @@ -0,0 +1,155 @@ +//! The BSD sockets API requires us to read the `sa_family` field before we can +//! interpret the rest of a `sockaddr` produced by the kernel. +#![allow(unsafe_code)] + +use crate::backend::c; +use crate::io::Errno; +use crate::net::addr::SocketAddrLen; +use crate::net::netlink::SocketAddrNetlink; +#[cfg(target_os = "linux")] +use crate::net::xdp::{SocketAddrXdp, SocketAddrXdpFlags}; +use crate::net::{ + AddressFamily, Ipv4Addr, Ipv6Addr, SocketAddrAny, SocketAddrUnix, SocketAddrV4, SocketAddrV6, +}; +use core::mem::size_of; +use core::slice; + +// This must match the header of `sockaddr`. +#[repr(C)] +pub(crate) struct sockaddr_header { + sa_family: u16, +} + +/// Read the `sa_family` field from a socket address returned from the OS. +/// +/// # Safety +/// +/// `storage` must point to a least an initialized `sockaddr_header`. +#[inline] +pub(crate) const unsafe fn read_sa_family(storage: *const c::sockaddr) -> u16 { + // Assert that we know the layout of `sockaddr`. + let _ = c::sockaddr { + __storage: c::sockaddr_storage { + __bindgen_anon_1: linux_raw_sys::net::__kernel_sockaddr_storage__bindgen_ty_1 { + __bindgen_anon_1: + linux_raw_sys::net::__kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { + ss_family: 0_u16, + __data: [0; 126_usize], + }, + }, + }, + }; + + (*storage.cast::()).sa_family +} + +/// Set the `sa_family` field of a socket address to `AF_UNSPEC`, so that we +/// can test for `AF_UNSPEC` to test whether it was stored to. +/// +/// # Safety +/// +/// `storage` must point to a least an initialized `sockaddr_header`. +#[inline] +pub(crate) unsafe fn initialize_family_to_unspec(storage: *mut c::sockaddr) { + (*storage.cast::()).sa_family = c::AF_UNSPEC as _; +} + +/// Check if a socket address returned from the OS is considered non-empty. +#[inline] +pub(crate) unsafe fn sockaddr_nonempty(_storage: *const c::sockaddr, len: SocketAddrLen) -> bool { + len != 0 +} + +#[inline] +pub(crate) fn read_sockaddr_v4(addr: &SocketAddrAny) -> Result { + if addr.address_family() != AddressFamily::INET { + return Err(Errno::AFNOSUPPORT); + } + assert!(addr.addr_len() as usize >= size_of::()); + let decode = unsafe { &*addr.as_ptr().cast::() }; + Ok(SocketAddrV4::new( + Ipv4Addr::from(u32::from_be(decode.sin_addr.s_addr)), + u16::from_be(decode.sin_port), + )) +} + +#[inline] +pub(crate) fn read_sockaddr_v6(addr: &SocketAddrAny) -> Result { + if addr.address_family() != AddressFamily::INET6 { + return Err(Errno::AFNOSUPPORT); + } + assert!(addr.addr_len() as usize >= size_of::()); + let decode = unsafe { &*addr.as_ptr().cast::() }; + Ok(SocketAddrV6::new( + Ipv6Addr::from(unsafe { decode.sin6_addr.in6_u.u6_addr8 }), + u16::from_be(decode.sin6_port), + u32::from_be(decode.sin6_flowinfo), + decode.sin6_scope_id, + )) +} + +#[inline] +pub(crate) fn read_sockaddr_unix(addr: &SocketAddrAny) -> Result { + if addr.address_family() != AddressFamily::UNIX { + return Err(Errno::AFNOSUPPORT); + } + let offsetof_sun_path = super::addr::offsetof_sun_path(); + let len = addr.addr_len() as usize; + + assert!(len >= offsetof_sun_path); + + if len == offsetof_sun_path { + SocketAddrUnix::new(&[][..]) + } else { + let decode = unsafe { &*addr.as_ptr().cast::() }; + + // On Linux check for Linux's [abstract namespace]. + // + // [abstract namespace]: https://man7.org/linux/man-pages/man7/unix.7.html + if decode.sun_path[0] == 0 { + let bytes = &decode.sun_path[1..len - offsetof_sun_path]; + + // SAFETY: Convert `&[c_char]` to `&[u8]`. + let bytes = unsafe { slice::from_raw_parts(bytes.as_ptr().cast::(), bytes.len()) }; + + return SocketAddrUnix::new_abstract_name(bytes); + } + + // Otherwise we expect a NUL-terminated filesystem path. + let bytes = &decode.sun_path[..len - 1 - offsetof_sun_path]; + + // SAFETY: Convert `&[c_char]` to `&[u8]`. + let bytes = unsafe { slice::from_raw_parts(bytes.as_ptr().cast::(), bytes.len()) }; + + assert_eq!(decode.sun_path[len - 1 - offsetof_sun_path], 0); + SocketAddrUnix::new(bytes) + } +} + +#[inline] +pub(crate) fn read_sockaddr_xdp(addr: &SocketAddrAny) -> Result { + if addr.address_family() != AddressFamily::XDP { + return Err(Errno::AFNOSUPPORT); + } + assert!(addr.addr_len() as usize >= size_of::()); + let decode = unsafe { &*addr.as_ptr().cast::() }; + + // This ignores the `sxdp_shared_umem_fd` field, which is only expected to + // be significant in `bind` calls, and not returned from `acceptfrom` or + // `recvmsg` or similar. + Ok(SocketAddrXdp::new( + SocketAddrXdpFlags::from_bits_retain(decode.sxdp_flags), + u32::from_be(decode.sxdp_ifindex), + u32::from_be(decode.sxdp_queue_id), + )) +} + +#[inline] +pub(crate) fn read_sockaddr_netlink(addr: &SocketAddrAny) -> Result { + if addr.address_family() != AddressFamily::NETLINK { + return Err(Errno::AFNOSUPPORT); + } + assert!(addr.addr_len() as usize >= size_of::()); + let decode = unsafe { &*addr.as_ptr().cast::() }; + Ok(SocketAddrNetlink::new(decode.nl_pid, decode.nl_groups)) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/send_recv.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/send_recv.rs new file mode 100644 index 0000000000000000000000000000000000000000..3262d01f6c45c2b956c29293f201c2038a44acb7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/send_recv.rs @@ -0,0 +1,87 @@ +use crate::backend::c; +use bitflags::bitflags; + +bitflags! { + /// `MSG_*` flags for use with [`send`], [`sendto`], and related + /// functions. + /// + /// [`send`]: crate::net::send + /// [`sendto`]: crate::net::sendto + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct SendFlags: u32 { + /// `MSG_CONFIRM` + const CONFIRM = c::MSG_CONFIRM; + /// `MSG_DONTROUTE` + const DONTROUTE = c::MSG_DONTROUTE; + /// `MSG_DONTWAIT` + const DONTWAIT = c::MSG_DONTWAIT; + /// `MSG_EOR` + const EOR = c::MSG_EOR; + /// `MSG_MORE` + const MORE = c::MSG_MORE; + /// `MSG_NOSIGNAL` + const NOSIGNAL = c::MSG_NOSIGNAL; + /// `MSG_OOB` + const OOB = c::MSG_OOB; + + /// + const _ = !0; + } +} + +bitflags! { + /// `MSG_*` flags for use with [`recv`], [`recvfrom`], and related + /// functions. + /// + /// [`recv`]: crate::net::recv + /// [`recvfrom`]: crate::net::recvfrom + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct RecvFlags: u32 { + /// `MSG_CMSG_CLOEXEC` + const CMSG_CLOEXEC = c::MSG_CMSG_CLOEXEC; + /// `MSG_DONTWAIT` + const DONTWAIT = c::MSG_DONTWAIT; + /// `MSG_ERRQUEUE` + const ERRQUEUE = c::MSG_ERRQUEUE; + /// `MSG_OOB` + const OOB = c::MSG_OOB; + /// `MSG_PEEK` + const PEEK = c::MSG_PEEK; + /// `MSG_TRUNC` + const TRUNC = c::MSG_TRUNC; + /// `MSG_WAITALL` + const WAITALL = c::MSG_WAITALL; + + /// + const _ = !0; + } +} + +bitflags! { + /// `MSG_*` flags returned from [`recvmsg`], in the `flags` field of + /// [`RecvMsg`] + /// + /// [`recvmsg`]: crate::net::recvmsg + /// [`RecvMsg`]: crate::net::RecvMsg + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct ReturnFlags: u32 { + /// `MSG_OOB` + const OOB = c::MSG_OOB; + /// `MSG_EOR` + const EOR = c::MSG_EOR; + /// `MSG_TRUNC` + const TRUNC = c::MSG_TRUNC; + /// `MSG_CTRUNC` + const CTRUNC = c::MSG_CTRUNC; + /// `MSG_ERRQUEUE` + const ERRQUEUE = c::MSG_ERRQUEUE; + /// `MSG_CMSG_CLOEXEC` + const CMSG_CLOEXEC = c::MSG_CMSG_CLOEXEC; + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/sockopt.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/sockopt.rs new file mode 100644 index 0000000000000000000000000000000000000000..85c65b0855528381523a56c054dad45100006303 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/sockopt.rs @@ -0,0 +1,1160 @@ +//! linux_raw syscalls supporting `rustix::net::sockopt`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use crate::backend::c; +use crate::backend::conv::{by_mut, c_uint, ret, socklen_t}; +#[cfg(all(target_os = "linux", feature = "time"))] +use crate::clockid::ClockId; +use crate::fd::BorrowedFd; +#[cfg(feature = "alloc")] +use crate::ffi::CStr; +use crate::io; +use crate::net::sockopt::{Ipv4PathMtuDiscovery, Ipv6PathMtuDiscovery, Timeout}; +#[cfg(target_os = "linux")] +use crate::net::xdp::{XdpMmapOffsets, XdpOptionsFlags, XdpRingOffset, XdpStatistics, XdpUmemReg}; +#[cfg(all(target_os = "linux", feature = "time"))] +use crate::net::TxTimeFlags; +use crate::net::{ + AddressFamily, Ipv4Addr, Ipv6Addr, Protocol, RawProtocol, SocketAddrBuf, SocketAddrV4, + SocketAddrV6, SocketType, UCred, +}; +#[cfg(feature = "alloc")] +use alloc::borrow::ToOwned as _; +#[cfg(feature = "alloc")] +use alloc::string::String; +use core::mem::{size_of, MaybeUninit}; +use core::time::Duration; +use linux_raw_sys::general::{__kernel_old_timeval, __kernel_sock_timeval}; +use linux_raw_sys::net::{ + IPV6_MTU, IPV6_MTU_DISCOVER, IPV6_MULTICAST_IF, IP_MTU, IP_MTU_DISCOVER, IP_MULTICAST_IF, +}; +#[cfg(target_os = "linux")] +use linux_raw_sys::xdp::{xdp_mmap_offsets, xdp_statistics, xdp_statistics_v1}; +#[cfg(target_arch = "x86")] +use { + crate::backend::conv::{slice_just_addr, x86_sys}, + crate::backend::reg::{ArgReg, SocketArg}, + linux_raw_sys::net::{SYS_GETSOCKOPT, SYS_SETSOCKOPT}, +}; + +#[inline] +fn getsockopt(fd: BorrowedFd<'_>, level: u32, optname: u32) -> io::Result { + let mut optlen: c::socklen_t = size_of::().try_into().unwrap(); + debug_assert!( + optlen as usize >= size_of::(), + "Socket APIs don't ever use `bool` directly" + ); + + let mut value = MaybeUninit::::uninit(); + getsockopt_raw(fd, level, optname, &mut value, &mut optlen)?; + + assert_eq!( + optlen as usize, + size_of::(), + "unexpected getsockopt size" + ); + + unsafe { Ok(value.assume_init()) } +} + +#[inline] +fn getsockopt_raw( + fd: BorrowedFd<'_>, + level: u32, + optname: u32, + value: &mut MaybeUninit, + optlen: &mut c::socklen_t, +) -> io::Result<()> { + #[cfg(not(target_arch = "x86"))] + unsafe { + ret(syscall!( + __NR_getsockopt, + fd, + c_uint(level), + c_uint(optname), + value, + by_mut(optlen) + )) + } + #[cfg(target_arch = "x86")] + unsafe { + ret(syscall!( + __NR_socketcall, + x86_sys(SYS_GETSOCKOPT), + slice_just_addr::, _>(&[ + fd.into(), + c_uint(level), + c_uint(optname), + value.into(), + by_mut(optlen), + ]) + )) + } +} + +#[inline] +fn setsockopt(fd: BorrowedFd<'_>, level: u32, optname: u32, value: T) -> io::Result<()> { + let optlen = size_of::().try_into().unwrap(); + debug_assert!( + optlen as usize >= size_of::(), + "Socket APIs don't ever use `bool` directly" + ); + setsockopt_raw(fd, level, optname, &value, optlen) +} + +#[inline] +fn setsockopt_raw( + fd: BorrowedFd<'_>, + level: u32, + optname: u32, + ptr: *const T, + optlen: c::socklen_t, +) -> io::Result<()> { + #[cfg(not(target_arch = "x86"))] + unsafe { + ret(syscall_readonly!( + __NR_setsockopt, + fd, + c_uint(level), + c_uint(optname), + ptr, + socklen_t(optlen) + )) + } + #[cfg(target_arch = "x86")] + unsafe { + ret(syscall_readonly!( + __NR_socketcall, + x86_sys(SYS_SETSOCKOPT), + slice_just_addr::, _>(&[ + fd.into(), + c_uint(level), + c_uint(optname), + ptr.into(), + socklen_t(optlen), + ]) + )) + } +} + +#[inline] +pub(crate) fn socket_type(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_TYPE) +} + +#[inline] +pub(crate) fn set_socket_reuseaddr(fd: BorrowedFd<'_>, reuseaddr: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_REUSEADDR, from_bool(reuseaddr)) +} + +#[inline] +pub(crate) fn socket_reuseaddr(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_REUSEADDR).map(to_bool) +} + +#[inline] +pub(crate) fn set_socket_broadcast(fd: BorrowedFd<'_>, broadcast: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_BROADCAST, from_bool(broadcast)) +} + +#[inline] +pub(crate) fn socket_broadcast(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_BROADCAST).map(to_bool) +} + +#[inline] +pub(crate) fn set_socket_linger(fd: BorrowedFd<'_>, linger: Option) -> io::Result<()> { + // Convert `linger` to seconds, rounding up. + let l_linger = if let Some(linger) = linger { + duration_to_secs(linger)? + } else { + 0 + }; + let linger = c::linger { + l_onoff: c::c_int::from(linger.is_some()), + l_linger, + }; + setsockopt(fd, c::SOL_SOCKET, c::SO_LINGER, linger) +} + +#[inline] +pub(crate) fn socket_linger(fd: BorrowedFd<'_>) -> io::Result> { + let linger: c::linger = getsockopt(fd, c::SOL_SOCKET, c::SO_LINGER)?; + Ok((linger.l_onoff != 0).then(|| Duration::from_secs(linger.l_linger as u64))) +} + +#[inline] +pub(crate) fn set_socket_passcred(fd: BorrowedFd<'_>, passcred: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_PASSCRED, from_bool(passcred)) +} + +#[inline] +pub(crate) fn socket_passcred(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_PASSCRED).map(to_bool) +} + +#[inline] +pub(crate) fn set_socket_timeout( + fd: BorrowedFd<'_>, + id: Timeout, + timeout: Option, +) -> io::Result<()> { + let time = duration_to_linux_sock_timeval(timeout)?; + let optname = match id { + Timeout::Recv => c::SO_RCVTIMEO_NEW, + Timeout::Send => c::SO_SNDTIMEO_NEW, + }; + match setsockopt(fd, c::SOL_SOCKET, optname, time) { + Err(io::Errno::NOPROTOOPT) if c::SO_RCVTIMEO_NEW != c::SO_RCVTIMEO_OLD => { + set_socket_timeout_old(fd, id, timeout) + } + otherwise => otherwise, + } +} + +/// Same as `set_socket_timeout` but uses `__kernel_old_timeval` instead of +/// `__kernel_sock_timeval` and `_OLD` constants instead of `_NEW`. +fn set_socket_timeout_old( + fd: BorrowedFd<'_>, + id: Timeout, + timeout: Option, +) -> io::Result<()> { + let time = duration_to_linux_old_timeval(timeout)?; + let optname = match id { + Timeout::Recv => c::SO_RCVTIMEO_OLD, + Timeout::Send => c::SO_SNDTIMEO_OLD, + }; + setsockopt(fd, c::SOL_SOCKET, optname, time) +} + +#[inline] +pub(crate) fn socket_timeout(fd: BorrowedFd<'_>, id: Timeout) -> io::Result> { + let optname = match id { + Timeout::Recv => c::SO_RCVTIMEO_NEW, + Timeout::Send => c::SO_SNDTIMEO_NEW, + }; + let time: __kernel_sock_timeval = match getsockopt(fd, c::SOL_SOCKET, optname) { + Err(io::Errno::NOPROTOOPT) if c::SO_RCVTIMEO_NEW != c::SO_RCVTIMEO_OLD => { + return socket_timeout_old(fd, id) + } + otherwise => otherwise?, + }; + Ok(duration_from_linux_sock_timeval(time)) +} + +/// Same as `get_socket_timeout` but uses `__kernel_old_timeval` instead of +/// `__kernel_sock_timeval` and `_OLD` constants instead of `_NEW`. +fn socket_timeout_old(fd: BorrowedFd<'_>, id: Timeout) -> io::Result> { + let optname = match id { + Timeout::Recv => c::SO_RCVTIMEO_OLD, + Timeout::Send => c::SO_SNDTIMEO_OLD, + }; + let time: __kernel_old_timeval = getsockopt(fd, c::SOL_SOCKET, optname)?; + Ok(duration_from_linux_old_timeval(time)) +} + +/// Convert a `__linux_sock_timeval` to a Rust `Option`. +#[inline] +fn duration_from_linux_sock_timeval(time: __kernel_sock_timeval) -> Option { + if time.tv_sec == 0 && time.tv_usec == 0 { + None + } else { + Some(Duration::from_secs(time.tv_sec as u64) + Duration::from_micros(time.tv_usec as u64)) + } +} + +/// Like `duration_from_linux_sock_timeval` but uses Linux's old 32-bit +/// `__kernel_old_timeval`. +fn duration_from_linux_old_timeval(time: __kernel_old_timeval) -> Option { + if time.tv_sec == 0 && time.tv_usec == 0 { + None + } else { + Some(Duration::from_secs(time.tv_sec as u64) + Duration::from_micros(time.tv_usec as u64)) + } +} + +/// Convert a Rust `Option` to a `__kernel_sock_timeval`. +#[inline] +fn duration_to_linux_sock_timeval(timeout: Option) -> io::Result<__kernel_sock_timeval> { + Ok(match timeout { + Some(timeout) => { + if timeout == Duration::ZERO { + return Err(io::Errno::INVAL); + } + // `subsec_micros` rounds down, so we use `subsec_nanos` and + // manually round up. + let mut timeout = __kernel_sock_timeval { + tv_sec: timeout.as_secs().try_into().unwrap_or(i64::MAX), + tv_usec: ((timeout.subsec_nanos() + 999) / 1000) as _, + }; + if timeout.tv_sec == 0 && timeout.tv_usec == 0 { + timeout.tv_usec = 1; + } + timeout + } + None => __kernel_sock_timeval { + tv_sec: 0, + tv_usec: 0, + }, + }) +} + +/// Like `duration_to_linux_sock_timeval` but uses Linux's old 32-bit +/// `__kernel_old_timeval`. +fn duration_to_linux_old_timeval(timeout: Option) -> io::Result<__kernel_old_timeval> { + Ok(match timeout { + Some(timeout) => { + if timeout == Duration::ZERO { + return Err(io::Errno::INVAL); + } + + // `subsec_micros` rounds down, so we use `subsec_nanos` and + // manually round up. + let mut timeout = __kernel_old_timeval { + tv_sec: timeout.as_secs().try_into().unwrap_or(c::c_long::MAX), + tv_usec: ((timeout.subsec_nanos() + 999) / 1000) as _, + }; + if timeout.tv_sec == 0 && timeout.tv_usec == 0 { + timeout.tv_usec = 1; + } + timeout + } + None => __kernel_old_timeval { + tv_sec: 0, + tv_usec: 0, + }, + }) +} + +#[inline] +pub(crate) fn socket_error(fd: BorrowedFd<'_>) -> io::Result> { + let err: c::c_int = getsockopt(fd, c::SOL_SOCKET, c::SO_ERROR)?; + Ok(if err == 0 { + Ok(()) + } else { + Err(io::Errno::from_raw_os_error(err)) + }) +} + +#[inline] +pub(crate) fn set_socket_keepalive(fd: BorrowedFd<'_>, keepalive: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_KEEPALIVE, from_bool(keepalive)) +} + +#[inline] +pub(crate) fn socket_keepalive(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_KEEPALIVE).map(to_bool) +} + +#[inline] +pub(crate) fn set_socket_recv_buffer_size(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { + let size: c::c_int = size.try_into().map_err(|_| io::Errno::INVAL)?; + setsockopt(fd, c::SOL_SOCKET, c::SO_RCVBUF, size) +} + +#[inline] +pub(crate) fn set_socket_recv_buffer_size_force(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { + let size: c::c_int = size.try_into().map_err(|_| io::Errno::INVAL)?; + setsockopt(fd, c::SOL_SOCKET, c::SO_RCVBUFFORCE, size) +} + +#[inline] +pub(crate) fn socket_recv_buffer_size(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_RCVBUF).map(|size: u32| size as usize) +} + +#[inline] +pub(crate) fn set_socket_send_buffer_size(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { + let size: c::c_int = size.try_into().map_err(|_| io::Errno::INVAL)?; + setsockopt(fd, c::SOL_SOCKET, c::SO_SNDBUF, size) +} + +#[inline] +pub(crate) fn set_socket_send_buffer_size_force(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { + let size: c::c_int = size.try_into().map_err(|_| io::Errno::INVAL)?; + setsockopt(fd, c::SOL_SOCKET, c::SO_SNDBUFFORCE, size) +} + +#[inline] +pub(crate) fn socket_send_buffer_size(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_SNDBUF).map(|size: u32| size as usize) +} + +#[inline] +pub(crate) fn socket_domain(fd: BorrowedFd<'_>) -> io::Result { + let domain: c::c_int = getsockopt(fd, c::SOL_SOCKET, c::SO_DOMAIN)?; + Ok(AddressFamily( + domain.try_into().map_err(|_| io::Errno::OPNOTSUPP)?, + )) +} + +#[inline] +pub(crate) fn socket_acceptconn(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_ACCEPTCONN).map(to_bool) +} + +#[inline] +pub(crate) fn set_socket_oobinline(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_OOBINLINE, from_bool(value)) +} + +#[inline] +pub(crate) fn socket_oobinline(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_OOBINLINE).map(to_bool) +} + +#[inline] +pub(crate) fn set_socket_reuseport(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_REUSEPORT, from_bool(value)) +} + +#[inline] +pub(crate) fn socket_reuseport(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_REUSEPORT).map(to_bool) +} + +#[inline] +pub(crate) fn socket_protocol(fd: BorrowedFd<'_>) -> io::Result> { + getsockopt(fd, c::SOL_SOCKET, c::SO_PROTOCOL) + .map(|raw: u32| RawProtocol::new(raw).map(Protocol::from_raw)) +} + +#[inline] +pub(crate) fn socket_cookie(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_COOKIE) +} + +#[inline] +pub(crate) fn socket_incoming_cpu(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, c::SO_INCOMING_CPU) +} + +#[inline] +pub(crate) fn set_socket_incoming_cpu(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::SOL_SOCKET, c::SO_INCOMING_CPU, value) +} + +#[inline] +pub(crate) fn set_ip_ttl(fd: BorrowedFd<'_>, ttl: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IP_TTL, ttl) +} + +#[inline] +pub(crate) fn ip_ttl(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IP_TTL) +} + +#[inline] +pub(crate) fn set_ipv6_v6only(fd: BorrowedFd<'_>, only_v6: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_V6ONLY, from_bool(only_v6)) +} + +#[inline] +pub(crate) fn ipv6_v6only(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_V6ONLY).map(to_bool) +} + +#[inline] +pub(crate) fn ip_mtu(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, IP_MTU) +} + +#[inline] +pub(crate) fn ipv6_mtu(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, IPV6_MTU) +} + +#[inline] +pub(crate) fn set_ip_mtu_discover( + fd: BorrowedFd<'_>, + value: Ipv4PathMtuDiscovery, +) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, IP_MTU_DISCOVER, value) +} + +#[inline] +pub(crate) fn ip_mtu_discover(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, IP_MTU_DISCOVER) +} + +#[inline] +pub(crate) fn set_ipv6_mtu_discover( + fd: BorrowedFd<'_>, + value: Ipv6PathMtuDiscovery, +) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IPV6, IPV6_MTU_DISCOVER, value) +} + +#[inline] +pub(crate) fn ipv6_mtu_discover(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, IPV6_MTU_DISCOVER) +} + +#[inline] +pub(crate) fn set_ip_multicast_if_with_ifindex( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + address: &Ipv4Addr, + ifindex: u32, +) -> io::Result<()> { + let mreqn = to_ip_mreqn(multiaddr, address, ifindex as i32); + setsockopt(fd, c::IPPROTO_IP, IP_MULTICAST_IF, mreqn) +} + +#[inline] +pub(crate) fn set_ip_multicast_if(fd: BorrowedFd<'_>, value: &Ipv4Addr) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, IP_MULTICAST_IF, to_imr_addr(value)) +} + +#[inline] +pub(crate) fn ip_multicast_if(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, IP_MULTICAST_IF).map(from_in_addr) +} + +#[inline] +pub(crate) fn set_ipv6_multicast_if(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IPV6, IPV6_MULTICAST_IF, value as c::c_int) +} + +#[inline] +pub(crate) fn ipv6_multicast_if(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, IPV6_MULTICAST_IF) +} + +#[inline] +pub(crate) fn set_ip_multicast_loop(fd: BorrowedFd<'_>, multicast_loop: bool) -> io::Result<()> { + setsockopt( + fd, + c::IPPROTO_IP, + c::IP_MULTICAST_LOOP, + from_bool(multicast_loop), + ) +} + +#[inline] +pub(crate) fn ip_multicast_loop(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IP_MULTICAST_LOOP).map(to_bool) +} + +#[inline] +pub(crate) fn set_ip_multicast_ttl(fd: BorrowedFd<'_>, multicast_ttl: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IP_MULTICAST_TTL, multicast_ttl) +} + +#[inline] +pub(crate) fn ip_multicast_ttl(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IP_MULTICAST_TTL) +} + +#[inline] +pub(crate) fn set_ipv6_multicast_loop(fd: BorrowedFd<'_>, multicast_loop: bool) -> io::Result<()> { + setsockopt( + fd, + c::IPPROTO_IPV6, + c::IPV6_MULTICAST_LOOP, + from_bool(multicast_loop), + ) +} + +#[inline] +pub(crate) fn ipv6_multicast_loop(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_MULTICAST_LOOP).map(to_bool) +} + +#[inline] +pub(crate) fn set_ipv6_multicast_hops(fd: BorrowedFd<'_>, multicast_hops: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IPV6_MULTICAST_HOPS, multicast_hops) +} + +#[inline] +pub(crate) fn ipv6_multicast_hops(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IPV6_MULTICAST_HOPS) +} + +#[inline] +pub(crate) fn set_ip_add_membership( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + interface: &Ipv4Addr, +) -> io::Result<()> { + let mreq = to_ip_mreq(multiaddr, interface); + setsockopt(fd, c::IPPROTO_IP, c::IP_ADD_MEMBERSHIP, mreq) +} + +#[inline] +pub(crate) fn set_ip_add_membership_with_ifindex( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + address: &Ipv4Addr, + ifindex: u32, +) -> io::Result<()> { + let mreqn = to_ip_mreqn(multiaddr, address, ifindex as i32); + setsockopt(fd, c::IPPROTO_IP, c::IP_ADD_MEMBERSHIP, mreqn) +} + +#[inline] +pub(crate) fn set_ip_add_source_membership( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + interface: &Ipv4Addr, + sourceaddr: &Ipv4Addr, +) -> io::Result<()> { + let mreq_source = to_imr_source(multiaddr, interface, sourceaddr); + setsockopt(fd, c::IPPROTO_IP, c::IP_ADD_SOURCE_MEMBERSHIP, mreq_source) +} + +#[inline] +pub(crate) fn set_ip_drop_source_membership( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + interface: &Ipv4Addr, + sourceaddr: &Ipv4Addr, +) -> io::Result<()> { + let mreq_source = to_imr_source(multiaddr, interface, sourceaddr); + setsockopt(fd, c::IPPROTO_IP, c::IP_DROP_SOURCE_MEMBERSHIP, mreq_source) +} + +#[inline] +pub(crate) fn set_ipv6_add_membership( + fd: BorrowedFd<'_>, + multiaddr: &Ipv6Addr, + interface: u32, +) -> io::Result<()> { + let mreq = to_ipv6mr(multiaddr, interface); + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_ADD_MEMBERSHIP, mreq) +} + +#[inline] +pub(crate) fn set_ip_drop_membership( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + interface: &Ipv4Addr, +) -> io::Result<()> { + let mreq = to_ip_mreq(multiaddr, interface); + setsockopt(fd, c::IPPROTO_IP, c::IP_DROP_MEMBERSHIP, mreq) +} + +#[inline] +pub(crate) fn set_ip_drop_membership_with_ifindex( + fd: BorrowedFd<'_>, + multiaddr: &Ipv4Addr, + address: &Ipv4Addr, + ifindex: u32, +) -> io::Result<()> { + let mreqn = to_ip_mreqn(multiaddr, address, ifindex as i32); + setsockopt(fd, c::IPPROTO_IP, c::IP_DROP_MEMBERSHIP, mreqn) +} + +#[inline] +pub(crate) fn set_ipv6_drop_membership( + fd: BorrowedFd<'_>, + multiaddr: &Ipv6Addr, + interface: u32, +) -> io::Result<()> { + let mreq = to_ipv6mr(multiaddr, interface); + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_DROP_MEMBERSHIP, mreq) +} + +#[inline] +pub(crate) fn ipv6_unicast_hops(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_UNICAST_HOPS).map(|hops: c::c_int| hops as u8) +} + +#[inline] +pub(crate) fn set_ipv6_unicast_hops(fd: BorrowedFd<'_>, hops: Option) -> io::Result<()> { + let hops = match hops { + Some(hops) => hops.into(), + None => -1, + }; + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_UNICAST_HOPS, hops) +} + +#[inline] +pub(crate) fn set_ip_tos(fd: BorrowedFd<'_>, value: u8) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IP_TOS, i32::from(value)) +} + +#[inline] +pub(crate) fn ip_tos(fd: BorrowedFd<'_>) -> io::Result { + let value: i32 = getsockopt(fd, c::IPPROTO_IP, c::IP_TOS)?; + Ok(value as u8) +} + +#[inline] +pub(crate) fn set_ip_recvtos(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IP_RECVTOS, from_bool(value)) +} + +#[inline] +pub(crate) fn ip_recvtos(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IP_RECVTOS).map(to_bool) +} + +#[inline] +pub(crate) fn set_ipv6_recvtclass(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_RECVTCLASS, from_bool(value)) +} + +#[inline] +pub(crate) fn ipv6_recvtclass(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_RECVTCLASS).map(to_bool) +} + +#[inline] +pub(crate) fn set_ip_freebind(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IP, c::IP_FREEBIND, from_bool(value)) +} + +#[inline] +pub(crate) fn ip_freebind(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IP, c::IP_FREEBIND).map(to_bool) +} + +#[inline] +pub(crate) fn set_ipv6_freebind(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_FREEBIND, from_bool(value)) +} + +#[inline] +pub(crate) fn ipv6_freebind(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_FREEBIND).map(to_bool) +} + +#[inline] +pub(crate) fn ip_original_dst(fd: BorrowedFd<'_>) -> io::Result { + let level = c::IPPROTO_IP; + let optname = c::SO_ORIGINAL_DST; + let mut addr = SocketAddrBuf::new(); + + getsockopt_raw(fd, level, optname, &mut addr.storage, &mut addr.len)?; + + Ok(unsafe { addr.into_any() }.try_into().unwrap()) +} + +#[inline] +pub(crate) fn ipv6_original_dst(fd: BorrowedFd<'_>) -> io::Result { + let level = c::IPPROTO_IPV6; + let optname = c::IP6T_SO_ORIGINAL_DST; + let mut addr = SocketAddrBuf::new(); + + getsockopt_raw(fd, level, optname, &mut addr.storage, &mut addr.len)?; + + Ok(unsafe { addr.into_any() }.try_into().unwrap()) +} + +#[inline] +pub(crate) fn set_ipv6_tclass(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_IPV6, c::IPV6_TCLASS, value) +} + +#[inline] +pub(crate) fn ipv6_tclass(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_IPV6, c::IPV6_TCLASS) +} + +#[inline] +pub(crate) fn set_tcp_nodelay(fd: BorrowedFd<'_>, nodelay: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_TCP, c::TCP_NODELAY, from_bool(nodelay)) +} + +#[inline] +pub(crate) fn tcp_nodelay(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_TCP, c::TCP_NODELAY).map(to_bool) +} + +#[inline] +pub(crate) fn set_tcp_keepcnt(fd: BorrowedFd<'_>, count: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_TCP, c::TCP_KEEPCNT, count) +} + +#[inline] +pub(crate) fn tcp_keepcnt(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_TCP, c::TCP_KEEPCNT) +} + +#[inline] +pub(crate) fn set_tcp_keepidle(fd: BorrowedFd<'_>, duration: Duration) -> io::Result<()> { + let secs: c::c_uint = duration_to_secs(duration)?; + setsockopt(fd, c::IPPROTO_TCP, c::TCP_KEEPIDLE, secs) +} + +#[inline] +pub(crate) fn tcp_keepidle(fd: BorrowedFd<'_>) -> io::Result { + let secs: c::c_uint = getsockopt(fd, c::IPPROTO_TCP, c::TCP_KEEPIDLE)?; + Ok(Duration::from_secs(secs.into())) +} + +#[inline] +pub(crate) fn set_tcp_keepintvl(fd: BorrowedFd<'_>, duration: Duration) -> io::Result<()> { + let secs: c::c_uint = duration_to_secs(duration)?; + setsockopt(fd, c::IPPROTO_TCP, c::TCP_KEEPINTVL, secs) +} + +#[inline] +pub(crate) fn tcp_keepintvl(fd: BorrowedFd<'_>) -> io::Result { + let secs: c::c_uint = getsockopt(fd, c::IPPROTO_TCP, c::TCP_KEEPINTVL)?; + Ok(Duration::from_secs(secs.into())) +} + +#[inline] +pub(crate) fn set_tcp_user_timeout(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_TCP, c::TCP_USER_TIMEOUT, value) +} + +#[inline] +pub(crate) fn tcp_user_timeout(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_TCP, c::TCP_USER_TIMEOUT) +} + +#[inline] +pub(crate) fn set_tcp_quickack(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_TCP, c::TCP_QUICKACK, from_bool(value)) +} + +#[inline] +pub(crate) fn tcp_quickack(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_TCP, c::TCP_QUICKACK).map(to_bool) +} + +#[inline] +pub(crate) fn set_tcp_congestion(fd: BorrowedFd<'_>, value: &str) -> io::Result<()> { + let level = c::IPPROTO_TCP; + let optname = c::TCP_CONGESTION; + let optlen = value.len().try_into().unwrap(); + setsockopt_raw(fd, level, optname, value.as_ptr(), optlen) +} + +#[cfg(feature = "alloc")] +#[inline] +pub(crate) fn tcp_congestion(fd: BorrowedFd<'_>) -> io::Result { + const OPTLEN: c::socklen_t = 16; + + let level = c::IPPROTO_TCP; + let optname = c::TCP_CONGESTION; + let mut value = MaybeUninit::<[MaybeUninit; OPTLEN as usize]>::uninit(); + let mut optlen = OPTLEN; + getsockopt_raw(fd, level, optname, &mut value, &mut optlen)?; + unsafe { + let value = value.assume_init(); + let slice: &[u8] = core::mem::transmute(&value[..optlen as usize]); + assert!(slice.contains(&b'\0')); + Ok( + core::str::from_utf8(CStr::from_ptr(slice.as_ptr().cast()).to_bytes()) + .unwrap() + .to_owned(), + ) + } +} + +#[inline] +pub(crate) fn set_tcp_thin_linear_timeouts(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt( + fd, + c::IPPROTO_TCP, + c::TCP_THIN_LINEAR_TIMEOUTS, + from_bool(value), + ) +} + +#[inline] +pub(crate) fn tcp_thin_linear_timeouts(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_TCP, c::TCP_THIN_LINEAR_TIMEOUTS).map(to_bool) +} + +#[inline] +pub(crate) fn set_tcp_cork(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { + setsockopt(fd, c::IPPROTO_TCP, c::TCP_CORK, from_bool(value)) +} + +#[inline] +pub(crate) fn tcp_cork(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::IPPROTO_TCP, c::TCP_CORK).map(to_bool) +} + +#[inline] +pub(crate) fn socket_peercred(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_SOCKET, linux_raw_sys::net::SO_PEERCRED) +} + +#[cfg(all(target_os = "linux", feature = "time"))] +#[inline] +pub(crate) fn set_txtime( + fd: BorrowedFd<'_>, + clockid: ClockId, + flags: TxTimeFlags, +) -> io::Result<()> { + setsockopt( + fd, + c::SOL_SOCKET, + c::SO_TXTIME, + c::sock_txtime { + clockid: clockid as _, + flags: flags.bits(), + }, + ) +} + +#[cfg(all(target_os = "linux", feature = "time"))] +#[inline] +pub(crate) fn get_txtime(fd: BorrowedFd<'_>) -> io::Result<(ClockId, TxTimeFlags)> { + let txtime: c::sock_txtime = getsockopt(fd, c::SOL_SOCKET, c::SO_TXTIME)?; + + Ok(( + txtime.clockid.try_into().map_err(|_| io::Errno::RANGE)?, + TxTimeFlags::from_bits(txtime.flags).ok_or(io::Errno::RANGE)?, + )) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn set_xdp_umem_reg(fd: BorrowedFd<'_>, value: XdpUmemReg) -> io::Result<()> { + setsockopt(fd, c::SOL_XDP, c::XDP_UMEM_REG, value) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn set_xdp_umem_fill_ring_size(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::SOL_XDP, c::XDP_UMEM_FILL_RING, value) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn set_xdp_umem_completion_ring_size(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::SOL_XDP, c::XDP_UMEM_COMPLETION_RING, value) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn set_xdp_tx_ring_size(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::SOL_XDP, c::XDP_TX_RING, value) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn set_xdp_rx_ring_size(fd: BorrowedFd<'_>, value: u32) -> io::Result<()> { + setsockopt(fd, c::SOL_XDP, c::XDP_RX_RING, value) +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn xdp_mmap_offsets(fd: BorrowedFd<'_>) -> io::Result { + // The kernel will write `xdp_mmap_offsets` or `xdp_mmap_offsets_v1` to the + // supplied pointer, depending on the kernel version. Both structs only + // contain u64 values. By using the larger of both as the parameter, we can + // shuffle the values to the non-v1 version returned by + // `get_xdp_mmap_offsets` while keeping the return type unaffected by the + // kernel version. This works because C will layout all struct members one + // after the other. + + let mut optlen = size_of::().try_into().unwrap(); + debug_assert!( + optlen as usize >= size_of::(), + "Socket APIs don't ever use `bool` directly" + ); + let mut value = MaybeUninit::::zeroed(); + getsockopt_raw(fd, c::SOL_XDP, c::XDP_MMAP_OFFSETS, &mut value, &mut optlen)?; + + if optlen as usize == size_of::() { + // SAFETY: All members of xdp_mmap_offsets are `u64` and thus are + // correctly initialized by `MaybeUninit::::zeroed()`. + let xpd_mmap_offsets = unsafe { value.assume_init() }; + Ok(XdpMmapOffsets { + rx: XdpRingOffset { + producer: xpd_mmap_offsets.rx.producer, + consumer: xpd_mmap_offsets.rx.consumer, + desc: xpd_mmap_offsets.rx.desc, + flags: None, + }, + tx: XdpRingOffset { + producer: xpd_mmap_offsets.rx.flags, + consumer: xpd_mmap_offsets.tx.producer, + desc: xpd_mmap_offsets.tx.consumer, + flags: None, + }, + fr: XdpRingOffset { + producer: xpd_mmap_offsets.tx.desc, + consumer: xpd_mmap_offsets.tx.flags, + desc: xpd_mmap_offsets.fr.producer, + flags: None, + }, + cr: XdpRingOffset { + producer: xpd_mmap_offsets.fr.consumer, + consumer: xpd_mmap_offsets.fr.desc, + desc: xpd_mmap_offsets.fr.flags, + flags: None, + }, + }) + } else { + assert_eq!( + optlen as usize, + size_of::(), + "unexpected getsockopt size" + ); + // SAFETY: All members of xdp_mmap_offsets are `u64` and thus are + // correctly initialized by `MaybeUninit::::zeroed()`. + let xpd_mmap_offsets = unsafe { value.assume_init() }; + Ok(XdpMmapOffsets { + rx: XdpRingOffset { + producer: xpd_mmap_offsets.rx.producer, + consumer: xpd_mmap_offsets.rx.consumer, + desc: xpd_mmap_offsets.rx.desc, + flags: Some(xpd_mmap_offsets.rx.flags), + }, + tx: XdpRingOffset { + producer: xpd_mmap_offsets.tx.producer, + consumer: xpd_mmap_offsets.tx.consumer, + desc: xpd_mmap_offsets.tx.desc, + flags: Some(xpd_mmap_offsets.tx.flags), + }, + fr: XdpRingOffset { + producer: xpd_mmap_offsets.fr.producer, + consumer: xpd_mmap_offsets.fr.consumer, + desc: xpd_mmap_offsets.fr.desc, + flags: Some(xpd_mmap_offsets.fr.flags), + }, + cr: XdpRingOffset { + producer: xpd_mmap_offsets.cr.producer, + consumer: xpd_mmap_offsets.cr.consumer, + desc: xpd_mmap_offsets.cr.desc, + flags: Some(xpd_mmap_offsets.cr.flags), + }, + }) + } +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn xdp_statistics(fd: BorrowedFd<'_>) -> io::Result { + let mut optlen = size_of::().try_into().unwrap(); + debug_assert!( + optlen as usize >= size_of::(), + "Socket APIs don't ever use `bool` directly" + ); + let mut value = MaybeUninit::::zeroed(); + getsockopt_raw(fd, c::SOL_XDP, c::XDP_STATISTICS, &mut value, &mut optlen)?; + + if optlen as usize == size_of::() { + // SAFETY: All members of xdp_statistics are `u64` and thus are + // correctly initialized by `MaybeUninit::::zeroed()`. + let xdp_statistics = unsafe { value.assume_init() }; + Ok(XdpStatistics { + rx_dropped: xdp_statistics.rx_dropped, + rx_invalid_descs: xdp_statistics.rx_dropped, + tx_invalid_descs: xdp_statistics.rx_dropped, + rx_ring_full: None, + rx_fill_ring_empty_descs: None, + tx_ring_empty_descs: None, + }) + } else { + assert_eq!( + optlen as usize, + size_of::(), + "unexpected getsockopt size" + ); + // SAFETY: All members of xdp_statistics are `u64` and thus are + // correctly initialized by `MaybeUninit::::zeroed()`. + let xdp_statistics = unsafe { value.assume_init() }; + Ok(XdpStatistics { + rx_dropped: xdp_statistics.rx_dropped, + rx_invalid_descs: xdp_statistics.rx_invalid_descs, + tx_invalid_descs: xdp_statistics.tx_invalid_descs, + rx_ring_full: Some(xdp_statistics.rx_ring_full), + rx_fill_ring_empty_descs: Some(xdp_statistics.rx_fill_ring_empty_descs), + tx_ring_empty_descs: Some(xdp_statistics.tx_ring_empty_descs), + }) + } +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn xdp_options(fd: BorrowedFd<'_>) -> io::Result { + getsockopt(fd, c::SOL_XDP, c::XDP_OPTIONS) +} + +#[inline] +fn from_in_addr(in_addr: c::in_addr) -> Ipv4Addr { + Ipv4Addr::from(in_addr.s_addr.to_ne_bytes()) +} + +#[inline] +fn to_ip_mreq(multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> c::ip_mreq { + c::ip_mreq { + imr_multiaddr: to_imr_addr(multiaddr), + imr_interface: to_imr_addr(interface), + } +} + +#[inline] +fn to_ip_mreqn(multiaddr: &Ipv4Addr, address: &Ipv4Addr, ifindex: i32) -> c::ip_mreqn { + c::ip_mreqn { + imr_multiaddr: to_imr_addr(multiaddr), + imr_address: to_imr_addr(address), + imr_ifindex: ifindex, + } +} + +#[inline] +fn to_imr_source( + multiaddr: &Ipv4Addr, + interface: &Ipv4Addr, + sourceaddr: &Ipv4Addr, +) -> c::ip_mreq_source { + c::ip_mreq_source { + imr_multiaddr: to_imr_addr(multiaddr).s_addr, + imr_interface: to_imr_addr(interface).s_addr, + imr_sourceaddr: to_imr_addr(sourceaddr).s_addr, + } +} + +#[inline] +fn to_imr_addr(addr: &Ipv4Addr) -> c::in_addr { + c::in_addr { + s_addr: u32::from_ne_bytes(addr.octets()), + } +} + +#[inline] +fn to_ipv6mr(multiaddr: &Ipv6Addr, interface: u32) -> c::ipv6_mreq { + c::ipv6_mreq { + ipv6mr_multiaddr: to_ipv6mr_multiaddr(multiaddr), + ipv6mr_ifindex: to_ipv6mr_interface(interface), + } +} + +#[inline] +fn to_ipv6mr_multiaddr(multiaddr: &Ipv6Addr) -> c::in6_addr { + c::in6_addr { + in6_u: linux_raw_sys::net::in6_addr__bindgen_ty_1 { + u6_addr8: multiaddr.octets(), + }, + } +} + +#[inline] +fn to_ipv6mr_interface(interface: u32) -> c::c_int { + interface as c::c_int +} + +#[inline] +fn from_bool(value: bool) -> c::c_uint { + c::c_uint::from(value) +} + +#[inline] +fn to_bool(value: c::c_uint) -> bool { + value != 0 +} + +/// Convert to seconds, rounding up if necessary. +#[inline] +fn duration_to_secs>(duration: Duration) -> io::Result { + let mut secs = duration.as_secs(); + if duration.subsec_nanos() != 0 { + secs = secs.checked_add(1).ok_or(io::Errno::INVAL)?; + } + T::try_from(secs).map_err(|_e| io::Errno::INVAL) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..488e08f02428f0896fd2f986e61435779dbae6cd --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/syscalls.rs @@ -0,0 +1,731 @@ +//! linux_raw syscalls supporting `rustix::net`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use super::msghdr::{noaddr_msghdr, with_msghdr, with_recv_msghdr}; +use super::read_sockaddr::initialize_family_to_unspec; +use super::send_recv::{RecvFlags, ReturnFlags, SendFlags}; +use crate::backend::c; +#[cfg(target_os = "linux")] +use crate::backend::conv::slice_mut; +use crate::backend::conv::{ + by_mut, by_ref, c_int, c_uint, pass_usize, ret, ret_owned_fd, ret_usize, size_of, slice, + socklen_t, zero, +}; +use crate::backend::reg::raw_arg; +use crate::fd::{BorrowedFd, OwnedFd}; +use crate::io::{self, IoSlice, IoSliceMut}; +use crate::net::addr::SocketAddrArg; +#[cfg(target_os = "linux")] +use crate::net::MMsgHdr; +use crate::net::{ + AddressFamily, Protocol, RecvAncillaryBuffer, RecvMsg, SendAncillaryBuffer, Shutdown, + SocketAddrAny, SocketAddrBuf, SocketFlags, SocketType, +}; +use core::mem::MaybeUninit; +#[cfg(target_arch = "x86")] +use { + crate::backend::conv::{slice_just_addr, x86_sys}, + crate::backend::reg::{ArgReg, SocketArg}, + linux_raw_sys::net::{ + SYS_ACCEPT, SYS_ACCEPT4, SYS_BIND, SYS_CONNECT, SYS_GETPEERNAME, SYS_GETSOCKNAME, + SYS_LISTEN, SYS_RECV, SYS_RECVFROM, SYS_RECVMSG, SYS_SEND, SYS_SENDMMSG, SYS_SENDMSG, + SYS_SENDTO, SYS_SHUTDOWN, SYS_SOCKET, SYS_SOCKETPAIR, + }, +}; + +#[inline] +pub(crate) fn socket( + family: AddressFamily, + type_: SocketType, + protocol: Option, +) -> io::Result { + #[cfg(not(target_arch = "x86"))] + unsafe { + ret_owned_fd(syscall_readonly!(__NR_socket, family, type_, protocol)) + } + #[cfg(target_arch = "x86")] + unsafe { + ret_owned_fd(syscall_readonly!( + __NR_socketcall, + x86_sys(SYS_SOCKET), + slice_just_addr::, _>(&[ + family.into(), + type_.into(), + protocol.into(), + ]) + )) + } +} + +#[inline] +pub(crate) fn socket_with( + family: AddressFamily, + type_: SocketType, + flags: SocketFlags, + protocol: Option, +) -> io::Result { + #[cfg(not(target_arch = "x86"))] + unsafe { + ret_owned_fd(syscall_readonly!( + __NR_socket, + family, + (type_, flags), + protocol + )) + } + #[cfg(target_arch = "x86")] + unsafe { + ret_owned_fd(syscall_readonly!( + __NR_socketcall, + x86_sys(SYS_SOCKET), + slice_just_addr::, _>(&[ + family.into(), + (type_, flags).into(), + protocol.into(), + ]) + )) + } +} + +#[inline] +pub(crate) fn socketpair( + family: AddressFamily, + type_: SocketType, + flags: SocketFlags, + protocol: Option, +) -> io::Result<(OwnedFd, OwnedFd)> { + #[cfg(not(target_arch = "x86"))] + unsafe { + let mut result = MaybeUninit::<[OwnedFd; 2]>::uninit(); + ret(syscall!( + __NR_socketpair, + family, + (type_, flags), + protocol, + &mut result + ))?; + let [fd0, fd1] = result.assume_init(); + Ok((fd0, fd1)) + } + #[cfg(target_arch = "x86")] + unsafe { + let mut result = MaybeUninit::<[OwnedFd; 2]>::uninit(); + ret(syscall!( + __NR_socketcall, + x86_sys(SYS_SOCKETPAIR), + slice_just_addr::, _>(&[ + family.into(), + (type_, flags).into(), + protocol.into(), + (&mut result).into(), + ]) + ))?; + let [fd0, fd1] = result.assume_init(); + Ok((fd0, fd1)) + } +} + +#[inline] +pub(crate) fn accept(fd: BorrowedFd<'_>) -> io::Result { + #[cfg(not(any(target_arch = "x86", target_arch = "s390x")))] + unsafe { + let fd = ret_owned_fd(syscall_readonly!(__NR_accept, fd, zero(), zero()))?; + Ok(fd) + } + #[cfg(target_arch = "x86")] + unsafe { + let fd = ret_owned_fd(syscall_readonly!( + __NR_socketcall, + x86_sys(SYS_ACCEPT), + slice_just_addr::, _>(&[fd.into(), zero(), zero()]) + ))?; + Ok(fd) + } + #[cfg(target_arch = "s390x")] + { + // accept is not available on s390x + accept_with(fd, SocketFlags::empty()) + } +} + +#[inline] +pub(crate) fn accept_with(fd: BorrowedFd<'_>, flags: SocketFlags) -> io::Result { + #[cfg(not(target_arch = "x86"))] + unsafe { + let fd = ret_owned_fd(syscall_readonly!(__NR_accept4, fd, zero(), zero(), flags))?; + Ok(fd) + } + #[cfg(target_arch = "x86")] + unsafe { + let fd = ret_owned_fd(syscall_readonly!( + __NR_socketcall, + x86_sys(SYS_ACCEPT4), + slice_just_addr::, _>(&[fd.into(), zero(), zero(), flags.into()]) + ))?; + Ok(fd) + } +} + +#[inline] +pub(crate) fn acceptfrom(fd: BorrowedFd<'_>) -> io::Result<(OwnedFd, Option)> { + #[cfg(not(any(target_arch = "x86", target_arch = "s390x")))] + unsafe { + let mut addr = SocketAddrBuf::new(); + let fd = ret_owned_fd(syscall!( + __NR_accept, + fd, + &mut addr.storage, + by_mut(&mut addr.len) + ))?; + Ok((fd, addr.into_any_option())) + } + #[cfg(target_arch = "x86")] + unsafe { + let mut addr = SocketAddrBuf::new(); + let fd = ret_owned_fd(syscall!( + __NR_socketcall, + x86_sys(SYS_ACCEPT), + slice_just_addr::, _>(&[ + fd.into(), + (&mut addr.storage).into(), + by_mut(&mut addr.len), + ]) + ))?; + Ok((fd, addr.into_any_option())) + } + #[cfg(target_arch = "s390x")] + { + // accept is not available on s390x + acceptfrom_with(fd, SocketFlags::empty()) + } +} + +#[inline] +pub(crate) fn acceptfrom_with( + fd: BorrowedFd<'_>, + flags: SocketFlags, +) -> io::Result<(OwnedFd, Option)> { + #[cfg(not(target_arch = "x86"))] + unsafe { + let mut addr = SocketAddrBuf::new(); + let fd = ret_owned_fd(syscall!( + __NR_accept4, + fd, + &mut addr.storage, + by_mut(&mut addr.len), + flags + ))?; + Ok((fd, addr.into_any_option())) + } + #[cfg(target_arch = "x86")] + unsafe { + let mut addr = SocketAddrBuf::new(); + let fd = ret_owned_fd(syscall!( + __NR_socketcall, + x86_sys(SYS_ACCEPT4), + slice_just_addr::, _>(&[ + fd.into(), + (&mut addr.storage).into(), + by_mut(&mut addr.len), + flags.into(), + ]) + ))?; + Ok((fd, addr.into_any_option())) + } +} + +#[inline] +pub(crate) fn recvmsg( + sockfd: BorrowedFd<'_>, + iov: &mut [IoSliceMut<'_>], + control: &mut RecvAncillaryBuffer<'_>, + msg_flags: RecvFlags, +) -> io::Result { + let mut addr = SocketAddrBuf::new(); + + // SAFETY: This passes the `msghdr` reference to the OS which reads the + // buffers only within the designated bounds. + let (bytes, flags) = unsafe { + with_recv_msghdr(&mut addr, iov, control, |msghdr| { + #[cfg(not(target_arch = "x86"))] + let result = ret_usize(syscall!(__NR_recvmsg, sockfd, by_mut(msghdr), msg_flags)); + + #[cfg(target_arch = "x86")] + let result = ret_usize(syscall!( + __NR_socketcall, + x86_sys(SYS_RECVMSG), + slice_just_addr::, _>(&[ + sockfd.into(), + by_mut(msghdr), + msg_flags.into(), + ]) + )); + + result.map(|bytes| (bytes, msghdr.msg_flags)) + })? + }; + + // Get the address of the sender, if any. + Ok(RecvMsg { + bytes, + address: unsafe { addr.into_any_option() }, + flags: ReturnFlags::from_bits_retain(flags), + }) +} + +#[inline] +pub(crate) fn sendmsg( + sockfd: BorrowedFd<'_>, + iov: &[IoSlice<'_>], + control: &mut SendAncillaryBuffer<'_, '_, '_>, + msg_flags: SendFlags, +) -> io::Result { + let msghdr = noaddr_msghdr(iov, control); + + #[cfg(not(target_arch = "x86"))] + let result = unsafe { ret_usize(syscall!(__NR_sendmsg, sockfd, by_ref(&msghdr), msg_flags)) }; + + #[cfg(target_arch = "x86")] + let result = unsafe { + ret_usize(syscall!( + __NR_socketcall, + x86_sys(SYS_SENDMSG), + slice_just_addr::, _>(&[ + sockfd.into(), + by_ref(&msghdr), + msg_flags.into() + ]) + )) + }; + + result +} + +#[inline] +pub(crate) fn sendmsg_addr( + sockfd: BorrowedFd<'_>, + addr: &impl SocketAddrArg, + iov: &[IoSlice<'_>], + control: &mut SendAncillaryBuffer<'_, '_, '_>, + msg_flags: SendFlags, +) -> io::Result { + // SAFETY: This passes the `msghdr` reference to the OS which reads the + // buffers only within the designated bounds. + unsafe { + with_msghdr(addr, iov, control, |msghdr| { + #[cfg(not(target_arch = "x86"))] + let result = ret_usize(syscall!(__NR_sendmsg, sockfd, by_ref(msghdr), msg_flags)); + + #[cfg(target_arch = "x86")] + let result = ret_usize(syscall!( + __NR_socketcall, + x86_sys(SYS_SENDMSG), + slice_just_addr::, _>(&[ + sockfd.into(), + by_ref(msghdr), + msg_flags.into(), + ]) + )); + + result + }) + } +} + +#[cfg(target_os = "linux")] +#[inline] +pub(crate) fn sendmmsg( + sockfd: BorrowedFd<'_>, + msgs: &mut [MMsgHdr<'_>], + flags: SendFlags, +) -> io::Result { + let (msgs, len) = slice_mut(msgs); + + #[cfg(not(target_arch = "x86"))] + let result = unsafe { ret_usize(syscall!(__NR_sendmmsg, sockfd, msgs, len, flags)) }; + + #[cfg(target_arch = "x86")] + let result = unsafe { + ret_usize(syscall!( + __NR_socketcall, + x86_sys(SYS_SENDMMSG), + slice_just_addr::, _>(&[sockfd.into(), msgs, len, flags.into()]) + )) + }; + + result +} + +#[inline] +pub(crate) fn shutdown(fd: BorrowedFd<'_>, how: Shutdown) -> io::Result<()> { + #[cfg(not(target_arch = "x86"))] + unsafe { + ret(syscall_readonly!( + __NR_shutdown, + fd, + c_uint(how as c::c_uint) + )) + } + #[cfg(target_arch = "x86")] + unsafe { + ret(syscall_readonly!( + __NR_socketcall, + x86_sys(SYS_SHUTDOWN), + slice_just_addr::, _>(&[fd.into(), c_uint(how as c::c_uint)]) + )) + } +} + +#[inline] +pub(crate) fn send(fd: BorrowedFd<'_>, buf: &[u8], flags: SendFlags) -> io::Result { + let (buf_addr, buf_len) = slice(buf); + + #[cfg(not(any( + target_arch = "aarch64", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "riscv64", + target_arch = "s390x", + target_arch = "x86", + target_arch = "x86_64", + )))] + unsafe { + ret_usize(syscall_readonly!(__NR_send, fd, buf_addr, buf_len, flags)) + } + #[cfg(any( + target_arch = "aarch64", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "riscv64", + target_arch = "s390x", + target_arch = "x86_64", + ))] + unsafe { + ret_usize(syscall_readonly!( + __NR_sendto, + fd, + buf_addr, + buf_len, + flags, + zero(), + zero() + )) + } + #[cfg(target_arch = "x86")] + unsafe { + ret_usize(syscall_readonly!( + __NR_socketcall, + x86_sys(SYS_SEND), + slice_just_addr::, _>(&[ + fd.into(), + buf_addr, + buf_len, + flags.into() + ]) + )) + } +} + +#[inline] +pub(crate) fn sendto( + fd: BorrowedFd<'_>, + buf: &[u8], + flags: SendFlags, + addr: &impl SocketAddrArg, +) -> io::Result { + let (buf_addr, buf_len) = slice(buf); + + // SAFETY: This passes the `addr_ptr` reference to the OS which reads the + // buffers only within the `addr_len` bound. + unsafe { + addr.with_sockaddr(|addr_ptr, addr_len| { + #[cfg(not(target_arch = "x86"))] + { + ret_usize(syscall_readonly!( + __NR_sendto, + fd, + buf_addr, + buf_len, + flags, + raw_arg(addr_ptr as *mut _), + socklen_t(addr_len) + )) + } + #[cfg(target_arch = "x86")] + { + ret_usize(syscall_readonly!( + __NR_socketcall, + x86_sys(SYS_SENDTO), + slice_just_addr::, _>(&[ + fd.into(), + buf_addr, + buf_len, + flags.into(), + raw_arg(addr_ptr as *mut _), + socklen_t(addr_len) + ]) + )) + } + }) + } +} + +#[inline] +pub(crate) unsafe fn recv( + fd: BorrowedFd<'_>, + buf: (*mut u8, usize), + flags: RecvFlags, +) -> io::Result { + #[cfg(not(any( + target_arch = "aarch64", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "riscv64", + target_arch = "s390x", + target_arch = "x86", + target_arch = "x86_64", + )))] + { + ret_usize(syscall!(__NR_recv, fd, buf.0, pass_usize(buf.1), flags)) + } + #[cfg(any( + target_arch = "aarch64", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "riscv64", + target_arch = "s390x", + target_arch = "x86_64", + ))] + { + ret_usize(syscall!( + __NR_recvfrom, + fd, + buf.0, + pass_usize(buf.1), + flags, + zero(), + zero() + )) + } + #[cfg(target_arch = "x86")] + { + ret_usize(syscall!( + __NR_socketcall, + x86_sys(SYS_RECV), + slice_just_addr::, _>(&[ + fd.into(), + buf.0.into(), + pass_usize(buf.1), + flags.into(), + ]) + )) + } +} + +#[inline] +pub(crate) unsafe fn recvfrom( + fd: BorrowedFd<'_>, + buf: (*mut u8, usize), + flags: RecvFlags, +) -> io::Result<(usize, Option)> { + let mut addr = SocketAddrBuf::new(); + + // `recvfrom` does not write to the storage if the socket is + // connection-oriented sockets, so we initialize the family field to + // `AF_UNSPEC` so that we can detect this case. + initialize_family_to_unspec(addr.storage.as_mut_ptr().cast::()); + + #[cfg(not(target_arch = "x86"))] + let nread = ret_usize(syscall!( + __NR_recvfrom, + fd, + buf.0, + pass_usize(buf.1), + flags, + &mut addr.storage, + by_mut(&mut addr.len) + ))?; + #[cfg(target_arch = "x86")] + let nread = ret_usize(syscall!( + __NR_socketcall, + x86_sys(SYS_RECVFROM), + slice_just_addr::, _>(&[ + fd.into(), + buf.0.into(), + pass_usize(buf.1), + flags.into(), + (&mut addr.storage).into(), + by_mut(&mut addr.len), + ]) + ))?; + + Ok((nread, addr.into_any_option())) +} + +#[inline] +pub(crate) fn getpeername(fd: BorrowedFd<'_>) -> io::Result> { + #[cfg(not(target_arch = "x86"))] + unsafe { + let mut addr = SocketAddrBuf::new(); + ret(syscall!( + __NR_getpeername, + fd, + &mut addr.storage, + by_mut(&mut addr.len) + ))?; + Ok(addr.into_any_option()) + } + #[cfg(target_arch = "x86")] + unsafe { + let mut addr = SocketAddrBuf::new(); + ret(syscall!( + __NR_socketcall, + x86_sys(SYS_GETPEERNAME), + slice_just_addr::, _>(&[ + fd.into(), + (&mut addr.storage).into(), + by_mut(&mut addr.len), + ]) + ))?; + Ok(addr.into_any_option()) + } +} + +#[inline] +pub(crate) fn getsockname(fd: BorrowedFd<'_>) -> io::Result { + #[cfg(not(target_arch = "x86"))] + unsafe { + let mut addr = SocketAddrBuf::new(); + ret(syscall!( + __NR_getsockname, + fd, + &mut addr.storage, + by_mut(&mut addr.len) + ))?; + Ok(addr.into_any()) + } + #[cfg(target_arch = "x86")] + unsafe { + let mut addr = SocketAddrBuf::new(); + ret(syscall!( + __NR_socketcall, + x86_sys(SYS_GETSOCKNAME), + slice_just_addr::, _>(&[ + fd.into(), + (&mut addr.storage).into(), + by_mut(&mut addr.len), + ]) + ))?; + Ok(addr.into_any()) + } +} + +#[inline] +pub(crate) fn bind(fd: BorrowedFd<'_>, addr: &impl SocketAddrArg) -> io::Result<()> { + // SAFETY: This passes the `addr_ptr` reference to the OS which reads the + // buffers only within the `addr_len` bound. + unsafe { + addr.with_sockaddr(|addr_ptr, addr_len| { + #[cfg(not(target_arch = "x86"))] + { + ret(syscall_readonly!( + __NR_bind, + fd, + raw_arg(addr_ptr as *mut _), + socklen_t(addr_len) + )) + } + #[cfg(target_arch = "x86")] + { + ret(syscall_readonly!( + __NR_socketcall, + x86_sys(SYS_BIND), + slice_just_addr::, _>(&[ + fd.into(), + raw_arg(addr_ptr as *mut _), + socklen_t(addr_len) + ]) + )) + } + }) + } +} + +#[inline] +pub(crate) fn connect(fd: BorrowedFd<'_>, addr: &impl SocketAddrArg) -> io::Result<()> { + // SAFETY: This passes the `addr_ptr` reference to the OS which reads the + // buffers only within the `addr_len` bound. + unsafe { + addr.with_sockaddr(|addr_ptr, addr_len| { + #[cfg(not(target_arch = "x86"))] + { + ret(syscall_readonly!( + __NR_connect, + fd, + raw_arg(addr_ptr as *mut _), + socklen_t(addr_len) + )) + } + #[cfg(target_arch = "x86")] + { + ret(syscall_readonly!( + __NR_socketcall, + x86_sys(SYS_CONNECT), + slice_just_addr::, _>(&[ + fd.into(), + raw_arg(addr_ptr as *mut _), + socklen_t(addr_len) + ]) + )) + } + }) + } +} + +#[inline] +pub(crate) fn connect_unspec(fd: BorrowedFd<'_>) -> io::Result<()> { + debug_assert_eq!(c::AF_UNSPEC, 0); + let addr = MaybeUninit::::zeroed(); + + #[cfg(not(target_arch = "x86"))] + unsafe { + ret(syscall_readonly!( + __NR_connect, + fd, + by_ref(&addr), + size_of::() + )) + } + #[cfg(target_arch = "x86")] + unsafe { + ret(syscall_readonly!( + __NR_socketcall, + x86_sys(SYS_CONNECT), + slice_just_addr::, _>(&[ + fd.into(), + by_ref(&addr), + size_of::(), + ]) + )) + } +} + +#[inline] +pub(crate) fn listen(fd: BorrowedFd<'_>, backlog: c::c_int) -> io::Result<()> { + #[cfg(not(target_arch = "x86"))] + unsafe { + ret(syscall_readonly!(__NR_listen, fd, c_int(backlog))) + } + #[cfg(target_arch = "x86")] + unsafe { + ret(syscall_readonly!( + __NR_socketcall, + x86_sys(SYS_LISTEN), + slice_just_addr::, _>(&[fd.into(), c_int(backlog)]) + )) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/write_sockaddr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/write_sockaddr.rs new file mode 100644 index 0000000000000000000000000000000000000000..3b348221a2635d8586c8b9ac5768152b90061dcd --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/net/write_sockaddr.rs @@ -0,0 +1,31 @@ +//! The BSD sockets API requires us to read the `sa_family` field before we can +//! interpret the rest of a `sockaddr` produced by the kernel. +#![allow(unsafe_code)] + +use crate::backend::c; +use crate::net::{SocketAddrV4, SocketAddrV6}; + +pub(crate) fn encode_sockaddr_v4(v4: &SocketAddrV4) -> c::sockaddr_in { + c::sockaddr_in { + sin_family: c::AF_INET as _, + sin_port: u16::to_be(v4.port()), + sin_addr: c::in_addr { + s_addr: u32::from_ne_bytes(v4.ip().octets()), + }, + __pad: [0_u8; 8], + } +} + +pub(crate) fn encode_sockaddr_v6(v6: &SocketAddrV6) -> c::sockaddr_in6 { + c::sockaddr_in6 { + sin6_family: c::AF_INET6 as _, + sin6_port: u16::to_be(v6.port()), + sin6_flowinfo: u32::to_be(v6.flowinfo()), + sin6_addr: c::in6_addr { + in6_u: linux_raw_sys::net::in6_addr__bindgen_ty_1 { + u6_addr8: v6.ip().octets(), + }, + }, + sin6_scope_id: v6.scope_id(), + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/param/auxv.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/param/auxv.rs new file mode 100644 index 0000000000000000000000000000000000000000..2c02b5bd7e448ad1ebf33a34cc5e3058da3aa1ea --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/param/auxv.rs @@ -0,0 +1,580 @@ +//! Linux auxv support. +//! +//! # Safety +//! +//! This uses raw pointers to locate and read the kernel-provided auxv array. +#![allow(unsafe_code)] + +use super::super::conv::{c_int, pass_usize, ret_usize}; +use crate::backend::c; +use crate::fd::OwnedFd; +#[cfg(feature = "param")] +use crate::ffi::CStr; +use crate::fs::{Mode, OFlags}; +use crate::utils::{as_ptr, check_raw_pointer}; +#[cfg(feature = "alloc")] +use alloc::vec::Vec; +use core::mem::size_of; +use core::ptr::{null_mut, read_unaligned, NonNull}; +#[cfg(feature = "runtime")] +use core::sync::atomic::AtomicU8; +use core::sync::atomic::Ordering::Relaxed; +use core::sync::atomic::{AtomicPtr, AtomicUsize}; +use linux_raw_sys::auxvec::{ + AT_CLKTCK, AT_EXECFN, AT_HWCAP, AT_HWCAP2, AT_MINSIGSTKSZ, AT_NULL, AT_PAGESZ, AT_SYSINFO_EHDR, +}; +#[cfg(feature = "runtime")] +use linux_raw_sys::auxvec::{ + AT_EGID, AT_ENTRY, AT_EUID, AT_GID, AT_PHDR, AT_PHENT, AT_PHNUM, AT_RANDOM, AT_SECURE, AT_UID, +}; +use linux_raw_sys::elf::*; +#[cfg(feature = "alloc")] +use {alloc::borrow::Cow, alloc::vec}; + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn page_size() -> usize { + let mut page_size = PAGE_SIZE.load(Relaxed); + + if page_size == 0 { + init_auxv(); + page_size = PAGE_SIZE.load(Relaxed); + } + + page_size +} + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn clock_ticks_per_second() -> u64 { + let mut ticks = CLOCK_TICKS_PER_SECOND.load(Relaxed); + + if ticks == 0 { + init_auxv(); + ticks = CLOCK_TICKS_PER_SECOND.load(Relaxed); + } + + ticks as u64 +} + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn linux_hwcap() -> (usize, usize) { + let mut hwcap = HWCAP.load(Relaxed); + let mut hwcap2 = HWCAP2.load(Relaxed); + + if hwcap == 0 || hwcap2 == 0 { + init_auxv(); + hwcap = HWCAP.load(Relaxed); + hwcap2 = HWCAP2.load(Relaxed); + } + + (hwcap, hwcap2) +} + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn linux_minsigstksz() -> usize { + let mut minsigstksz = MINSIGSTKSZ.load(Relaxed); + + if minsigstksz == 0 { + init_auxv(); + minsigstksz = MINSIGSTKSZ.load(Relaxed); + } + + minsigstksz +} + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn linux_execfn() -> &'static CStr { + let mut execfn = EXECFN.load(Relaxed); + + if execfn.is_null() { + init_auxv(); + execfn = EXECFN.load(Relaxed); + } + + // SAFETY: We assume the `AT_EXECFN` value provided by the kernel is a + // valid pointer to a valid NUL-terminated array of bytes. + unsafe { CStr::from_ptr(execfn.cast()) } +} + +#[cfg(feature = "runtime")] +#[inline] +pub(crate) fn linux_secure() -> bool { + let mut secure = SECURE.load(Relaxed); + + // 0 means not initialized yet. + if secure == 0 { + init_auxv(); + secure = SECURE.load(Relaxed); + } + + // 0 means not present. Libc `getauxval(AT_SECURE)` would return 0. + // 1 means not in secure mode. + // 2 means in secure mode. + secure > 1 +} + +#[cfg(feature = "runtime")] +#[inline] +pub(crate) fn exe_phdrs() -> (*const c::c_void, usize, usize) { + let mut phdr = PHDR.load(Relaxed); + let mut phent = PHENT.load(Relaxed); + let mut phnum = PHNUM.load(Relaxed); + + if phdr.is_null() || phnum == 0 { + init_auxv(); + phdr = PHDR.load(Relaxed); + phent = PHENT.load(Relaxed); + phnum = PHNUM.load(Relaxed); + } + + (phdr.cast(), phent, phnum) +} + +/// `AT_SYSINFO_EHDR` isn't present on all platforms in all configurations, so +/// if we don't see it, this function returns a null pointer. +/// +/// And, this function returns a null pointer, rather than panicking, if the +/// auxv records can't be read. +#[inline] +pub(in super::super) fn sysinfo_ehdr() -> *const Elf_Ehdr { + let mut ehdr = SYSINFO_EHDR.load(Relaxed); + + if ehdr.is_null() { + // Use `maybe_init_auxv` to read the aux vectors if it can, but do + // nothing if it can't. If it can't, then we'll get a null pointer + // here, which our callers are prepared to deal with. + maybe_init_auxv(); + + ehdr = SYSINFO_EHDR.load(Relaxed); + } + + ehdr +} + +#[cfg(feature = "runtime")] +#[inline] +pub(crate) fn entry() -> usize { + let mut entry = ENTRY.load(Relaxed); + + if entry == 0 { + init_auxv(); + entry = ENTRY.load(Relaxed); + } + + entry +} + +#[cfg(feature = "runtime")] +#[inline] +pub(crate) fn random() -> *const [u8; 16] { + let mut random = RANDOM.load(Relaxed); + + if random.is_null() { + init_auxv(); + random = RANDOM.load(Relaxed); + } + + random +} + +static PAGE_SIZE: AtomicUsize = AtomicUsize::new(0); +static CLOCK_TICKS_PER_SECOND: AtomicUsize = AtomicUsize::new(0); +static HWCAP: AtomicUsize = AtomicUsize::new(0); +static HWCAP2: AtomicUsize = AtomicUsize::new(0); +static MINSIGSTKSZ: AtomicUsize = AtomicUsize::new(0); +static EXECFN: AtomicPtr = AtomicPtr::new(null_mut()); +static SYSINFO_EHDR: AtomicPtr = AtomicPtr::new(null_mut()); +#[cfg(feature = "runtime")] +static SECURE: AtomicU8 = AtomicU8::new(0); +#[cfg(feature = "runtime")] +static PHDR: AtomicPtr = AtomicPtr::new(null_mut()); +#[cfg(feature = "runtime")] +static PHENT: AtomicUsize = AtomicUsize::new(0); +#[cfg(feature = "runtime")] +static PHNUM: AtomicUsize = AtomicUsize::new(0); +#[cfg(feature = "runtime")] +static ENTRY: AtomicUsize = AtomicUsize::new(0); +#[cfg(feature = "runtime")] +static RANDOM: AtomicPtr<[u8; 16]> = AtomicPtr::new(null_mut()); + +const PR_GET_AUXV: c::c_int = 0x4155_5856; + +/// Use Linux ≥ 6.4's [`PR_GET_AUXV`] to read the aux records, into a provided +/// statically-sized buffer. Return: +/// - `Ok(…)` if the buffer is big enough. +/// - `Err(Ok(len))` if we need a buffer of length `len`. +/// - `Err(Err(err))` if we failed with `err`. +/// +/// [`PR_GET_AUXV`]: https://www.man7.org/linux/man-pages/man2/PR_GET_AUXV.2const.html +#[cold] +fn pr_get_auxv_static(buffer: &mut [u8; 512]) -> Result<&mut [u8], crate::io::Result> { + let len = unsafe { + ret_usize(syscall_always_asm!( + __NR_prctl, + c_int(PR_GET_AUXV), + buffer.as_mut_ptr(), + pass_usize(buffer.len()), + pass_usize(0), + pass_usize(0) + )) + .map_err(Err)? + }; + if len <= buffer.len() { + return Ok(&mut buffer[..len]); + } + Err(Ok(len)) +} + +/// Use Linux ≥ 6.4's [`PR_GET_AUXV`] to read the aux records, using a +/// provided statically-sized buffer if possible, or a dynamically allocated +/// buffer otherwise. Return: +/// - Ok(…) on success. +/// - Err(err) on failure. +/// +/// [`PR_GET_AUXV`]: https://www.man7.org/linux/man-pages/man2/PR_GET_AUXV.2const.html +#[cfg(feature = "alloc")] +#[cold] +fn pr_get_auxv_dynamic(buffer: &mut [u8; 512]) -> crate::io::Result> { + // First try use the static buffer. + let len = match pr_get_auxv_static(buffer) { + Ok(buffer) => return Ok(Cow::Borrowed(buffer)), + Err(Ok(len)) => len, + Err(Err(err)) => return Err(err), + }; + + // If that indicates it needs a bigger buffer, allocate one. + let mut buffer = vec![0_u8; len]; + let len = unsafe { + ret_usize(syscall_always_asm!( + __NR_prctl, + c_int(PR_GET_AUXV), + buffer.as_mut_ptr(), + pass_usize(buffer.len()), + pass_usize(0), + pass_usize(0) + ))? + }; + assert_eq!(len, buffer.len()); + Ok(Cow::Owned(buffer)) +} + +/// Read the auxv records and initialize the various static variables. Panic +/// if an error is encountered. +#[cold] +fn init_auxv() { + init_auxv_impl().unwrap(); +} + +/// Like `init_auxv`, but don't panic if an error is encountered. The caller +/// must be prepared for initialization to be skipped. +#[cold] +fn maybe_init_auxv() { + let _ = init_auxv_impl(); +} + +/// If we don't have "use-explicitly-provided-auxv" or "use-libc-auxv", we +/// read the aux vector via the `prctl` `PR_GET_AUXV`, with a fallback to +/// /proc/self/auxv for kernels that don't support `PR_GET_AUXV`. +#[cold] +fn init_auxv_impl() -> Result<(), ()> { + // 512 bytes of AUX elements ought to be enough for anybody… + let mut buffer = [0_u8; 512]; + + // If we don't have "alloc", just try to read into our statically-sized + // buffer. This might fail due to the buffer being insufficient; we're + // prepared to cope, though we may do suboptimal things. + #[cfg(not(feature = "alloc"))] + let result = pr_get_auxv_static(&mut buffer); + + // If we do have "alloc" then read into our statically-sized buffer if + // it fits, or fall back to a dynamically-allocated buffer. + #[cfg(feature = "alloc")] + let result = pr_get_auxv_dynamic(&mut buffer); + + if let Ok(buffer) = result { + // SAFETY: We assume the kernel returns a valid auxv. + unsafe { + init_from_aux_iter(AuxPointer(buffer.as_ptr().cast())).unwrap(); + } + return Ok(()); + } + + // If `PR_GET_AUXV` is unavailable, or if we don't have "alloc" and + // the aux records don't fit in our static buffer, then fall back to trying + // to open "/proc/self/auxv". We don't use `proc_self_fd` because its extra + // checking breaks on QEMU. + if let Ok(file) = crate::fs::open("/proc/self/auxv", OFlags::RDONLY, Mode::empty()) { + #[cfg(feature = "alloc")] + init_from_auxv_file(file).unwrap(); + + #[cfg(not(feature = "alloc"))] + unsafe { + init_from_aux_iter(AuxFile(file)).unwrap(); + } + + return Ok(()); + } + + Err(()) +} + +/// Process auxv entries from the open file `auxv`. +#[cfg(feature = "alloc")] +#[cold] +#[must_use] +fn init_from_auxv_file(auxv: OwnedFd) -> Option<()> { + let mut buffer = Vec::::with_capacity(512); + loop { + let cur = buffer.len(); + + // Request one extra byte; `Vec` will often allocate more. + buffer.reserve(1); + + // Use all the space it allocated. + buffer.resize(buffer.capacity(), 0); + + // Read up to that many bytes. + let n = match crate::io::read(&auxv, &mut buffer[cur..]) { + Err(crate::io::Errno::INTR) => 0, + Err(_err) => panic!(), + Ok(0) => break, + Ok(n) => n, + }; + + // Account for the number of bytes actually read. + buffer.resize(cur + n, 0_u8); + } + + // SAFETY: We loaded from an auxv file into the buffer. + unsafe { init_from_aux_iter(AuxPointer(buffer.as_ptr().cast())) } +} + +/// Process auxv entries from the auxv array pointed to by `auxp`. +/// +/// # Safety +/// +/// This must be passed a pointer to an auxv array. +/// +/// The buffer contains `Elf_aux_t` elements, though it need not be aligned; +/// function uses `read_unaligned` to read from it. +#[cold] +#[must_use] +unsafe fn init_from_aux_iter(aux_iter: impl Iterator) -> Option<()> { + let mut pagesz = 0; + let mut clktck = 0; + let mut hwcap = 0; + let mut hwcap2 = 0; + let mut minsigstksz = 0; + let mut execfn = null_mut(); + let mut sysinfo_ehdr = null_mut(); + #[cfg(feature = "runtime")] + let mut secure = 0; + #[cfg(feature = "runtime")] + let mut phdr = null_mut(); + #[cfg(feature = "runtime")] + let mut phnum = 0; + #[cfg(feature = "runtime")] + let mut phent = 0; + #[cfg(feature = "runtime")] + let mut entry = 0; + #[cfg(feature = "runtime")] + let mut uid = None; + #[cfg(feature = "runtime")] + let mut euid = None; + #[cfg(feature = "runtime")] + let mut gid = None; + #[cfg(feature = "runtime")] + let mut egid = None; + #[cfg(feature = "runtime")] + let mut random = null_mut(); + + for Elf_auxv_t { a_type, a_val } in aux_iter { + match a_type as _ { + AT_PAGESZ => pagesz = a_val as usize, + AT_CLKTCK => clktck = a_val as usize, + AT_HWCAP => hwcap = a_val as usize, + AT_HWCAP2 => hwcap2 = a_val as usize, + AT_MINSIGSTKSZ => minsigstksz = a_val as usize, + AT_EXECFN => execfn = check_raw_pointer::(a_val as *mut _)?.as_ptr(), + + // Use the `AT_SYSINFO_EHDR` if it matches the platform rustix is + // compiled for. + AT_SYSINFO_EHDR => { + if let Some(value) = check_elf_base(a_val as *mut _) { + sysinfo_ehdr = value.as_ptr(); + } + } + + #[cfg(feature = "runtime")] + AT_SECURE => secure = (a_val as usize != 0) as u8 + 1, + #[cfg(feature = "runtime")] + AT_UID => uid = Some(a_val), + #[cfg(feature = "runtime")] + AT_EUID => euid = Some(a_val), + #[cfg(feature = "runtime")] + AT_GID => gid = Some(a_val), + #[cfg(feature = "runtime")] + AT_EGID => egid = Some(a_val), + #[cfg(feature = "runtime")] + AT_PHDR => phdr = check_raw_pointer::(a_val as *mut _)?.as_ptr(), + #[cfg(feature = "runtime")] + AT_PHNUM => phnum = a_val as usize, + #[cfg(feature = "runtime")] + AT_PHENT => phent = a_val as usize, + #[cfg(feature = "runtime")] + AT_ENTRY => entry = a_val as usize, + #[cfg(feature = "runtime")] + AT_RANDOM => random = check_raw_pointer::<[u8; 16]>(a_val as *mut _)?.as_ptr(), + + AT_NULL => break, + _ => (), + } + } + + #[cfg(feature = "runtime")] + assert_eq!(phent, size_of::()); + + // If we're running set-uid or set-gid, enable “secure execution” mode, + // which doesn't do much, but users may be depending on the things that + // it does do. + #[cfg(feature = "runtime")] + if uid != euid || gid != egid { + secure = 2; + } + + // Accept the aux values. + PAGE_SIZE.store(pagesz, Relaxed); + CLOCK_TICKS_PER_SECOND.store(clktck, Relaxed); + HWCAP.store(hwcap, Relaxed); + HWCAP2.store(hwcap2, Relaxed); + MINSIGSTKSZ.store(minsigstksz, Relaxed); + EXECFN.store(execfn, Relaxed); + SYSINFO_EHDR.store(sysinfo_ehdr, Relaxed); + #[cfg(feature = "runtime")] + SECURE.store(secure, Relaxed); + #[cfg(feature = "runtime")] + PHDR.store(phdr, Relaxed); + #[cfg(feature = "runtime")] + PHNUM.store(phnum, Relaxed); + #[cfg(feature = "runtime")] + ENTRY.store(entry, Relaxed); + #[cfg(feature = "runtime")] + RANDOM.store(random, Relaxed); + + Some(()) +} + +/// Check that `base` is a valid pointer to the kernel-provided vDSO. +/// +/// `base` is some value we got from a `AT_SYSINFO_EHDR` aux record somewhere, +/// which hopefully holds the value of the kernel-provided vDSO in memory. Do a +/// series of checks to be as sure as we can that it's safe to use. +#[cold] +#[must_use] +unsafe fn check_elf_base(base: *const Elf_Ehdr) -> Option> { + // If we're reading a 64-bit auxv on a 32-bit platform, we'll see a zero + // `a_val` because `AT_*` values are never greater than `u32::MAX`. Zero is + // used by libc's `getauxval` to indicate errors, so it should never be a + // valid value. + if base.is_null() { + return None; + } + + let hdr = check_raw_pointer::(base as *mut _)?; + + let hdr = hdr.as_ref(); + if hdr.e_ident[..SELFMAG] != ELFMAG { + return None; // Wrong ELF magic + } + if !matches!(hdr.e_ident[EI_OSABI], ELFOSABI_SYSV | ELFOSABI_LINUX) { + return None; // Unrecognized ELF OS ABI + } + if hdr.e_ident[EI_ABIVERSION] != ELFABIVERSION { + return None; // Unrecognized ELF ABI version + } + if hdr.e_type != ET_DYN { + return None; // Wrong ELF type + } + + // If ELF is extended, we'll need to adjust. + if hdr.e_ident[EI_VERSION] != EV_CURRENT + || hdr.e_ehsize as usize != size_of::() + || hdr.e_phentsize as usize != size_of::() + { + return None; + } + // We don't currently support extra-large numbers of segments. + if hdr.e_phnum == PN_XNUM { + return None; + } + + // If `e_phoff` is zero, it's more likely that we're looking at memory that + // has been zeroed than that the kernel has somehow aliased the `Ehdr` and + // the `Phdr`. + if hdr.e_phoff < size_of::() { + return None; + } + + // Verify that the `EI_CLASS`/`EI_DATA`/`e_machine` fields match the + // architecture we're running as. This helps catch cases where we're + // running under QEMU. + if hdr.e_ident[EI_CLASS] != ELFCLASS { + return None; // Wrong ELF class + } + if hdr.e_ident[EI_DATA] != ELFDATA { + return None; // Wrong ELF data + } + if hdr.e_machine != EM_CURRENT { + return None; // Wrong machine type + } + + Some(NonNull::new_unchecked(as_ptr(hdr) as *mut _)) +} + +// Aux reading utilities + +// Read auxv records from an array in memory. +struct AuxPointer(*const Elf_auxv_t); + +impl Iterator for AuxPointer { + type Item = Elf_auxv_t; + + #[cold] + fn next(&mut self) -> Option { + unsafe { + let value = read_unaligned(self.0); + self.0 = self.0.add(1); + Some(value) + } + } +} + +// Read auxv records from a file. +#[cfg(not(feature = "alloc"))] +struct AuxFile(OwnedFd); + +#[cfg(not(feature = "alloc"))] +impl Iterator for AuxFile { + type Item = Elf_auxv_t; + + // This implementation does lots of `read`s and it isn't amazing, but + // hopefully we won't use it often. + #[cold] + fn next(&mut self) -> Option { + let mut buf = [0_u8; size_of::()]; + let mut slice = &mut buf[..]; + while !slice.is_empty() { + match crate::io::read(&self.0, &mut *slice) { + Ok(0) => panic!("unexpected end of auxv file"), + Ok(n) => slice = &mut slice[n..], + Err(crate::io::Errno::INTR) => continue, + Err(err) => panic!("{:?}", err), + } + } + Some(unsafe { read_unaligned(buf.as_ptr().cast()) }) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/param/init.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/param/init.rs new file mode 100644 index 0000000000000000000000000000000000000000..dd58cf60b45fa85721298c66a0cbf2bc2e46c391 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/param/init.rs @@ -0,0 +1,175 @@ +//! Linux auxv `init` function, for "use-explicitly-provided-auxv" mode. +//! +//! # Safety +//! +//! This uses raw pointers to locate and read the kernel-provided auxv array. +#![allow(unsafe_code)] + +use crate::backend::c; +#[cfg(feature = "param")] +use crate::ffi::CStr; +use core::ffi::c_void; +use core::ptr::{null_mut, read, NonNull}; +#[cfg(feature = "runtime")] +use core::sync::atomic::AtomicBool; +use core::sync::atomic::{AtomicPtr, AtomicUsize, Ordering}; +use linux_raw_sys::auxvec::{ + AT_CLKTCK, AT_EXECFN, AT_HWCAP, AT_HWCAP2, AT_MINSIGSTKSZ, AT_NULL, AT_PAGESZ, AT_SYSINFO_EHDR, +}; +#[cfg(feature = "runtime")] +use linux_raw_sys::auxvec::{AT_ENTRY, AT_PHDR, AT_PHENT, AT_PHNUM, AT_RANDOM, AT_SECURE}; +use linux_raw_sys::elf::*; + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn page_size() -> usize { + PAGE_SIZE.load(Ordering::Relaxed) +} + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn clock_ticks_per_second() -> u64 { + CLOCK_TICKS_PER_SECOND.load(Ordering::Relaxed) as u64 +} + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn linux_hwcap() -> (usize, usize) { + ( + HWCAP.load(Ordering::Relaxed), + HWCAP2.load(Ordering::Relaxed), + ) +} + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn linux_minsigstksz() -> usize { + MINSIGSTKSZ.load(Ordering::Relaxed) +} + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn linux_execfn() -> &'static CStr { + let execfn = EXECFN.load(Ordering::Relaxed); + + // SAFETY: We initialize `EXECFN` to a valid `CStr` pointer, and we assume + // the `AT_EXECFN` value provided by the kernel points to a valid C string. + unsafe { CStr::from_ptr(execfn.cast()) } +} + +#[cfg(feature = "runtime")] +#[inline] +pub(crate) fn linux_secure() -> bool { + SECURE.load(Ordering::Relaxed) +} + +#[cfg(feature = "runtime")] +#[inline] +pub(crate) fn exe_phdrs() -> (*const c_void, usize, usize) { + ( + PHDR.load(Ordering::Relaxed).cast(), + PHENT.load(Ordering::Relaxed), + PHNUM.load(Ordering::Relaxed), + ) +} + +/// `AT_SYSINFO_EHDR` isn't present on all platforms in all configurations, so +/// if we don't see it, this function returns a null pointer. +#[inline] +pub(in super::super) fn sysinfo_ehdr() -> *const Elf_Ehdr { + SYSINFO_EHDR.load(Ordering::Relaxed) +} + +#[cfg(feature = "runtime")] +#[inline] +pub(crate) fn entry() -> usize { + ENTRY.load(Ordering::Relaxed) +} + +#[cfg(feature = "runtime")] +#[inline] +pub(crate) fn random() -> *const [u8; 16] { + RANDOM.load(Ordering::Relaxed) +} + +static PAGE_SIZE: AtomicUsize = AtomicUsize::new(0); +static CLOCK_TICKS_PER_SECOND: AtomicUsize = AtomicUsize::new(0); +static HWCAP: AtomicUsize = AtomicUsize::new(0); +static HWCAP2: AtomicUsize = AtomicUsize::new(0); +static MINSIGSTKSZ: AtomicUsize = AtomicUsize::new(0); +static SYSINFO_EHDR: AtomicPtr = AtomicPtr::new(null_mut()); +// Initialize `EXECFN` to a valid `CStr` pointer so that we don't need to check +// for null on every `execfn` call. +static EXECFN: AtomicPtr = AtomicPtr::new(b"\0".as_ptr() as _); +#[cfg(feature = "runtime")] +static SECURE: AtomicBool = AtomicBool::new(false); +// Use `dangling` so that we can always treat it like an empty slice. +#[cfg(feature = "runtime")] +static PHDR: AtomicPtr = AtomicPtr::new(NonNull::dangling().as_ptr()); +#[cfg(feature = "runtime")] +static PHENT: AtomicUsize = AtomicUsize::new(0); +#[cfg(feature = "runtime")] +static PHNUM: AtomicUsize = AtomicUsize::new(0); +#[cfg(feature = "runtime")] +static ENTRY: AtomicUsize = AtomicUsize::new(0); +#[cfg(feature = "runtime")] +static RANDOM: AtomicPtr<[u8; 16]> = AtomicPtr::new(NonNull::dangling().as_ptr()); + +/// When "use-explicitly-provided-auxv" is enabled, we export a function to be +/// called during initialization, and passed a pointer to the original +/// environment variable block set up by the OS. +pub(crate) unsafe fn init(envp: *mut *mut u8) { + init_from_envp(envp); +} + +/// # Safety +/// +/// This must be passed a pointer to the environment variable buffer +/// provided by the kernel, which is followed in memory by the auxv array. +unsafe fn init_from_envp(mut envp: *mut *mut u8) { + while !(*envp).is_null() { + envp = envp.add(1); + } + init_from_auxp(envp.add(1).cast()) +} + +/// Process auxv entries from the auxv array pointed to by `auxp`. +/// +/// # Safety +/// +/// This must be passed a pointer to an auxv array. +/// +/// The buffer contains `Elf_aux_t` elements, though it need not be aligned; +/// function uses `read_unaligned` to read from it. +unsafe fn init_from_auxp(mut auxp: *const Elf_auxv_t) { + loop { + let Elf_auxv_t { a_type, a_val } = read(auxp); + + match a_type as _ { + AT_PAGESZ => PAGE_SIZE.store(a_val as usize, Ordering::Relaxed), + AT_CLKTCK => CLOCK_TICKS_PER_SECOND.store(a_val as usize, Ordering::Relaxed), + AT_HWCAP => HWCAP.store(a_val as usize, Ordering::Relaxed), + AT_HWCAP2 => HWCAP2.store(a_val as usize, Ordering::Relaxed), + AT_MINSIGSTKSZ => MINSIGSTKSZ.store(a_val as usize, Ordering::Relaxed), + AT_EXECFN => EXECFN.store(a_val.cast::(), Ordering::Relaxed), + AT_SYSINFO_EHDR => SYSINFO_EHDR.store(a_val.cast::(), Ordering::Relaxed), + + #[cfg(feature = "runtime")] + AT_SECURE => SECURE.store(a_val as usize != 0, Ordering::Relaxed), + #[cfg(feature = "runtime")] + AT_PHDR => PHDR.store(a_val.cast::(), Ordering::Relaxed), + #[cfg(feature = "runtime")] + AT_PHNUM => PHNUM.store(a_val as usize, Ordering::Relaxed), + #[cfg(feature = "runtime")] + AT_PHENT => PHENT.store(a_val as usize, Ordering::Relaxed), + #[cfg(feature = "runtime")] + AT_ENTRY => ENTRY.store(a_val as usize, Ordering::Relaxed), + #[cfg(feature = "runtime")] + AT_RANDOM => RANDOM.store(a_val.cast::<[u8; 16]>(), Ordering::Relaxed), + + AT_NULL => break, + _ => (), + } + auxp = auxp.add(1); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/param/libc_auxv.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/param/libc_auxv.rs new file mode 100644 index 0000000000000000000000000000000000000000..d77d3a840104bb833cb099001a885107e5276957 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/param/libc_auxv.rs @@ -0,0 +1,198 @@ +//! Linux auxv support, using libc. +//! +//! # Safety +//! +//! This uses raw pointers to locate and read the kernel-provided auxv array. +#![allow(unsafe_code)] + +use crate::backend::c; +#[cfg(feature = "param")] +use crate::ffi::CStr; +#[cfg(not(feature = "runtime"))] +use core::ptr::null; +use linux_raw_sys::elf::*; + +// `getauxval` wasn't supported in glibc until 2.16. Also this lets us use +// `*mut` as the return type to preserve strict provenance. +#[cfg(not(feature = "runtime"))] +weak!(fn getauxval(c::c_ulong) -> *mut c::c_void); + +// With the "runtime" feature, go ahead and depend on `getauxval` existing so +// that we never fail. +#[cfg(feature = "runtime")] +extern "C" { + fn getauxval(type_: c::c_ulong) -> *mut c::c_void; +} + +#[cfg(feature = "runtime")] +const AT_PHDR: c::c_ulong = 3; +#[cfg(feature = "runtime")] +const AT_PHENT: c::c_ulong = 4; +#[cfg(feature = "runtime")] +const AT_PHNUM: c::c_ulong = 5; +#[cfg(feature = "runtime")] +const AT_ENTRY: c::c_ulong = 9; +const AT_HWCAP: c::c_ulong = 16; +#[cfg(feature = "runtime")] +const AT_RANDOM: c::c_ulong = 25; +const AT_HWCAP2: c::c_ulong = 26; +const AT_SECURE: c::c_ulong = 23; +const AT_EXECFN: c::c_ulong = 31; +const AT_SYSINFO_EHDR: c::c_ulong = 33; +const AT_MINSIGSTKSZ: c::c_ulong = 51; + +// Declare `sysconf` ourselves so that we don't depend on all of libc just for +// this. +extern "C" { + fn sysconf(name: c::c_int) -> c::c_long; +} + +#[cfg(target_os = "android")] +const _SC_PAGESIZE: c::c_int = 39; +#[cfg(target_os = "linux")] +const _SC_PAGESIZE: c::c_int = 30; +#[cfg(target_os = "android")] +const _SC_CLK_TCK: c::c_int = 6; +#[cfg(target_os = "linux")] +const _SC_CLK_TCK: c::c_int = 2; + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn page_size() -> usize { + unsafe { sysconf(_SC_PAGESIZE) as usize } +} + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn clock_ticks_per_second() -> u64 { + unsafe { sysconf(_SC_CLK_TCK) as u64 } +} + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn linux_hwcap() -> (usize, usize) { + #[cfg(not(feature = "runtime"))] + unsafe { + if let Some(libc_getauxval) = getauxval.get() { + let hwcap = libc_getauxval(AT_HWCAP) as usize; + let hwcap2 = libc_getauxval(AT_HWCAP2) as usize; + (hwcap, hwcap2) + } else { + (0, 0) + } + } + + #[cfg(feature = "runtime")] + unsafe { + let hwcap = getauxval(AT_HWCAP) as usize; + let hwcap2 = getauxval(AT_HWCAP2) as usize; + (hwcap, hwcap2) + } +} + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn linux_minsigstksz() -> usize { + #[cfg(not(feature = "runtime"))] + if let Some(libc_getauxval) = getauxval.get() { + unsafe { libc_getauxval(AT_MINSIGSTKSZ) as usize } + } else { + 0 + } + + #[cfg(feature = "runtime")] + unsafe { + getauxval(AT_MINSIGSTKSZ) as usize + } +} + +#[cfg(feature = "param")] +#[inline] +pub(crate) fn linux_execfn() -> &'static CStr { + #[cfg(not(feature = "runtime"))] + unsafe { + if let Some(libc_getauxval) = getauxval.get() { + CStr::from_ptr(libc_getauxval(AT_EXECFN).cast()) + } else { + cstr!("") + } + } + + #[cfg(feature = "runtime")] + unsafe { + CStr::from_ptr(getauxval(AT_EXECFN).cast()) + } +} + +#[cfg(feature = "runtime")] +#[inline] +pub(crate) fn linux_secure() -> bool { + unsafe { getauxval(AT_SECURE) as usize != 0 } +} + +#[cfg(feature = "runtime")] +#[inline] +pub(crate) fn exe_phdrs() -> (*const c::c_void, usize, usize) { + unsafe { + let phdr: *const c::c_void = getauxval(AT_PHDR); + let phent = getauxval(AT_PHENT) as usize; + let phnum = getauxval(AT_PHNUM) as usize; + (phdr, phent, phnum) + } +} + +/// `AT_SYSINFO_EHDR` isn't present on all platforms in all configurations, so +/// if we don't see it, this function returns a null pointer. +#[inline] +pub(in super::super) fn sysinfo_ehdr() -> *const Elf_Ehdr { + #[cfg(not(feature = "runtime"))] + unsafe { + if let Some(libc_getauxval) = getauxval.get() { + libc_getauxval(AT_SYSINFO_EHDR) as *const Elf_Ehdr + } else { + null() + } + } + + #[cfg(feature = "runtime")] + unsafe { + getauxval(AT_SYSINFO_EHDR) as *const Elf_Ehdr + } +} + +#[cfg(feature = "runtime")] +#[inline] +pub(crate) fn entry() -> usize { + unsafe { getauxval(AT_ENTRY) as usize } +} + +#[cfg(feature = "runtime")] +#[inline] +pub(crate) fn random() -> *const [u8; 16] { + unsafe { getauxval(AT_RANDOM) as *const [u8; 16] } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_abi() { + const_assert_eq!(self::_SC_PAGESIZE, ::libc::_SC_PAGESIZE); + const_assert_eq!(self::_SC_CLK_TCK, ::libc::_SC_CLK_TCK); + const_assert_eq!(self::AT_HWCAP, ::libc::AT_HWCAP); + const_assert_eq!(self::AT_HWCAP2, ::libc::AT_HWCAP2); + const_assert_eq!(self::AT_EXECFN, ::libc::AT_EXECFN); + const_assert_eq!(self::AT_SECURE, ::libc::AT_SECURE); + const_assert_eq!(self::AT_SYSINFO_EHDR, ::libc::AT_SYSINFO_EHDR); + const_assert_eq!(self::AT_MINSIGSTKSZ, ::libc::AT_MINSIGSTKSZ); + #[cfg(feature = "runtime")] + const_assert_eq!(self::AT_PHDR, ::libc::AT_PHDR); + #[cfg(feature = "runtime")] + const_assert_eq!(self::AT_PHNUM, ::libc::AT_PHNUM); + #[cfg(feature = "runtime")] + const_assert_eq!(self::AT_ENTRY, ::libc::AT_ENTRY); + #[cfg(feature = "runtime")] + const_assert_eq!(self::AT_RANDOM, ::libc::AT_RANDOM); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/param/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/param/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..365f0160430a09e6cacddb77f9ce6f0c594248fe --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/param/mod.rs @@ -0,0 +1,15 @@ +// With "use-explicitly-provided-auxv" enabled, we expect to be initialized +// with an explicit `rustix::param::init` call. +// +// With "use-libc-auxv" enabled, use libc's `getauxval`. +// +// Otherwise, we read aux values from /proc/self/auxv. +#[cfg_attr(feature = "use-explicitly-provided-auxv", path = "init.rs")] +#[cfg_attr( + all( + not(feature = "use-explicitly-provided-auxv"), + feature = "use-libc-auxv" + ), + path = "libc_auxv.rs" +)] +pub(crate) mod auxv; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pid/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pid/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..ef944f04d2627e93c3e742e586d754d72c7a2f39 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pid/mod.rs @@ -0,0 +1 @@ +pub(crate) mod syscalls; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pid/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pid/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..49aaf43e6819bdb4c420570949c5d0e3ef4633c2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pid/syscalls.rs @@ -0,0 +1,18 @@ +//! linux_raw syscalls for PIDs +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use crate::backend::conv::ret_usize_infallible; +use crate::pid::{Pid, RawPid}; + +#[inline] +#[must_use] +pub(crate) fn getpid() -> Pid { + unsafe { + let pid = ret_usize_infallible(syscall_readonly!(__NR_getpid)) as RawPid; + Pid::from_raw_unchecked(pid) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pipe/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pipe/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pipe/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pipe/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pipe/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..86fe08553fa8280d40a4c63f2c647543431117a6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pipe/syscalls.rs @@ -0,0 +1,135 @@ +//! linux_raw syscalls supporting `rustix::pipe`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use crate::backend::conv::{c_int, c_uint, opt_mut, pass_usize, ret, ret_usize, slice}; +use crate::backend::{c, MAX_IOV}; +use crate::fd::{BorrowedFd, OwnedFd}; +use crate::io; +use crate::pipe::{IoSliceRaw, PipeFlags, SpliceFlags}; +use core::cmp; +use core::mem::MaybeUninit; +use linux_raw_sys::general::{F_GETPIPE_SZ, F_SETPIPE_SZ}; + +#[inline] +pub(crate) fn pipe() -> io::Result<(OwnedFd, OwnedFd)> { + // aarch64 and risc64 omit `__NR_pipe`. On mips, `__NR_pipe` uses a special + // calling convention, but using it is not worth complicating our syscall + // wrapping infrastructure at this time. + #[cfg(any( + target_arch = "aarch64", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "riscv64", + ))] + { + pipe_with(PipeFlags::empty()) + } + #[cfg(not(any( + target_arch = "aarch64", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "riscv64", + )))] + unsafe { + let mut result = MaybeUninit::<[OwnedFd; 2]>::uninit(); + ret(syscall!(__NR_pipe, &mut result))?; + let [p0, p1] = result.assume_init(); + Ok((p0, p1)) + } +} + +#[inline] +pub(crate) fn pipe_with(flags: PipeFlags) -> io::Result<(OwnedFd, OwnedFd)> { + unsafe { + let mut result = MaybeUninit::<[OwnedFd; 2]>::uninit(); + ret(syscall!(__NR_pipe2, &mut result, flags))?; + let [p0, p1] = result.assume_init(); + Ok((p0, p1)) + } +} + +#[inline] +pub(crate) fn splice( + fd_in: BorrowedFd<'_>, + off_in: Option<&mut u64>, + fd_out: BorrowedFd<'_>, + off_out: Option<&mut u64>, + len: usize, + flags: SpliceFlags, +) -> io::Result { + unsafe { + ret_usize(syscall!( + __NR_splice, + fd_in, + opt_mut(off_in), + fd_out, + opt_mut(off_out), + pass_usize(len), + flags + )) + } +} + +#[inline] +pub(crate) unsafe fn vmsplice( + fd: BorrowedFd<'_>, + bufs: &[IoSliceRaw<'_>], + flags: SpliceFlags, +) -> io::Result { + let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); + ret_usize(syscall!(__NR_vmsplice, fd, bufs_addr, bufs_len, flags)) +} + +#[inline] +pub(crate) fn tee( + fd_in: BorrowedFd<'_>, + fd_out: BorrowedFd<'_>, + len: usize, + flags: SpliceFlags, +) -> io::Result { + unsafe { ret_usize(syscall!(__NR_tee, fd_in, fd_out, pass_usize(len), flags)) } +} + +#[inline] +pub(crate) fn fcntl_getpipe_size(fd: BorrowedFd<'_>) -> io::Result { + #[cfg(target_pointer_width = "32")] + unsafe { + ret_usize(syscall_readonly!(__NR_fcntl64, fd, c_uint(F_GETPIPE_SZ))) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret_usize(syscall_readonly!(__NR_fcntl, fd, c_uint(F_GETPIPE_SZ))) + } +} + +#[inline] +pub(crate) fn fcntl_setpipe_size(fd: BorrowedFd<'_>, size: usize) -> io::Result { + let size: c::c_int = size.try_into().map_err(|_| io::Errno::PERM)?; + + #[cfg(target_pointer_width = "32")] + unsafe { + ret_usize(syscall_readonly!( + __NR_fcntl64, + fd, + c_uint(F_SETPIPE_SZ), + c_int(size) + )) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret_usize(syscall_readonly!( + __NR_fcntl, + fd, + c_uint(F_SETPIPE_SZ), + c_int(size) + )) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pipe/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pipe/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..ae185562644f392c06dcf802c181b915c5e7a9a5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pipe/types.rs @@ -0,0 +1,85 @@ +use crate::backend::c; +use crate::ffi; +use bitflags::bitflags; +use core::marker::PhantomData; + +bitflags! { + /// `O_*` constants for use with [`pipe_with`]. + /// + /// [`pipe_with`]: crate::pipe::pipe_with + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct PipeFlags: ffi::c_uint { + /// `O_CLOEXEC` + const CLOEXEC = linux_raw_sys::general::O_CLOEXEC; + /// `O_DIRECT` + const DIRECT = linux_raw_sys::general::O_DIRECT; + /// `O_NONBLOCK` + const NONBLOCK = linux_raw_sys::general::O_NONBLOCK; + + /// + const _ = !0; + } +} + +bitflags! { + /// `SPLICE_F_*` constants for use with [`splice`], [`vmsplice`], and + /// [`tee`]. + /// + /// [`splice`]: crate::pipe::splice + /// [`vmsplice`]: crate::pipe::splice + /// [`tee`]: crate::pipe::tee + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct SpliceFlags: ffi::c_uint { + /// `SPLICE_F_MOVE` + const MOVE = linux_raw_sys::general::SPLICE_F_MOVE; + /// `SPLICE_F_NONBLOCK` + const NONBLOCK = linux_raw_sys::general::SPLICE_F_NONBLOCK; + /// `SPLICE_F_MORE` + const MORE = linux_raw_sys::general::SPLICE_F_MORE; + /// `SPLICE_F_GIFT` + const GIFT = linux_raw_sys::general::SPLICE_F_GIFT; + + /// + const _ = !0; + } +} + +/// A buffer type for use with [`vmsplice`]. +/// +/// It is guaranteed to be ABI compatible with the iovec type on Unix platforms +/// and `WSABUF` on Windows. Unlike `IoSlice` and `IoSliceMut` it is +/// semantically like a raw pointer, and therefore can be shared or mutated as +/// needed. +/// +/// [`vmsplice`]: crate::pipe::vmsplice +#[repr(transparent)] +pub struct IoSliceRaw<'a> { + _buf: c::iovec, + _lifetime: PhantomData<&'a ()>, +} + +impl<'a> IoSliceRaw<'a> { + /// Creates a new `IoSlice` wrapping a byte slice. + pub fn from_slice(buf: &'a [u8]) -> Self { + IoSliceRaw { + _buf: c::iovec { + iov_base: (buf.as_ptr() as *mut u8).cast::(), + iov_len: buf.len() as _, + }, + _lifetime: PhantomData, + } + } + + /// Creates a new `IoSlice` wrapping a mutable byte slice. + pub fn from_slice_mut(buf: &'a mut [u8]) -> Self { + IoSliceRaw { + _buf: c::iovec { + iov_base: buf.as_mut_ptr().cast::(), + iov_len: buf.len() as _, + }, + _lifetime: PhantomData, + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/prctl/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/prctl/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..ef944f04d2627e93c3e742e586d754d72c7a2f39 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/prctl/mod.rs @@ -0,0 +1 @@ +pub(crate) mod syscalls; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/prctl/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/prctl/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..1410d512871620d1bc6b8cad3ddca0d9250bfa93 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/prctl/syscalls.rs @@ -0,0 +1,21 @@ +//! linux_raw syscalls supporting modules that use `prctl`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use crate::backend::c; +use crate::backend::conv::{c_int, ret_c_int}; +use crate::io; + +#[inline] +pub(crate) unsafe fn prctl( + option: c::c_int, + arg2: *mut c::c_void, + arg3: *mut c::c_void, + arg4: *mut c::c_void, + arg5: *mut c::c_void, +) -> io::Result { + ret_c_int(syscall!(__NR_prctl, c_int(option), arg2, arg3, arg4, arg5)) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/process/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/process/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..6bc9443d77fd92e086bf13f7071b562837115445 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/process/mod.rs @@ -0,0 +1,3 @@ +pub(crate) mod syscalls; +pub(crate) mod types; +pub(crate) mod wait; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/process/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/process/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..c9c1fd82418050986c250f08f0ee2442c84915f4 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/process/syscalls.rs @@ -0,0 +1,560 @@ +//! linux_raw syscalls supporting `rustix::process`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use crate::backend::c; +#[cfg(all(feature = "alloc", feature = "fs"))] +use crate::backend::conv::slice_mut; +use crate::backend::conv::{ + by_mut, by_ref, c_int, c_uint, negative_pid, pass_usize, raw_fd, ret, ret_c_int, + ret_c_int_infallible, ret_infallible, ret_owned_fd, zero, +}; +use crate::fd::{AsRawFd as _, BorrowedFd, OwnedFd, RawFd}; +#[cfg(feature = "fs")] +use crate::ffi::CStr; +use crate::io; +use crate::pid::RawPid; +use crate::process::{ + Flock, Pid, PidfdFlags, PidfdGetfdFlags, Resource, Rlimit, Uid, WaitId, WaitIdOptions, + WaitIdStatus, WaitOptions, WaitStatus, +}; +use crate::signal::Signal; +use core::mem::MaybeUninit; +use core::ptr::{null, null_mut}; +use linux_raw_sys::general::{rlimit64, PRIO_PGRP, PRIO_PROCESS, PRIO_USER, RLIM64_INFINITY}; +#[cfg(feature = "fs")] +use {crate::backend::conv::ret_c_uint_infallible, crate::fs::Mode}; +#[cfg(feature = "alloc")] +use { + crate::backend::conv::{ret_usize, slice_just_addr_mut}, + crate::process::Gid, +}; + +#[cfg(feature = "fs")] +#[inline] +pub(crate) fn chdir(filename: &CStr) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_chdir, filename)) } +} + +#[inline] +pub(crate) fn fchdir(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_fchdir, fd)) } +} + +#[cfg(feature = "fs")] +#[inline] +pub(crate) fn chroot(filename: &CStr) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_chroot, filename)) } +} + +#[cfg(all(feature = "alloc", feature = "fs"))] +#[inline] +pub(crate) fn getcwd(buf: &mut [MaybeUninit]) -> io::Result { + let (buf_addr_mut, buf_len) = slice_mut(buf); + unsafe { ret_usize(syscall!(__NR_getcwd, buf_addr_mut, buf_len)) } +} + +#[inline] +#[must_use] +pub(crate) fn getppid() -> Option { + unsafe { + let ppid = ret_c_int_infallible(syscall_readonly!(__NR_getppid)); + Pid::from_raw(ppid) + } +} + +#[inline] +pub(crate) fn getpgid(pid: Option) -> io::Result { + unsafe { + let pgid = ret_c_int(syscall_readonly!(__NR_getpgid, c_int(Pid::as_raw(pid))))?; + debug_assert!(pgid > 0); + Ok(Pid::from_raw_unchecked(pgid)) + } +} + +#[inline] +pub(crate) fn setpgid(pid: Option, pgid: Option) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_setpgid, + c_int(Pid::as_raw(pid)), + c_int(Pid::as_raw(pgid)) + )) + } +} + +#[inline] +#[must_use] +pub(crate) fn getpgrp() -> Pid { + // Use the `getpgrp` syscall if available. + #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))] + unsafe { + let pgid = ret_c_int_infallible(syscall_readonly!(__NR_getpgrp)); + debug_assert!(pgid > 0); + Pid::from_raw_unchecked(pgid) + } + + // Otherwise use `getpgrp` and pass it zero. + #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] + unsafe { + let pgid = ret_c_int_infallible(syscall_readonly!(__NR_getpgid, c_uint(0))); + debug_assert!(pgid > 0); + Pid::from_raw_unchecked(pgid) + } +} + +#[cfg(feature = "fs")] +#[inline] +pub(crate) fn umask(mode: Mode) -> Mode { + unsafe { Mode::from_bits_retain(ret_c_uint_infallible(syscall_readonly!(__NR_umask, mode))) } +} + +#[inline] +pub(crate) fn nice(inc: i32) -> io::Result { + let priority = (if inc > -40 && inc < 40 { + inc + getpriority_process(None)? + } else { + inc + }) + .clamp(-20, 19); + setpriority_process(None, priority)?; + Ok(priority) +} + +#[inline] +pub(crate) fn getpriority_user(uid: Uid) -> io::Result { + unsafe { + Ok(20 + - ret_c_int(syscall_readonly!( + __NR_getpriority, + c_uint(PRIO_USER), + c_uint(uid.as_raw()) + ))?) + } +} + +#[inline] +pub(crate) fn getpriority_pgrp(pgid: Option) -> io::Result { + unsafe { + Ok(20 + - ret_c_int(syscall_readonly!( + __NR_getpriority, + c_uint(PRIO_PGRP), + c_int(Pid::as_raw(pgid)) + ))?) + } +} + +#[inline] +pub(crate) fn getpriority_process(pid: Option) -> io::Result { + unsafe { + Ok(20 + - ret_c_int(syscall_readonly!( + __NR_getpriority, + c_uint(PRIO_PROCESS), + c_int(Pid::as_raw(pid)) + ))?) + } +} + +#[inline] +pub(crate) fn setpriority_user(uid: Uid, priority: i32) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_setpriority, + c_uint(PRIO_USER), + c_uint(uid.as_raw()), + c_int(priority) + )) + } +} + +#[inline] +pub(crate) fn setpriority_pgrp(pgid: Option, priority: i32) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_setpriority, + c_uint(PRIO_PGRP), + c_int(Pid::as_raw(pgid)), + c_int(priority) + )) + } +} + +#[inline] +pub(crate) fn setpriority_process(pid: Option, priority: i32) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_setpriority, + c_uint(PRIO_PROCESS), + c_int(Pid::as_raw(pid)), + c_int(priority) + )) + } +} + +#[inline] +pub(crate) fn getrlimit(limit: Resource) -> Rlimit { + let mut result = MaybeUninit::::uninit(); + unsafe { + ret_infallible(syscall!( + __NR_prlimit64, + c_uint(0), + limit, + null::(), + &mut result + )); + rlimit_from_linux(result.assume_init()) + } +} + +#[inline] +pub(crate) fn setrlimit(limit: Resource, new: Rlimit) -> io::Result<()> { + unsafe { + let lim = rlimit_to_linux(new); + match ret(syscall_readonly!( + __NR_prlimit64, + c_uint(0), + limit, + by_ref(&lim), + null_mut::() + )) { + Ok(()) => Ok(()), + Err(err) => Err(err), + } + } +} + +#[inline] +pub(crate) fn prlimit(pid: Option, limit: Resource, new: Rlimit) -> io::Result { + let lim = rlimit_to_linux(new); + let mut result = MaybeUninit::::uninit(); + unsafe { + match ret(syscall!( + __NR_prlimit64, + c_int(Pid::as_raw(pid)), + limit, + by_ref(&lim), + &mut result + )) { + Ok(()) => Ok(rlimit_from_linux(result.assume_init())), + Err(err) => Err(err), + } + } +} + +/// Convert a C `rlimit64` to a Rust `Rlimit`. +#[inline] +fn rlimit_from_linux(lim: rlimit64) -> Rlimit { + let current = if lim.rlim_cur == RLIM64_INFINITY as u64 { + None + } else { + Some(lim.rlim_cur) + }; + let maximum = if lim.rlim_max == RLIM64_INFINITY as u64 { + None + } else { + Some(lim.rlim_max) + }; + Rlimit { current, maximum } +} + +/// Convert a Rust [`Rlimit`] to a C `rlimit64`. +#[inline] +fn rlimit_to_linux(lim: Rlimit) -> rlimit64 { + let rlim_cur = match lim.current { + Some(r) => r, + None => RLIM64_INFINITY as _, + }; + let rlim_max = match lim.maximum { + Some(r) => r, + None => RLIM64_INFINITY as _, + }; + rlimit64 { rlim_cur, rlim_max } +} + +#[inline] +pub(crate) fn wait(waitopts: WaitOptions) -> io::Result> { + _waitpid(!0, waitopts) +} + +#[inline] +pub(crate) fn waitpid( + pid: Option, + waitopts: WaitOptions, +) -> io::Result> { + _waitpid(Pid::as_raw(pid), waitopts) +} + +#[inline] +pub(crate) fn waitpgid(pgid: Pid, waitopts: WaitOptions) -> io::Result> { + _waitpid(-pgid.as_raw_nonzero().get(), waitopts) +} + +#[inline] +pub(crate) fn _waitpid( + pid: RawPid, + waitopts: WaitOptions, +) -> io::Result> { + unsafe { + let mut status = MaybeUninit::::uninit(); + let pid = ret_c_int(syscall!( + __NR_wait4, + c_int(pid as _), + &mut status, + c_int(waitopts.bits() as _), + zero() + ))?; + Ok(Pid::from_raw(pid).map(|pid| (pid, WaitStatus::new(status.assume_init())))) + } +} + +#[inline] +pub(crate) fn waitid(id: WaitId<'_>, options: WaitIdOptions) -> io::Result> { + // Get the id to wait on. + match id { + WaitId::All => _waitid_all(options), + WaitId::Pid(pid) => _waitid_pid(pid, options), + WaitId::Pgid(pid) => _waitid_pgid(pid, options), + WaitId::PidFd(fd) => _waitid_pidfd(fd, options), + } +} + +#[inline] +fn _waitid_all(options: WaitIdOptions) -> io::Result> { + // `waitid` can return successfully without initializing the struct (no + // children found when using `WNOHANG`) + let mut status = MaybeUninit::::zeroed(); + unsafe { + ret(syscall!( + __NR_waitid, + c_uint(c::P_ALL), + c_uint(0), + &mut status, + c_int(options.bits() as _), + zero() + ))? + }; + + Ok(unsafe { cvt_waitid_status(status) }) +} + +#[inline] +fn _waitid_pid(pid: Pid, options: WaitIdOptions) -> io::Result> { + // `waitid` can return successfully without initializing the struct (no + // children found when using `WNOHANG`) + let mut status = MaybeUninit::::zeroed(); + unsafe { + ret(syscall!( + __NR_waitid, + c_uint(c::P_PID), + c_int(Pid::as_raw(Some(pid))), + &mut status, + c_int(options.bits() as _), + zero() + ))? + }; + + Ok(unsafe { cvt_waitid_status(status) }) +} + +#[inline] +fn _waitid_pgid(pgid: Option, options: WaitIdOptions) -> io::Result> { + // `waitid` can return successfully without initializing the struct (no + // children found when using `WNOHANG`) + let mut status = MaybeUninit::::zeroed(); + unsafe { + ret(syscall!( + __NR_waitid, + c_uint(c::P_PGID), + c_int(Pid::as_raw(pgid)), + &mut status, + c_int(options.bits() as _), + zero() + ))? + }; + + Ok(unsafe { cvt_waitid_status(status) }) +} + +#[inline] +fn _waitid_pidfd(fd: BorrowedFd<'_>, options: WaitIdOptions) -> io::Result> { + // `waitid` can return successfully without initializing the struct (no + // children found when using `WNOHANG`) + let mut status = MaybeUninit::::zeroed(); + unsafe { + ret(syscall!( + __NR_waitid, + c_uint(c::P_PIDFD), + c_uint(fd.as_raw_fd() as _), + &mut status, + c_int(options.bits() as _), + zero() + ))? + }; + + Ok(unsafe { cvt_waitid_status(status) }) +} + +/// Convert a `siginfo_t` to a `WaitIdStatus`. +/// +/// # Safety +/// +/// The caller must ensure that `status` is initialized and that `waitid` +/// returned successfully. +#[inline] +unsafe fn cvt_waitid_status(status: MaybeUninit) -> Option { + let status = status.assume_init(); + if status + .__bindgen_anon_1 + .__bindgen_anon_1 + ._sifields + ._sigchld + ._pid + == 0 + { + None + } else { + Some(WaitIdStatus(status)) + } +} + +#[inline] +pub(crate) fn getsid(pid: Option) -> io::Result { + unsafe { + let pid = ret_c_int(syscall_readonly!(__NR_getsid, c_int(Pid::as_raw(pid))))?; + Ok(Pid::from_raw_unchecked(pid)) + } +} + +#[inline] +pub(crate) fn setsid() -> io::Result { + unsafe { + let pid = ret_c_int(syscall_readonly!(__NR_setsid))?; + Ok(Pid::from_raw_unchecked(pid)) + } +} + +#[inline] +pub(crate) fn kill_process(pid: Pid, sig: Signal) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_kill, pid, sig)) } +} + +#[inline] +pub(crate) fn kill_process_group(pid: Pid, sig: Signal) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_kill, negative_pid(pid), sig)) } +} + +#[inline] +pub(crate) fn kill_current_process_group(sig: Signal) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_kill, pass_usize(0), sig)) } +} + +#[inline] +pub(crate) fn test_kill_process(pid: Pid) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_kill, pid, pass_usize(0))) } +} + +#[inline] +pub(crate) fn test_kill_process_group(pid: Pid) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_kill, + negative_pid(pid), + pass_usize(0) + )) + } +} + +#[inline] +pub(crate) fn test_kill_current_process_group() -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_kill, pass_usize(0), pass_usize(0))) } +} + +#[inline] +pub(crate) fn pidfd_getfd( + pidfd: BorrowedFd<'_>, + targetfd: RawFd, + flags: PidfdGetfdFlags, +) -> io::Result { + unsafe { + ret_owned_fd(syscall_readonly!( + __NR_pidfd_getfd, + pidfd, + raw_fd(targetfd), + c_int(flags.bits() as _) + )) + } +} + +#[inline] +pub(crate) fn pidfd_open(pid: Pid, flags: PidfdFlags) -> io::Result { + unsafe { ret_owned_fd(syscall_readonly!(__NR_pidfd_open, pid, flags)) } +} + +#[inline] +pub(crate) fn pidfd_send_signal(fd: BorrowedFd<'_>, sig: Signal) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_pidfd_send_signal, + fd, + sig, + pass_usize(0), + pass_usize(0) + )) + } +} + +#[cfg(feature = "fs")] +#[inline] +pub(crate) fn pivot_root(new_root: &CStr, put_old: &CStr) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_pivot_root, new_root, put_old)) } +} + +#[cfg(feature = "alloc")] +#[inline] +pub(crate) fn getgroups(buf: &mut [Gid]) -> io::Result { + let len = buf.len().try_into().map_err(|_| io::Errno::NOMEM)?; + + unsafe { + ret_usize(syscall!( + __NR_getgroups, + c_int(len), + slice_just_addr_mut(buf) + )) + } +} + +#[inline] +pub(crate) fn fcntl_getlk(fd: BorrowedFd<'_>, lock: &Flock) -> io::Result> { + let mut curr_lock: c::flock = lock.as_raw(); + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall!( + __NR_fcntl64, + fd, + c_uint(c::F_GETLK64), + by_mut(&mut curr_lock) + ))? + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall!( + __NR_fcntl, + fd, + c_uint(c::F_GETLK), + by_mut(&mut curr_lock) + ))? + } + + // If no blocking lock is found, `fcntl(GETLK, ..)` sets `l_type` to + // `F_UNLCK`. + if curr_lock.l_type == c::F_UNLCK as _ { + Ok(None) + } else { + Ok(Some(unsafe { Flock::from_raw_unchecked(curr_lock) })) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/process/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/process/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..58b8cc14557317dbbcdc7f0a2f5a634961373f9e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/process/types.rs @@ -0,0 +1,43 @@ +/// A resource value for use with [`getrlimit`], [`setrlimit`], and +/// [`prlimit`]. +/// +/// [`getrlimit`]: crate::process::getrlimit +/// [`setrlimit`]: crate::process::setrlimit +/// [`prlimit`]: crate::process::prlimit +#[derive(Copy, Clone, Debug, Eq, PartialEq)] +#[repr(u32)] +#[non_exhaustive] +pub enum Resource { + /// `RLIMIT_CPU` + Cpu = linux_raw_sys::general::RLIMIT_CPU, + /// `RLIMIT_FSIZE` + Fsize = linux_raw_sys::general::RLIMIT_FSIZE, + /// `RLIMIT_DATA` + Data = linux_raw_sys::general::RLIMIT_DATA, + /// `RLIMIT_STACK` + Stack = linux_raw_sys::general::RLIMIT_STACK, + /// `RLIMIT_CORE` + Core = linux_raw_sys::general::RLIMIT_CORE, + /// `RLIMIT_RSS` + Rss = linux_raw_sys::general::RLIMIT_RSS, + /// `RLIMIT_NPROC` + Nproc = linux_raw_sys::general::RLIMIT_NPROC, + /// `RLIMIT_NOFILE` + Nofile = linux_raw_sys::general::RLIMIT_NOFILE, + /// `RLIMIT_MEMLOCK` + Memlock = linux_raw_sys::general::RLIMIT_MEMLOCK, + /// `RLIMIT_AS` + As = linux_raw_sys::general::RLIMIT_AS, + /// `RLIMIT_LOCKS` + Locks = linux_raw_sys::general::RLIMIT_LOCKS, + /// `RLIMIT_SIGPENDING` + Sigpending = linux_raw_sys::general::RLIMIT_SIGPENDING, + /// `RLIMIT_MSGQUEUE` + Msgqueue = linux_raw_sys::general::RLIMIT_MSGQUEUE, + /// `RLIMIT_NICE` + Nice = linux_raw_sys::general::RLIMIT_NICE, + /// `RLIMIT_RTPRIO` + Rtprio = linux_raw_sys::general::RLIMIT_RTPRIO, + /// `RLIMIT_RTTIME` + Rttime = linux_raw_sys::general::RLIMIT_RTTIME, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/process/wait.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/process/wait.rs new file mode 100644 index 0000000000000000000000000000000000000000..89b3eadb59c19e4ec205da409b0e2beb9b3e2776 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/process/wait.rs @@ -0,0 +1,123 @@ +// The functions replacing the C macros use the same names as in libc. +#![allow(non_snake_case, unsafe_code)] + +use crate::ffi::c_int; +pub(crate) use linux_raw_sys::general::{ + siginfo_t, WCONTINUED, WEXITED, WNOHANG, WNOWAIT, WSTOPPED, WUNTRACED, +}; + +#[inline] +pub(crate) fn WIFSTOPPED(status: i32) -> bool { + (status & 0xff) == 0x7f +} + +#[inline] +pub(crate) fn WSTOPSIG(status: i32) -> i32 { + (status >> 8) & 0xff +} + +#[inline] +pub(crate) fn WIFCONTINUED(status: i32) -> bool { + status == 0xffff +} + +#[inline] +pub(crate) fn WIFSIGNALED(status: i32) -> bool { + ((status & 0x7f) + 1) as i8 >= 2 +} + +#[inline] +pub(crate) fn WTERMSIG(status: i32) -> i32 { + status & 0x7f +} + +#[inline] +pub(crate) fn WIFEXITED(status: i32) -> bool { + (status & 0x7f) == 0 +} + +#[inline] +pub(crate) fn WEXITSTATUS(status: i32) -> i32 { + (status >> 8) & 0xff +} + +pub(crate) trait SiginfoExt { + fn si_signo(&self) -> c_int; + fn si_errno(&self) -> c_int; + fn si_code(&self) -> c_int; + unsafe fn si_status(&self) -> c_int; +} + +impl SiginfoExt for siginfo_t { + #[inline] + fn si_signo(&self) -> c_int { + // SAFETY: This is technically a union access, but it's only a union + // with padding. + unsafe { self.__bindgen_anon_1.__bindgen_anon_1.si_signo } + } + + #[inline] + fn si_errno(&self) -> c_int { + // SAFETY: This is technically a union access, but it's only a union + // with padding. + unsafe { self.__bindgen_anon_1.__bindgen_anon_1.si_errno } + } + + #[inline] + fn si_code(&self) -> c_int { + // SAFETY: This is technically a union access, but it's only a union + // with padding. + unsafe { self.__bindgen_anon_1.__bindgen_anon_1.si_code } + } + + /// Return the exit status or signal number recorded in a `siginfo_t`. + /// + /// # Safety + /// + /// `si_signo` must equal `SIGCHLD` (as it is guaranteed to do after a + /// `waitid` call). + #[inline] + unsafe fn si_status(&self) -> c_int { + self.__bindgen_anon_1 + .__bindgen_anon_1 + ._sifields + ._sigchld + ._status + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_libc_correspondence() { + for status in [ + 0, + 1, + 63, + 64, + 65, + 127, + 128, + 129, + 255, + 256, + 257, + 4095, + 4096, + 4097, + i32::MAX, + i32::MIN, + u32::MAX as i32, + ] { + assert_eq!(WIFSTOPPED(status), libc::WIFSTOPPED(status)); + assert_eq!(WSTOPSIG(status), libc::WSTOPSIG(status)); + assert_eq!(WIFCONTINUED(status), libc::WIFCONTINUED(status)); + assert_eq!(WIFSIGNALED(status), libc::WIFSIGNALED(status)); + assert_eq!(WTERMSIG(status), libc::WTERMSIG(status)); + assert_eq!(WIFEXITED(status), libc::WIFEXITED(status)); + assert_eq!(WEXITSTATUS(status), libc::WEXITSTATUS(status)); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pty/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pty/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..ef944f04d2627e93c3e742e586d754d72c7a2f39 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pty/mod.rs @@ -0,0 +1 @@ +pub(crate) mod syscalls; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pty/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pty/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..b64344fb93ba2be386f875440a3158bc61870d85 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/pty/syscalls.rs @@ -0,0 +1,43 @@ +//! linux_raw syscalls supporting `rustix::pty`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use crate::backend::conv::{by_ref, c_uint, ret}; +use crate::fd::BorrowedFd; +use crate::io; +use linux_raw_sys::ioctl::TIOCSPTLCK; +#[cfg(feature = "alloc")] +use { + crate::backend::c, crate::ffi::CString, crate::path::DecInt, alloc::vec::Vec, + core::mem::MaybeUninit, linux_raw_sys::ioctl::TIOCGPTN, +}; + +#[cfg(feature = "alloc")] +#[inline] +pub(crate) fn ptsname(fd: BorrowedFd<'_>, mut buffer: Vec) -> io::Result { + unsafe { + let mut n = MaybeUninit::::uninit(); + ret(syscall!(__NR_ioctl, fd, c_uint(TIOCGPTN), &mut n))?; + + buffer.clear(); + buffer.extend_from_slice(b"/dev/pts/"); + buffer.extend_from_slice(DecInt::new(n.assume_init()).as_bytes()); + buffer.push(b'\0'); + Ok(CString::from_vec_with_nul_unchecked(buffer)) + } +} + +#[inline] +pub(crate) fn unlockpt(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_ioctl, + fd, + c_uint(TIOCSPTLCK), + by_ref(&0) + )) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/rand/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/rand/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/rand/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/rand/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/rand/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..ad5a657ef33ecd078d6f7e7cfb531976124575f9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/rand/syscalls.rs @@ -0,0 +1,22 @@ +//! linux_raw syscalls supporting `rustix::rand`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use crate::backend::conv::{pass_usize, ret_usize}; +use crate::io; +use crate::rand::GetRandomFlags; + +#[inline] +pub(crate) unsafe fn getrandom(buf: (*mut u8, usize), flags: GetRandomFlags) -> io::Result { + let r = ret_usize(syscall!(__NR_getrandom, buf.0, pass_usize(buf.1), flags)); + + #[cfg(sanitize_memory)] + if let Ok(len) = r { + crate::msan::unpoison(buf.0, len); + } + + r +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/rand/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/rand/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..9bc857fdd6fbac8bda7dc1655cee1e5aaaab0d21 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/rand/types.rs @@ -0,0 +1,20 @@ +use bitflags::bitflags; + +bitflags! { + /// `GRND_*` flags for use with [`getrandom`]. + /// + /// [`getrandom`]: crate::rand::getrandom + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct GetRandomFlags: u32 { + /// `GRND_RANDOM` + const RANDOM = linux_raw_sys::general::GRND_RANDOM; + /// `GRND_NONBLOCK` + const NONBLOCK = linux_raw_sys::general::GRND_NONBLOCK; + /// `GRND_INSECURE` + const INSECURE = linux_raw_sys::general::GRND_INSECURE; + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/runtime/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/runtime/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..0b48649ce4bbe9131fe7956bff3ede6d5f725d57 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/runtime/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod tls; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/runtime/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/runtime/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e00030c19d12d59b70ab9263aa6c8ac20c5534c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/runtime/syscalls.rs @@ -0,0 +1,346 @@ +//! linux_raw syscalls supporting `rustix::runtime`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use crate::backend::c; +#[cfg(target_arch = "x86")] +use crate::backend::conv::by_mut; +#[cfg(target_arch = "x86_64")] +use crate::backend::conv::c_uint; +use crate::backend::conv::{ + by_ref, c_int, opt_ref, ret, ret_c_int, ret_c_int_infallible, ret_error, ret_infallible, + ret_void_star, size_of, zero, +}; +#[cfg(feature = "fs")] +use crate::fd::BorrowedFd; +use crate::ffi::CStr; +#[cfg(feature = "fs")] +use crate::fs::AtFlags; +use crate::io; +use crate::pid::{Pid, RawPid}; +use crate::runtime::{Fork, How, KernelSigSet, KernelSigaction, Siginfo, Stack}; +use crate::signal::Signal; +use crate::timespec::Timespec; +use core::ffi::c_void; +use core::mem::MaybeUninit; +#[cfg(all(target_pointer_width = "32", not(feature = "linux_5_1")))] +use linux_raw_sys::general::__kernel_old_timespec; +#[cfg(target_arch = "x86_64")] +use linux_raw_sys::general::ARCH_SET_FS; + +#[inline] +pub(crate) unsafe fn kernel_fork() -> io::Result { + let mut child_pid = MaybeUninit::::uninit(); + + // Unix `fork` only returns the child PID in the parent; we'd like it in + // the child too, so set `CLONE_CHILD_SETTID` and pass in the address of a + // memory location to store it to in the child. + // + // Architectures differ on the order of the parameters. + #[cfg(target_arch = "x86_64")] + let pid = ret_c_int(syscall!( + __NR_clone, + c_int(c::SIGCHLD | c::CLONE_CHILD_SETTID), + zero(), + zero(), + &mut child_pid, + zero() + ))?; + #[cfg(any( + target_arch = "aarch64", + target_arch = "arm", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "powerpc", + target_arch = "powerpc64", + target_arch = "riscv64", + target_arch = "s390x", + target_arch = "x86" + ))] + let pid = ret_c_int(syscall!( + __NR_clone, + c_int(c::SIGCHLD | c::CLONE_CHILD_SETTID), + zero(), + zero(), + zero(), + &mut child_pid + ))?; + + Ok(if let Some(pid) = Pid::from_raw(pid) { + Fork::ParentOf(pid) + } else { + Fork::Child(Pid::from_raw_unchecked(child_pid.assume_init())) + }) +} + +#[cfg(feature = "fs")] +pub(crate) unsafe fn execveat( + dirfd: BorrowedFd<'_>, + path: &CStr, + args: *const *const u8, + env_vars: *const *const u8, + flags: AtFlags, +) -> io::Errno { + ret_error(syscall_readonly!( + __NR_execveat, + dirfd, + path, + args, + env_vars, + flags + )) +} + +pub(crate) unsafe fn execve( + path: &CStr, + args: *const *const u8, + env_vars: *const *const u8, +) -> io::Errno { + ret_error(syscall_readonly!(__NR_execve, path, args, env_vars)) +} + +pub(crate) mod tls { + use super::*; + #[cfg(target_arch = "x86")] + use crate::backend::runtime::tls::UserDesc; + + #[cfg(target_arch = "x86")] + #[inline] + pub(crate) unsafe fn set_thread_area(u_info: &mut UserDesc) -> io::Result<()> { + ret(syscall!(__NR_set_thread_area, by_mut(u_info))) + } + + #[cfg(target_arch = "arm")] + #[inline] + pub(crate) unsafe fn arm_set_tls(data: *mut c::c_void) -> io::Result<()> { + ret(syscall_readonly!(__ARM_NR_set_tls, data)) + } + + #[cfg(target_arch = "x86_64")] + #[inline] + pub(crate) unsafe fn set_fs(data: *mut c::c_void) { + ret_infallible(syscall_readonly!( + __NR_arch_prctl, + c_uint(ARCH_SET_FS), + data, + zero(), + zero(), + zero() + )) + } + + #[inline] + pub(crate) unsafe fn set_tid_address(data: *mut c::c_void) -> Pid { + let tid: i32 = ret_c_int_infallible(syscall_readonly!(__NR_set_tid_address, data)); + Pid::from_raw_unchecked(tid) + } + + #[inline] + pub(crate) fn exit_thread(code: c::c_int) -> ! { + unsafe { syscall_noreturn!(__NR_exit, c_int(code)) } + } +} + +#[inline] +pub(crate) unsafe fn kernel_sigaction( + signal: Signal, + new: Option, +) -> io::Result { + let mut old = MaybeUninit::::uninit(); + let new = opt_ref(new.as_ref()); + ret(syscall!( + __NR_rt_sigaction, + signal, + new, + &mut old, + size_of::() + ))?; + Ok(old.assume_init()) +} + +#[inline] +pub(crate) unsafe fn kernel_sigaltstack(new: Option) -> io::Result { + let mut old = MaybeUninit::::uninit(); + let new = opt_ref(new.as_ref()); + ret(syscall!(__NR_sigaltstack, new, &mut old))?; + Ok(old.assume_init()) +} + +#[inline] +pub(crate) unsafe fn tkill(tid: Pid, sig: Signal) -> io::Result<()> { + ret(syscall_readonly!(__NR_tkill, tid, sig)) +} + +#[inline] +pub(crate) unsafe fn kernel_sigprocmask( + how: How, + new: Option<&KernelSigSet>, +) -> io::Result { + let mut old = MaybeUninit::::uninit(); + let new = opt_ref(new); + ret(syscall!( + __NR_rt_sigprocmask, + how, + new, + &mut old, + size_of::() + ))?; + Ok(old.assume_init()) +} + +#[inline] +pub(crate) fn kernel_sigpending() -> KernelSigSet { + let mut pending = MaybeUninit::::uninit(); + unsafe { + ret_infallible(syscall!( + __NR_rt_sigpending, + &mut pending, + size_of::() + )); + pending.assume_init() + } +} + +#[inline] +pub(crate) fn kernel_sigsuspend(set: &KernelSigSet) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_rt_sigsuspend, + by_ref(set), + size_of::() + )) + } +} + +#[inline] +pub(crate) unsafe fn kernel_sigwait(set: &KernelSigSet) -> io::Result { + Ok(Signal::from_raw_unchecked(ret_c_int(syscall_readonly!( + __NR_rt_sigtimedwait, + by_ref(set), + zero(), + zero(), + size_of::() + ))?)) +} + +#[inline] +pub(crate) unsafe fn kernel_sigwaitinfo(set: &KernelSigSet) -> io::Result { + let mut info = MaybeUninit::::uninit(); + let _signum = ret_c_int(syscall!( + __NR_rt_sigtimedwait, + by_ref(set), + &mut info, + zero(), + size_of::() + ))?; + Ok(info.assume_init()) +} + +#[inline] +pub(crate) unsafe fn kernel_sigtimedwait( + set: &KernelSigSet, + timeout: Option<&Timespec>, +) -> io::Result { + let mut info = MaybeUninit::::uninit(); + + // `rt_sigtimedwait_time64` was introduced in Linux 5.1. The old + // `rt_sigtimedwait` syscall is not y2038-compatible on 32-bit + // architectures. + #[cfg(target_pointer_width = "32")] + { + // If we don't have Linux 5.1, and the timeout fits in a + // `__kernel_old_timespec`, use plain `rt_sigtimedwait`. + // + // We do this unconditionally, rather than trying + // `rt_sigtimedwait_time64` and falling back on `Errno::NOSYS`, because + // seccomp configurations will sometimes abort the process on syscalls + // they don't recognize. + #[cfg(not(feature = "linux_5_1"))] + { + // If we don't have a timeout, or if we can convert the timeout to + // a `__kernel_old_timespec`, the use `__NR_futex`. + fn convert(timeout: &Timespec) -> Option<__kernel_old_timespec> { + Some(__kernel_old_timespec { + tv_sec: timeout.tv_sec.try_into().ok()?, + tv_nsec: timeout.tv_nsec.try_into().ok()?, + }) + } + let old_timeout = if let Some(timeout) = timeout { + match convert(timeout) { + // Could not convert timeout. + None => None, + // Could convert timeout. Ok! + Some(old_timeout) => Some(Some(old_timeout)), + } + } else { + // No timeout. Ok! + Some(None) + }; + if let Some(old_timeout) = old_timeout { + return ret_c_int(syscall!( + __NR_rt_sigtimedwait, + by_ref(set), + &mut info, + opt_ref(old_timeout.as_ref()), + size_of::() + )) + .map(|sig| { + debug_assert_eq!( + sig, + info.assume_init_ref() + .__bindgen_anon_1 + .__bindgen_anon_1 + .si_signo + ); + info.assume_init() + }); + } + } + + ret_c_int(syscall!( + __NR_rt_sigtimedwait_time64, + by_ref(set), + &mut info, + opt_ref(timeout), + size_of::() + )) + .map(|sig| { + debug_assert_eq!( + sig, + info.assume_init_ref() + .__bindgen_anon_1 + .__bindgen_anon_1 + .si_signo + ); + info.assume_init() + }) + } + + #[cfg(target_pointer_width = "64")] + { + let _signum = ret_c_int(syscall!( + __NR_rt_sigtimedwait, + by_ref(set), + &mut info, + opt_ref(timeout), + size_of::() + ))?; + Ok(info.assume_init()) + } +} + +#[inline] +pub(crate) fn exit_group(code: c::c_int) -> ! { + unsafe { syscall_noreturn!(__NR_exit_group, c_int(code)) } +} + +#[inline] +pub(crate) unsafe fn kernel_brk(addr: *mut c::c_void) -> io::Result<*mut c_void> { + // This is non-`readonly`, to prevent loads from being reordered past it. + ret_void_star(syscall!(__NR_brk, addr)) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/runtime/tls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/runtime/tls.rs new file mode 100644 index 0000000000000000000000000000000000000000..bc04a706bc526fa204f892eb95e7df2da95270da --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/runtime/tls.rs @@ -0,0 +1,7 @@ +//! TLS utilities. + +/// For use with [`set_thread_area`]. +/// +/// [`set_thread_area`]: crate::runtime::set_thread_area +#[cfg(target_arch = "x86")] +pub type UserDesc = linux_raw_sys::general::user_desc; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/shm/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/shm/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/shm/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/shm/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/shm/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..77b96d9e3c000210a45e881ae6b5fd1943069f94 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/shm/syscalls.rs @@ -0,0 +1,46 @@ +use crate::ffi::CStr; + +use crate::backend::fs::syscalls::{open, unlink}; +use crate::backend::fs::types::{Mode, OFlags}; +use crate::fd::OwnedFd; +use crate::{io, shm}; + +const NAME_MAX: usize = 255; +const SHM_DIR: &[u8] = b"/dev/shm/"; + +fn get_shm_name(name: &CStr) -> io::Result<([u8; NAME_MAX + SHM_DIR.len() + 1], usize)> { + let name = name.to_bytes(); + + if name.len() > NAME_MAX { + return Err(io::Errno::NAMETOOLONG); + } + + let num_slashes = name.iter().take_while(|x| **x == b'/').count(); + let after_slashes = &name[num_slashes..]; + if after_slashes.is_empty() + || after_slashes == b"." + || after_slashes == b".." + || after_slashes.contains(&b'/') + { + return Err(io::Errno::INVAL); + } + + let mut path = [0; NAME_MAX + SHM_DIR.len() + 1]; + path[..SHM_DIR.len()].copy_from_slice(SHM_DIR); + path[SHM_DIR.len()..SHM_DIR.len() + name.len()].copy_from_slice(name); + Ok((path, SHM_DIR.len() + name.len() + 1)) +} + +pub(crate) fn shm_open(name: &CStr, oflags: shm::OFlags, mode: Mode) -> io::Result { + let (path, len) = get_shm_name(name)?; + open( + CStr::from_bytes_with_nul(&path[..len]).unwrap(), + OFlags::from_bits(oflags.bits()).unwrap() | OFlags::CLOEXEC, + mode, + ) +} + +pub(crate) fn shm_unlink(name: &CStr) -> io::Result<()> { + let (path, len) = get_shm_name(name)?; + unlink(CStr::from_bytes_with_nul(&path[..len]).unwrap()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/shm/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/shm/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..e1e8fc028c149c7fe53ee96fd66ddc2370cd4f5a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/shm/types.rs @@ -0,0 +1,30 @@ +use crate::ffi; +use bitflags::bitflags; + +bitflags! { + /// `O_*` constants for use with [`shm::open`]. + /// + /// [`shm::open`]: crate:shm::open + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct ShmOFlags: ffi::c_uint { + /// `O_CREAT` + #[doc(alias = "CREAT")] + const CREATE = linux_raw_sys::general::O_CREAT; + + /// `O_EXCL` + const EXCL = linux_raw_sys::general::O_EXCL; + + /// `O_RDONLY` + const RDONLY = linux_raw_sys::general::O_RDONLY; + + /// `O_RDWR` + const RDWR = linux_raw_sys::general::O_RDWR; + + /// `O_TRUNC` + const TRUNC = linux_raw_sys::general::O_TRUNC; + + /// + const _ = !0; + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/system/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/system/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/system/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/system/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/system/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..bbee26807a468eec6637c2ac75492e3d7c6363eb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/system/syscalls.rs @@ -0,0 +1,91 @@ +//! linux_raw syscalls supporting `rustix::system`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use super::types::RawUname; +use crate::backend::c; +use crate::backend::conv::{c_int, ret, ret_infallible, slice}; +use crate::fd::BorrowedFd; +use crate::ffi::CStr; +use crate::io; +use crate::system::{RebootCommand, Sysinfo}; +use core::mem::MaybeUninit; + +#[inline] +pub(crate) fn uname() -> RawUname { + let mut uname = MaybeUninit::::uninit(); + unsafe { + ret_infallible(syscall!(__NR_uname, &mut uname)); + uname.assume_init() + } +} + +#[inline] +pub(crate) fn sysinfo() -> Sysinfo { + let mut info = MaybeUninit::::uninit(); + unsafe { + ret_infallible(syscall!(__NR_sysinfo, &mut info)); + info.assume_init() + } +} + +#[inline] +pub(crate) fn sethostname(name: &[u8]) -> io::Result<()> { + let (ptr, len) = slice(name); + unsafe { ret(syscall_readonly!(__NR_sethostname, ptr, len)) } +} + +#[inline] +pub(crate) fn setdomainname(name: &[u8]) -> io::Result<()> { + let (ptr, len) = slice(name); + unsafe { ret(syscall_readonly!(__NR_setdomainname, ptr, len)) } +} + +#[inline] +pub(crate) fn reboot(cmd: RebootCommand) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_reboot, + c_int(c::LINUX_REBOOT_MAGIC1), + c_int(c::LINUX_REBOOT_MAGIC2), + c_int(cmd as i32) + )) + } +} + +#[inline] +pub(crate) fn init_module(image: &[u8], param_values: &CStr) -> io::Result<()> { + let (image, len) = slice(image); + unsafe { + ret(syscall_readonly!( + __NR_init_module, + image, + len, + param_values + )) + } +} + +#[inline] +pub(crate) fn finit_module( + fd: BorrowedFd<'_>, + param_values: &CStr, + flags: c::c_int, +) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_finit_module, + fd, + param_values, + c_int(flags) + )) + } +} + +#[inline] +pub(crate) fn delete_module(name: &CStr, flags: c::c_int) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_delete_module, name, c_int(flags))) } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/system/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/system/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..92cc52786051f2c9381d85cda63c288b5c1c14e3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/system/types.rs @@ -0,0 +1,39 @@ +use crate::ffi; +use core::mem::size_of; + +/// `sysinfo` +#[non_exhaustive] +#[repr(C)] +pub struct Sysinfo { + /// Seconds since boot + pub uptime: ffi::c_long, + /// 1, 5, and 15 minute load averages + pub loads: [ffi::c_ulong; 3], + /// Total usable main memory size + pub totalram: ffi::c_ulong, + /// Available memory size + pub freeram: ffi::c_ulong, + /// Amount of shared memory + pub sharedram: ffi::c_ulong, + /// Memory used by buffers + pub bufferram: ffi::c_ulong, + /// Total swap space size + pub totalswap: ffi::c_ulong, + /// Swap space still available + pub freeswap: ffi::c_ulong, + /// Number of current processes + pub procs: ffi::c_ushort, + + pub(crate) pad: ffi::c_ushort, + + /// Total high memory size + pub totalhigh: ffi::c_ulong, + /// Available high memory size + pub freehigh: ffi::c_ulong, + /// Memory unit size in bytes + pub mem_unit: ffi::c_uint, + + pub(crate) f: [u8; 20 - 2 * size_of::() - size_of::()], +} + +pub(crate) type RawUname = linux_raw_sys::system::new_utsname; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/termios/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/termios/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/termios/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/termios/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/termios/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..07c3a3d959a56489beeac13bd09be11b3d6c9fc0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/termios/syscalls.rs @@ -0,0 +1,425 @@ +//! linux_raw syscalls supporting `rustix::termios`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use crate::backend::c; +use crate::backend::conv::{by_ref, c_uint, ret}; +use crate::fd::BorrowedFd; +#[cfg(feature = "alloc")] +use crate::ffi::CStr; +use crate::io; +use crate::pid::Pid; +use crate::termios::{ + speed, Action, ControlModes, InputModes, LocalModes, OptionalActions, OutputModes, + QueueSelector, SpecialCodeIndex, Termios, Winsize, +}; +#[cfg(feature = "alloc")] +#[cfg(feature = "fs")] +use crate::{fs::FileType, path::DecInt}; +use core::mem::MaybeUninit; + +#[inline] +pub(crate) fn tcgetwinsize(fd: BorrowedFd<'_>) -> io::Result { + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(syscall!(__NR_ioctl, fd, c_uint(c::TIOCGWINSZ), &mut result))?; + Ok(result.assume_init()) + } +} + +#[inline] +pub(crate) fn tcgetattr(fd: BorrowedFd<'_>) -> io::Result { + let mut result = MaybeUninit::::uninit(); + + // SAFETY: This invokes the `TCGETS2` ioctl, which initializes the full + // `Termios` structure. + unsafe { + match ret(syscall!(__NR_ioctl, fd, c_uint(c::TCGETS2), &mut result)) { + Ok(()) => Ok(result.assume_init()), + + // A `NOTTY` or `ACCESS` might mean the OS doesn't support + // `TCGETS2`, for example a seccomp environment or WSL that only + // knows about `TCGETS`. Fall back to the old `TCGETS`. + #[cfg(not(any(target_arch = "powerpc", target_arch = "powerpc64")))] + Err(io::Errno::NOTTY) | Err(io::Errno::ACCESS) => tcgetattr_fallback(fd), + + Err(err) => Err(err), + } + } +} + +/// Implement `tcgetattr` using the old `TCGETS` ioctl. +#[cfg(not(any(target_arch = "powerpc", target_arch = "powerpc64")))] +#[cold] +fn tcgetattr_fallback(fd: BorrowedFd<'_>) -> io::Result { + use core::ptr::{addr_of, addr_of_mut}; + + let mut result = MaybeUninit::::uninit(); + + // SAFETY: This invokes the `TCGETS` ioctl which initializes the `Termios` + // structure except for the `input_speed` and `output_speed` fields, which + // we manually initialize before forming a reference to the full `Termios`. + unsafe { + // Do the old `TCGETS` call. + ret(syscall!(__NR_ioctl, fd, c_uint(c::TCGETS), &mut result))?; + + // Read the `control_modes` field without forming a reference to the + // `Termios` because it isn't fully initialized yet. + let ptr = result.as_mut_ptr(); + let control_modes = addr_of!((*ptr).control_modes).read(); + + // Infer the output speed and set `output_speed`. + let encoded_out = control_modes.bits() & c::CBAUD; + let output_speed = match speed::decode(encoded_out) { + Some(output_speed) => output_speed, + None => return Err(io::Errno::RANGE), + }; + addr_of_mut!((*ptr).output_speed).write(output_speed); + + // Infer the input speed and set `input_speed`. `B0` is a special-case + // that means the input speed is the same as the output speed. + let encoded_in = (control_modes.bits() & c::CIBAUD) >> c::IBSHIFT; + let input_speed = if encoded_in == c::B0 { + output_speed + } else { + match speed::decode(encoded_in) { + Some(input_speed) => input_speed, + None => return Err(io::Errno::RANGE), + } + }; + addr_of_mut!((*ptr).input_speed).write(input_speed); + + // Now all the fields are set. + Ok(result.assume_init()) + } +} + +#[inline] +pub(crate) fn tcgetpgrp(fd: BorrowedFd<'_>) -> io::Result { + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(syscall!(__NR_ioctl, fd, c_uint(c::TIOCGPGRP), &mut result))?; + let pid = result.assume_init(); + + // This doesn't appear to be documented, but it appears `tcsetpgrp` can + // succeed and set the pid to 0 if we pass it a pseudo-terminal device + // fd. For now, fail with `OPNOTSUPP`. + if pid == 0 { + return Err(io::Errno::OPNOTSUPP); + } + + Ok(Pid::from_raw_unchecked(pid)) + } +} + +#[inline] +pub(crate) fn tcsetattr( + fd: BorrowedFd<'_>, + optional_actions: OptionalActions, + termios: &Termios, +) -> io::Result<()> { + // Translate from `optional_actions` into a `TCSETS2` ioctl request code. + // On MIPS, `optional_actions` has `TCSETS` added to it. + let request = c::TCSETS2 + + if cfg!(any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6" + )) { + optional_actions as u32 - c::TCSETS + } else { + optional_actions as u32 + }; + + // SAFETY: This invokes the `TCSETS2` ioctl. + unsafe { + match ret(syscall_readonly!( + __NR_ioctl, + fd, + c_uint(request), + by_ref(termios) + )) { + Ok(()) => Ok(()), + + // Similar to `tcgetattr_fallback`, `NOTTY` or `ACCESS` might mean + // the OS doesn't support `TCSETS2`. Fall back to the old `TCSETS`. + #[cfg(not(any(target_arch = "powerpc", target_arch = "powerpc64")))] + Err(io::Errno::NOTTY) | Err(io::Errno::ACCESS) => { + tcsetattr_fallback(fd, optional_actions, termios) + } + + Err(err) => Err(err), + } + } +} + +/// Implement `tcsetattr` using the old `TCSETS` ioctl. +#[cfg(not(any(target_arch = "powerpc", target_arch = "powerpc64")))] +#[cold] +fn tcsetattr_fallback( + fd: BorrowedFd<'_>, + optional_actions: OptionalActions, + termios: &Termios, +) -> io::Result<()> { + // `TCSETS` silently accepts `BOTHER` in `c_cflag` even though it doesn't + // read `c_ispeed`/`c_ospeed`, so detect this case and fail if needed. + let control_modes_bits = termios.control_modes.bits(); + let encoded_out = control_modes_bits & c::CBAUD; + let encoded_in = (control_modes_bits & c::CIBAUD) >> c::IBSHIFT; + if encoded_out == c::BOTHER || encoded_in == c::BOTHER { + return Err(io::Errno::RANGE); + } + + // Translate from `optional_actions` into a `TCSETS` ioctl request code. On + // MIPS, `optional_actions` already has `TCSETS` added to it. + let request = if cfg!(any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6" + )) { + optional_actions as u32 + } else { + optional_actions as u32 + c::TCSETS + }; + + // SAFETY: This invokes the `TCSETS` ioctl. + unsafe { + ret(syscall_readonly!( + __NR_ioctl, + fd, + c_uint(request), + by_ref(termios) + )) + } +} + +#[inline] +pub(crate) fn tcsendbreak(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_ioctl, + fd, + c_uint(c::TCSBRK), + c_uint(0) + )) + } +} + +#[inline] +pub(crate) fn tcdrain(fd: BorrowedFd<'_>) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_ioctl, + fd, + c_uint(c::TCSBRK), + c_uint(1) + )) + } +} + +#[inline] +pub(crate) fn tcflush(fd: BorrowedFd<'_>, queue_selector: QueueSelector) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_ioctl, + fd, + c_uint(c::TCFLSH), + c_uint(queue_selector as u32) + )) + } +} + +#[inline] +pub(crate) fn tcflow(fd: BorrowedFd<'_>, action: Action) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_ioctl, + fd, + c_uint(c::TCXONC), + c_uint(action as u32) + )) + } +} + +#[inline] +pub(crate) fn tcgetsid(fd: BorrowedFd<'_>) -> io::Result { + unsafe { + let mut result = MaybeUninit::::uninit(); + ret(syscall!(__NR_ioctl, fd, c_uint(c::TIOCGSID), &mut result))?; + let pid = result.assume_init(); + Ok(Pid::from_raw_unchecked(pid)) + } +} + +#[inline] +pub(crate) fn tcsetwinsize(fd: BorrowedFd<'_>, winsize: Winsize) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_ioctl, + fd, + c_uint(c::TIOCSWINSZ), + by_ref(&winsize) + )) + } +} + +#[inline] +pub(crate) fn tcsetpgrp(fd: BorrowedFd<'_>, pid: Pid) -> io::Result<()> { + let raw_pid: c::c_int = pid.as_raw_nonzero().get(); + unsafe { + ret(syscall_readonly!( + __NR_ioctl, + fd, + c_uint(c::TIOCSPGRP), + by_ref(&raw_pid) + )) + } +} + +/// A wrapper around a conceptual `cfsetspeed` which handles an arbitrary +/// integer speed value. +#[inline] +pub(crate) fn set_speed(termios: &mut Termios, arbitrary_speed: u32) -> io::Result<()> { + let encoded_speed = speed::encode(arbitrary_speed).unwrap_or(c::BOTHER); + + debug_assert_eq!(encoded_speed & !c::CBAUD, 0); + + termios.control_modes -= ControlModes::from_bits_retain(c::CBAUD | c::CIBAUD); + termios.control_modes |= + ControlModes::from_bits_retain(encoded_speed | (encoded_speed << c::IBSHIFT)); + + termios.input_speed = arbitrary_speed; + termios.output_speed = arbitrary_speed; + + Ok(()) +} + +/// A wrapper around a conceptual `cfsetospeed` which handles an arbitrary +/// integer speed value. +#[inline] +pub(crate) fn set_output_speed(termios: &mut Termios, arbitrary_speed: u32) -> io::Result<()> { + let encoded_speed = speed::encode(arbitrary_speed).unwrap_or(c::BOTHER); + + debug_assert_eq!(encoded_speed & !c::CBAUD, 0); + + termios.control_modes -= ControlModes::from_bits_retain(c::CBAUD); + termios.control_modes |= ControlModes::from_bits_retain(encoded_speed); + + termios.output_speed = arbitrary_speed; + + Ok(()) +} + +/// A wrapper around a conceptual `cfsetispeed` which handles an arbitrary +/// integer speed value. +#[inline] +pub(crate) fn set_input_speed(termios: &mut Termios, arbitrary_speed: u32) -> io::Result<()> { + let encoded_speed = speed::encode(arbitrary_speed).unwrap_or(c::BOTHER); + + debug_assert_eq!(encoded_speed & !c::CBAUD, 0); + + termios.control_modes -= ControlModes::from_bits_retain(c::CIBAUD); + termios.control_modes |= ControlModes::from_bits_retain(encoded_speed << c::IBSHIFT); + + termios.input_speed = arbitrary_speed; + + Ok(()) +} + +#[inline] +pub(crate) fn cfmakeraw(termios: &mut Termios) { + // From the Linux [`cfmakeraw` manual page]: + // + // [`cfmakeraw` manual page]: https://man7.org/linux/man-pages/man3/cfmakeraw.3.html + termios.input_modes -= InputModes::IGNBRK + | InputModes::BRKINT + | InputModes::PARMRK + | InputModes::ISTRIP + | InputModes::INLCR + | InputModes::IGNCR + | InputModes::ICRNL + | InputModes::IXON; + termios.output_modes -= OutputModes::OPOST; + termios.local_modes -= LocalModes::ECHO + | LocalModes::ECHONL + | LocalModes::ICANON + | LocalModes::ISIG + | LocalModes::IEXTEN; + termios.control_modes -= ControlModes::CSIZE | ControlModes::PARENB; + termios.control_modes |= ControlModes::CS8; + + // Musl and glibc also do these: + termios.special_codes[SpecialCodeIndex::VMIN] = 1; + termios.special_codes[SpecialCodeIndex::VTIME] = 0; +} + +#[inline] +pub(crate) fn isatty(fd: BorrowedFd<'_>) -> bool { + // On error, Linux will return either `EINVAL` (2.6.32) or `ENOTTY` + // (otherwise), because we assume we're never passing an invalid + // file descriptor (which would get `EBADF`). Either way, an error + // means we don't have a tty. + tcgetwinsize(fd).is_ok() +} + +#[cfg(feature = "alloc")] +#[cfg(feature = "fs")] +pub(crate) fn ttyname(fd: BorrowedFd<'_>, buf: &mut [MaybeUninit]) -> io::Result { + let fd_stat = crate::backend::fs::syscalls::fstat(fd)?; + + // Quick check: if `fd` isn't a character device, it's not a tty. + if FileType::from_raw_mode(fd_stat.st_mode) != FileType::CharacterDevice { + return Err(io::Errno::NOTTY); + } + + // Check that `fd` is really a tty. + tcgetwinsize(fd)?; + + // Create the "/proc/self/fd/" string. + let mut proc_self_fd_buf: [u8; 25] = *b"/proc/self/fd/\0\0\0\0\0\0\0\0\0\0\0"; + let dec_int = DecInt::from_fd(fd); + let bytes_with_nul = dec_int.as_bytes_with_nul(); + proc_self_fd_buf[b"/proc/self/fd/".len()..][..bytes_with_nul.len()] + .copy_from_slice(bytes_with_nul); + + // SAFETY: We just wrote a valid C String. + let proc_self_fd_path = unsafe { CStr::from_ptr(proc_self_fd_buf.as_ptr().cast()) }; + + let ptr = buf.as_mut_ptr(); + let len = { + // Gather the ttyname by reading the "fd" file inside `proc_self_fd`. + let (init, uninit) = crate::fs::readlinkat_raw(crate::fs::CWD, proc_self_fd_path, buf)?; + + // If the number of bytes is equal to the buffer length, truncation may + // have occurred. This check also ensures that we have enough space for + // adding a NUL terminator. + if uninit.is_empty() { + return Err(io::Errno::RANGE); + } + + // `readlinkat` returns the number of bytes placed in the buffer. + // NUL-terminate the string at that offset. + uninit[0].write(b'\0'); + + init.len() + }; + + // Check that the path we read refers to the same file as `fd`. + { + // SAFETY: We just wrote the NUL byte above. + let path = unsafe { CStr::from_ptr(ptr.cast()) }; + + let path_stat = crate::backend::fs::syscalls::stat(path)?; + if path_stat.st_dev != fd_stat.st_dev || path_stat.st_ino != fd_stat.st_ino { + return Err(io::Errno::NODEV); + } + } + + // Return the length, excluding the NUL terminator. + Ok(len) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/termios/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/termios/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..a8aaee39c54bcc645f00eefcf3a1cf945f34d187 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/termios/types.rs @@ -0,0 +1,13 @@ +//! Types for the `termios` module. + +#![allow(non_camel_case_types)] + +use crate::ffi; + +// We don't want to use `tcflag_t` directly so we don't expose linux_raw_sys +// publicly. It appears to be `c_ulong `on SPARC and `c_uint` everywhere else. + +#[cfg(target_arch = "sparc")] +pub type tcflag_t = ffi::c_ulong; +#[cfg(not(target_arch = "sparc"))] +pub type tcflag_t = ffi::c_uint; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/cpu_set.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/cpu_set.rs new file mode 100644 index 0000000000000000000000000000000000000000..8c39d57c0026b9eeb7843545e553f3cc62ebdb9a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/cpu_set.rs @@ -0,0 +1,51 @@ +//! Rust implementation of the `CPU_*` macro API. + +#![allow(non_snake_case)] + +use super::types::RawCpuSet; +use core::mem::{size_of, size_of_val}; + +#[inline] +pub(crate) fn CPU_SET(cpu: usize, cpuset: &mut RawCpuSet) { + let size_in_bits = 8 * size_of_val(&cpuset.bits[0]); // 32, 64 etc + let (idx, offset) = (cpu / size_in_bits, cpu % size_in_bits); + cpuset.bits[idx] |= 1 << offset +} + +#[inline] +pub(crate) fn CPU_ZERO(cpuset: &mut RawCpuSet) { + cpuset.bits.fill(0) +} + +#[inline] +pub(crate) fn CPU_CLR(cpu: usize, cpuset: &mut RawCpuSet) { + let size_in_bits = 8 * size_of_val(&cpuset.bits[0]); // 32, 64 etc + let (idx, offset) = (cpu / size_in_bits, cpu % size_in_bits); + cpuset.bits[idx] &= !(1 << offset) +} + +#[inline] +pub(crate) fn CPU_ISSET(cpu: usize, cpuset: &RawCpuSet) -> bool { + let size_in_bits = 8 * size_of_val(&cpuset.bits[0]); + let (idx, offset) = (cpu / size_in_bits, cpu % size_in_bits); + (cpuset.bits[idx] & (1 << offset)) != 0 +} + +#[inline] +pub(crate) fn CPU_COUNT_S(size_in_bytes: usize, cpuset: &RawCpuSet) -> u32 { + let size_of_mask = size_of_val(&cpuset.bits[0]); + let idx = size_in_bytes / size_of_mask; + cpuset.bits[..idx] + .iter() + .fold(0, |acc, i| acc + i.count_ones()) +} + +#[inline] +pub(crate) fn CPU_COUNT(cpuset: &RawCpuSet) -> u32 { + CPU_COUNT_S(size_of::(), cpuset) +} + +#[inline] +pub(crate) fn CPU_EQUAL(this: &RawCpuSet, that: &RawCpuSet) -> bool { + this.bits == that.bits +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/futex.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/futex.rs new file mode 100644 index 0000000000000000000000000000000000000000..726cea1190b3f0292e1d12bfe0d62eba2bbadb66 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/futex.rs @@ -0,0 +1,89 @@ +bitflags::bitflags! { + /// `FUTEX_*` flags for use with the functions in [`futex`]. + /// + /// [`futex`]: mod@crate::thread::futex + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct Flags: u32 { + /// `FUTEX_PRIVATE_FLAG` + const PRIVATE = linux_raw_sys::general::FUTEX_PRIVATE_FLAG; + /// `FUTEX_CLOCK_REALTIME` + const CLOCK_REALTIME = linux_raw_sys::general::FUTEX_CLOCK_REALTIME; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `FUTEX2_*` flags for use with the functions in [`Waitv`]. + /// + /// Not to be confused with [`WaitvFlags`], which is passed as an argument + /// to the `waitv` function. + /// + /// [`Waitv`]: crate::thread::futex::Waitv + /// [`WaitvFlags`]: crate::thread::futex::WaitvFlags + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct WaitFlags: u32 { + /// `FUTEX_U8` + const SIZE_U8 = linux_raw_sys::general::FUTEX2_SIZE_U8; + /// `FUTEX_U16` + const SIZE_U16 = linux_raw_sys::general::FUTEX2_SIZE_U16; + /// `FUTEX_U32` + const SIZE_U32 = linux_raw_sys::general::FUTEX2_SIZE_U32; + /// `FUTEX_U64` + const SIZE_U64 = linux_raw_sys::general::FUTEX2_SIZE_U64; + /// `FUTEX_SIZE_MASK` + const SIZE_MASK = linux_raw_sys::general::FUTEX2_SIZE_MASK; + + /// `FUTEX2_NUMA` + const NUMA = linux_raw_sys::general::FUTEX2_NUMA; + + /// `FUTEX2_PRIVATE` + const PRIVATE = linux_raw_sys::general::FUTEX2_PRIVATE; + + /// + const _ = !0; + } +} + +/// `FUTEX_*` operations for use with the futex syscall wrappers. +#[derive(Debug, Copy, Clone, Eq, PartialEq)] +#[repr(u32)] +pub(crate) enum Operation { + /// `FUTEX_WAIT` + Wait = linux_raw_sys::general::FUTEX_WAIT, + /// `FUTEX_WAKE` + Wake = linux_raw_sys::general::FUTEX_WAKE, + /// `FUTEX_FD` + Fd = linux_raw_sys::general::FUTEX_FD, + /// `FUTEX_REQUEUE` + Requeue = linux_raw_sys::general::FUTEX_REQUEUE, + /// `FUTEX_CMP_REQUEUE` + CmpRequeue = linux_raw_sys::general::FUTEX_CMP_REQUEUE, + /// `FUTEX_WAKE_OP` + WakeOp = linux_raw_sys::general::FUTEX_WAKE_OP, + /// `FUTEX_LOCK_PI` + LockPi = linux_raw_sys::general::FUTEX_LOCK_PI, + /// `FUTEX_UNLOCK_PI` + UnlockPi = linux_raw_sys::general::FUTEX_UNLOCK_PI, + /// `FUTEX_TRYLOCK_PI` + TrylockPi = linux_raw_sys::general::FUTEX_TRYLOCK_PI, + /// `FUTEX_WAIT_BITSET` + WaitBitset = linux_raw_sys::general::FUTEX_WAIT_BITSET, + /// `FUTEX_WAKE_BITSET` + WakeBitset = linux_raw_sys::general::FUTEX_WAKE_BITSET, + /// `FUTEX_WAIT_REQUEUE_PI` + WaitRequeuePi = linux_raw_sys::general::FUTEX_WAIT_REQUEUE_PI, + /// `FUTEX_CMP_REQUEUE_PI` + CmpRequeuePi = linux_raw_sys::general::FUTEX_CMP_REQUEUE_PI, + /// `FUTEX_LOCK_PI2` + LockPi2 = linux_raw_sys::general::FUTEX_LOCK_PI2, +} + +/// `FUTEX_WAITERS` +pub const WAITERS: u32 = linux_raw_sys::general::FUTEX_WAITERS; + +/// `FUTEX_OWNER_DIED` +pub const OWNER_DIED: u32 = linux_raw_sys::general::FUTEX_OWNER_DIED; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..c1843eddc737f9648c6d7c62710a261e63aa1dec --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/mod.rs @@ -0,0 +1,4 @@ +pub(crate) mod cpu_set; +pub(crate) mod futex; +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..c22e74a9fe4bb1228bdcb4b1ba50db994d42f4c6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/syscalls.rs @@ -0,0 +1,549 @@ +//! linux_raw syscalls supporting `rustix::thread`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use super::types::RawCpuSet; +use crate::backend::c; +use crate::backend::conv::{ + by_mut, by_ref, c_int, c_uint, opt_ref, ret, ret_c_int, ret_c_int_infallible, ret_c_uint, + ret_usize, size_of, slice, slice_just_addr, slice_just_addr_mut, zero, +}; +use crate::fd::BorrowedFd; +use crate::io; +use crate::pid::Pid; +use crate::thread::{ + futex, ClockId, Cpuid, MembarrierCommand, MembarrierQuery, NanosleepRelativeResult, Timespec, +}; +use crate::utils::as_mut_ptr; +use core::mem::MaybeUninit; +use core::sync::atomic::AtomicU32; +#[cfg(target_pointer_width = "32")] +use linux_raw_sys::general::timespec as __kernel_old_timespec; +use linux_raw_sys::general::{membarrier_cmd, membarrier_cmd_flag, TIMER_ABSTIME}; + +#[inline] +pub(crate) fn clock_nanosleep_relative(id: ClockId, req: &Timespec) -> NanosleepRelativeResult { + #[cfg(target_pointer_width = "32")] + unsafe { + let mut rem = MaybeUninit::::uninit(); + match ret(syscall!( + __NR_clock_nanosleep_time64, + id, + c_int(0), + by_ref(req), + &mut rem + )) + .or_else(|err| { + // See the comments in `clock_gettime_via_syscall` about emulation. + if err == io::Errno::NOSYS { + clock_nanosleep_relative_old(id, req, &mut rem) + } else { + Err(err) + } + }) { + Ok(()) => NanosleepRelativeResult::Ok, + Err(io::Errno::INTR) => NanosleepRelativeResult::Interrupted(rem.assume_init()), + Err(err) => NanosleepRelativeResult::Err(err), + } + } + #[cfg(target_pointer_width = "64")] + unsafe { + let mut rem = MaybeUninit::::uninit(); + match ret(syscall!( + __NR_clock_nanosleep, + id, + c_int(0), + by_ref(req), + &mut rem + )) { + Ok(()) => NanosleepRelativeResult::Ok, + Err(io::Errno::INTR) => NanosleepRelativeResult::Interrupted(rem.assume_init()), + Err(err) => NanosleepRelativeResult::Err(err), + } + } +} + +#[cfg(target_pointer_width = "32")] +unsafe fn clock_nanosleep_relative_old( + id: ClockId, + req: &Timespec, + rem: &mut MaybeUninit, +) -> io::Result<()> { + let old_req = __kernel_old_timespec { + tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, + tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, + }; + let mut old_rem = MaybeUninit::<__kernel_old_timespec>::uninit(); + ret(syscall!( + __NR_clock_nanosleep, + id, + c_int(0), + by_ref(&old_req), + &mut old_rem + ))?; + let old_rem = old_rem.assume_init(); + rem.write(Timespec { + tv_sec: old_rem.tv_sec.into(), + tv_nsec: old_rem.tv_nsec.into(), + }); + Ok(()) +} + +#[inline] +pub(crate) fn clock_nanosleep_absolute(id: ClockId, req: &Timespec) -> io::Result<()> { + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall_readonly!( + __NR_clock_nanosleep_time64, + id, + c_uint(TIMER_ABSTIME), + by_ref(req), + zero() + )) + .or_else(|err| { + // See the comments in `clock_gettime_via_syscall` about emulation. + if err == io::Errno::NOSYS { + clock_nanosleep_absolute_old(id, req) + } else { + Err(err) + } + }) + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall_readonly!( + __NR_clock_nanosleep, + id, + c_uint(TIMER_ABSTIME), + by_ref(req), + zero() + )) + } +} + +#[cfg(target_pointer_width = "32")] +unsafe fn clock_nanosleep_absolute_old(id: ClockId, req: &Timespec) -> io::Result<()> { + let old_req = __kernel_old_timespec { + tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, + tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, + }; + ret(syscall_readonly!( + __NR_clock_nanosleep, + id, + c_int(0), + by_ref(&old_req), + zero() + )) +} + +#[inline] +pub(crate) fn nanosleep(req: &Timespec) -> NanosleepRelativeResult { + #[cfg(target_pointer_width = "32")] + unsafe { + let mut rem = MaybeUninit::::uninit(); + match ret(syscall!( + __NR_clock_nanosleep_time64, + ClockId::Realtime, + c_int(0), + by_ref(req), + &mut rem + )) + .or_else(|err| { + // See the comments in `clock_gettime_via_syscall` about emulation. + if err == io::Errno::NOSYS { + nanosleep_old(req, &mut rem) + } else { + Err(err) + } + }) { + Ok(()) => NanosleepRelativeResult::Ok, + Err(io::Errno::INTR) => NanosleepRelativeResult::Interrupted(rem.assume_init()), + Err(err) => NanosleepRelativeResult::Err(err), + } + } + #[cfg(target_pointer_width = "64")] + unsafe { + let mut rem = MaybeUninit::::uninit(); + match ret(syscall!(__NR_nanosleep, by_ref(req), &mut rem)) { + Ok(()) => NanosleepRelativeResult::Ok, + Err(io::Errno::INTR) => NanosleepRelativeResult::Interrupted(rem.assume_init()), + Err(err) => NanosleepRelativeResult::Err(err), + } + } +} + +#[cfg(target_pointer_width = "32")] +unsafe fn nanosleep_old(req: &Timespec, rem: &mut MaybeUninit) -> io::Result<()> { + let old_req = __kernel_old_timespec { + tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, + tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, + }; + let mut old_rem = MaybeUninit::<__kernel_old_timespec>::uninit(); + ret(syscall!(__NR_nanosleep, by_ref(&old_req), &mut old_rem))?; + let old_rem = old_rem.assume_init(); + rem.write(Timespec { + tv_sec: old_rem.tv_sec.into(), + tv_nsec: old_rem.tv_nsec.into(), + }); + Ok(()) +} + +#[inline] +#[must_use] +pub(crate) fn gettid() -> Pid { + unsafe { + let tid = ret_c_int_infallible(syscall_readonly!(__NR_gettid)); + Pid::from_raw_unchecked(tid) + } +} + +/// # Safety +/// +/// The raw pointers must point to valid aligned memory. +#[inline] +pub(crate) unsafe fn futex_val2( + uaddr: *const AtomicU32, + op: super::futex::Operation, + flags: futex::Flags, + val: u32, + val2: u32, + uaddr2: *const AtomicU32, + val3: u32, +) -> io::Result { + // Pass `val2` in the least-significant bytes of the `timeout` argument. + // [“the kernel casts the timeout value first to unsigned long, then to + // uint32_t”], so we perform that exact conversion in reverse to create + // the pointer. + // + // [“the kernel casts the timeout value first to unsigned long, then to uint32_t”]: https://man7.org/linux/man-pages/man2/futex.2.html + let timeout = val2 as usize as *const Timespec; + + #[cfg(target_pointer_width = "32")] + { + // Linux 5.1 added `futex_time64`; if we have that, use it. We don't + // need it here, because `timeout` is just passing `val2` and not a + // real timeout, but it's nice to use `futex_time64` for consistency + // with the other futex calls that do. + #[cfg(feature = "linux_5_1")] + { + ret_usize(syscall!( + __NR_futex_time64, + uaddr, + (op, flags), + c_uint(val), + timeout, + uaddr2, + c_uint(val3) + )) + } + + // If we don't have Linux 5.1, use plain `futex`. + #[cfg(not(feature = "linux_5_1"))] + { + ret_usize(syscall!( + __NR_futex, + uaddr, + (op, flags), + c_uint(val), + timeout, + uaddr2, + c_uint(val3) + )) + } + } + #[cfg(target_pointer_width = "64")] + ret_usize(syscall!( + __NR_futex, + uaddr, + (op, flags), + c_uint(val), + timeout, + uaddr2, + c_uint(val3) + )) +} + +/// # Safety +/// +/// The raw pointers must point to valid aligned memory. +#[inline] +pub(crate) unsafe fn futex_timeout( + uaddr: *const AtomicU32, + op: super::futex::Operation, + flags: futex::Flags, + val: u32, + timeout: Option<&Timespec>, + uaddr2: *const AtomicU32, + val3: u32, +) -> io::Result { + #[cfg(target_pointer_width = "32")] + { + // If we don't have Linux 5.1, and the timeout fits in a + // `__kernel_old_timespec`, use plain `futex`. + // + // We do this unconditionally, rather than trying `futex_time64` and + // falling back on `Errno::NOSYS`, because seccomp configurations will + // sometimes abort the process on syscalls they don't recognize. + #[cfg(not(feature = "linux_5_1"))] + { + // If we don't have a timeout, or if we can convert the timeout to + // a `__kernel_old_timespec`, the use `__NR_futex`. + fn convert(timeout: &Timespec) -> Option<__kernel_old_timespec> { + Some(__kernel_old_timespec { + tv_sec: timeout.tv_sec.try_into().ok()?, + tv_nsec: timeout.tv_nsec.try_into().ok()?, + }) + } + let old_timeout = if let Some(timeout) = timeout { + match convert(timeout) { + // Could not convert timeout. + None => None, + // Could convert timeout. Ok! + Some(old_timeout) => Some(Some(old_timeout)), + } + } else { + // No timeout. Ok! + Some(None) + }; + if let Some(old_timeout) = old_timeout { + return ret_usize(syscall!( + __NR_futex, + uaddr, + (op, flags), + c_uint(val), + opt_ref(old_timeout.as_ref()), + uaddr2, + c_uint(val3) + )); + } + } + + // We either have Linux 5.1 or the timeout didn't fit in + // `__kernel_old_timespec` so `__NR_futex_time64` will either succeed + // or fail due to our having no other options. + ret_usize(syscall!( + __NR_futex_time64, + uaddr, + (op, flags), + c_uint(val), + opt_ref(timeout), + uaddr2, + c_uint(val3) + )) + } + #[cfg(target_pointer_width = "64")] + ret_usize(syscall!( + __NR_futex, + uaddr, + (op, flags), + c_uint(val), + opt_ref(timeout), + uaddr2, + c_uint(val3) + )) +} + +#[inline] +pub(crate) fn futex_waitv( + waiters: &[futex::Wait], + flags: futex::WaitvFlags, + timeout: Option<&Timespec>, + clockid: ClockId, +) -> io::Result { + let (waiters_addr, waiters_len) = slice(waiters); + unsafe { + ret_usize(syscall!( + __NR_futex_waitv, + waiters_addr, + waiters_len, + c_uint(flags.bits()), + opt_ref(timeout), + clockid + )) + } +} + +#[inline] +pub(crate) fn setns(fd: BorrowedFd<'_>, nstype: c::c_int) -> io::Result { + unsafe { ret_c_int(syscall_readonly!(__NR_setns, fd, c_int(nstype))) } +} + +#[inline] +pub(crate) unsafe fn unshare(flags: crate::thread::UnshareFlags) -> io::Result<()> { + ret(syscall_readonly!(__NR_unshare, flags)) +} + +#[inline] +pub(crate) fn capget( + header: &mut linux_raw_sys::general::__user_cap_header_struct, + data: &mut [MaybeUninit], +) -> io::Result<()> { + unsafe { + ret(syscall!( + __NR_capget, + by_mut(header), + slice_just_addr_mut(data) + )) + } +} + +#[inline] +pub(crate) fn capset( + header: &mut linux_raw_sys::general::__user_cap_header_struct, + data: &[linux_raw_sys::general::__user_cap_data_struct], +) -> io::Result<()> { + unsafe { ret(syscall!(__NR_capset, by_mut(header), slice_just_addr(data))) } +} + +#[inline] +pub(crate) fn setuid_thread(uid: crate::ugid::Uid) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_setuid, uid)) } +} + +#[inline] +pub(crate) fn setresuid_thread( + ruid: Option, + euid: Option, + suid: Option, +) -> io::Result<()> { + #[cfg(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc"))] + unsafe { + ret(syscall_readonly!(__NR_setresuid32, ruid, euid, suid)) + } + #[cfg(not(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc")))] + unsafe { + ret(syscall_readonly!(__NR_setresuid, ruid, euid, suid)) + } +} + +#[inline] +pub(crate) fn setgid_thread(gid: crate::ugid::Gid) -> io::Result<()> { + unsafe { ret(syscall_readonly!(__NR_setgid, gid)) } +} + +#[inline] +pub(crate) fn setresgid_thread( + rgid: Option, + egid: Option, + sgid: Option, +) -> io::Result<()> { + #[cfg(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc"))] + unsafe { + ret(syscall_readonly!(__NR_setresgid32, rgid, egid, sgid)) + } + #[cfg(not(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc")))] + unsafe { + ret(syscall_readonly!(__NR_setresgid, rgid, egid, sgid)) + } +} + +#[inline] +pub(crate) fn setgroups_thread(gids: &[crate::ugid::Gid]) -> io::Result<()> { + let (addr, len) = slice(gids); + unsafe { ret(syscall_readonly!(__NR_setgroups, len, addr)) } +} + +// `sched_getcpu` has special optimizations via the vDSO on some architectures. +#[cfg(any( + target_arch = "x86_64", + target_arch = "x86", + target_arch = "riscv64", + target_arch = "powerpc", + target_arch = "powerpc64", + target_arch = "s390x" +))] +pub(crate) use crate::backend::vdso_wrappers::sched_getcpu; + +// `sched_getcpu` on platforms without a vDSO entry for it. +#[cfg(not(any( + target_arch = "x86_64", + target_arch = "x86", + target_arch = "riscv64", + target_arch = "powerpc", + target_arch = "powerpc64", + target_arch = "s390x" +)))] +#[inline] +pub(crate) fn sched_getcpu() -> usize { + let mut cpu = MaybeUninit::::uninit(); + unsafe { + let r = ret(syscall!(__NR_getcpu, &mut cpu, zero(), zero())); + debug_assert!(r.is_ok()); + cpu.assume_init() as usize + } +} + +#[inline] +pub(crate) fn sched_getaffinity(pid: Option, cpuset: &mut RawCpuSet) -> io::Result<()> { + unsafe { + // The raw Linux syscall returns the size (in bytes) of the `cpumask_t` + // data type that is used internally by the kernel to represent the CPU + // set bit mask. + let size = ret_usize(syscall!( + __NR_sched_getaffinity, + c_int(Pid::as_raw(pid)), + size_of::(), + by_mut(&mut cpuset.bits) + ))?; + let bytes = as_mut_ptr(cpuset).cast::(); + let rest = bytes.wrapping_add(size); + // Zero every byte in the cpuset not set by the kernel. + rest.write_bytes(0, core::mem::size_of::() - size); + Ok(()) + } +} + +#[inline] +pub(crate) fn sched_setaffinity(pid: Option, cpuset: &RawCpuSet) -> io::Result<()> { + unsafe { + ret(syscall_readonly!( + __NR_sched_setaffinity, + c_int(Pid::as_raw(pid)), + size_of::(), + slice_just_addr(&cpuset.bits) + )) + } +} + +#[inline] +pub(crate) fn sched_yield() { + unsafe { + // See the documentation for [`crate::thread::sched_yield`] for why + // errors are ignored. + syscall_readonly!(__NR_sched_yield).decode_void(); + } +} + +#[inline] +pub(crate) fn membarrier_query() -> MembarrierQuery { + unsafe { + match ret_c_uint(syscall!( + __NR_membarrier, + c_int(membarrier_cmd::MEMBARRIER_CMD_QUERY as _), + c_uint(0) + )) { + Ok(query) => MembarrierQuery::from_bits_retain(query), + Err(_) => MembarrierQuery::empty(), + } + } +} + +#[inline] +pub(crate) fn membarrier(cmd: MembarrierCommand) -> io::Result<()> { + unsafe { ret(syscall!(__NR_membarrier, cmd, c_uint(0))) } +} + +#[inline] +pub(crate) fn membarrier_cpu(cmd: MembarrierCommand, cpu: Cpuid) -> io::Result<()> { + unsafe { + ret(syscall!( + __NR_membarrier, + cmd, + c_uint(membarrier_cmd_flag::MEMBARRIER_CMD_FLAG_CPU as _), + cpu + )) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..be92235e800a1bc704997a9866491e12898edc95 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/thread/types.rs @@ -0,0 +1,62 @@ +use linux_raw_sys::general::membarrier_cmd; + +/// A command for use with [`membarrier`] and [`membarrier_cpu`]. +/// +/// For `MEMBARRIER_CMD_QUERY`, see [`membarrier_query`]. +/// +/// [`membarrier`]: crate::thread::membarrier +/// [`membarrier_cpu`]: crate::thread::membarrier_cpu +/// [`membarrier_query`]: crate::thread::membarrier_query +#[derive(Copy, Clone, Eq, PartialEq, Debug)] +#[repr(u32)] +#[non_exhaustive] +pub enum MembarrierCommand { + /// `MEMBARRIER_CMD_GLOBAL` + #[doc(alias = "Shared")] + #[doc(alias = "MEMBARRIER_CMD_SHARED")] + Global = membarrier_cmd::MEMBARRIER_CMD_GLOBAL as _, + /// `MEMBARRIER_CMD_GLOBAL_EXPEDITED` + GlobalExpedited = membarrier_cmd::MEMBARRIER_CMD_GLOBAL_EXPEDITED as _, + /// `MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED` + RegisterGlobalExpedited = membarrier_cmd::MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED as _, + /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED` + PrivateExpedited = membarrier_cmd::MEMBARRIER_CMD_PRIVATE_EXPEDITED as _, + /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED` + RegisterPrivateExpedited = membarrier_cmd::MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED as _, + /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE` + PrivateExpeditedSyncCore = membarrier_cmd::MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE as _, + /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE` + RegisterPrivateExpeditedSyncCore = + membarrier_cmd::MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE as _, + /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ` (since Linux 5.10) + PrivateExpeditedRseq = membarrier_cmd::MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ as _, + /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ` (since Linux 5.10) + RegisterPrivateExpeditedRseq = + membarrier_cmd::MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ as _, +} + +/// A CPU identifier as a raw integer. +pub type RawCpuid = u32; + +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] +pub(crate) struct RawCpuSet { + #[cfg(all(target_pointer_width = "32", not(target_arch = "x86_64")))] + pub(crate) bits: [u32; 32], + #[cfg(not(all(target_pointer_width = "32", not(target_arch = "x86_64"))))] + pub(crate) bits: [u64; 16], +} + +#[inline] +pub(crate) fn raw_cpu_set_new() -> RawCpuSet { + #[cfg(all(target_pointer_width = "32", not(target_arch = "x86_64")))] + { + RawCpuSet { bits: [0; 32] } + } + #[cfg(not(all(target_pointer_width = "32", not(target_arch = "x86_64"))))] + { + RawCpuSet { bits: [0; 16] } + } +} + +pub(crate) const CPU_SETSIZE: usize = 8 * core::mem::size_of::(); diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/time/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/time/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e0181a991f8618df72ecc81ca3c9e173176ce5b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/time/mod.rs @@ -0,0 +1,2 @@ +pub(crate) mod syscalls; +pub(crate) mod types; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/time/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/time/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..58a969d158758ad009df166c3618d2df608aec0f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/time/syscalls.rs @@ -0,0 +1,238 @@ +//! linux_raw syscalls supporting `rustix::time`. +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use crate::backend::conv::{by_ref, ret, ret_infallible, ret_owned_fd}; +use crate::clockid::ClockId; +use crate::fd::{BorrowedFd, OwnedFd}; +use crate::io; +use crate::time::{Itimerspec, TimerfdClockId, TimerfdFlags, TimerfdTimerFlags}; +use crate::timespec::Timespec; +use core::mem::MaybeUninit; +#[cfg(target_pointer_width = "32")] +use linux_raw_sys::general::itimerspec as __kernel_old_itimerspec; +#[cfg(target_pointer_width = "32")] +use linux_raw_sys::general::timespec as __kernel_old_timespec; + +// `clock_gettime` has special optimizations via the vDSO. +pub(crate) use crate::backend::vdso_wrappers::{clock_gettime, clock_gettime_dynamic}; + +#[inline] +#[must_use] +pub(crate) fn clock_getres(id: ClockId) -> Timespec { + #[cfg(target_pointer_width = "32")] + unsafe { + let mut result = MaybeUninit::::uninit(); + if let Err(err) = ret(syscall!(__NR_clock_getres_time64, id, &mut result)) { + // See the comments in `clock_gettime_via_syscall` about emulation. + debug_assert_eq!(err, io::Errno::NOSYS); + clock_getres_old(id, &mut result); + } + result.assume_init() + } + #[cfg(target_pointer_width = "64")] + unsafe { + let mut result = MaybeUninit::::uninit(); + ret_infallible(syscall!(__NR_clock_getres, id, &mut result)); + result.assume_init() + } +} + +#[cfg(target_pointer_width = "32")] +unsafe fn clock_getres_old(id: ClockId, result: &mut MaybeUninit) { + let mut old_result = MaybeUninit::<__kernel_old_timespec>::uninit(); + ret_infallible(syscall!(__NR_clock_getres, id, &mut old_result)); + let old_result = old_result.assume_init(); + result.write(Timespec { + tv_sec: old_result.tv_sec.into(), + tv_nsec: old_result.tv_nsec.into(), + }); +} + +#[inline] +pub(crate) fn clock_settime(id: ClockId, timespec: Timespec) -> io::Result<()> { + // `clock_settime64` was introduced in Linux 5.1. The old `clock_settime` + // syscall is not y2038-compatible on 32-bit architectures. + #[cfg(target_pointer_width = "32")] + unsafe { + match ret(syscall_readonly!( + __NR_clock_settime64, + id, + by_ref(×pec) + )) { + Err(io::Errno::NOSYS) => clock_settime_old(id, timespec), + otherwise => otherwise, + } + } + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall_readonly!(__NR_clock_settime, id, by_ref(×pec))) + } +} + +#[cfg(target_pointer_width = "32")] +unsafe fn clock_settime_old(id: ClockId, timespec: Timespec) -> io::Result<()> { + let old_timespec = __kernel_old_timespec { + tv_sec: timespec + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: timespec.tv_nsec as _, + }; + ret(syscall_readonly!( + __NR_clock_settime, + id, + by_ref(&old_timespec) + )) +} + +#[inline] +pub(crate) fn timerfd_create(clockid: TimerfdClockId, flags: TimerfdFlags) -> io::Result { + unsafe { ret_owned_fd(syscall_readonly!(__NR_timerfd_create, clockid, flags)) } +} + +#[inline] +pub(crate) fn timerfd_settime( + fd: BorrowedFd<'_>, + flags: TimerfdTimerFlags, + new_value: &Itimerspec, +) -> io::Result { + let mut result = MaybeUninit::::uninit(); + + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall!( + __NR_timerfd_settime, + fd, + flags, + by_ref(new_value), + &mut result + ))?; + Ok(result.assume_init()) + } + + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall!( + __NR_timerfd_settime64, + fd, + flags, + by_ref(new_value), + &mut result + )) + .or_else(|err| { + // See the comments in `clock_gettime_via_syscall` about emulation. + if err == io::Errno::NOSYS { + timerfd_settime_old(fd, flags, new_value, &mut result) + } else { + Err(err) + } + })?; + Ok(result.assume_init()) + } +} + +#[cfg(target_pointer_width = "32")] +unsafe fn timerfd_settime_old( + fd: BorrowedFd<'_>, + flags: TimerfdTimerFlags, + new_value: &Itimerspec, + result: &mut MaybeUninit, +) -> io::Result<()> { + let mut old_result = MaybeUninit::<__kernel_old_itimerspec>::uninit(); + + // Convert `new_value` to the old `__kernel_old_itimerspec` format. + let old_new_value = __kernel_old_itimerspec { + it_interval: __kernel_old_timespec { + tv_sec: new_value + .it_interval + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: new_value + .it_interval + .tv_nsec + .try_into() + .map_err(|_| io::Errno::INVAL)?, + }, + it_value: __kernel_old_timespec { + tv_sec: new_value + .it_value + .tv_sec + .try_into() + .map_err(|_| io::Errno::OVERFLOW)?, + tv_nsec: new_value + .it_value + .tv_nsec + .try_into() + .map_err(|_| io::Errno::INVAL)?, + }, + }; + ret(syscall!( + __NR_timerfd_settime, + fd, + flags, + by_ref(&old_new_value), + &mut old_result + ))?; + let old_result = old_result.assume_init(); + result.write(Itimerspec { + it_interval: Timespec { + tv_sec: old_result.it_interval.tv_sec.into(), + tv_nsec: old_result.it_interval.tv_nsec.into(), + }, + it_value: Timespec { + tv_sec: old_result.it_value.tv_sec.into(), + tv_nsec: old_result.it_value.tv_nsec.into(), + }, + }); + Ok(()) +} + +#[inline] +pub(crate) fn timerfd_gettime(fd: BorrowedFd<'_>) -> io::Result { + let mut result = MaybeUninit::::uninit(); + + #[cfg(target_pointer_width = "64")] + unsafe { + ret(syscall!(__NR_timerfd_gettime, fd, &mut result))?; + Ok(result.assume_init()) + } + + #[cfg(target_pointer_width = "32")] + unsafe { + ret(syscall!(__NR_timerfd_gettime64, fd, &mut result)).or_else(|err| { + // See the comments in `clock_gettime_via_syscall` about emulation. + if err == io::Errno::NOSYS { + timerfd_gettime_old(fd, &mut result) + } else { + Err(err) + } + })?; + Ok(result.assume_init()) + } +} + +#[cfg(target_pointer_width = "32")] +unsafe fn timerfd_gettime_old( + fd: BorrowedFd<'_>, + result: &mut MaybeUninit, +) -> io::Result<()> { + let mut old_result = MaybeUninit::<__kernel_old_itimerspec>::uninit(); + ret(syscall!(__NR_timerfd_gettime, fd, &mut old_result))?; + let old_result = old_result.assume_init(); + result.write(Itimerspec { + it_interval: Timespec { + tv_sec: old_result.it_interval.tv_sec.into(), + tv_nsec: old_result.it_interval.tv_nsec.into(), + }, + it_value: Timespec { + tv_sec: old_result.it_value.tv_sec.into(), + tv_nsec: old_result.it_value.tv_nsec.into(), + }, + }); + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/time/types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/time/types.rs new file mode 100644 index 0000000000000000000000000000000000000000..ec6c91f566fb409235e7469c04d95eac75a78e17 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/time/types.rs @@ -0,0 +1,93 @@ +use crate::ffi; +use bitflags::bitflags; + +bitflags! { + /// `TFD_*` flags for use with [`timerfd_create`]. + /// + /// [`timerfd_create`]: crate::time::timerfd_create + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct TimerfdFlags: ffi::c_uint { + /// `TFD_NONBLOCK` + #[doc(alias = "TFD_NONBLOCK")] + const NONBLOCK = linux_raw_sys::general::TFD_NONBLOCK; + + /// `TFD_CLOEXEC` + #[doc(alias = "TFD_CLOEXEC")] + const CLOEXEC = linux_raw_sys::general::TFD_CLOEXEC; + + /// + const _ = !0; + } +} + +bitflags! { + /// `TFD_TIMER_*` flags for use with [`timerfd_settime`]. + /// + /// [`timerfd_settime`]: crate::time::timerfd_settime + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct TimerfdTimerFlags: ffi::c_uint { + /// `TFD_TIMER_ABSTIME` + #[doc(alias = "TFD_TIMER_ABSTIME")] + const ABSTIME = linux_raw_sys::general::TFD_TIMER_ABSTIME; + + /// `TFD_TIMER_CANCEL_ON_SET` + #[doc(alias = "TFD_TIMER_CANCEL_ON_SET")] + const CANCEL_ON_SET = linux_raw_sys::general::TFD_TIMER_CANCEL_ON_SET; + + /// + const _ = !0; + } +} + +/// `CLOCK_*` constants for use with [`timerfd_create`]. +/// +/// [`timerfd_create`]: crate::time::timerfd_create +#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] +#[repr(u32)] +#[non_exhaustive] +pub enum TimerfdClockId { + /// `CLOCK_REALTIME`—A clock that tells the “real” time. + /// + /// This is a clock that tells the amount of time elapsed since the Unix + /// epoch, 1970-01-01T00:00:00Z. The clock is externally settable, so it is + /// not monotonic. Successive reads may see decreasing times, so it isn't + /// reliable for measuring durations. + #[doc(alias = "CLOCK_REALTIME")] + Realtime = linux_raw_sys::general::CLOCK_REALTIME, + + /// `CLOCK_MONOTONIC`—A clock that tells an abstract time. + /// + /// Unlike `Realtime`, this clock is not based on a fixed known epoch, so + /// individual times aren't meaningful. However, since it isn't settable, + /// it is reliable for measuring durations. + /// + /// This clock does not advance while the system is suspended; see + /// `Boottime` for a clock that does. + #[doc(alias = "CLOCK_MONOTONIC")] + Monotonic = linux_raw_sys::general::CLOCK_MONOTONIC, + + /// `CLOCK_BOOTTIME`—Like `Monotonic`, but advances while suspended. + /// + /// This clock is similar to `Monotonic`, but does advance while the system + /// is suspended. + #[doc(alias = "CLOCK_BOOTTIME")] + Boottime = linux_raw_sys::general::CLOCK_BOOTTIME, + + /// `CLOCK_REALTIME_ALARM`—Like `Realtime`, but wakes a suspended system. + /// + /// This clock is like `Realtime`, but can wake up a suspended system. + /// + /// Use of this clock requires the `CAP_WAKE_ALARM` Linux capability. + #[doc(alias = "CLOCK_REALTIME_ALARM")] + RealtimeAlarm = linux_raw_sys::general::CLOCK_REALTIME_ALARM, + + /// `CLOCK_BOOTTIME_ALARM`—Like `Boottime`, but wakes a suspended system. + /// + /// This clock is like `Boottime`, but can wake up a suspended system. + /// + /// Use of this clock requires the `CAP_WAKE_ALARM` Linux capability. + #[doc(alias = "CLOCK_BOOTTIME_ALARM")] + BoottimeAlarm = linux_raw_sys::general::CLOCK_BOOTTIME_ALARM, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/ugid/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/ugid/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..ef944f04d2627e93c3e742e586d754d72c7a2f39 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/ugid/mod.rs @@ -0,0 +1 @@ +pub(crate) mod syscalls; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/ugid/syscalls.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/ugid/syscalls.rs new file mode 100644 index 0000000000000000000000000000000000000000..4aac5f24a585f1d3fb35d3cc2dddb1e90a217d29 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/backend/linux_raw/ugid/syscalls.rs @@ -0,0 +1,70 @@ +//! linux_raw syscalls for UIDs and GIDs +//! +//! # Safety +//! +//! See the `rustix::backend` module documentation for details. +#![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] + +use crate::backend::c; +use crate::backend::conv::ret_usize_infallible; +use crate::ugid::{Gid, Uid}; + +#[inline] +#[must_use] +pub(crate) fn getuid() -> Uid { + #[cfg(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86"))] + unsafe { + let uid = ret_usize_infallible(syscall_readonly!(__NR_getuid32)) as c::uid_t; + Uid::from_raw(uid) + } + #[cfg(not(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86")))] + unsafe { + let uid = ret_usize_infallible(syscall_readonly!(__NR_getuid)) as c::uid_t; + Uid::from_raw(uid) + } +} + +#[inline] +#[must_use] +pub(crate) fn geteuid() -> Uid { + #[cfg(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86"))] + unsafe { + let uid = ret_usize_infallible(syscall_readonly!(__NR_geteuid32)) as c::uid_t; + Uid::from_raw(uid) + } + #[cfg(not(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86")))] + unsafe { + let uid = ret_usize_infallible(syscall_readonly!(__NR_geteuid)) as c::uid_t; + Uid::from_raw(uid) + } +} + +#[inline] +#[must_use] +pub(crate) fn getgid() -> Gid { + #[cfg(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86"))] + unsafe { + let gid = ret_usize_infallible(syscall_readonly!(__NR_getgid32)) as c::gid_t; + Gid::from_raw(gid) + } + #[cfg(not(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86")))] + unsafe { + let gid = ret_usize_infallible(syscall_readonly!(__NR_getgid)) as c::gid_t; + Gid::from_raw(gid) + } +} + +#[inline] +#[must_use] +pub(crate) fn getegid() -> Gid { + #[cfg(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86"))] + unsafe { + let gid = ret_usize_infallible(syscall_readonly!(__NR_getegid32)) as c::gid_t; + Gid::from_raw(gid) + } + #[cfg(not(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86")))] + unsafe { + let gid = ret_usize_infallible(syscall_readonly!(__NR_getegid)) as c::gid_t; + Gid::from_raw(gid) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/algorithm.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/algorithm.rs new file mode 100644 index 0000000000000000000000000000000000000000..5f4b5e8c241186e54f528870897a66d0beea9265 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/algorithm.rs @@ -0,0 +1,194 @@ +//! X.509 `AlgorithmIdentifier` + +use crate::{Error, Result}; +use core::cmp::Ordering; +use der::{ + asn1::{AnyRef, Choice, ObjectIdentifier}, + Decode, DecodeValue, DerOrd, Encode, EncodeValue, Header, Length, Reader, Sequence, ValueOrd, + Writer, +}; + +#[cfg(feature = "alloc")] +use der::asn1::Any; + +/// X.509 `AlgorithmIdentifier` as defined in [RFC 5280 Section 4.1.1.2]. +/// +/// ```text +/// AlgorithmIdentifier ::= SEQUENCE { +/// algorithm OBJECT IDENTIFIER, +/// parameters ANY DEFINED BY algorithm OPTIONAL } +/// ``` +/// +/// [RFC 5280 Section 4.1.1.2]: https://tools.ietf.org/html/rfc5280#section-4.1.1.2 +#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] +#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)] +pub struct AlgorithmIdentifier { + /// Algorithm OID, i.e. the `algorithm` field in the `AlgorithmIdentifier` + /// ASN.1 schema. + pub oid: ObjectIdentifier, + + /// Algorithm `parameters`. + pub parameters: Option, +} + +impl<'a, Params> DecodeValue<'a> for AlgorithmIdentifier +where + Params: Choice<'a>, +{ + fn decode_value>(reader: &mut R, header: Header) -> der::Result { + reader.read_nested(header.length, |reader| { + Ok(Self { + oid: reader.decode()?, + parameters: reader.decode()?, + }) + }) + } +} + +impl EncodeValue for AlgorithmIdentifier +where + Params: Encode, +{ + fn value_len(&self) -> der::Result { + self.oid.encoded_len()? + self.parameters.encoded_len()? + } + + fn encode_value(&self, writer: &mut impl Writer) -> der::Result<()> { + self.oid.encode(writer)?; + self.parameters.encode(writer)?; + Ok(()) + } +} + +impl<'a, Params> Sequence<'a> for AlgorithmIdentifier where Params: Choice<'a> + Encode {} + +impl<'a, Params> TryFrom<&'a [u8]> for AlgorithmIdentifier +where + Params: Choice<'a> + Encode, +{ + type Error = Error; + + fn try_from(bytes: &'a [u8]) -> Result { + Ok(Self::from_der(bytes)?) + } +} + +impl ValueOrd for AlgorithmIdentifier +where + Params: DerOrd, +{ + fn value_cmp(&self, other: &Self) -> der::Result { + match self.oid.der_cmp(&other.oid)? { + Ordering::Equal => self.parameters.der_cmp(&other.parameters), + other => Ok(other), + } + } +} + +/// `AlgorithmIdentifier` reference which has `AnyRef` parameters. +pub type AlgorithmIdentifierRef<'a> = AlgorithmIdentifier>; + +/// `AlgorithmIdentifier` with `ObjectIdentifier` parameters. +pub type AlgorithmIdentifierWithOid = AlgorithmIdentifier; + +/// `AlgorithmIdentifier` reference which has `Any` parameters. +#[cfg(feature = "alloc")] +pub type AlgorithmIdentifierOwned = AlgorithmIdentifier; + +impl AlgorithmIdentifier { + /// Assert the `algorithm` OID is an expected value. + pub fn assert_algorithm_oid(&self, expected_oid: ObjectIdentifier) -> Result { + if self.oid == expected_oid { + Ok(expected_oid) + } else { + Err(Error::OidUnknown { oid: expected_oid }) + } + } +} + +impl<'a> AlgorithmIdentifierRef<'a> { + /// Assert `parameters` is an OID and has the expected value. + pub fn assert_parameters_oid( + &self, + expected_oid: ObjectIdentifier, + ) -> Result { + let actual_oid = self.parameters_oid()?; + + if actual_oid == expected_oid { + Ok(actual_oid) + } else { + Err(Error::OidUnknown { oid: expected_oid }) + } + } + + /// Assert the values of the `algorithm` and `parameters` OIDs. + pub fn assert_oids( + &self, + algorithm: ObjectIdentifier, + parameters: ObjectIdentifier, + ) -> Result<()> { + self.assert_algorithm_oid(algorithm)?; + self.assert_parameters_oid(parameters)?; + Ok(()) + } + + /// Get the `parameters` field as an [`AnyRef`]. + /// + /// Returns an error if `parameters` are `None`. + pub fn parameters_any(&self) -> Result> { + self.parameters.ok_or(Error::AlgorithmParametersMissing) + } + + /// Get the `parameters` field as an [`ObjectIdentifier`]. + /// + /// Returns an error if it is absent or not an OID. + pub fn parameters_oid(&self) -> Result { + Ok(ObjectIdentifier::try_from(self.parameters_any()?)?) + } + + /// Convert to a pair of [`ObjectIdentifier`]s. + /// + /// This method is helpful for decomposing in match statements. Note in + /// particular that `NULL` parameters are treated the same as missing + /// parameters. + /// + /// Returns an error if parameters are present but not an OID. + pub fn oids(&self) -> der::Result<(ObjectIdentifier, Option)> { + Ok(( + self.oid, + match self.parameters { + None => None, + Some(p) => match p { + AnyRef::NULL => None, + _ => Some(p.decode_as::()?), + }, + }, + )) + } +} + +#[cfg(feature = "alloc")] +mod allocating { + use super::*; + use der::referenced::*; + + impl<'a> RefToOwned<'a> for AlgorithmIdentifierRef<'a> { + type Owned = AlgorithmIdentifierOwned; + fn ref_to_owned(&self) -> Self::Owned { + AlgorithmIdentifier { + oid: self.oid, + parameters: self.parameters.ref_to_owned(), + } + } + } + + impl OwnedToRef for AlgorithmIdentifierOwned { + type Borrowed<'a> = AlgorithmIdentifierRef<'a>; + fn owned_to_ref(&self) -> Self::Borrowed<'_> { + AlgorithmIdentifier { + oid: self.oid, + parameters: self.parameters.owned_to_ref(), + } + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/error.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/error.rs new file mode 100644 index 0000000000000000000000000000000000000000..9d05990f3bb921581406002447edf4957ccc2622 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/error.rs @@ -0,0 +1,68 @@ +//! Error types + +use core::fmt; +use der::asn1::ObjectIdentifier; + +/// Result type with `spki` crate's [`Error`] type. +pub type Result = core::result::Result; + +#[cfg(feature = "pem")] +use der::pem; + +/// Error type +#[derive(Copy, Clone, Debug, Eq, PartialEq)] +#[non_exhaustive] +pub enum Error { + /// Algorithm parameters are missing. + AlgorithmParametersMissing, + + /// ASN.1 DER-related errors. + Asn1(der::Error), + + /// Malformed cryptographic key contained in a SPKI document. + /// + /// This is intended for relaying errors related to the raw data contained + /// in [`SubjectPublicKeyInfo::subject_public_key`][`crate::SubjectPublicKeyInfo::subject_public_key`]. + KeyMalformed, + + /// Unknown algorithm OID. + OidUnknown { + /// Unrecognized OID value found in e.g. a SPKI `AlgorithmIdentifier`. + oid: ObjectIdentifier, + }, +} + +impl fmt::Display for Error { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + match self { + Error::AlgorithmParametersMissing => { + f.write_str("AlgorithmIdentifier parameters missing") + } + Error::Asn1(err) => write!(f, "ASN.1 error: {}", err), + Error::KeyMalformed => f.write_str("SPKI cryptographic key data malformed"), + Error::OidUnknown { oid } => { + write!(f, "unknown/unsupported algorithm OID: {}", oid) + } + } + } +} + +impl From for Error { + fn from(err: der::Error) -> Error { + if let der::ErrorKind::OidUnknown { oid } = err.kind() { + Error::OidUnknown { oid } + } else { + Error::Asn1(err) + } + } +} + +#[cfg(feature = "pem")] +impl From for Error { + fn from(err: pem::Error) -> Error { + der::Error::from(err).into() + } +} + +#[cfg(feature = "std")] +impl std::error::Error for Error {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/fingerprint.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/fingerprint.rs new file mode 100644 index 0000000000000000000000000000000000000000..ba06e62e819b1aed7d54748167291f287156ba74 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/fingerprint.rs @@ -0,0 +1,42 @@ +//! SPKI fingerprint support. + +use der::Writer; +use sha2::{Digest, Sha256}; + +/// Size of a SHA-256 SPKI fingerprint in bytes. +pub(crate) const SIZE: usize = 32; + +/// Raw bytes of a SPKI fingerprint i.e. SHA-256 digest of +/// `SubjectPublicKeyInfo`'s DER encoding. +/// +/// See [RFC7469 § 2.1.1] for more information. +/// +/// [RFC7469 § 2.1.1]: https://datatracker.ietf.org/doc/html/rfc7469#section-2.1.1 +pub type FingerprintBytes = [u8; SIZE]; + +/// Writer newtype which accepts DER being serialized on-the-fly and computes a +/// hash of the contents. +#[derive(Clone, Default)] +pub(crate) struct Builder { + /// In-progress digest being computed from streaming DER. + digest: Sha256, +} + +impl Builder { + /// Create a new fingerprint builder. + pub fn new() -> Self { + Self::default() + } + + /// Finish computing a fingerprint, returning the computed digest. + pub fn finish(self) -> FingerprintBytes { + self.digest.finalize().into() + } +} + +impl Writer for Builder { + fn write(&mut self, der_bytes: &[u8]) -> der::Result<()> { + self.digest.update(der_bytes); + Ok(()) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/lib.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/lib.rs new file mode 100644 index 0000000000000000000000000000000000000000..6c0caa72a9ba4edd197409455e344099cbafd3de --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/lib.rs @@ -0,0 +1,71 @@ +#![no_std] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![doc = include_str!("../README.md")] +#![doc( + html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg", + html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg" +)] +#![forbid(unsafe_code)] +#![warn( + clippy::mod_module_files, + clippy::unwrap_used, + missing_docs, + rust_2018_idioms, + unused_lifetimes, + unused_qualifications +)] +//! # Usage +//! The following example demonstrates how to use an OID as the `parameters` +//! of an [`AlgorithmIdentifier`]. +//! +//! Borrow the [`ObjectIdentifier`] first then use [`der::AnyRef::from`] or `.into()`: +//! +//! ``` +//! use spki::{AlgorithmIdentifier, ObjectIdentifier}; +//! +//! let alg_oid = "1.2.840.10045.2.1".parse::().unwrap(); +//! let params_oid = "1.2.840.10045.3.1.7".parse::().unwrap(); +//! +//! let alg_id = AlgorithmIdentifier { +//! oid: alg_oid, +//! parameters: Some(params_oid) +//! }; +//! ``` + +#[cfg(feature = "alloc")] +#[allow(unused_extern_crates)] +extern crate alloc; +#[cfg(feature = "std")] +extern crate std; + +mod algorithm; +mod error; +mod spki; +mod traits; + +#[cfg(feature = "fingerprint")] +mod fingerprint; + +pub use crate::{ + algorithm::{AlgorithmIdentifier, AlgorithmIdentifierRef, AlgorithmIdentifierWithOid}, + error::{Error, Result}, + spki::{SubjectPublicKeyInfo, SubjectPublicKeyInfoRef}, + traits::{AssociatedAlgorithmIdentifier, DecodePublicKey, SignatureAlgorithmIdentifier}, +}; +pub use der::{self, asn1::ObjectIdentifier}; + +#[cfg(feature = "alloc")] +pub use { + crate::{ + algorithm::AlgorithmIdentifierOwned, + spki::SubjectPublicKeyInfoOwned, + traits::{ + DynAssociatedAlgorithmIdentifier, DynSignatureAlgorithmIdentifier, EncodePublicKey, + SignatureBitStringEncoding, + }, + }, + der::Document, +}; + +#[cfg(feature = "fingerprint")] +pub use crate::fingerprint::FingerprintBytes; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/spki.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/spki.rs new file mode 100644 index 0000000000000000000000000000000000000000..b7e4c928002c90eb99bcefd0df55935b8a5dc2a8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/spki.rs @@ -0,0 +1,217 @@ +//! X.509 `SubjectPublicKeyInfo` + +use crate::{AlgorithmIdentifier, Error, Result}; +use core::cmp::Ordering; +use der::{ + asn1::{AnyRef, BitStringRef}, + Choice, Decode, DecodeValue, DerOrd, Encode, EncodeValue, FixedTag, Header, Length, Reader, + Sequence, ValueOrd, Writer, +}; + +#[cfg(feature = "alloc")] +use der::{ + asn1::{Any, BitString}, + Document, +}; + +#[cfg(feature = "fingerprint")] +use crate::{fingerprint, FingerprintBytes}; + +#[cfg(feature = "pem")] +use der::pem::PemLabel; + +/// [`SubjectPublicKeyInfo`] with [`AnyRef`] algorithm parameters, and [`BitStringRef`] params. +pub type SubjectPublicKeyInfoRef<'a> = SubjectPublicKeyInfo, BitStringRef<'a>>; + +/// [`SubjectPublicKeyInfo`] with [`Any`] algorithm parameters, and [`BitString`] params. +#[cfg(feature = "alloc")] +pub type SubjectPublicKeyInfoOwned = SubjectPublicKeyInfo; + +/// X.509 `SubjectPublicKeyInfo` (SPKI) as defined in [RFC 5280 § 4.1.2.7]. +/// +/// ASN.1 structure containing an [`AlgorithmIdentifier`] and public key +/// data in an algorithm specific format. +/// +/// ```text +/// SubjectPublicKeyInfo ::= SEQUENCE { +/// algorithm AlgorithmIdentifier, +/// subjectPublicKey BIT STRING } +/// ``` +/// +/// [RFC 5280 § 4.1.2.7]: https://tools.ietf.org/html/rfc5280#section-4.1.2.7 +#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] +#[derive(Clone, Debug, Eq, PartialEq)] +pub struct SubjectPublicKeyInfo { + /// X.509 [`AlgorithmIdentifier`] for the public key type + pub algorithm: AlgorithmIdentifier, + + /// Public key data + pub subject_public_key: Key, +} + +impl<'a, Params, Key> SubjectPublicKeyInfo +where + Params: Choice<'a> + Encode, + // TODO: replace FixedTag with FixedTag once + // https://github.com/rust-lang/rust/issues/92827 is fixed + Key: Decode<'a> + Encode + FixedTag, +{ + /// Calculate the SHA-256 fingerprint of this [`SubjectPublicKeyInfo`] and + /// encode it as a Base64 string. + /// + /// See [RFC7469 § 2.1.1] for more information. + /// + /// [RFC7469 § 2.1.1]: https://datatracker.ietf.org/doc/html/rfc7469#section-2.1.1 + #[cfg(all(feature = "fingerprint", feature = "alloc", feature = "base64"))] + pub fn fingerprint_base64(&self) -> Result { + use base64ct::{Base64, Encoding}; + Ok(Base64::encode_string(&self.fingerprint_bytes()?)) + } + + /// Calculate the SHA-256 fingerprint of this [`SubjectPublicKeyInfo`] as + /// a raw byte array. + /// + /// See [RFC7469 § 2.1.1] for more information. + /// + /// [RFC7469 § 2.1.1]: https://datatracker.ietf.org/doc/html/rfc7469#section-2.1.1 + #[cfg(feature = "fingerprint")] + pub fn fingerprint_bytes(&self) -> Result { + let mut builder = fingerprint::Builder::new(); + self.encode(&mut builder)?; + Ok(builder.finish()) + } +} + +impl<'a: 'k, 'k, Params, Key: 'k> DecodeValue<'a> for SubjectPublicKeyInfo +where + Params: Choice<'a> + Encode, + Key: Decode<'a>, +{ + fn decode_value>(reader: &mut R, header: Header) -> der::Result { + reader.read_nested(header.length, |reader| { + Ok(Self { + algorithm: reader.decode()?, + subject_public_key: Key::decode(reader)?, + }) + }) + } +} + +impl<'a, Params, Key> EncodeValue for SubjectPublicKeyInfo +where + Params: Choice<'a> + Encode, + Key: Encode, +{ + fn value_len(&self) -> der::Result { + self.algorithm.encoded_len()? + self.subject_public_key.encoded_len()? + } + + fn encode_value(&self, writer: &mut impl Writer) -> der::Result<()> { + self.algorithm.encode(writer)?; + self.subject_public_key.encode(writer)?; + Ok(()) + } +} + +impl<'a, Params, Key> Sequence<'a> for SubjectPublicKeyInfo +where + Params: Choice<'a> + Encode, + Key: Decode<'a> + Encode + FixedTag, +{ +} + +impl<'a, Params, Key> TryFrom<&'a [u8]> for SubjectPublicKeyInfo +where + Params: Choice<'a> + Encode, + Key: Decode<'a> + Encode + FixedTag, +{ + type Error = Error; + + fn try_from(bytes: &'a [u8]) -> Result { + Ok(Self::from_der(bytes)?) + } +} + +impl<'a, Params, Key> ValueOrd for SubjectPublicKeyInfo +where + Params: Choice<'a> + DerOrd + Encode, + Key: ValueOrd, +{ + fn value_cmp(&self, other: &Self) -> der::Result { + match self.algorithm.der_cmp(&other.algorithm)? { + Ordering::Equal => self.subject_public_key.value_cmp(&other.subject_public_key), + other => Ok(other), + } + } +} + +#[cfg(feature = "alloc")] +impl<'a: 'k, 'k, Params, Key: 'k> TryFrom> for Document +where + Params: Choice<'a> + Encode, + Key: Decode<'a> + Encode + FixedTag, + BitStringRef<'a>: From<&'k Key>, +{ + type Error = Error; + + fn try_from(spki: SubjectPublicKeyInfo) -> Result { + Self::try_from(&spki) + } +} + +#[cfg(feature = "alloc")] +impl<'a: 'k, 'k, Params, Key: 'k> TryFrom<&SubjectPublicKeyInfo> for Document +where + Params: Choice<'a> + Encode, + Key: Decode<'a> + Encode + FixedTag, + BitStringRef<'a>: From<&'k Key>, +{ + type Error = Error; + + fn try_from(spki: &SubjectPublicKeyInfo) -> Result { + Ok(Self::encode_msg(spki)?) + } +} + +#[cfg(feature = "pem")] +impl PemLabel for SubjectPublicKeyInfo { + const PEM_LABEL: &'static str = "PUBLIC KEY"; +} + +#[cfg(feature = "alloc")] +mod allocating { + use super::*; + use crate::EncodePublicKey; + use der::referenced::*; + + impl<'a> RefToOwned<'a> for SubjectPublicKeyInfoRef<'a> { + type Owned = SubjectPublicKeyInfoOwned; + fn ref_to_owned(&self) -> Self::Owned { + SubjectPublicKeyInfo { + algorithm: self.algorithm.ref_to_owned(), + subject_public_key: self.subject_public_key.ref_to_owned(), + } + } + } + + impl OwnedToRef for SubjectPublicKeyInfoOwned { + type Borrowed<'a> = SubjectPublicKeyInfoRef<'a>; + fn owned_to_ref(&self) -> Self::Borrowed<'_> { + SubjectPublicKeyInfo { + algorithm: self.algorithm.owned_to_ref(), + subject_public_key: self.subject_public_key.owned_to_ref(), + } + } + } + + impl SubjectPublicKeyInfoOwned { + /// Create a [`SubjectPublicKeyInfoOwned`] from any object that implements + /// [`EncodePublicKey`]. + pub fn from_key(source: T) -> Result + where + T: EncodePublicKey, + { + Ok(source.to_public_key_der()?.decode_msg::()?) + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/traits.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/traits.rs new file mode 100644 index 0000000000000000000000000000000000000000..764b02a4a5fa78e229c0e881906a6cedaf0d6223 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/src/traits.rs @@ -0,0 +1,184 @@ +//! Traits for encoding/decoding SPKI public keys. + +use crate::{AlgorithmIdentifier, Error, Result, SubjectPublicKeyInfoRef}; +use der::{EncodeValue, Tagged}; + +#[cfg(feature = "alloc")] +use { + crate::AlgorithmIdentifierOwned, + der::{asn1::BitString, Any, Document}, +}; + +#[cfg(feature = "pem")] +use { + alloc::string::String, + der::pem::{LineEnding, PemLabel}, +}; + +#[cfg(feature = "std")] +use std::path::Path; + +#[cfg(doc)] +use crate::SubjectPublicKeyInfo; + +/// Parse a public key object from an encoded SPKI document. +pub trait DecodePublicKey: Sized { + /// Deserialize object from ASN.1 DER-encoded [`SubjectPublicKeyInfo`] + /// (binary format). + fn from_public_key_der(bytes: &[u8]) -> Result; + + /// Deserialize PEM-encoded [`SubjectPublicKeyInfo`]. + /// + /// Keys in this format begin with the following delimiter: + /// + /// ```text + /// -----BEGIN PUBLIC KEY----- + /// ``` + #[cfg(feature = "pem")] + fn from_public_key_pem(s: &str) -> Result { + let (label, doc) = Document::from_pem(s)?; + SubjectPublicKeyInfoRef::validate_pem_label(label)?; + Self::from_public_key_der(doc.as_bytes()) + } + + /// Load public key object from an ASN.1 DER-encoded file on the local + /// filesystem (binary format). + #[cfg(feature = "std")] + fn read_public_key_der_file(path: impl AsRef) -> Result { + let doc = Document::read_der_file(path)?; + Self::from_public_key_der(doc.as_bytes()) + } + + /// Load public key object from a PEM-encoded file on the local filesystem. + #[cfg(all(feature = "pem", feature = "std"))] + fn read_public_key_pem_file(path: impl AsRef) -> Result { + let (label, doc) = Document::read_pem_file(path)?; + SubjectPublicKeyInfoRef::validate_pem_label(&label)?; + Self::from_public_key_der(doc.as_bytes()) + } +} + +impl DecodePublicKey for T +where + T: for<'a> TryFrom, Error = Error>, +{ + fn from_public_key_der(bytes: &[u8]) -> Result { + Self::try_from(SubjectPublicKeyInfoRef::try_from(bytes)?) + } +} + +/// Serialize a public key object to a SPKI-encoded document. +#[cfg(feature = "alloc")] +pub trait EncodePublicKey { + /// Serialize a [`Document`] containing a SPKI-encoded public key. + fn to_public_key_der(&self) -> Result; + + /// Serialize this public key as PEM-encoded SPKI with the given [`LineEnding`]. + #[cfg(feature = "pem")] + fn to_public_key_pem(&self, line_ending: LineEnding) -> Result { + let doc = self.to_public_key_der()?; + Ok(doc.to_pem(SubjectPublicKeyInfoRef::PEM_LABEL, line_ending)?) + } + + /// Write ASN.1 DER-encoded public key to the given path + #[cfg(feature = "std")] + fn write_public_key_der_file(&self, path: impl AsRef) -> Result<()> { + Ok(self.to_public_key_der()?.write_der_file(path)?) + } + + /// Write ASN.1 DER-encoded public key to the given path + #[cfg(all(feature = "pem", feature = "std"))] + fn write_public_key_pem_file( + &self, + path: impl AsRef, + line_ending: LineEnding, + ) -> Result<()> { + let doc = self.to_public_key_der()?; + Ok(doc.write_pem_file(path, SubjectPublicKeyInfoRef::PEM_LABEL, line_ending)?) + } +} + +/// Returns `AlgorithmIdentifier` associated with the structure. +/// +/// This is useful for e.g. keys for digital signature algorithms. +pub trait AssociatedAlgorithmIdentifier { + /// Algorithm parameters. + type Params: Tagged + EncodeValue; + + /// `AlgorithmIdentifier` for this structure. + const ALGORITHM_IDENTIFIER: AlgorithmIdentifier; +} + +/// Returns `AlgorithmIdentifier` associated with the structure. +/// +/// This is useful for e.g. keys for digital signature algorithms. +#[cfg(feature = "alloc")] +pub trait DynAssociatedAlgorithmIdentifier { + /// `AlgorithmIdentifier` for this structure. + fn algorithm_identifier(&self) -> Result; +} + +#[cfg(feature = "alloc")] +impl DynAssociatedAlgorithmIdentifier for T +where + T: AssociatedAlgorithmIdentifier, +{ + fn algorithm_identifier(&self) -> Result { + Ok(AlgorithmIdentifierOwned { + oid: T::ALGORITHM_IDENTIFIER.oid, + parameters: T::ALGORITHM_IDENTIFIER + .parameters + .as_ref() + .map(Any::encode_from) + .transpose()?, + }) + } +} + +/// Returns `AlgorithmIdentifier` associated with the signature system. +/// +/// Unlike AssociatedAlgorithmIdentifier this is intended to be implemented for public and/or +/// private keys. +pub trait SignatureAlgorithmIdentifier { + /// Algorithm parameters. + type Params: Tagged + EncodeValue; + + /// `AlgorithmIdentifier` for the corresponding singature system. + const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifier; +} + +/// Returns `AlgorithmIdentifier` associated with the signature system. +/// +/// Unlike AssociatedAlgorithmIdentifier this is intended to be implemented for public and/or +/// private keys. +#[cfg(feature = "alloc")] +pub trait DynSignatureAlgorithmIdentifier { + /// `AlgorithmIdentifier` for the corresponding singature system. + fn signature_algorithm_identifier(&self) -> Result; +} + +#[cfg(feature = "alloc")] +impl DynSignatureAlgorithmIdentifier for T +where + T: SignatureAlgorithmIdentifier, +{ + fn signature_algorithm_identifier(&self) -> Result { + Ok(AlgorithmIdentifierOwned { + oid: T::SIGNATURE_ALGORITHM_IDENTIFIER.oid, + parameters: T::SIGNATURE_ALGORITHM_IDENTIFIER + .parameters + .as_ref() + .map(Any::encode_from) + .transpose()?, + }) + } +} + +/// Returns the `BitString` encoding of the signature. +/// +/// X.509 and CSR structures require signatures to be BitString encoded. +#[cfg(feature = "alloc")] +pub trait SignatureBitStringEncoding { + /// `BitString` encoding for this signature. + fn to_bitstring(&self) -> der::Result; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/ed25519-pub.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/ed25519-pub.der new file mode 100644 index 0000000000000000000000000000000000000000..1b602ee1f2754f327636c7e58cbbf340dd7ca82b Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/ed25519-pub.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/ed25519-pub.pem b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/ed25519-pub.pem new file mode 100644 index 0000000000000000000000000000000000000000..6891701f7888f67aebfc9d6b80db2409ee3cb683 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/ed25519-pub.pem @@ -0,0 +1,3 @@ +-----BEGIN PUBLIC KEY----- +MCowBQYDK2VwAyEATSkWfz8ZEqb3rfopOgUaFcBexnuPFyZ7HFVQ3OhTvQ0= +-----END PUBLIC KEY----- diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/p256-pub.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/p256-pub.der new file mode 100644 index 0000000000000000000000000000000000000000..67c719c7641d6bc2b1b122bcd287e2947daed3d4 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/p256-pub.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/p256-pub.pem b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/p256-pub.pem new file mode 100644 index 0000000000000000000000000000000000000000..ee7e5b612f35bf1291c190638a3570aca307279e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/p256-pub.pem @@ -0,0 +1,4 @@ +-----BEGIN PUBLIC KEY----- +MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEHKz/tV8vLO/YnYnrN0smgRUkUoAt +7qCZFgaBN9g5z3/EgaREkjBNfvZqwRe+/oOo0I8VXytS+fYY3URwKQSODw== +-----END PUBLIC KEY----- diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/rsa2048-pub.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/rsa2048-pub.der new file mode 100644 index 0000000000000000000000000000000000000000..4148aaaaaffcd235fca03d18d0605a7d28fdd4e4 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/rsa2048-pub.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/rsa2048-pub.pem b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/rsa2048-pub.pem new file mode 100644 index 0000000000000000000000000000000000000000..5ecd892394ee3b2744caa4177540dfe5c308cf36 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/examples/rsa2048-pub.pem @@ -0,0 +1,9 @@ +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtsQsUV8QpqrygsY+2+JC +Q6Fw8/omM71IM2N/R8pPbzbgOl0p78MZGsgPOQ2HSznjD0FPzsH8oO2B5Uftws04 +LHb2HJAYlz25+lN5cqfHAfa3fgmC38FfwBkn7l582UtPWZ/wcBOnyCgb3yLcvJrX +yrt8QxHJgvWO23ITrUVYszImbXQ67YGS0YhMrbixRzmo2tpm3JcIBtnHrEUMsT0N +fFdfsZhTT8YbxBvA8FdODgEwx7u/vf3J9qbi4+Kv8cvqyJuleIRSjVXPsIMnoejI +n04APPKIjpMyQdnWlby7rNyQtE4+CV+jcFjqJbE/Xilcvqxt6DirjFCvYeKYl1uH +LwIDAQAB +-----END PUBLIC KEY----- diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/spki.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/spki.rs new file mode 100644 index 0000000000000000000000000000000000000000..f912d4875dfc5ef439b71dba82a83bb233e8c3c9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/spki.rs @@ -0,0 +1,161 @@ +//! `SubjectPublicKeyInfo` tests. + +use der::asn1::ObjectIdentifier; +use hex_literal::hex; +use spki::SubjectPublicKeyInfoRef; + +#[cfg(feature = "alloc")] +use der::Encode; + +#[cfg(feature = "pem")] +use der::{pem::LineEnding, EncodePem}; + +/// Elliptic Curve (P-256) `SubjectPublicKeyInfo` encoded as ASN.1 DER +const EC_P256_DER_EXAMPLE: &[u8] = include_bytes!("examples/p256-pub.der"); + +/// Ed25519 `SubjectPublicKeyInfo` encoded as ASN.1 DER +#[cfg(any(feature = "alloc", feature = "fingerprint"))] +const ED25519_DER_EXAMPLE: &[u8] = include_bytes!("examples/ed25519-pub.der"); + +/// RSA-2048 `SubjectPublicKeyInfo` encoded as ASN.1 DER +const RSA_2048_DER_EXAMPLE: &[u8] = include_bytes!("examples/rsa2048-pub.der"); + +/// Elliptic Curve (P-256) public key encoded as PEM +#[cfg(feature = "pem")] +const EC_P256_PEM_EXAMPLE: &str = include_str!("examples/p256-pub.pem"); + +/// Ed25519 public key encoded as PEM +#[cfg(feature = "pem")] +const ED25519_PEM_EXAMPLE: &str = include_str!("examples/ed25519-pub.pem"); + +/// RSA-2048 PKCS#8 public key encoded as PEM +#[cfg(feature = "pem")] +const RSA_2048_PEM_EXAMPLE: &str = include_str!("examples/rsa2048-pub.pem"); + +/// The SPKI fingerprint for `ED25519_SPKI_FINGERPRINT` as a Base64 string +/// +/// Generated using `cat ed25519-pub.der | openssl dgst -binary -sha256 | base64` +#[cfg(all(feature = "alloc", feature = "base64", feature = "fingerprint"))] +const ED25519_SPKI_FINGERPRINT_BASE64: &str = "Vd1MdLDkhTTi9OFzzs61DfjyenrCqomRzHrpFOAwvO0="; + +/// The SPKI fingerprint for `ED25519_SPKI_FINGERPRINT` as straight hash bytes +/// +/// Generated using `cat ed25519-pub.der | openssl dgst -sha256` +#[cfg(feature = "fingerprint")] +const ED25519_SPKI_FINGERPRINT: &[u8] = + &hex!("55dd4c74b0e48534e2f4e173ceceb50df8f27a7ac2aa8991cc7ae914e030bced"); + +#[test] +fn decode_ec_p256_der() { + let spki = SubjectPublicKeyInfoRef::try_from(EC_P256_DER_EXAMPLE).unwrap(); + + assert_eq!(spki.algorithm.oid, "1.2.840.10045.2.1".parse().unwrap()); + + assert_eq!( + spki.algorithm + .parameters + .unwrap() + .decode_as::() + .unwrap(), + "1.2.840.10045.3.1.7".parse().unwrap() + ); + + assert_eq!(spki.subject_public_key.raw_bytes(), &hex!("041CACFFB55F2F2CEFD89D89EB374B2681152452802DEEA09916068137D839CF7FC481A44492304D7EF66AC117BEFE83A8D08F155F2B52F9F618DD447029048E0F")[..]); +} + +#[test] +#[cfg(feature = "fingerprint")] +fn decode_ed25519_and_fingerprint_spki() { + // Repeat the decode test from the pkcs8 crate + let spki = SubjectPublicKeyInfoRef::try_from(ED25519_DER_EXAMPLE).unwrap(); + + assert_eq!(spki.algorithm.oid, "1.3.101.112".parse().unwrap()); + assert_eq!(spki.algorithm.parameters, None); + assert_eq!( + spki.subject_public_key.raw_bytes(), + &hex!("4D29167F3F1912A6F7ADFA293A051A15C05EC67B8F17267B1C5550DCE853BD0D")[..] + ); + + // Check the fingerprint + assert_eq!( + spki.fingerprint_bytes().unwrap().as_slice(), + ED25519_SPKI_FINGERPRINT + ); +} + +#[test] +#[cfg(all(feature = "alloc", feature = "base64", feature = "fingerprint"))] +fn decode_ed25519_and_fingerprint_base64() { + // Repeat the decode test from the pkcs8 crate + let spki = SubjectPublicKeyInfoRef::try_from(ED25519_DER_EXAMPLE).unwrap(); + + assert_eq!(spki.algorithm.oid, "1.3.101.112".parse().unwrap()); + assert_eq!(spki.algorithm.parameters, None); + assert_eq!( + spki.subject_public_key.raw_bytes(), + &hex!("4D29167F3F1912A6F7ADFA293A051A15C05EC67B8F17267B1C5550DCE853BD0D")[..] + ); + + // Check the fingerprint + assert_eq!( + spki.fingerprint_base64().unwrap(), + ED25519_SPKI_FINGERPRINT_BASE64 + ); +} + +#[test] +fn decode_rsa_2048_der() { + let spki = SubjectPublicKeyInfoRef::try_from(RSA_2048_DER_EXAMPLE).unwrap(); + + assert_eq!(spki.algorithm.oid, "1.2.840.113549.1.1.1".parse().unwrap()); + assert!(spki.algorithm.parameters.unwrap().is_null()); + assert_eq!(spki.subject_public_key.raw_bytes(), &hex!("3082010A0282010100B6C42C515F10A6AAF282C63EDBE24243A170F3FA2633BD4833637F47CA4F6F36E03A5D29EFC3191AC80F390D874B39E30F414FCEC1FCA0ED81E547EDC2CD382C76F61C9018973DB9FA537972A7C701F6B77E0982DFC15FC01927EE5E7CD94B4F599FF07013A7C8281BDF22DCBC9AD7CABB7C4311C982F58EDB7213AD4558B332266D743AED8192D1884CADB8B14739A8DADA66DC970806D9C7AC450CB13D0D7C575FB198534FC61BC41BC0F0574E0E0130C7BBBFBDFDC9F6A6E2E3E2AFF1CBEAC89BA57884528D55CFB08327A1E8C89F4E003CF2888E933241D9D695BCBBACDC90B44E3E095FA37058EA25B13F5E295CBEAC6DE838AB8C50AF61E298975B872F0203010001")[..]); +} + +#[test] +#[cfg(feature = "alloc")] +fn encode_ec_p256_der() { + let pk = SubjectPublicKeyInfoRef::try_from(EC_P256_DER_EXAMPLE).unwrap(); + let pk_encoded = pk.to_der().unwrap(); + assert_eq!(EC_P256_DER_EXAMPLE, pk_encoded.as_slice()); +} + +#[test] +#[cfg(feature = "alloc")] +fn encode_ed25519_der() { + let pk = SubjectPublicKeyInfoRef::try_from(ED25519_DER_EXAMPLE).unwrap(); + let pk_encoded = pk.to_der().unwrap(); + assert_eq!(ED25519_DER_EXAMPLE, pk_encoded.as_slice()); +} + +#[test] +#[cfg(feature = "alloc")] +fn encode_rsa_2048_der() { + let pk = SubjectPublicKeyInfoRef::try_from(RSA_2048_DER_EXAMPLE).unwrap(); + let pk_encoded = pk.to_der().unwrap(); + assert_eq!(RSA_2048_DER_EXAMPLE, pk_encoded.as_slice()); +} + +#[test] +#[cfg(feature = "pem")] +fn encode_ec_p256_pem() { + let pk = SubjectPublicKeyInfoRef::try_from(EC_P256_DER_EXAMPLE).unwrap(); + let pk_encoded = pk.to_pem(LineEnding::LF).unwrap(); + assert_eq!(EC_P256_PEM_EXAMPLE, pk_encoded); +} + +#[test] +#[cfg(feature = "pem")] +fn encode_ed25519_pem() { + let pk = SubjectPublicKeyInfoRef::try_from(ED25519_DER_EXAMPLE).unwrap(); + let pk_encoded = pk.to_pem(LineEnding::LF).unwrap(); + assert_eq!(ED25519_PEM_EXAMPLE, pk_encoded); +} + +#[test] +#[cfg(feature = "pem")] +fn encode_rsa_2048_pem() { + let pk = SubjectPublicKeyInfoRef::try_from(RSA_2048_DER_EXAMPLE).unwrap(); + let pk_encoded = pk.to_pem(LineEnding::LF).unwrap(); + assert_eq!(RSA_2048_PEM_EXAMPLE, pk_encoded); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/traits.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/traits.rs new file mode 100644 index 0000000000000000000000000000000000000000..111433343aa00c2e1a5c8bfa3d152bf47545ebff --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spki-0.7.3/tests/traits.rs @@ -0,0 +1,102 @@ +//! Tests for SPKI encoding/decoding traits. + +#![cfg(any(feature = "pem", feature = "std"))] + +use der::{Decode, Encode}; +use spki::{DecodePublicKey, Document, EncodePublicKey, Error, Result, SubjectPublicKeyInfoRef}; + +#[cfg(feature = "pem")] +use spki::der::pem::LineEnding; + +#[cfg(feature = "std")] +use tempfile::tempdir; + +#[cfg(all(feature = "pem", feature = "std"))] +use std::fs; + +/// Ed25519 `SubjectPublicKeyInfo` encoded as ASN.1 DER +const ED25519_DER_EXAMPLE: &[u8] = include_bytes!("examples/ed25519-pub.der"); + +/// Ed25519 public key encoded as PEM +#[cfg(feature = "pem")] +const ED25519_PEM_EXAMPLE: &str = include_str!("examples/ed25519-pub.pem"); + +/// Mock key type for testing trait impls against. +pub struct MockKey(Vec); + +impl AsRef<[u8]> for MockKey { + fn as_ref(&self) -> &[u8] { + self.0.as_ref() + } +} + +impl EncodePublicKey for MockKey { + fn to_public_key_der(&self) -> Result { + Ok(Document::from_der(self.as_ref())?) + } +} + +impl TryFrom> for MockKey { + type Error = Error; + + fn try_from(spki: SubjectPublicKeyInfoRef<'_>) -> Result { + Ok(MockKey(spki.to_der()?)) + } +} + +#[cfg(feature = "pem")] +#[test] +fn from_public_key_pem() { + let key = MockKey::from_public_key_pem(ED25519_PEM_EXAMPLE).unwrap(); + assert_eq!(key.as_ref(), ED25519_DER_EXAMPLE); +} + +#[cfg(feature = "std")] +#[test] +fn read_public_key_der_file() { + let key = MockKey::read_public_key_der_file("tests/examples/ed25519-pub.der").unwrap(); + assert_eq!(key.as_ref(), ED25519_DER_EXAMPLE); +} + +#[cfg(all(feature = "pem", feature = "std"))] +#[test] +fn read_public_key_pem_file() { + let key = MockKey::read_public_key_pem_file("tests/examples/ed25519-pub.pem").unwrap(); + assert_eq!(key.as_ref(), ED25519_DER_EXAMPLE); +} + +#[cfg(feature = "pem")] +#[test] +fn to_public_key_pem() { + let pem = MockKey(ED25519_DER_EXAMPLE.to_vec()) + .to_public_key_pem(LineEnding::LF) + .unwrap(); + + assert_eq!(pem, ED25519_PEM_EXAMPLE); +} + +#[cfg(feature = "std")] +#[test] +fn write_public_key_der_file() { + let dir = tempdir().unwrap(); + let path = dir.path().join("example.der"); + MockKey(ED25519_DER_EXAMPLE.to_vec()) + .write_public_key_der_file(&path) + .unwrap(); + + let key = MockKey::read_public_key_der_file(&path).unwrap(); + assert_eq!(key.as_ref(), ED25519_DER_EXAMPLE); +} + +#[cfg(all(feature = "pem", feature = "std"))] +#[test] +fn write_public_key_pem_file() { + let dir = tempdir().unwrap(); + let path = dir.path().join("example.pem"); + MockKey(ED25519_DER_EXAMPLE.to_vec()) + .write_public_key_pem_file(&path, LineEnding::LF) + .unwrap(); + + let pem = fs::read_to_string(path).unwrap(); + assert_eq!(&pem, ED25519_PEM_EXAMPLE); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/clone.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/clone.rs new file mode 100644 index 0000000000000000000000000000000000000000..a413e3ec700c8af0973c3f8428191afe84aa6f77 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/clone.rs @@ -0,0 +1,2241 @@ +// This file is @generated by syn-internal-codegen. +// It is not intended for manual editing. + +#![allow(clippy::clone_on_copy, clippy::expl_impl_clone_on_copy)] +use crate::*; +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Abi { + fn clone(&self) -> Self { + Abi { + extern_token: self.extern_token.clone(), + name: self.name.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for AngleBracketedGenericArguments { + fn clone(&self) -> Self { + AngleBracketedGenericArguments { + colon2_token: self.colon2_token.clone(), + lt_token: self.lt_token.clone(), + args: self.args.clone(), + gt_token: self.gt_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Arm { + fn clone(&self) -> Self { + Arm { + attrs: self.attrs.clone(), + pat: self.pat.clone(), + guard: self.guard.clone(), + fat_arrow_token: self.fat_arrow_token.clone(), + body: self.body.clone(), + comma: self.comma.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Copy for AttrStyle {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for AttrStyle { + fn clone(&self) -> Self { + *self + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Attribute { + fn clone(&self) -> Self { + Attribute { + pound_token: self.pound_token.clone(), + style: self.style.clone(), + bracket_token: self.bracket_token.clone(), + path: self.path.clone(), + tokens: self.tokens.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for BareFnArg { + fn clone(&self) -> Self { + BareFnArg { + attrs: self.attrs.clone(), + name: self.name.clone(), + ty: self.ty.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Copy for BinOp {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for BinOp { + fn clone(&self) -> Self { + *self + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Binding { + fn clone(&self) -> Self { + Binding { + ident: self.ident.clone(), + eq_token: self.eq_token.clone(), + ty: self.ty.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Block { + fn clone(&self) -> Self { + Block { + brace_token: self.brace_token.clone(), + stmts: self.stmts.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for BoundLifetimes { + fn clone(&self) -> Self { + BoundLifetimes { + for_token: self.for_token.clone(), + lt_token: self.lt_token.clone(), + lifetimes: self.lifetimes.clone(), + gt_token: self.gt_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ConstParam { + fn clone(&self) -> Self { + ConstParam { + attrs: self.attrs.clone(), + const_token: self.const_token.clone(), + ident: self.ident.clone(), + colon_token: self.colon_token.clone(), + ty: self.ty.clone(), + eq_token: self.eq_token.clone(), + default: self.default.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Constraint { + fn clone(&self) -> Self { + Constraint { + ident: self.ident.clone(), + colon_token: self.colon_token.clone(), + bounds: self.bounds.clone(), + } + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Data { + fn clone(&self) -> Self { + match self { + Data::Struct(v0) => Data::Struct(v0.clone()), + Data::Enum(v0) => Data::Enum(v0.clone()), + Data::Union(v0) => Data::Union(v0.clone()), + } + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for DataEnum { + fn clone(&self) -> Self { + DataEnum { + enum_token: self.enum_token.clone(), + brace_token: self.brace_token.clone(), + variants: self.variants.clone(), + } + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for DataStruct { + fn clone(&self) -> Self { + DataStruct { + struct_token: self.struct_token.clone(), + fields: self.fields.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for DataUnion { + fn clone(&self) -> Self { + DataUnion { + union_token: self.union_token.clone(), + fields: self.fields.clone(), + } + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for DeriveInput { + fn clone(&self) -> Self { + DeriveInput { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + ident: self.ident.clone(), + generics: self.generics.clone(), + data: self.data.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Expr { + fn clone(&self) -> Self { + match self { + #[cfg(feature = "full")] + Expr::Array(v0) => Expr::Array(v0.clone()), + #[cfg(feature = "full")] + Expr::Assign(v0) => Expr::Assign(v0.clone()), + #[cfg(feature = "full")] + Expr::AssignOp(v0) => Expr::AssignOp(v0.clone()), + #[cfg(feature = "full")] + Expr::Async(v0) => Expr::Async(v0.clone()), + #[cfg(feature = "full")] + Expr::Await(v0) => Expr::Await(v0.clone()), + Expr::Binary(v0) => Expr::Binary(v0.clone()), + #[cfg(feature = "full")] + Expr::Block(v0) => Expr::Block(v0.clone()), + #[cfg(feature = "full")] + Expr::Box(v0) => Expr::Box(v0.clone()), + #[cfg(feature = "full")] + Expr::Break(v0) => Expr::Break(v0.clone()), + Expr::Call(v0) => Expr::Call(v0.clone()), + Expr::Cast(v0) => Expr::Cast(v0.clone()), + #[cfg(feature = "full")] + Expr::Closure(v0) => Expr::Closure(v0.clone()), + #[cfg(feature = "full")] + Expr::Continue(v0) => Expr::Continue(v0.clone()), + Expr::Field(v0) => Expr::Field(v0.clone()), + #[cfg(feature = "full")] + Expr::ForLoop(v0) => Expr::ForLoop(v0.clone()), + #[cfg(feature = "full")] + Expr::Group(v0) => Expr::Group(v0.clone()), + #[cfg(feature = "full")] + Expr::If(v0) => Expr::If(v0.clone()), + Expr::Index(v0) => Expr::Index(v0.clone()), + #[cfg(feature = "full")] + Expr::Let(v0) => Expr::Let(v0.clone()), + Expr::Lit(v0) => Expr::Lit(v0.clone()), + #[cfg(feature = "full")] + Expr::Loop(v0) => Expr::Loop(v0.clone()), + #[cfg(feature = "full")] + Expr::Macro(v0) => Expr::Macro(v0.clone()), + #[cfg(feature = "full")] + Expr::Match(v0) => Expr::Match(v0.clone()), + #[cfg(feature = "full")] + Expr::MethodCall(v0) => Expr::MethodCall(v0.clone()), + Expr::Paren(v0) => Expr::Paren(v0.clone()), + Expr::Path(v0) => Expr::Path(v0.clone()), + #[cfg(feature = "full")] + Expr::Range(v0) => Expr::Range(v0.clone()), + #[cfg(feature = "full")] + Expr::Reference(v0) => Expr::Reference(v0.clone()), + #[cfg(feature = "full")] + Expr::Repeat(v0) => Expr::Repeat(v0.clone()), + #[cfg(feature = "full")] + Expr::Return(v0) => Expr::Return(v0.clone()), + #[cfg(feature = "full")] + Expr::Struct(v0) => Expr::Struct(v0.clone()), + #[cfg(feature = "full")] + Expr::Try(v0) => Expr::Try(v0.clone()), + #[cfg(feature = "full")] + Expr::TryBlock(v0) => Expr::TryBlock(v0.clone()), + #[cfg(feature = "full")] + Expr::Tuple(v0) => Expr::Tuple(v0.clone()), + #[cfg(feature = "full")] + Expr::Type(v0) => Expr::Type(v0.clone()), + Expr::Unary(v0) => Expr::Unary(v0.clone()), + #[cfg(feature = "full")] + Expr::Unsafe(v0) => Expr::Unsafe(v0.clone()), + Expr::Verbatim(v0) => Expr::Verbatim(v0.clone()), + #[cfg(feature = "full")] + Expr::While(v0) => Expr::While(v0.clone()), + #[cfg(feature = "full")] + Expr::Yield(v0) => Expr::Yield(v0.clone()), + #[cfg(any(syn_no_non_exhaustive, not(feature = "full")))] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprArray { + fn clone(&self) -> Self { + ExprArray { + attrs: self.attrs.clone(), + bracket_token: self.bracket_token.clone(), + elems: self.elems.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprAssign { + fn clone(&self) -> Self { + ExprAssign { + attrs: self.attrs.clone(), + left: self.left.clone(), + eq_token: self.eq_token.clone(), + right: self.right.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprAssignOp { + fn clone(&self) -> Self { + ExprAssignOp { + attrs: self.attrs.clone(), + left: self.left.clone(), + op: self.op.clone(), + right: self.right.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprAsync { + fn clone(&self) -> Self { + ExprAsync { + attrs: self.attrs.clone(), + async_token: self.async_token.clone(), + capture: self.capture.clone(), + block: self.block.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprAwait { + fn clone(&self) -> Self { + ExprAwait { + attrs: self.attrs.clone(), + base: self.base.clone(), + dot_token: self.dot_token.clone(), + await_token: self.await_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprBinary { + fn clone(&self) -> Self { + ExprBinary { + attrs: self.attrs.clone(), + left: self.left.clone(), + op: self.op.clone(), + right: self.right.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprBlock { + fn clone(&self) -> Self { + ExprBlock { + attrs: self.attrs.clone(), + label: self.label.clone(), + block: self.block.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprBox { + fn clone(&self) -> Self { + ExprBox { + attrs: self.attrs.clone(), + box_token: self.box_token.clone(), + expr: self.expr.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprBreak { + fn clone(&self) -> Self { + ExprBreak { + attrs: self.attrs.clone(), + break_token: self.break_token.clone(), + label: self.label.clone(), + expr: self.expr.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprCall { + fn clone(&self) -> Self { + ExprCall { + attrs: self.attrs.clone(), + func: self.func.clone(), + paren_token: self.paren_token.clone(), + args: self.args.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprCast { + fn clone(&self) -> Self { + ExprCast { + attrs: self.attrs.clone(), + expr: self.expr.clone(), + as_token: self.as_token.clone(), + ty: self.ty.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprClosure { + fn clone(&self) -> Self { + ExprClosure { + attrs: self.attrs.clone(), + movability: self.movability.clone(), + asyncness: self.asyncness.clone(), + capture: self.capture.clone(), + or1_token: self.or1_token.clone(), + inputs: self.inputs.clone(), + or2_token: self.or2_token.clone(), + output: self.output.clone(), + body: self.body.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprContinue { + fn clone(&self) -> Self { + ExprContinue { + attrs: self.attrs.clone(), + continue_token: self.continue_token.clone(), + label: self.label.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprField { + fn clone(&self) -> Self { + ExprField { + attrs: self.attrs.clone(), + base: self.base.clone(), + dot_token: self.dot_token.clone(), + member: self.member.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprForLoop { + fn clone(&self) -> Self { + ExprForLoop { + attrs: self.attrs.clone(), + label: self.label.clone(), + for_token: self.for_token.clone(), + pat: self.pat.clone(), + in_token: self.in_token.clone(), + expr: self.expr.clone(), + body: self.body.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprGroup { + fn clone(&self) -> Self { + ExprGroup { + attrs: self.attrs.clone(), + group_token: self.group_token.clone(), + expr: self.expr.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprIf { + fn clone(&self) -> Self { + ExprIf { + attrs: self.attrs.clone(), + if_token: self.if_token.clone(), + cond: self.cond.clone(), + then_branch: self.then_branch.clone(), + else_branch: self.else_branch.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprIndex { + fn clone(&self) -> Self { + ExprIndex { + attrs: self.attrs.clone(), + expr: self.expr.clone(), + bracket_token: self.bracket_token.clone(), + index: self.index.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprLet { + fn clone(&self) -> Self { + ExprLet { + attrs: self.attrs.clone(), + let_token: self.let_token.clone(), + pat: self.pat.clone(), + eq_token: self.eq_token.clone(), + expr: self.expr.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprLit { + fn clone(&self) -> Self { + ExprLit { + attrs: self.attrs.clone(), + lit: self.lit.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprLoop { + fn clone(&self) -> Self { + ExprLoop { + attrs: self.attrs.clone(), + label: self.label.clone(), + loop_token: self.loop_token.clone(), + body: self.body.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprMacro { + fn clone(&self) -> Self { + ExprMacro { + attrs: self.attrs.clone(), + mac: self.mac.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprMatch { + fn clone(&self) -> Self { + ExprMatch { + attrs: self.attrs.clone(), + match_token: self.match_token.clone(), + expr: self.expr.clone(), + brace_token: self.brace_token.clone(), + arms: self.arms.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprMethodCall { + fn clone(&self) -> Self { + ExprMethodCall { + attrs: self.attrs.clone(), + receiver: self.receiver.clone(), + dot_token: self.dot_token.clone(), + method: self.method.clone(), + turbofish: self.turbofish.clone(), + paren_token: self.paren_token.clone(), + args: self.args.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprParen { + fn clone(&self) -> Self { + ExprParen { + attrs: self.attrs.clone(), + paren_token: self.paren_token.clone(), + expr: self.expr.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprPath { + fn clone(&self) -> Self { + ExprPath { + attrs: self.attrs.clone(), + qself: self.qself.clone(), + path: self.path.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprRange { + fn clone(&self) -> Self { + ExprRange { + attrs: self.attrs.clone(), + from: self.from.clone(), + limits: self.limits.clone(), + to: self.to.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprReference { + fn clone(&self) -> Self { + ExprReference { + attrs: self.attrs.clone(), + and_token: self.and_token.clone(), + raw: self.raw.clone(), + mutability: self.mutability.clone(), + expr: self.expr.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprRepeat { + fn clone(&self) -> Self { + ExprRepeat { + attrs: self.attrs.clone(), + bracket_token: self.bracket_token.clone(), + expr: self.expr.clone(), + semi_token: self.semi_token.clone(), + len: self.len.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprReturn { + fn clone(&self) -> Self { + ExprReturn { + attrs: self.attrs.clone(), + return_token: self.return_token.clone(), + expr: self.expr.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprStruct { + fn clone(&self) -> Self { + ExprStruct { + attrs: self.attrs.clone(), + path: self.path.clone(), + brace_token: self.brace_token.clone(), + fields: self.fields.clone(), + dot2_token: self.dot2_token.clone(), + rest: self.rest.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprTry { + fn clone(&self) -> Self { + ExprTry { + attrs: self.attrs.clone(), + expr: self.expr.clone(), + question_token: self.question_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprTryBlock { + fn clone(&self) -> Self { + ExprTryBlock { + attrs: self.attrs.clone(), + try_token: self.try_token.clone(), + block: self.block.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprTuple { + fn clone(&self) -> Self { + ExprTuple { + attrs: self.attrs.clone(), + paren_token: self.paren_token.clone(), + elems: self.elems.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprType { + fn clone(&self) -> Self { + ExprType { + attrs: self.attrs.clone(), + expr: self.expr.clone(), + colon_token: self.colon_token.clone(), + ty: self.ty.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprUnary { + fn clone(&self) -> Self { + ExprUnary { + attrs: self.attrs.clone(), + op: self.op.clone(), + expr: self.expr.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprUnsafe { + fn clone(&self) -> Self { + ExprUnsafe { + attrs: self.attrs.clone(), + unsafe_token: self.unsafe_token.clone(), + block: self.block.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprWhile { + fn clone(&self) -> Self { + ExprWhile { + attrs: self.attrs.clone(), + label: self.label.clone(), + while_token: self.while_token.clone(), + cond: self.cond.clone(), + body: self.body.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ExprYield { + fn clone(&self) -> Self { + ExprYield { + attrs: self.attrs.clone(), + yield_token: self.yield_token.clone(), + expr: self.expr.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Field { + fn clone(&self) -> Self { + Field { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + ident: self.ident.clone(), + colon_token: self.colon_token.clone(), + ty: self.ty.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for FieldPat { + fn clone(&self) -> Self { + FieldPat { + attrs: self.attrs.clone(), + member: self.member.clone(), + colon_token: self.colon_token.clone(), + pat: self.pat.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for FieldValue { + fn clone(&self) -> Self { + FieldValue { + attrs: self.attrs.clone(), + member: self.member.clone(), + colon_token: self.colon_token.clone(), + expr: self.expr.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Fields { + fn clone(&self) -> Self { + match self { + Fields::Named(v0) => Fields::Named(v0.clone()), + Fields::Unnamed(v0) => Fields::Unnamed(v0.clone()), + Fields::Unit => Fields::Unit, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for FieldsNamed { + fn clone(&self) -> Self { + FieldsNamed { + brace_token: self.brace_token.clone(), + named: self.named.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for FieldsUnnamed { + fn clone(&self) -> Self { + FieldsUnnamed { + paren_token: self.paren_token.clone(), + unnamed: self.unnamed.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for File { + fn clone(&self) -> Self { + File { + shebang: self.shebang.clone(), + attrs: self.attrs.clone(), + items: self.items.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for FnArg { + fn clone(&self) -> Self { + match self { + FnArg::Receiver(v0) => FnArg::Receiver(v0.clone()), + FnArg::Typed(v0) => FnArg::Typed(v0.clone()), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ForeignItem { + fn clone(&self) -> Self { + match self { + ForeignItem::Fn(v0) => ForeignItem::Fn(v0.clone()), + ForeignItem::Static(v0) => ForeignItem::Static(v0.clone()), + ForeignItem::Type(v0) => ForeignItem::Type(v0.clone()), + ForeignItem::Macro(v0) => ForeignItem::Macro(v0.clone()), + ForeignItem::Verbatim(v0) => ForeignItem::Verbatim(v0.clone()), + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ForeignItemFn { + fn clone(&self) -> Self { + ForeignItemFn { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + sig: self.sig.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ForeignItemMacro { + fn clone(&self) -> Self { + ForeignItemMacro { + attrs: self.attrs.clone(), + mac: self.mac.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ForeignItemStatic { + fn clone(&self) -> Self { + ForeignItemStatic { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + static_token: self.static_token.clone(), + mutability: self.mutability.clone(), + ident: self.ident.clone(), + colon_token: self.colon_token.clone(), + ty: self.ty.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ForeignItemType { + fn clone(&self) -> Self { + ForeignItemType { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + type_token: self.type_token.clone(), + ident: self.ident.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for GenericArgument { + fn clone(&self) -> Self { + match self { + GenericArgument::Lifetime(v0) => GenericArgument::Lifetime(v0.clone()), + GenericArgument::Type(v0) => GenericArgument::Type(v0.clone()), + GenericArgument::Const(v0) => GenericArgument::Const(v0.clone()), + GenericArgument::Binding(v0) => GenericArgument::Binding(v0.clone()), + GenericArgument::Constraint(v0) => GenericArgument::Constraint(v0.clone()), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for GenericMethodArgument { + fn clone(&self) -> Self { + match self { + GenericMethodArgument::Type(v0) => GenericMethodArgument::Type(v0.clone()), + GenericMethodArgument::Const(v0) => GenericMethodArgument::Const(v0.clone()), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for GenericParam { + fn clone(&self) -> Self { + match self { + GenericParam::Type(v0) => GenericParam::Type(v0.clone()), + GenericParam::Lifetime(v0) => GenericParam::Lifetime(v0.clone()), + GenericParam::Const(v0) => GenericParam::Const(v0.clone()), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Generics { + fn clone(&self) -> Self { + Generics { + lt_token: self.lt_token.clone(), + params: self.params.clone(), + gt_token: self.gt_token.clone(), + where_clause: self.where_clause.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ImplItem { + fn clone(&self) -> Self { + match self { + ImplItem::Const(v0) => ImplItem::Const(v0.clone()), + ImplItem::Method(v0) => ImplItem::Method(v0.clone()), + ImplItem::Type(v0) => ImplItem::Type(v0.clone()), + ImplItem::Macro(v0) => ImplItem::Macro(v0.clone()), + ImplItem::Verbatim(v0) => ImplItem::Verbatim(v0.clone()), + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ImplItemConst { + fn clone(&self) -> Self { + ImplItemConst { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + defaultness: self.defaultness.clone(), + const_token: self.const_token.clone(), + ident: self.ident.clone(), + colon_token: self.colon_token.clone(), + ty: self.ty.clone(), + eq_token: self.eq_token.clone(), + expr: self.expr.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ImplItemMacro { + fn clone(&self) -> Self { + ImplItemMacro { + attrs: self.attrs.clone(), + mac: self.mac.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ImplItemMethod { + fn clone(&self) -> Self { + ImplItemMethod { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + defaultness: self.defaultness.clone(), + sig: self.sig.clone(), + block: self.block.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ImplItemType { + fn clone(&self) -> Self { + ImplItemType { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + defaultness: self.defaultness.clone(), + type_token: self.type_token.clone(), + ident: self.ident.clone(), + generics: self.generics.clone(), + eq_token: self.eq_token.clone(), + ty: self.ty.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Index { + fn clone(&self) -> Self { + Index { + index: self.index.clone(), + span: self.span.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Item { + fn clone(&self) -> Self { + match self { + Item::Const(v0) => Item::Const(v0.clone()), + Item::Enum(v0) => Item::Enum(v0.clone()), + Item::ExternCrate(v0) => Item::ExternCrate(v0.clone()), + Item::Fn(v0) => Item::Fn(v0.clone()), + Item::ForeignMod(v0) => Item::ForeignMod(v0.clone()), + Item::Impl(v0) => Item::Impl(v0.clone()), + Item::Macro(v0) => Item::Macro(v0.clone()), + Item::Macro2(v0) => Item::Macro2(v0.clone()), + Item::Mod(v0) => Item::Mod(v0.clone()), + Item::Static(v0) => Item::Static(v0.clone()), + Item::Struct(v0) => Item::Struct(v0.clone()), + Item::Trait(v0) => Item::Trait(v0.clone()), + Item::TraitAlias(v0) => Item::TraitAlias(v0.clone()), + Item::Type(v0) => Item::Type(v0.clone()), + Item::Union(v0) => Item::Union(v0.clone()), + Item::Use(v0) => Item::Use(v0.clone()), + Item::Verbatim(v0) => Item::Verbatim(v0.clone()), + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemConst { + fn clone(&self) -> Self { + ItemConst { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + const_token: self.const_token.clone(), + ident: self.ident.clone(), + colon_token: self.colon_token.clone(), + ty: self.ty.clone(), + eq_token: self.eq_token.clone(), + expr: self.expr.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemEnum { + fn clone(&self) -> Self { + ItemEnum { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + enum_token: self.enum_token.clone(), + ident: self.ident.clone(), + generics: self.generics.clone(), + brace_token: self.brace_token.clone(), + variants: self.variants.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemExternCrate { + fn clone(&self) -> Self { + ItemExternCrate { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + extern_token: self.extern_token.clone(), + crate_token: self.crate_token.clone(), + ident: self.ident.clone(), + rename: self.rename.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemFn { + fn clone(&self) -> Self { + ItemFn { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + sig: self.sig.clone(), + block: self.block.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemForeignMod { + fn clone(&self) -> Self { + ItemForeignMod { + attrs: self.attrs.clone(), + abi: self.abi.clone(), + brace_token: self.brace_token.clone(), + items: self.items.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemImpl { + fn clone(&self) -> Self { + ItemImpl { + attrs: self.attrs.clone(), + defaultness: self.defaultness.clone(), + unsafety: self.unsafety.clone(), + impl_token: self.impl_token.clone(), + generics: self.generics.clone(), + trait_: self.trait_.clone(), + self_ty: self.self_ty.clone(), + brace_token: self.brace_token.clone(), + items: self.items.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemMacro { + fn clone(&self) -> Self { + ItemMacro { + attrs: self.attrs.clone(), + ident: self.ident.clone(), + mac: self.mac.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemMacro2 { + fn clone(&self) -> Self { + ItemMacro2 { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + macro_token: self.macro_token.clone(), + ident: self.ident.clone(), + rules: self.rules.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemMod { + fn clone(&self) -> Self { + ItemMod { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + mod_token: self.mod_token.clone(), + ident: self.ident.clone(), + content: self.content.clone(), + semi: self.semi.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemStatic { + fn clone(&self) -> Self { + ItemStatic { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + static_token: self.static_token.clone(), + mutability: self.mutability.clone(), + ident: self.ident.clone(), + colon_token: self.colon_token.clone(), + ty: self.ty.clone(), + eq_token: self.eq_token.clone(), + expr: self.expr.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemStruct { + fn clone(&self) -> Self { + ItemStruct { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + struct_token: self.struct_token.clone(), + ident: self.ident.clone(), + generics: self.generics.clone(), + fields: self.fields.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemTrait { + fn clone(&self) -> Self { + ItemTrait { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + unsafety: self.unsafety.clone(), + auto_token: self.auto_token.clone(), + trait_token: self.trait_token.clone(), + ident: self.ident.clone(), + generics: self.generics.clone(), + colon_token: self.colon_token.clone(), + supertraits: self.supertraits.clone(), + brace_token: self.brace_token.clone(), + items: self.items.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemTraitAlias { + fn clone(&self) -> Self { + ItemTraitAlias { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + trait_token: self.trait_token.clone(), + ident: self.ident.clone(), + generics: self.generics.clone(), + eq_token: self.eq_token.clone(), + bounds: self.bounds.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemType { + fn clone(&self) -> Self { + ItemType { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + type_token: self.type_token.clone(), + ident: self.ident.clone(), + generics: self.generics.clone(), + eq_token: self.eq_token.clone(), + ty: self.ty.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemUnion { + fn clone(&self) -> Self { + ItemUnion { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + union_token: self.union_token.clone(), + ident: self.ident.clone(), + generics: self.generics.clone(), + fields: self.fields.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ItemUse { + fn clone(&self) -> Self { + ItemUse { + attrs: self.attrs.clone(), + vis: self.vis.clone(), + use_token: self.use_token.clone(), + leading_colon: self.leading_colon.clone(), + tree: self.tree.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Label { + fn clone(&self) -> Self { + Label { + name: self.name.clone(), + colon_token: self.colon_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for LifetimeDef { + fn clone(&self) -> Self { + LifetimeDef { + attrs: self.attrs.clone(), + lifetime: self.lifetime.clone(), + colon_token: self.colon_token.clone(), + bounds: self.bounds.clone(), + } + } +} +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Lit { + fn clone(&self) -> Self { + match self { + Lit::Str(v0) => Lit::Str(v0.clone()), + Lit::ByteStr(v0) => Lit::ByteStr(v0.clone()), + Lit::Byte(v0) => Lit::Byte(v0.clone()), + Lit::Char(v0) => Lit::Char(v0.clone()), + Lit::Int(v0) => Lit::Int(v0.clone()), + Lit::Float(v0) => Lit::Float(v0.clone()), + Lit::Bool(v0) => Lit::Bool(v0.clone()), + Lit::Verbatim(v0) => Lit::Verbatim(v0.clone()), + } + } +} +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for LitBool { + fn clone(&self) -> Self { + LitBool { + value: self.value.clone(), + span: self.span.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Local { + fn clone(&self) -> Self { + Local { + attrs: self.attrs.clone(), + let_token: self.let_token.clone(), + pat: self.pat.clone(), + init: self.init.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Macro { + fn clone(&self) -> Self { + Macro { + path: self.path.clone(), + bang_token: self.bang_token.clone(), + delimiter: self.delimiter.clone(), + tokens: self.tokens.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for MacroDelimiter { + fn clone(&self) -> Self { + match self { + MacroDelimiter::Paren(v0) => MacroDelimiter::Paren(v0.clone()), + MacroDelimiter::Brace(v0) => MacroDelimiter::Brace(v0.clone()), + MacroDelimiter::Bracket(v0) => MacroDelimiter::Bracket(v0.clone()), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Member { + fn clone(&self) -> Self { + match self { + Member::Named(v0) => Member::Named(v0.clone()), + Member::Unnamed(v0) => Member::Unnamed(v0.clone()), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Meta { + fn clone(&self) -> Self { + match self { + Meta::Path(v0) => Meta::Path(v0.clone()), + Meta::List(v0) => Meta::List(v0.clone()), + Meta::NameValue(v0) => Meta::NameValue(v0.clone()), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for MetaList { + fn clone(&self) -> Self { + MetaList { + path: self.path.clone(), + paren_token: self.paren_token.clone(), + nested: self.nested.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for MetaNameValue { + fn clone(&self) -> Self { + MetaNameValue { + path: self.path.clone(), + eq_token: self.eq_token.clone(), + lit: self.lit.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for MethodTurbofish { + fn clone(&self) -> Self { + MethodTurbofish { + colon2_token: self.colon2_token.clone(), + lt_token: self.lt_token.clone(), + args: self.args.clone(), + gt_token: self.gt_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for NestedMeta { + fn clone(&self) -> Self { + match self { + NestedMeta::Meta(v0) => NestedMeta::Meta(v0.clone()), + NestedMeta::Lit(v0) => NestedMeta::Lit(v0.clone()), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ParenthesizedGenericArguments { + fn clone(&self) -> Self { + ParenthesizedGenericArguments { + paren_token: self.paren_token.clone(), + inputs: self.inputs.clone(), + output: self.output.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Pat { + fn clone(&self) -> Self { + match self { + Pat::Box(v0) => Pat::Box(v0.clone()), + Pat::Ident(v0) => Pat::Ident(v0.clone()), + Pat::Lit(v0) => Pat::Lit(v0.clone()), + Pat::Macro(v0) => Pat::Macro(v0.clone()), + Pat::Or(v0) => Pat::Or(v0.clone()), + Pat::Path(v0) => Pat::Path(v0.clone()), + Pat::Range(v0) => Pat::Range(v0.clone()), + Pat::Reference(v0) => Pat::Reference(v0.clone()), + Pat::Rest(v0) => Pat::Rest(v0.clone()), + Pat::Slice(v0) => Pat::Slice(v0.clone()), + Pat::Struct(v0) => Pat::Struct(v0.clone()), + Pat::Tuple(v0) => Pat::Tuple(v0.clone()), + Pat::TupleStruct(v0) => Pat::TupleStruct(v0.clone()), + Pat::Type(v0) => Pat::Type(v0.clone()), + Pat::Verbatim(v0) => Pat::Verbatim(v0.clone()), + Pat::Wild(v0) => Pat::Wild(v0.clone()), + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatBox { + fn clone(&self) -> Self { + PatBox { + attrs: self.attrs.clone(), + box_token: self.box_token.clone(), + pat: self.pat.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatIdent { + fn clone(&self) -> Self { + PatIdent { + attrs: self.attrs.clone(), + by_ref: self.by_ref.clone(), + mutability: self.mutability.clone(), + ident: self.ident.clone(), + subpat: self.subpat.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatLit { + fn clone(&self) -> Self { + PatLit { + attrs: self.attrs.clone(), + expr: self.expr.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatMacro { + fn clone(&self) -> Self { + PatMacro { + attrs: self.attrs.clone(), + mac: self.mac.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatOr { + fn clone(&self) -> Self { + PatOr { + attrs: self.attrs.clone(), + leading_vert: self.leading_vert.clone(), + cases: self.cases.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatPath { + fn clone(&self) -> Self { + PatPath { + attrs: self.attrs.clone(), + qself: self.qself.clone(), + path: self.path.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatRange { + fn clone(&self) -> Self { + PatRange { + attrs: self.attrs.clone(), + lo: self.lo.clone(), + limits: self.limits.clone(), + hi: self.hi.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatReference { + fn clone(&self) -> Self { + PatReference { + attrs: self.attrs.clone(), + and_token: self.and_token.clone(), + mutability: self.mutability.clone(), + pat: self.pat.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatRest { + fn clone(&self) -> Self { + PatRest { + attrs: self.attrs.clone(), + dot2_token: self.dot2_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatSlice { + fn clone(&self) -> Self { + PatSlice { + attrs: self.attrs.clone(), + bracket_token: self.bracket_token.clone(), + elems: self.elems.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatStruct { + fn clone(&self) -> Self { + PatStruct { + attrs: self.attrs.clone(), + path: self.path.clone(), + brace_token: self.brace_token.clone(), + fields: self.fields.clone(), + dot2_token: self.dot2_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatTuple { + fn clone(&self) -> Self { + PatTuple { + attrs: self.attrs.clone(), + paren_token: self.paren_token.clone(), + elems: self.elems.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatTupleStruct { + fn clone(&self) -> Self { + PatTupleStruct { + attrs: self.attrs.clone(), + path: self.path.clone(), + pat: self.pat.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatType { + fn clone(&self) -> Self { + PatType { + attrs: self.attrs.clone(), + pat: self.pat.clone(), + colon_token: self.colon_token.clone(), + ty: self.ty.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PatWild { + fn clone(&self) -> Self { + PatWild { + attrs: self.attrs.clone(), + underscore_token: self.underscore_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Path { + fn clone(&self) -> Self { + Path { + leading_colon: self.leading_colon.clone(), + segments: self.segments.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PathArguments { + fn clone(&self) -> Self { + match self { + PathArguments::None => PathArguments::None, + PathArguments::AngleBracketed(v0) => { + PathArguments::AngleBracketed(v0.clone()) + } + PathArguments::Parenthesized(v0) => PathArguments::Parenthesized(v0.clone()), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PathSegment { + fn clone(&self) -> Self { + PathSegment { + ident: self.ident.clone(), + arguments: self.arguments.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PredicateEq { + fn clone(&self) -> Self { + PredicateEq { + lhs_ty: self.lhs_ty.clone(), + eq_token: self.eq_token.clone(), + rhs_ty: self.rhs_ty.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PredicateLifetime { + fn clone(&self) -> Self { + PredicateLifetime { + lifetime: self.lifetime.clone(), + colon_token: self.colon_token.clone(), + bounds: self.bounds.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for PredicateType { + fn clone(&self) -> Self { + PredicateType { + lifetimes: self.lifetimes.clone(), + bounded_ty: self.bounded_ty.clone(), + colon_token: self.colon_token.clone(), + bounds: self.bounds.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for QSelf { + fn clone(&self) -> Self { + QSelf { + lt_token: self.lt_token.clone(), + ty: self.ty.clone(), + position: self.position.clone(), + as_token: self.as_token.clone(), + gt_token: self.gt_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Copy for RangeLimits {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for RangeLimits { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Receiver { + fn clone(&self) -> Self { + Receiver { + attrs: self.attrs.clone(), + reference: self.reference.clone(), + mutability: self.mutability.clone(), + self_token: self.self_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for ReturnType { + fn clone(&self) -> Self { + match self { + ReturnType::Default => ReturnType::Default, + ReturnType::Type(v0, v1) => ReturnType::Type(v0.clone(), v1.clone()), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Signature { + fn clone(&self) -> Self { + Signature { + constness: self.constness.clone(), + asyncness: self.asyncness.clone(), + unsafety: self.unsafety.clone(), + abi: self.abi.clone(), + fn_token: self.fn_token.clone(), + ident: self.ident.clone(), + generics: self.generics.clone(), + paren_token: self.paren_token.clone(), + inputs: self.inputs.clone(), + variadic: self.variadic.clone(), + output: self.output.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Stmt { + fn clone(&self) -> Self { + match self { + Stmt::Local(v0) => Stmt::Local(v0.clone()), + Stmt::Item(v0) => Stmt::Item(v0.clone()), + Stmt::Expr(v0) => Stmt::Expr(v0.clone()), + Stmt::Semi(v0, v1) => Stmt::Semi(v0.clone(), v1.clone()), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TraitBound { + fn clone(&self) -> Self { + TraitBound { + paren_token: self.paren_token.clone(), + modifier: self.modifier.clone(), + lifetimes: self.lifetimes.clone(), + path: self.path.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Copy for TraitBoundModifier {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TraitBoundModifier { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TraitItem { + fn clone(&self) -> Self { + match self { + TraitItem::Const(v0) => TraitItem::Const(v0.clone()), + TraitItem::Method(v0) => TraitItem::Method(v0.clone()), + TraitItem::Type(v0) => TraitItem::Type(v0.clone()), + TraitItem::Macro(v0) => TraitItem::Macro(v0.clone()), + TraitItem::Verbatim(v0) => TraitItem::Verbatim(v0.clone()), + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TraitItemConst { + fn clone(&self) -> Self { + TraitItemConst { + attrs: self.attrs.clone(), + const_token: self.const_token.clone(), + ident: self.ident.clone(), + colon_token: self.colon_token.clone(), + ty: self.ty.clone(), + default: self.default.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TraitItemMacro { + fn clone(&self) -> Self { + TraitItemMacro { + attrs: self.attrs.clone(), + mac: self.mac.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TraitItemMethod { + fn clone(&self) -> Self { + TraitItemMethod { + attrs: self.attrs.clone(), + sig: self.sig.clone(), + default: self.default.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TraitItemType { + fn clone(&self) -> Self { + TraitItemType { + attrs: self.attrs.clone(), + type_token: self.type_token.clone(), + ident: self.ident.clone(), + generics: self.generics.clone(), + colon_token: self.colon_token.clone(), + bounds: self.bounds.clone(), + default: self.default.clone(), + semi_token: self.semi_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Type { + fn clone(&self) -> Self { + match self { + Type::Array(v0) => Type::Array(v0.clone()), + Type::BareFn(v0) => Type::BareFn(v0.clone()), + Type::Group(v0) => Type::Group(v0.clone()), + Type::ImplTrait(v0) => Type::ImplTrait(v0.clone()), + Type::Infer(v0) => Type::Infer(v0.clone()), + Type::Macro(v0) => Type::Macro(v0.clone()), + Type::Never(v0) => Type::Never(v0.clone()), + Type::Paren(v0) => Type::Paren(v0.clone()), + Type::Path(v0) => Type::Path(v0.clone()), + Type::Ptr(v0) => Type::Ptr(v0.clone()), + Type::Reference(v0) => Type::Reference(v0.clone()), + Type::Slice(v0) => Type::Slice(v0.clone()), + Type::TraitObject(v0) => Type::TraitObject(v0.clone()), + Type::Tuple(v0) => Type::Tuple(v0.clone()), + Type::Verbatim(v0) => Type::Verbatim(v0.clone()), + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeArray { + fn clone(&self) -> Self { + TypeArray { + bracket_token: self.bracket_token.clone(), + elem: self.elem.clone(), + semi_token: self.semi_token.clone(), + len: self.len.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeBareFn { + fn clone(&self) -> Self { + TypeBareFn { + lifetimes: self.lifetimes.clone(), + unsafety: self.unsafety.clone(), + abi: self.abi.clone(), + fn_token: self.fn_token.clone(), + paren_token: self.paren_token.clone(), + inputs: self.inputs.clone(), + variadic: self.variadic.clone(), + output: self.output.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeGroup { + fn clone(&self) -> Self { + TypeGroup { + group_token: self.group_token.clone(), + elem: self.elem.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeImplTrait { + fn clone(&self) -> Self { + TypeImplTrait { + impl_token: self.impl_token.clone(), + bounds: self.bounds.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeInfer { + fn clone(&self) -> Self { + TypeInfer { + underscore_token: self.underscore_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeMacro { + fn clone(&self) -> Self { + TypeMacro { mac: self.mac.clone() } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeNever { + fn clone(&self) -> Self { + TypeNever { + bang_token: self.bang_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeParam { + fn clone(&self) -> Self { + TypeParam { + attrs: self.attrs.clone(), + ident: self.ident.clone(), + colon_token: self.colon_token.clone(), + bounds: self.bounds.clone(), + eq_token: self.eq_token.clone(), + default: self.default.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeParamBound { + fn clone(&self) -> Self { + match self { + TypeParamBound::Trait(v0) => TypeParamBound::Trait(v0.clone()), + TypeParamBound::Lifetime(v0) => TypeParamBound::Lifetime(v0.clone()), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeParen { + fn clone(&self) -> Self { + TypeParen { + paren_token: self.paren_token.clone(), + elem: self.elem.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypePath { + fn clone(&self) -> Self { + TypePath { + qself: self.qself.clone(), + path: self.path.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypePtr { + fn clone(&self) -> Self { + TypePtr { + star_token: self.star_token.clone(), + const_token: self.const_token.clone(), + mutability: self.mutability.clone(), + elem: self.elem.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeReference { + fn clone(&self) -> Self { + TypeReference { + and_token: self.and_token.clone(), + lifetime: self.lifetime.clone(), + mutability: self.mutability.clone(), + elem: self.elem.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeSlice { + fn clone(&self) -> Self { + TypeSlice { + bracket_token: self.bracket_token.clone(), + elem: self.elem.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeTraitObject { + fn clone(&self) -> Self { + TypeTraitObject { + dyn_token: self.dyn_token.clone(), + bounds: self.bounds.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for TypeTuple { + fn clone(&self) -> Self { + TypeTuple { + paren_token: self.paren_token.clone(), + elems: self.elems.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Copy for UnOp {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for UnOp { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for UseGlob { + fn clone(&self) -> Self { + UseGlob { + star_token: self.star_token.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for UseGroup { + fn clone(&self) -> Self { + UseGroup { + brace_token: self.brace_token.clone(), + items: self.items.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for UseName { + fn clone(&self) -> Self { + UseName { + ident: self.ident.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for UsePath { + fn clone(&self) -> Self { + UsePath { + ident: self.ident.clone(), + colon2_token: self.colon2_token.clone(), + tree: self.tree.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for UseRename { + fn clone(&self) -> Self { + UseRename { + ident: self.ident.clone(), + as_token: self.as_token.clone(), + rename: self.rename.clone(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for UseTree { + fn clone(&self) -> Self { + match self { + UseTree::Path(v0) => UseTree::Path(v0.clone()), + UseTree::Name(v0) => UseTree::Name(v0.clone()), + UseTree::Rename(v0) => UseTree::Rename(v0.clone()), + UseTree::Glob(v0) => UseTree::Glob(v0.clone()), + UseTree::Group(v0) => UseTree::Group(v0.clone()), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Variadic { + fn clone(&self) -> Self { + Variadic { + attrs: self.attrs.clone(), + dots: self.dots.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Variant { + fn clone(&self) -> Self { + Variant { + attrs: self.attrs.clone(), + ident: self.ident.clone(), + fields: self.fields.clone(), + discriminant: self.discriminant.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for VisCrate { + fn clone(&self) -> Self { + VisCrate { + crate_token: self.crate_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for VisPublic { + fn clone(&self) -> Self { + VisPublic { + pub_token: self.pub_token.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for VisRestricted { + fn clone(&self) -> Self { + VisRestricted { + pub_token: self.pub_token.clone(), + paren_token: self.paren_token.clone(), + in_token: self.in_token.clone(), + path: self.path.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for Visibility { + fn clone(&self) -> Self { + match self { + Visibility::Public(v0) => Visibility::Public(v0.clone()), + Visibility::Crate(v0) => Visibility::Crate(v0.clone()), + Visibility::Restricted(v0) => Visibility::Restricted(v0.clone()), + Visibility::Inherited => Visibility::Inherited, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for WhereClause { + fn clone(&self) -> Self { + WhereClause { + where_token: self.where_token.clone(), + predicates: self.predicates.clone(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))] +impl Clone for WherePredicate { + fn clone(&self) -> Self { + match self { + WherePredicate::Type(v0) => WherePredicate::Type(v0.clone()), + WherePredicate::Lifetime(v0) => WherePredicate::Lifetime(v0.clone()), + WherePredicate::Eq(v0) => WherePredicate::Eq(v0.clone()), + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/debug.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/debug.rs new file mode 100644 index 0000000000000000000000000000000000000000..a1f0afa790c05c9d440e72d42beb2a1cc4ac3690 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/debug.rs @@ -0,0 +1,3042 @@ +// This file is @generated by syn-internal-codegen. +// It is not intended for manual editing. + +use crate::*; +use std::fmt::{self, Debug}; +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Abi { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Abi"); + formatter.field("extern_token", &self.extern_token); + formatter.field("name", &self.name); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for AngleBracketedGenericArguments { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("AngleBracketedGenericArguments"); + formatter.field("colon2_token", &self.colon2_token); + formatter.field("lt_token", &self.lt_token); + formatter.field("args", &self.args); + formatter.field("gt_token", &self.gt_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Arm { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Arm"); + formatter.field("attrs", &self.attrs); + formatter.field("pat", &self.pat); + formatter.field("guard", &self.guard); + formatter.field("fat_arrow_token", &self.fat_arrow_token); + formatter.field("body", &self.body); + formatter.field("comma", &self.comma); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for AttrStyle { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + AttrStyle::Outer => formatter.write_str("Outer"), + AttrStyle::Inner(v0) => { + let mut formatter = formatter.debug_tuple("Inner"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Attribute { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Attribute"); + formatter.field("pound_token", &self.pound_token); + formatter.field("style", &self.style); + formatter.field("bracket_token", &self.bracket_token); + formatter.field("path", &self.path); + formatter.field("tokens", &self.tokens); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for BareFnArg { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("BareFnArg"); + formatter.field("attrs", &self.attrs); + formatter.field("name", &self.name); + formatter.field("ty", &self.ty); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for BinOp { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + BinOp::Add(v0) => { + let mut formatter = formatter.debug_tuple("Add"); + formatter.field(v0); + formatter.finish() + } + BinOp::Sub(v0) => { + let mut formatter = formatter.debug_tuple("Sub"); + formatter.field(v0); + formatter.finish() + } + BinOp::Mul(v0) => { + let mut formatter = formatter.debug_tuple("Mul"); + formatter.field(v0); + formatter.finish() + } + BinOp::Div(v0) => { + let mut formatter = formatter.debug_tuple("Div"); + formatter.field(v0); + formatter.finish() + } + BinOp::Rem(v0) => { + let mut formatter = formatter.debug_tuple("Rem"); + formatter.field(v0); + formatter.finish() + } + BinOp::And(v0) => { + let mut formatter = formatter.debug_tuple("And"); + formatter.field(v0); + formatter.finish() + } + BinOp::Or(v0) => { + let mut formatter = formatter.debug_tuple("Or"); + formatter.field(v0); + formatter.finish() + } + BinOp::BitXor(v0) => { + let mut formatter = formatter.debug_tuple("BitXor"); + formatter.field(v0); + formatter.finish() + } + BinOp::BitAnd(v0) => { + let mut formatter = formatter.debug_tuple("BitAnd"); + formatter.field(v0); + formatter.finish() + } + BinOp::BitOr(v0) => { + let mut formatter = formatter.debug_tuple("BitOr"); + formatter.field(v0); + formatter.finish() + } + BinOp::Shl(v0) => { + let mut formatter = formatter.debug_tuple("Shl"); + formatter.field(v0); + formatter.finish() + } + BinOp::Shr(v0) => { + let mut formatter = formatter.debug_tuple("Shr"); + formatter.field(v0); + formatter.finish() + } + BinOp::Eq(v0) => { + let mut formatter = formatter.debug_tuple("Eq"); + formatter.field(v0); + formatter.finish() + } + BinOp::Lt(v0) => { + let mut formatter = formatter.debug_tuple("Lt"); + formatter.field(v0); + formatter.finish() + } + BinOp::Le(v0) => { + let mut formatter = formatter.debug_tuple("Le"); + formatter.field(v0); + formatter.finish() + } + BinOp::Ne(v0) => { + let mut formatter = formatter.debug_tuple("Ne"); + formatter.field(v0); + formatter.finish() + } + BinOp::Ge(v0) => { + let mut formatter = formatter.debug_tuple("Ge"); + formatter.field(v0); + formatter.finish() + } + BinOp::Gt(v0) => { + let mut formatter = formatter.debug_tuple("Gt"); + formatter.field(v0); + formatter.finish() + } + BinOp::AddEq(v0) => { + let mut formatter = formatter.debug_tuple("AddEq"); + formatter.field(v0); + formatter.finish() + } + BinOp::SubEq(v0) => { + let mut formatter = formatter.debug_tuple("SubEq"); + formatter.field(v0); + formatter.finish() + } + BinOp::MulEq(v0) => { + let mut formatter = formatter.debug_tuple("MulEq"); + formatter.field(v0); + formatter.finish() + } + BinOp::DivEq(v0) => { + let mut formatter = formatter.debug_tuple("DivEq"); + formatter.field(v0); + formatter.finish() + } + BinOp::RemEq(v0) => { + let mut formatter = formatter.debug_tuple("RemEq"); + formatter.field(v0); + formatter.finish() + } + BinOp::BitXorEq(v0) => { + let mut formatter = formatter.debug_tuple("BitXorEq"); + formatter.field(v0); + formatter.finish() + } + BinOp::BitAndEq(v0) => { + let mut formatter = formatter.debug_tuple("BitAndEq"); + formatter.field(v0); + formatter.finish() + } + BinOp::BitOrEq(v0) => { + let mut formatter = formatter.debug_tuple("BitOrEq"); + formatter.field(v0); + formatter.finish() + } + BinOp::ShlEq(v0) => { + let mut formatter = formatter.debug_tuple("ShlEq"); + formatter.field(v0); + formatter.finish() + } + BinOp::ShrEq(v0) => { + let mut formatter = formatter.debug_tuple("ShrEq"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Binding { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Binding"); + formatter.field("ident", &self.ident); + formatter.field("eq_token", &self.eq_token); + formatter.field("ty", &self.ty); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Block { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Block"); + formatter.field("brace_token", &self.brace_token); + formatter.field("stmts", &self.stmts); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for BoundLifetimes { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("BoundLifetimes"); + formatter.field("for_token", &self.for_token); + formatter.field("lt_token", &self.lt_token); + formatter.field("lifetimes", &self.lifetimes); + formatter.field("gt_token", &self.gt_token); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ConstParam { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ConstParam"); + formatter.field("attrs", &self.attrs); + formatter.field("const_token", &self.const_token); + formatter.field("ident", &self.ident); + formatter.field("colon_token", &self.colon_token); + formatter.field("ty", &self.ty); + formatter.field("eq_token", &self.eq_token); + formatter.field("default", &self.default); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Constraint { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Constraint"); + formatter.field("ident", &self.ident); + formatter.field("colon_token", &self.colon_token); + formatter.field("bounds", &self.bounds); + formatter.finish() + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Data { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + Data::Struct(v0) => { + let mut formatter = formatter.debug_tuple("Struct"); + formatter.field(v0); + formatter.finish() + } + Data::Enum(v0) => { + let mut formatter = formatter.debug_tuple("Enum"); + formatter.field(v0); + formatter.finish() + } + Data::Union(v0) => { + let mut formatter = formatter.debug_tuple("Union"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for DataEnum { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("DataEnum"); + formatter.field("enum_token", &self.enum_token); + formatter.field("brace_token", &self.brace_token); + formatter.field("variants", &self.variants); + formatter.finish() + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for DataStruct { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("DataStruct"); + formatter.field("struct_token", &self.struct_token); + formatter.field("fields", &self.fields); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for DataUnion { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("DataUnion"); + formatter.field("union_token", &self.union_token); + formatter.field("fields", &self.fields); + formatter.finish() + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for DeriveInput { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("DeriveInput"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("ident", &self.ident); + formatter.field("generics", &self.generics); + formatter.field("data", &self.data); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Expr { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + #[cfg(feature = "full")] + Expr::Array(v0) => { + let mut formatter = formatter.debug_tuple("Array"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Assign(v0) => { + let mut formatter = formatter.debug_tuple("Assign"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::AssignOp(v0) => { + let mut formatter = formatter.debug_tuple("AssignOp"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Async(v0) => { + let mut formatter = formatter.debug_tuple("Async"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Await(v0) => { + let mut formatter = formatter.debug_tuple("Await"); + formatter.field(v0); + formatter.finish() + } + Expr::Binary(v0) => { + let mut formatter = formatter.debug_tuple("Binary"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Block(v0) => { + let mut formatter = formatter.debug_tuple("Block"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Box(v0) => { + let mut formatter = formatter.debug_tuple("Box"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Break(v0) => { + let mut formatter = formatter.debug_tuple("Break"); + formatter.field(v0); + formatter.finish() + } + Expr::Call(v0) => { + let mut formatter = formatter.debug_tuple("Call"); + formatter.field(v0); + formatter.finish() + } + Expr::Cast(v0) => { + let mut formatter = formatter.debug_tuple("Cast"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Closure(v0) => { + let mut formatter = formatter.debug_tuple("Closure"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Continue(v0) => { + let mut formatter = formatter.debug_tuple("Continue"); + formatter.field(v0); + formatter.finish() + } + Expr::Field(v0) => { + let mut formatter = formatter.debug_tuple("Field"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::ForLoop(v0) => { + let mut formatter = formatter.debug_tuple("ForLoop"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Group(v0) => { + let mut formatter = formatter.debug_tuple("Group"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::If(v0) => { + let mut formatter = formatter.debug_tuple("If"); + formatter.field(v0); + formatter.finish() + } + Expr::Index(v0) => { + let mut formatter = formatter.debug_tuple("Index"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Let(v0) => { + let mut formatter = formatter.debug_tuple("Let"); + formatter.field(v0); + formatter.finish() + } + Expr::Lit(v0) => { + let mut formatter = formatter.debug_tuple("Lit"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Loop(v0) => { + let mut formatter = formatter.debug_tuple("Loop"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Macro(v0) => { + let mut formatter = formatter.debug_tuple("Macro"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Match(v0) => { + let mut formatter = formatter.debug_tuple("Match"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::MethodCall(v0) => { + let mut formatter = formatter.debug_tuple("MethodCall"); + formatter.field(v0); + formatter.finish() + } + Expr::Paren(v0) => { + let mut formatter = formatter.debug_tuple("Paren"); + formatter.field(v0); + formatter.finish() + } + Expr::Path(v0) => { + let mut formatter = formatter.debug_tuple("Path"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Range(v0) => { + let mut formatter = formatter.debug_tuple("Range"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Reference(v0) => { + let mut formatter = formatter.debug_tuple("Reference"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Repeat(v0) => { + let mut formatter = formatter.debug_tuple("Repeat"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Return(v0) => { + let mut formatter = formatter.debug_tuple("Return"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Struct(v0) => { + let mut formatter = formatter.debug_tuple("Struct"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Try(v0) => { + let mut formatter = formatter.debug_tuple("Try"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::TryBlock(v0) => { + let mut formatter = formatter.debug_tuple("TryBlock"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Tuple(v0) => { + let mut formatter = formatter.debug_tuple("Tuple"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Type(v0) => { + let mut formatter = formatter.debug_tuple("Type"); + formatter.field(v0); + formatter.finish() + } + Expr::Unary(v0) => { + let mut formatter = formatter.debug_tuple("Unary"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Unsafe(v0) => { + let mut formatter = formatter.debug_tuple("Unsafe"); + formatter.field(v0); + formatter.finish() + } + Expr::Verbatim(v0) => { + let mut formatter = formatter.debug_tuple("Verbatim"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::While(v0) => { + let mut formatter = formatter.debug_tuple("While"); + formatter.field(v0); + formatter.finish() + } + #[cfg(feature = "full")] + Expr::Yield(v0) => { + let mut formatter = formatter.debug_tuple("Yield"); + formatter.field(v0); + formatter.finish() + } + #[cfg(any(syn_no_non_exhaustive, not(feature = "full")))] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprArray { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprArray"); + formatter.field("attrs", &self.attrs); + formatter.field("bracket_token", &self.bracket_token); + formatter.field("elems", &self.elems); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprAssign { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprAssign"); + formatter.field("attrs", &self.attrs); + formatter.field("left", &self.left); + formatter.field("eq_token", &self.eq_token); + formatter.field("right", &self.right); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprAssignOp { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprAssignOp"); + formatter.field("attrs", &self.attrs); + formatter.field("left", &self.left); + formatter.field("op", &self.op); + formatter.field("right", &self.right); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprAsync { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprAsync"); + formatter.field("attrs", &self.attrs); + formatter.field("async_token", &self.async_token); + formatter.field("capture", &self.capture); + formatter.field("block", &self.block); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprAwait { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprAwait"); + formatter.field("attrs", &self.attrs); + formatter.field("base", &self.base); + formatter.field("dot_token", &self.dot_token); + formatter.field("await_token", &self.await_token); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprBinary { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprBinary"); + formatter.field("attrs", &self.attrs); + formatter.field("left", &self.left); + formatter.field("op", &self.op); + formatter.field("right", &self.right); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprBlock { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprBlock"); + formatter.field("attrs", &self.attrs); + formatter.field("label", &self.label); + formatter.field("block", &self.block); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprBox { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprBox"); + formatter.field("attrs", &self.attrs); + formatter.field("box_token", &self.box_token); + formatter.field("expr", &self.expr); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprBreak { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprBreak"); + formatter.field("attrs", &self.attrs); + formatter.field("break_token", &self.break_token); + formatter.field("label", &self.label); + formatter.field("expr", &self.expr); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprCall { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprCall"); + formatter.field("attrs", &self.attrs); + formatter.field("func", &self.func); + formatter.field("paren_token", &self.paren_token); + formatter.field("args", &self.args); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprCast { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprCast"); + formatter.field("attrs", &self.attrs); + formatter.field("expr", &self.expr); + formatter.field("as_token", &self.as_token); + formatter.field("ty", &self.ty); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprClosure { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprClosure"); + formatter.field("attrs", &self.attrs); + formatter.field("movability", &self.movability); + formatter.field("asyncness", &self.asyncness); + formatter.field("capture", &self.capture); + formatter.field("or1_token", &self.or1_token); + formatter.field("inputs", &self.inputs); + formatter.field("or2_token", &self.or2_token); + formatter.field("output", &self.output); + formatter.field("body", &self.body); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprContinue { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprContinue"); + formatter.field("attrs", &self.attrs); + formatter.field("continue_token", &self.continue_token); + formatter.field("label", &self.label); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprField { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprField"); + formatter.field("attrs", &self.attrs); + formatter.field("base", &self.base); + formatter.field("dot_token", &self.dot_token); + formatter.field("member", &self.member); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprForLoop { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprForLoop"); + formatter.field("attrs", &self.attrs); + formatter.field("label", &self.label); + formatter.field("for_token", &self.for_token); + formatter.field("pat", &self.pat); + formatter.field("in_token", &self.in_token); + formatter.field("expr", &self.expr); + formatter.field("body", &self.body); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprGroup { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprGroup"); + formatter.field("attrs", &self.attrs); + formatter.field("group_token", &self.group_token); + formatter.field("expr", &self.expr); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprIf { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprIf"); + formatter.field("attrs", &self.attrs); + formatter.field("if_token", &self.if_token); + formatter.field("cond", &self.cond); + formatter.field("then_branch", &self.then_branch); + formatter.field("else_branch", &self.else_branch); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprIndex { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprIndex"); + formatter.field("attrs", &self.attrs); + formatter.field("expr", &self.expr); + formatter.field("bracket_token", &self.bracket_token); + formatter.field("index", &self.index); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprLet { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprLet"); + formatter.field("attrs", &self.attrs); + formatter.field("let_token", &self.let_token); + formatter.field("pat", &self.pat); + formatter.field("eq_token", &self.eq_token); + formatter.field("expr", &self.expr); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprLit { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprLit"); + formatter.field("attrs", &self.attrs); + formatter.field("lit", &self.lit); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprLoop { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprLoop"); + formatter.field("attrs", &self.attrs); + formatter.field("label", &self.label); + formatter.field("loop_token", &self.loop_token); + formatter.field("body", &self.body); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprMacro { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprMacro"); + formatter.field("attrs", &self.attrs); + formatter.field("mac", &self.mac); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprMatch { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprMatch"); + formatter.field("attrs", &self.attrs); + formatter.field("match_token", &self.match_token); + formatter.field("expr", &self.expr); + formatter.field("brace_token", &self.brace_token); + formatter.field("arms", &self.arms); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprMethodCall { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprMethodCall"); + formatter.field("attrs", &self.attrs); + formatter.field("receiver", &self.receiver); + formatter.field("dot_token", &self.dot_token); + formatter.field("method", &self.method); + formatter.field("turbofish", &self.turbofish); + formatter.field("paren_token", &self.paren_token); + formatter.field("args", &self.args); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprParen { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprParen"); + formatter.field("attrs", &self.attrs); + formatter.field("paren_token", &self.paren_token); + formatter.field("expr", &self.expr); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprPath { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprPath"); + formatter.field("attrs", &self.attrs); + formatter.field("qself", &self.qself); + formatter.field("path", &self.path); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprRange { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprRange"); + formatter.field("attrs", &self.attrs); + formatter.field("from", &self.from); + formatter.field("limits", &self.limits); + formatter.field("to", &self.to); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprReference { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprReference"); + formatter.field("attrs", &self.attrs); + formatter.field("and_token", &self.and_token); + formatter.field("raw", &self.raw); + formatter.field("mutability", &self.mutability); + formatter.field("expr", &self.expr); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprRepeat { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprRepeat"); + formatter.field("attrs", &self.attrs); + formatter.field("bracket_token", &self.bracket_token); + formatter.field("expr", &self.expr); + formatter.field("semi_token", &self.semi_token); + formatter.field("len", &self.len); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprReturn { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprReturn"); + formatter.field("attrs", &self.attrs); + formatter.field("return_token", &self.return_token); + formatter.field("expr", &self.expr); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprStruct { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprStruct"); + formatter.field("attrs", &self.attrs); + formatter.field("path", &self.path); + formatter.field("brace_token", &self.brace_token); + formatter.field("fields", &self.fields); + formatter.field("dot2_token", &self.dot2_token); + formatter.field("rest", &self.rest); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprTry { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprTry"); + formatter.field("attrs", &self.attrs); + formatter.field("expr", &self.expr); + formatter.field("question_token", &self.question_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprTryBlock { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprTryBlock"); + formatter.field("attrs", &self.attrs); + formatter.field("try_token", &self.try_token); + formatter.field("block", &self.block); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprTuple { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprTuple"); + formatter.field("attrs", &self.attrs); + formatter.field("paren_token", &self.paren_token); + formatter.field("elems", &self.elems); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprType { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprType"); + formatter.field("attrs", &self.attrs); + formatter.field("expr", &self.expr); + formatter.field("colon_token", &self.colon_token); + formatter.field("ty", &self.ty); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprUnary { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprUnary"); + formatter.field("attrs", &self.attrs); + formatter.field("op", &self.op); + formatter.field("expr", &self.expr); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprUnsafe { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprUnsafe"); + formatter.field("attrs", &self.attrs); + formatter.field("unsafe_token", &self.unsafe_token); + formatter.field("block", &self.block); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprWhile { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprWhile"); + formatter.field("attrs", &self.attrs); + formatter.field("label", &self.label); + formatter.field("while_token", &self.while_token); + formatter.field("cond", &self.cond); + formatter.field("body", &self.body); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ExprYield { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ExprYield"); + formatter.field("attrs", &self.attrs); + formatter.field("yield_token", &self.yield_token); + formatter.field("expr", &self.expr); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Field { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Field"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("ident", &self.ident); + formatter.field("colon_token", &self.colon_token); + formatter.field("ty", &self.ty); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for FieldPat { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("FieldPat"); + formatter.field("attrs", &self.attrs); + formatter.field("member", &self.member); + formatter.field("colon_token", &self.colon_token); + formatter.field("pat", &self.pat); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for FieldValue { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("FieldValue"); + formatter.field("attrs", &self.attrs); + formatter.field("member", &self.member); + formatter.field("colon_token", &self.colon_token); + formatter.field("expr", &self.expr); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Fields { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + Fields::Named(v0) => { + let mut formatter = formatter.debug_tuple("Named"); + formatter.field(v0); + formatter.finish() + } + Fields::Unnamed(v0) => { + let mut formatter = formatter.debug_tuple("Unnamed"); + formatter.field(v0); + formatter.finish() + } + Fields::Unit => formatter.write_str("Unit"), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for FieldsNamed { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("FieldsNamed"); + formatter.field("brace_token", &self.brace_token); + formatter.field("named", &self.named); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for FieldsUnnamed { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("FieldsUnnamed"); + formatter.field("paren_token", &self.paren_token); + formatter.field("unnamed", &self.unnamed); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for File { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("File"); + formatter.field("shebang", &self.shebang); + formatter.field("attrs", &self.attrs); + formatter.field("items", &self.items); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for FnArg { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + FnArg::Receiver(v0) => { + let mut formatter = formatter.debug_tuple("Receiver"); + formatter.field(v0); + formatter.finish() + } + FnArg::Typed(v0) => { + let mut formatter = formatter.debug_tuple("Typed"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ForeignItem { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + ForeignItem::Fn(v0) => { + let mut formatter = formatter.debug_tuple("Fn"); + formatter.field(v0); + formatter.finish() + } + ForeignItem::Static(v0) => { + let mut formatter = formatter.debug_tuple("Static"); + formatter.field(v0); + formatter.finish() + } + ForeignItem::Type(v0) => { + let mut formatter = formatter.debug_tuple("Type"); + formatter.field(v0); + formatter.finish() + } + ForeignItem::Macro(v0) => { + let mut formatter = formatter.debug_tuple("Macro"); + formatter.field(v0); + formatter.finish() + } + ForeignItem::Verbatim(v0) => { + let mut formatter = formatter.debug_tuple("Verbatim"); + formatter.field(v0); + formatter.finish() + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ForeignItemFn { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ForeignItemFn"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("sig", &self.sig); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ForeignItemMacro { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ForeignItemMacro"); + formatter.field("attrs", &self.attrs); + formatter.field("mac", &self.mac); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ForeignItemStatic { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ForeignItemStatic"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("static_token", &self.static_token); + formatter.field("mutability", &self.mutability); + formatter.field("ident", &self.ident); + formatter.field("colon_token", &self.colon_token); + formatter.field("ty", &self.ty); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ForeignItemType { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ForeignItemType"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("type_token", &self.type_token); + formatter.field("ident", &self.ident); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for GenericArgument { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + GenericArgument::Lifetime(v0) => { + let mut formatter = formatter.debug_tuple("Lifetime"); + formatter.field(v0); + formatter.finish() + } + GenericArgument::Type(v0) => { + let mut formatter = formatter.debug_tuple("Type"); + formatter.field(v0); + formatter.finish() + } + GenericArgument::Const(v0) => { + let mut formatter = formatter.debug_tuple("Const"); + formatter.field(v0); + formatter.finish() + } + GenericArgument::Binding(v0) => { + let mut formatter = formatter.debug_tuple("Binding"); + formatter.field(v0); + formatter.finish() + } + GenericArgument::Constraint(v0) => { + let mut formatter = formatter.debug_tuple("Constraint"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for GenericMethodArgument { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + GenericMethodArgument::Type(v0) => { + let mut formatter = formatter.debug_tuple("Type"); + formatter.field(v0); + formatter.finish() + } + GenericMethodArgument::Const(v0) => { + let mut formatter = formatter.debug_tuple("Const"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for GenericParam { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + GenericParam::Type(v0) => { + let mut formatter = formatter.debug_tuple("Type"); + formatter.field(v0); + formatter.finish() + } + GenericParam::Lifetime(v0) => { + let mut formatter = formatter.debug_tuple("Lifetime"); + formatter.field(v0); + formatter.finish() + } + GenericParam::Const(v0) => { + let mut formatter = formatter.debug_tuple("Const"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Generics { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Generics"); + formatter.field("lt_token", &self.lt_token); + formatter.field("params", &self.params); + formatter.field("gt_token", &self.gt_token); + formatter.field("where_clause", &self.where_clause); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ImplItem { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + ImplItem::Const(v0) => { + let mut formatter = formatter.debug_tuple("Const"); + formatter.field(v0); + formatter.finish() + } + ImplItem::Method(v0) => { + let mut formatter = formatter.debug_tuple("Method"); + formatter.field(v0); + formatter.finish() + } + ImplItem::Type(v0) => { + let mut formatter = formatter.debug_tuple("Type"); + formatter.field(v0); + formatter.finish() + } + ImplItem::Macro(v0) => { + let mut formatter = formatter.debug_tuple("Macro"); + formatter.field(v0); + formatter.finish() + } + ImplItem::Verbatim(v0) => { + let mut formatter = formatter.debug_tuple("Verbatim"); + formatter.field(v0); + formatter.finish() + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ImplItemConst { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ImplItemConst"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("defaultness", &self.defaultness); + formatter.field("const_token", &self.const_token); + formatter.field("ident", &self.ident); + formatter.field("colon_token", &self.colon_token); + formatter.field("ty", &self.ty); + formatter.field("eq_token", &self.eq_token); + formatter.field("expr", &self.expr); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ImplItemMacro { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ImplItemMacro"); + formatter.field("attrs", &self.attrs); + formatter.field("mac", &self.mac); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ImplItemMethod { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ImplItemMethod"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("defaultness", &self.defaultness); + formatter.field("sig", &self.sig); + formatter.field("block", &self.block); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ImplItemType { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ImplItemType"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("defaultness", &self.defaultness); + formatter.field("type_token", &self.type_token); + formatter.field("ident", &self.ident); + formatter.field("generics", &self.generics); + formatter.field("eq_token", &self.eq_token); + formatter.field("ty", &self.ty); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Index { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Index"); + formatter.field("index", &self.index); + formatter.field("span", &self.span); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Item { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + Item::Const(v0) => { + let mut formatter = formatter.debug_tuple("Const"); + formatter.field(v0); + formatter.finish() + } + Item::Enum(v0) => { + let mut formatter = formatter.debug_tuple("Enum"); + formatter.field(v0); + formatter.finish() + } + Item::ExternCrate(v0) => { + let mut formatter = formatter.debug_tuple("ExternCrate"); + formatter.field(v0); + formatter.finish() + } + Item::Fn(v0) => { + let mut formatter = formatter.debug_tuple("Fn"); + formatter.field(v0); + formatter.finish() + } + Item::ForeignMod(v0) => { + let mut formatter = formatter.debug_tuple("ForeignMod"); + formatter.field(v0); + formatter.finish() + } + Item::Impl(v0) => { + let mut formatter = formatter.debug_tuple("Impl"); + formatter.field(v0); + formatter.finish() + } + Item::Macro(v0) => { + let mut formatter = formatter.debug_tuple("Macro"); + formatter.field(v0); + formatter.finish() + } + Item::Macro2(v0) => { + let mut formatter = formatter.debug_tuple("Macro2"); + formatter.field(v0); + formatter.finish() + } + Item::Mod(v0) => { + let mut formatter = formatter.debug_tuple("Mod"); + formatter.field(v0); + formatter.finish() + } + Item::Static(v0) => { + let mut formatter = formatter.debug_tuple("Static"); + formatter.field(v0); + formatter.finish() + } + Item::Struct(v0) => { + let mut formatter = formatter.debug_tuple("Struct"); + formatter.field(v0); + formatter.finish() + } + Item::Trait(v0) => { + let mut formatter = formatter.debug_tuple("Trait"); + formatter.field(v0); + formatter.finish() + } + Item::TraitAlias(v0) => { + let mut formatter = formatter.debug_tuple("TraitAlias"); + formatter.field(v0); + formatter.finish() + } + Item::Type(v0) => { + let mut formatter = formatter.debug_tuple("Type"); + formatter.field(v0); + formatter.finish() + } + Item::Union(v0) => { + let mut formatter = formatter.debug_tuple("Union"); + formatter.field(v0); + formatter.finish() + } + Item::Use(v0) => { + let mut formatter = formatter.debug_tuple("Use"); + formatter.field(v0); + formatter.finish() + } + Item::Verbatim(v0) => { + let mut formatter = formatter.debug_tuple("Verbatim"); + formatter.field(v0); + formatter.finish() + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemConst { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemConst"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("const_token", &self.const_token); + formatter.field("ident", &self.ident); + formatter.field("colon_token", &self.colon_token); + formatter.field("ty", &self.ty); + formatter.field("eq_token", &self.eq_token); + formatter.field("expr", &self.expr); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemEnum { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemEnum"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("enum_token", &self.enum_token); + formatter.field("ident", &self.ident); + formatter.field("generics", &self.generics); + formatter.field("brace_token", &self.brace_token); + formatter.field("variants", &self.variants); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemExternCrate { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemExternCrate"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("extern_token", &self.extern_token); + formatter.field("crate_token", &self.crate_token); + formatter.field("ident", &self.ident); + formatter.field("rename", &self.rename); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemFn { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemFn"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("sig", &self.sig); + formatter.field("block", &self.block); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemForeignMod { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemForeignMod"); + formatter.field("attrs", &self.attrs); + formatter.field("abi", &self.abi); + formatter.field("brace_token", &self.brace_token); + formatter.field("items", &self.items); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemImpl { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemImpl"); + formatter.field("attrs", &self.attrs); + formatter.field("defaultness", &self.defaultness); + formatter.field("unsafety", &self.unsafety); + formatter.field("impl_token", &self.impl_token); + formatter.field("generics", &self.generics); + formatter.field("trait_", &self.trait_); + formatter.field("self_ty", &self.self_ty); + formatter.field("brace_token", &self.brace_token); + formatter.field("items", &self.items); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemMacro { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemMacro"); + formatter.field("attrs", &self.attrs); + formatter.field("ident", &self.ident); + formatter.field("mac", &self.mac); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemMacro2 { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemMacro2"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("macro_token", &self.macro_token); + formatter.field("ident", &self.ident); + formatter.field("rules", &self.rules); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemMod { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemMod"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("mod_token", &self.mod_token); + formatter.field("ident", &self.ident); + formatter.field("content", &self.content); + formatter.field("semi", &self.semi); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemStatic { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemStatic"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("static_token", &self.static_token); + formatter.field("mutability", &self.mutability); + formatter.field("ident", &self.ident); + formatter.field("colon_token", &self.colon_token); + formatter.field("ty", &self.ty); + formatter.field("eq_token", &self.eq_token); + formatter.field("expr", &self.expr); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemStruct { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemStruct"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("struct_token", &self.struct_token); + formatter.field("ident", &self.ident); + formatter.field("generics", &self.generics); + formatter.field("fields", &self.fields); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemTrait { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemTrait"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("unsafety", &self.unsafety); + formatter.field("auto_token", &self.auto_token); + formatter.field("trait_token", &self.trait_token); + formatter.field("ident", &self.ident); + formatter.field("generics", &self.generics); + formatter.field("colon_token", &self.colon_token); + formatter.field("supertraits", &self.supertraits); + formatter.field("brace_token", &self.brace_token); + formatter.field("items", &self.items); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemTraitAlias { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemTraitAlias"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("trait_token", &self.trait_token); + formatter.field("ident", &self.ident); + formatter.field("generics", &self.generics); + formatter.field("eq_token", &self.eq_token); + formatter.field("bounds", &self.bounds); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemType { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemType"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("type_token", &self.type_token); + formatter.field("ident", &self.ident); + formatter.field("generics", &self.generics); + formatter.field("eq_token", &self.eq_token); + formatter.field("ty", &self.ty); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemUnion { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemUnion"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("union_token", &self.union_token); + formatter.field("ident", &self.ident); + formatter.field("generics", &self.generics); + formatter.field("fields", &self.fields); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ItemUse { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ItemUse"); + formatter.field("attrs", &self.attrs); + formatter.field("vis", &self.vis); + formatter.field("use_token", &self.use_token); + formatter.field("leading_colon", &self.leading_colon); + formatter.field("tree", &self.tree); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Label { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Label"); + formatter.field("name", &self.name); + formatter.field("colon_token", &self.colon_token); + formatter.finish() + } +} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Lifetime { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Lifetime"); + formatter.field("apostrophe", &self.apostrophe); + formatter.field("ident", &self.ident); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for LifetimeDef { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("LifetimeDef"); + formatter.field("attrs", &self.attrs); + formatter.field("lifetime", &self.lifetime); + formatter.field("colon_token", &self.colon_token); + formatter.field("bounds", &self.bounds); + formatter.finish() + } +} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Lit { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + Lit::Str(v0) => { + let mut formatter = formatter.debug_tuple("Str"); + formatter.field(v0); + formatter.finish() + } + Lit::ByteStr(v0) => { + let mut formatter = formatter.debug_tuple("ByteStr"); + formatter.field(v0); + formatter.finish() + } + Lit::Byte(v0) => { + let mut formatter = formatter.debug_tuple("Byte"); + formatter.field(v0); + formatter.finish() + } + Lit::Char(v0) => { + let mut formatter = formatter.debug_tuple("Char"); + formatter.field(v0); + formatter.finish() + } + Lit::Int(v0) => { + let mut formatter = formatter.debug_tuple("Int"); + formatter.field(v0); + formatter.finish() + } + Lit::Float(v0) => { + let mut formatter = formatter.debug_tuple("Float"); + formatter.field(v0); + formatter.finish() + } + Lit::Bool(v0) => { + let mut formatter = formatter.debug_tuple("Bool"); + formatter.field(v0); + formatter.finish() + } + Lit::Verbatim(v0) => { + let mut formatter = formatter.debug_tuple("Verbatim"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Local { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Local"); + formatter.field("attrs", &self.attrs); + formatter.field("let_token", &self.let_token); + formatter.field("pat", &self.pat); + formatter.field("init", &self.init); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Macro { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Macro"); + formatter.field("path", &self.path); + formatter.field("bang_token", &self.bang_token); + formatter.field("delimiter", &self.delimiter); + formatter.field("tokens", &self.tokens); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for MacroDelimiter { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + MacroDelimiter::Paren(v0) => { + let mut formatter = formatter.debug_tuple("Paren"); + formatter.field(v0); + formatter.finish() + } + MacroDelimiter::Brace(v0) => { + let mut formatter = formatter.debug_tuple("Brace"); + formatter.field(v0); + formatter.finish() + } + MacroDelimiter::Bracket(v0) => { + let mut formatter = formatter.debug_tuple("Bracket"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Member { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + Member::Named(v0) => { + let mut formatter = formatter.debug_tuple("Named"); + formatter.field(v0); + formatter.finish() + } + Member::Unnamed(v0) => { + let mut formatter = formatter.debug_tuple("Unnamed"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Meta { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + Meta::Path(v0) => { + let mut formatter = formatter.debug_tuple("Path"); + formatter.field(v0); + formatter.finish() + } + Meta::List(v0) => { + let mut formatter = formatter.debug_tuple("List"); + formatter.field(v0); + formatter.finish() + } + Meta::NameValue(v0) => { + let mut formatter = formatter.debug_tuple("NameValue"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for MetaList { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("MetaList"); + formatter.field("path", &self.path); + formatter.field("paren_token", &self.paren_token); + formatter.field("nested", &self.nested); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for MetaNameValue { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("MetaNameValue"); + formatter.field("path", &self.path); + formatter.field("eq_token", &self.eq_token); + formatter.field("lit", &self.lit); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for MethodTurbofish { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("MethodTurbofish"); + formatter.field("colon2_token", &self.colon2_token); + formatter.field("lt_token", &self.lt_token); + formatter.field("args", &self.args); + formatter.field("gt_token", &self.gt_token); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for NestedMeta { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + NestedMeta::Meta(v0) => { + let mut formatter = formatter.debug_tuple("Meta"); + formatter.field(v0); + formatter.finish() + } + NestedMeta::Lit(v0) => { + let mut formatter = formatter.debug_tuple("Lit"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ParenthesizedGenericArguments { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("ParenthesizedGenericArguments"); + formatter.field("paren_token", &self.paren_token); + formatter.field("inputs", &self.inputs); + formatter.field("output", &self.output); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Pat { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + Pat::Box(v0) => { + let mut formatter = formatter.debug_tuple("Box"); + formatter.field(v0); + formatter.finish() + } + Pat::Ident(v0) => { + let mut formatter = formatter.debug_tuple("Ident"); + formatter.field(v0); + formatter.finish() + } + Pat::Lit(v0) => { + let mut formatter = formatter.debug_tuple("Lit"); + formatter.field(v0); + formatter.finish() + } + Pat::Macro(v0) => { + let mut formatter = formatter.debug_tuple("Macro"); + formatter.field(v0); + formatter.finish() + } + Pat::Or(v0) => { + let mut formatter = formatter.debug_tuple("Or"); + formatter.field(v0); + formatter.finish() + } + Pat::Path(v0) => { + let mut formatter = formatter.debug_tuple("Path"); + formatter.field(v0); + formatter.finish() + } + Pat::Range(v0) => { + let mut formatter = formatter.debug_tuple("Range"); + formatter.field(v0); + formatter.finish() + } + Pat::Reference(v0) => { + let mut formatter = formatter.debug_tuple("Reference"); + formatter.field(v0); + formatter.finish() + } + Pat::Rest(v0) => { + let mut formatter = formatter.debug_tuple("Rest"); + formatter.field(v0); + formatter.finish() + } + Pat::Slice(v0) => { + let mut formatter = formatter.debug_tuple("Slice"); + formatter.field(v0); + formatter.finish() + } + Pat::Struct(v0) => { + let mut formatter = formatter.debug_tuple("Struct"); + formatter.field(v0); + formatter.finish() + } + Pat::Tuple(v0) => { + let mut formatter = formatter.debug_tuple("Tuple"); + formatter.field(v0); + formatter.finish() + } + Pat::TupleStruct(v0) => { + let mut formatter = formatter.debug_tuple("TupleStruct"); + formatter.field(v0); + formatter.finish() + } + Pat::Type(v0) => { + let mut formatter = formatter.debug_tuple("Type"); + formatter.field(v0); + formatter.finish() + } + Pat::Verbatim(v0) => { + let mut formatter = formatter.debug_tuple("Verbatim"); + formatter.field(v0); + formatter.finish() + } + Pat::Wild(v0) => { + let mut formatter = formatter.debug_tuple("Wild"); + formatter.field(v0); + formatter.finish() + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatBox { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatBox"); + formatter.field("attrs", &self.attrs); + formatter.field("box_token", &self.box_token); + formatter.field("pat", &self.pat); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatIdent { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatIdent"); + formatter.field("attrs", &self.attrs); + formatter.field("by_ref", &self.by_ref); + formatter.field("mutability", &self.mutability); + formatter.field("ident", &self.ident); + formatter.field("subpat", &self.subpat); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatLit { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatLit"); + formatter.field("attrs", &self.attrs); + formatter.field("expr", &self.expr); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatMacro { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatMacro"); + formatter.field("attrs", &self.attrs); + formatter.field("mac", &self.mac); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatOr { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatOr"); + formatter.field("attrs", &self.attrs); + formatter.field("leading_vert", &self.leading_vert); + formatter.field("cases", &self.cases); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatPath { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatPath"); + formatter.field("attrs", &self.attrs); + formatter.field("qself", &self.qself); + formatter.field("path", &self.path); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatRange { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatRange"); + formatter.field("attrs", &self.attrs); + formatter.field("lo", &self.lo); + formatter.field("limits", &self.limits); + formatter.field("hi", &self.hi); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatReference { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatReference"); + formatter.field("attrs", &self.attrs); + formatter.field("and_token", &self.and_token); + formatter.field("mutability", &self.mutability); + formatter.field("pat", &self.pat); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatRest { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatRest"); + formatter.field("attrs", &self.attrs); + formatter.field("dot2_token", &self.dot2_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatSlice { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatSlice"); + formatter.field("attrs", &self.attrs); + formatter.field("bracket_token", &self.bracket_token); + formatter.field("elems", &self.elems); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatStruct { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatStruct"); + formatter.field("attrs", &self.attrs); + formatter.field("path", &self.path); + formatter.field("brace_token", &self.brace_token); + formatter.field("fields", &self.fields); + formatter.field("dot2_token", &self.dot2_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatTuple { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatTuple"); + formatter.field("attrs", &self.attrs); + formatter.field("paren_token", &self.paren_token); + formatter.field("elems", &self.elems); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatTupleStruct { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatTupleStruct"); + formatter.field("attrs", &self.attrs); + formatter.field("path", &self.path); + formatter.field("pat", &self.pat); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatType { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatType"); + formatter.field("attrs", &self.attrs); + formatter.field("pat", &self.pat); + formatter.field("colon_token", &self.colon_token); + formatter.field("ty", &self.ty); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PatWild { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PatWild"); + formatter.field("attrs", &self.attrs); + formatter.field("underscore_token", &self.underscore_token); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Path { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Path"); + formatter.field("leading_colon", &self.leading_colon); + formatter.field("segments", &self.segments); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PathArguments { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + PathArguments::None => formatter.write_str("None"), + PathArguments::AngleBracketed(v0) => { + let mut formatter = formatter.debug_tuple("AngleBracketed"); + formatter.field(v0); + formatter.finish() + } + PathArguments::Parenthesized(v0) => { + let mut formatter = formatter.debug_tuple("Parenthesized"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PathSegment { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PathSegment"); + formatter.field("ident", &self.ident); + formatter.field("arguments", &self.arguments); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PredicateEq { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PredicateEq"); + formatter.field("lhs_ty", &self.lhs_ty); + formatter.field("eq_token", &self.eq_token); + formatter.field("rhs_ty", &self.rhs_ty); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PredicateLifetime { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PredicateLifetime"); + formatter.field("lifetime", &self.lifetime); + formatter.field("colon_token", &self.colon_token); + formatter.field("bounds", &self.bounds); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for PredicateType { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("PredicateType"); + formatter.field("lifetimes", &self.lifetimes); + formatter.field("bounded_ty", &self.bounded_ty); + formatter.field("colon_token", &self.colon_token); + formatter.field("bounds", &self.bounds); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for QSelf { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("QSelf"); + formatter.field("lt_token", &self.lt_token); + formatter.field("ty", &self.ty); + formatter.field("position", &self.position); + formatter.field("as_token", &self.as_token); + formatter.field("gt_token", &self.gt_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for RangeLimits { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + RangeLimits::HalfOpen(v0) => { + let mut formatter = formatter.debug_tuple("HalfOpen"); + formatter.field(v0); + formatter.finish() + } + RangeLimits::Closed(v0) => { + let mut formatter = formatter.debug_tuple("Closed"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Receiver { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Receiver"); + formatter.field("attrs", &self.attrs); + formatter.field("reference", &self.reference); + formatter.field("mutability", &self.mutability); + formatter.field("self_token", &self.self_token); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for ReturnType { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + ReturnType::Default => formatter.write_str("Default"), + ReturnType::Type(v0, v1) => { + let mut formatter = formatter.debug_tuple("Type"); + formatter.field(v0); + formatter.field(v1); + formatter.finish() + } + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Signature { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Signature"); + formatter.field("constness", &self.constness); + formatter.field("asyncness", &self.asyncness); + formatter.field("unsafety", &self.unsafety); + formatter.field("abi", &self.abi); + formatter.field("fn_token", &self.fn_token); + formatter.field("ident", &self.ident); + formatter.field("generics", &self.generics); + formatter.field("paren_token", &self.paren_token); + formatter.field("inputs", &self.inputs); + formatter.field("variadic", &self.variadic); + formatter.field("output", &self.output); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Stmt { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + Stmt::Local(v0) => { + let mut formatter = formatter.debug_tuple("Local"); + formatter.field(v0); + formatter.finish() + } + Stmt::Item(v0) => { + let mut formatter = formatter.debug_tuple("Item"); + formatter.field(v0); + formatter.finish() + } + Stmt::Expr(v0) => { + let mut formatter = formatter.debug_tuple("Expr"); + formatter.field(v0); + formatter.finish() + } + Stmt::Semi(v0, v1) => { + let mut formatter = formatter.debug_tuple("Semi"); + formatter.field(v0); + formatter.field(v1); + formatter.finish() + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TraitBound { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TraitBound"); + formatter.field("paren_token", &self.paren_token); + formatter.field("modifier", &self.modifier); + formatter.field("lifetimes", &self.lifetimes); + formatter.field("path", &self.path); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TraitBoundModifier { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + TraitBoundModifier::None => formatter.write_str("None"), + TraitBoundModifier::Maybe(v0) => { + let mut formatter = formatter.debug_tuple("Maybe"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TraitItem { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + TraitItem::Const(v0) => { + let mut formatter = formatter.debug_tuple("Const"); + formatter.field(v0); + formatter.finish() + } + TraitItem::Method(v0) => { + let mut formatter = formatter.debug_tuple("Method"); + formatter.field(v0); + formatter.finish() + } + TraitItem::Type(v0) => { + let mut formatter = formatter.debug_tuple("Type"); + formatter.field(v0); + formatter.finish() + } + TraitItem::Macro(v0) => { + let mut formatter = formatter.debug_tuple("Macro"); + formatter.field(v0); + formatter.finish() + } + TraitItem::Verbatim(v0) => { + let mut formatter = formatter.debug_tuple("Verbatim"); + formatter.field(v0); + formatter.finish() + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TraitItemConst { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TraitItemConst"); + formatter.field("attrs", &self.attrs); + formatter.field("const_token", &self.const_token); + formatter.field("ident", &self.ident); + formatter.field("colon_token", &self.colon_token); + formatter.field("ty", &self.ty); + formatter.field("default", &self.default); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TraitItemMacro { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TraitItemMacro"); + formatter.field("attrs", &self.attrs); + formatter.field("mac", &self.mac); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TraitItemMethod { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TraitItemMethod"); + formatter.field("attrs", &self.attrs); + formatter.field("sig", &self.sig); + formatter.field("default", &self.default); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TraitItemType { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TraitItemType"); + formatter.field("attrs", &self.attrs); + formatter.field("type_token", &self.type_token); + formatter.field("ident", &self.ident); + formatter.field("generics", &self.generics); + formatter.field("colon_token", &self.colon_token); + formatter.field("bounds", &self.bounds); + formatter.field("default", &self.default); + formatter.field("semi_token", &self.semi_token); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Type { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + Type::Array(v0) => { + let mut formatter = formatter.debug_tuple("Array"); + formatter.field(v0); + formatter.finish() + } + Type::BareFn(v0) => { + let mut formatter = formatter.debug_tuple("BareFn"); + formatter.field(v0); + formatter.finish() + } + Type::Group(v0) => { + let mut formatter = formatter.debug_tuple("Group"); + formatter.field(v0); + formatter.finish() + } + Type::ImplTrait(v0) => { + let mut formatter = formatter.debug_tuple("ImplTrait"); + formatter.field(v0); + formatter.finish() + } + Type::Infer(v0) => { + let mut formatter = formatter.debug_tuple("Infer"); + formatter.field(v0); + formatter.finish() + } + Type::Macro(v0) => { + let mut formatter = formatter.debug_tuple("Macro"); + formatter.field(v0); + formatter.finish() + } + Type::Never(v0) => { + let mut formatter = formatter.debug_tuple("Never"); + formatter.field(v0); + formatter.finish() + } + Type::Paren(v0) => { + let mut formatter = formatter.debug_tuple("Paren"); + formatter.field(v0); + formatter.finish() + } + Type::Path(v0) => { + let mut formatter = formatter.debug_tuple("Path"); + formatter.field(v0); + formatter.finish() + } + Type::Ptr(v0) => { + let mut formatter = formatter.debug_tuple("Ptr"); + formatter.field(v0); + formatter.finish() + } + Type::Reference(v0) => { + let mut formatter = formatter.debug_tuple("Reference"); + formatter.field(v0); + formatter.finish() + } + Type::Slice(v0) => { + let mut formatter = formatter.debug_tuple("Slice"); + formatter.field(v0); + formatter.finish() + } + Type::TraitObject(v0) => { + let mut formatter = formatter.debug_tuple("TraitObject"); + formatter.field(v0); + formatter.finish() + } + Type::Tuple(v0) => { + let mut formatter = formatter.debug_tuple("Tuple"); + formatter.field(v0); + formatter.finish() + } + Type::Verbatim(v0) => { + let mut formatter = formatter.debug_tuple("Verbatim"); + formatter.field(v0); + formatter.finish() + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeArray { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypeArray"); + formatter.field("bracket_token", &self.bracket_token); + formatter.field("elem", &self.elem); + formatter.field("semi_token", &self.semi_token); + formatter.field("len", &self.len); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeBareFn { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypeBareFn"); + formatter.field("lifetimes", &self.lifetimes); + formatter.field("unsafety", &self.unsafety); + formatter.field("abi", &self.abi); + formatter.field("fn_token", &self.fn_token); + formatter.field("paren_token", &self.paren_token); + formatter.field("inputs", &self.inputs); + formatter.field("variadic", &self.variadic); + formatter.field("output", &self.output); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeGroup { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypeGroup"); + formatter.field("group_token", &self.group_token); + formatter.field("elem", &self.elem); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeImplTrait { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypeImplTrait"); + formatter.field("impl_token", &self.impl_token); + formatter.field("bounds", &self.bounds); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeInfer { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypeInfer"); + formatter.field("underscore_token", &self.underscore_token); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeMacro { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypeMacro"); + formatter.field("mac", &self.mac); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeNever { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypeNever"); + formatter.field("bang_token", &self.bang_token); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeParam { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypeParam"); + formatter.field("attrs", &self.attrs); + formatter.field("ident", &self.ident); + formatter.field("colon_token", &self.colon_token); + formatter.field("bounds", &self.bounds); + formatter.field("eq_token", &self.eq_token); + formatter.field("default", &self.default); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeParamBound { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + TypeParamBound::Trait(v0) => { + let mut formatter = formatter.debug_tuple("Trait"); + formatter.field(v0); + formatter.finish() + } + TypeParamBound::Lifetime(v0) => { + let mut formatter = formatter.debug_tuple("Lifetime"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeParen { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypeParen"); + formatter.field("paren_token", &self.paren_token); + formatter.field("elem", &self.elem); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypePath { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypePath"); + formatter.field("qself", &self.qself); + formatter.field("path", &self.path); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypePtr { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypePtr"); + formatter.field("star_token", &self.star_token); + formatter.field("const_token", &self.const_token); + formatter.field("mutability", &self.mutability); + formatter.field("elem", &self.elem); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeReference { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypeReference"); + formatter.field("and_token", &self.and_token); + formatter.field("lifetime", &self.lifetime); + formatter.field("mutability", &self.mutability); + formatter.field("elem", &self.elem); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeSlice { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypeSlice"); + formatter.field("bracket_token", &self.bracket_token); + formatter.field("elem", &self.elem); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeTraitObject { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypeTraitObject"); + formatter.field("dyn_token", &self.dyn_token); + formatter.field("bounds", &self.bounds); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for TypeTuple { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("TypeTuple"); + formatter.field("paren_token", &self.paren_token); + formatter.field("elems", &self.elems); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for UnOp { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + UnOp::Deref(v0) => { + let mut formatter = formatter.debug_tuple("Deref"); + formatter.field(v0); + formatter.finish() + } + UnOp::Not(v0) => { + let mut formatter = formatter.debug_tuple("Not"); + formatter.field(v0); + formatter.finish() + } + UnOp::Neg(v0) => { + let mut formatter = formatter.debug_tuple("Neg"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for UseGlob { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("UseGlob"); + formatter.field("star_token", &self.star_token); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for UseGroup { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("UseGroup"); + formatter.field("brace_token", &self.brace_token); + formatter.field("items", &self.items); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for UseName { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("UseName"); + formatter.field("ident", &self.ident); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for UsePath { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("UsePath"); + formatter.field("ident", &self.ident); + formatter.field("colon2_token", &self.colon2_token); + formatter.field("tree", &self.tree); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for UseRename { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("UseRename"); + formatter.field("ident", &self.ident); + formatter.field("as_token", &self.as_token); + formatter.field("rename", &self.rename); + formatter.finish() + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for UseTree { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + UseTree::Path(v0) => { + let mut formatter = formatter.debug_tuple("Path"); + formatter.field(v0); + formatter.finish() + } + UseTree::Name(v0) => { + let mut formatter = formatter.debug_tuple("Name"); + formatter.field(v0); + formatter.finish() + } + UseTree::Rename(v0) => { + let mut formatter = formatter.debug_tuple("Rename"); + formatter.field(v0); + formatter.finish() + } + UseTree::Glob(v0) => { + let mut formatter = formatter.debug_tuple("Glob"); + formatter.field(v0); + formatter.finish() + } + UseTree::Group(v0) => { + let mut formatter = formatter.debug_tuple("Group"); + formatter.field(v0); + formatter.finish() + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Variadic { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Variadic"); + formatter.field("attrs", &self.attrs); + formatter.field("dots", &self.dots); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Variant { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("Variant"); + formatter.field("attrs", &self.attrs); + formatter.field("ident", &self.ident); + formatter.field("fields", &self.fields); + formatter.field("discriminant", &self.discriminant); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for VisCrate { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("VisCrate"); + formatter.field("crate_token", &self.crate_token); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for VisPublic { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("VisPublic"); + formatter.field("pub_token", &self.pub_token); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for VisRestricted { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("VisRestricted"); + formatter.field("pub_token", &self.pub_token); + formatter.field("paren_token", &self.paren_token); + formatter.field("in_token", &self.in_token); + formatter.field("path", &self.path); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for Visibility { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + Visibility::Public(v0) => { + let mut formatter = formatter.debug_tuple("Public"); + formatter.field(v0); + formatter.finish() + } + Visibility::Crate(v0) => { + let mut formatter = formatter.debug_tuple("Crate"); + formatter.field(v0); + formatter.finish() + } + Visibility::Restricted(v0) => { + let mut formatter = formatter.debug_tuple("Restricted"); + formatter.field(v0); + formatter.finish() + } + Visibility::Inherited => formatter.write_str("Inherited"), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for WhereClause { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let mut formatter = formatter.debug_struct("WhereClause"); + formatter.field("where_token", &self.where_token); + formatter.field("predicates", &self.predicates); + formatter.finish() + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Debug for WherePredicate { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + WherePredicate::Type(v0) => { + let mut formatter = formatter.debug_tuple("Type"); + formatter.field(v0); + formatter.finish() + } + WherePredicate::Lifetime(v0) => { + let mut formatter = formatter.debug_tuple("Lifetime"); + formatter.field(v0); + formatter.finish() + } + WherePredicate::Eq(v0) => { + let mut formatter = formatter.debug_tuple("Eq"); + formatter.field(v0); + formatter.finish() + } + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/eq.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/eq.rs new file mode 100644 index 0000000000000000000000000000000000000000..20acb809d8585a3d8d7a59db4e6c9b3bb6d736bb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/eq.rs @@ -0,0 +1,2195 @@ +// This file is @generated by syn-internal-codegen. +// It is not intended for manual editing. + +#[cfg(any(feature = "derive", feature = "full"))] +use crate::tt::TokenStreamHelper; +use crate::*; +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Abi {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Abi { + fn eq(&self, other: &Self) -> bool { + self.name == other.name + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for AngleBracketedGenericArguments {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for AngleBracketedGenericArguments { + fn eq(&self, other: &Self) -> bool { + self.colon2_token == other.colon2_token && self.args == other.args + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Arm {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Arm { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.pat == other.pat && self.guard == other.guard + && self.body == other.body && self.comma == other.comma + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for AttrStyle {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for AttrStyle { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (AttrStyle::Outer, AttrStyle::Outer) => true, + (AttrStyle::Inner(_), AttrStyle::Inner(_)) => true, + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Attribute {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Attribute { + fn eq(&self, other: &Self) -> bool { + self.style == other.style && self.path == other.path + && TokenStreamHelper(&self.tokens) == TokenStreamHelper(&other.tokens) + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for BareFnArg {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for BareFnArg { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.name == other.name && self.ty == other.ty + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for BinOp {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for BinOp { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (BinOp::Add(_), BinOp::Add(_)) => true, + (BinOp::Sub(_), BinOp::Sub(_)) => true, + (BinOp::Mul(_), BinOp::Mul(_)) => true, + (BinOp::Div(_), BinOp::Div(_)) => true, + (BinOp::Rem(_), BinOp::Rem(_)) => true, + (BinOp::And(_), BinOp::And(_)) => true, + (BinOp::Or(_), BinOp::Or(_)) => true, + (BinOp::BitXor(_), BinOp::BitXor(_)) => true, + (BinOp::BitAnd(_), BinOp::BitAnd(_)) => true, + (BinOp::BitOr(_), BinOp::BitOr(_)) => true, + (BinOp::Shl(_), BinOp::Shl(_)) => true, + (BinOp::Shr(_), BinOp::Shr(_)) => true, + (BinOp::Eq(_), BinOp::Eq(_)) => true, + (BinOp::Lt(_), BinOp::Lt(_)) => true, + (BinOp::Le(_), BinOp::Le(_)) => true, + (BinOp::Ne(_), BinOp::Ne(_)) => true, + (BinOp::Ge(_), BinOp::Ge(_)) => true, + (BinOp::Gt(_), BinOp::Gt(_)) => true, + (BinOp::AddEq(_), BinOp::AddEq(_)) => true, + (BinOp::SubEq(_), BinOp::SubEq(_)) => true, + (BinOp::MulEq(_), BinOp::MulEq(_)) => true, + (BinOp::DivEq(_), BinOp::DivEq(_)) => true, + (BinOp::RemEq(_), BinOp::RemEq(_)) => true, + (BinOp::BitXorEq(_), BinOp::BitXorEq(_)) => true, + (BinOp::BitAndEq(_), BinOp::BitAndEq(_)) => true, + (BinOp::BitOrEq(_), BinOp::BitOrEq(_)) => true, + (BinOp::ShlEq(_), BinOp::ShlEq(_)) => true, + (BinOp::ShrEq(_), BinOp::ShrEq(_)) => true, + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Binding {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Binding { + fn eq(&self, other: &Self) -> bool { + self.ident == other.ident && self.ty == other.ty + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Block {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Block { + fn eq(&self, other: &Self) -> bool { + self.stmts == other.stmts + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for BoundLifetimes {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for BoundLifetimes { + fn eq(&self, other: &Self) -> bool { + self.lifetimes == other.lifetimes + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ConstParam {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ConstParam { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.ident == other.ident && self.ty == other.ty + && self.eq_token == other.eq_token && self.default == other.default + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Constraint {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Constraint { + fn eq(&self, other: &Self) -> bool { + self.ident == other.ident && self.bounds == other.bounds + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Data {} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Data { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (Data::Struct(self0), Data::Struct(other0)) => self0 == other0, + (Data::Enum(self0), Data::Enum(other0)) => self0 == other0, + (Data::Union(self0), Data::Union(other0)) => self0 == other0, + _ => false, + } + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for DataEnum {} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for DataEnum { + fn eq(&self, other: &Self) -> bool { + self.variants == other.variants + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for DataStruct {} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for DataStruct { + fn eq(&self, other: &Self) -> bool { + self.fields == other.fields && self.semi_token == other.semi_token + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for DataUnion {} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for DataUnion { + fn eq(&self, other: &Self) -> bool { + self.fields == other.fields + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for DeriveInput {} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for DeriveInput { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident + && self.generics == other.generics && self.data == other.data + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Expr {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Expr { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + #[cfg(feature = "full")] + (Expr::Array(self0), Expr::Array(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Assign(self0), Expr::Assign(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::AssignOp(self0), Expr::AssignOp(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Async(self0), Expr::Async(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Await(self0), Expr::Await(other0)) => self0 == other0, + (Expr::Binary(self0), Expr::Binary(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Block(self0), Expr::Block(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Box(self0), Expr::Box(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Break(self0), Expr::Break(other0)) => self0 == other0, + (Expr::Call(self0), Expr::Call(other0)) => self0 == other0, + (Expr::Cast(self0), Expr::Cast(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Closure(self0), Expr::Closure(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Continue(self0), Expr::Continue(other0)) => self0 == other0, + (Expr::Field(self0), Expr::Field(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::ForLoop(self0), Expr::ForLoop(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Group(self0), Expr::Group(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::If(self0), Expr::If(other0)) => self0 == other0, + (Expr::Index(self0), Expr::Index(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Let(self0), Expr::Let(other0)) => self0 == other0, + (Expr::Lit(self0), Expr::Lit(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Loop(self0), Expr::Loop(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Macro(self0), Expr::Macro(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Match(self0), Expr::Match(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::MethodCall(self0), Expr::MethodCall(other0)) => self0 == other0, + (Expr::Paren(self0), Expr::Paren(other0)) => self0 == other0, + (Expr::Path(self0), Expr::Path(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Range(self0), Expr::Range(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Reference(self0), Expr::Reference(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Repeat(self0), Expr::Repeat(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Return(self0), Expr::Return(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Struct(self0), Expr::Struct(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Try(self0), Expr::Try(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::TryBlock(self0), Expr::TryBlock(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Tuple(self0), Expr::Tuple(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Type(self0), Expr::Type(other0)) => self0 == other0, + (Expr::Unary(self0), Expr::Unary(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Unsafe(self0), Expr::Unsafe(other0)) => self0 == other0, + (Expr::Verbatim(self0), Expr::Verbatim(other0)) => { + TokenStreamHelper(self0) == TokenStreamHelper(other0) + } + #[cfg(feature = "full")] + (Expr::While(self0), Expr::While(other0)) => self0 == other0, + #[cfg(feature = "full")] + (Expr::Yield(self0), Expr::Yield(other0)) => self0 == other0, + _ => false, + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprArray {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprArray { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.elems == other.elems + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprAssign {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprAssign { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.left == other.left && self.right == other.right + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprAssignOp {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprAssignOp { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.left == other.left && self.op == other.op + && self.right == other.right + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprAsync {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprAsync { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.capture == other.capture + && self.block == other.block + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprAwait {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprAwait { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.base == other.base + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprBinary {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprBinary { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.left == other.left && self.op == other.op + && self.right == other.right + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprBlock {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprBlock { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.label == other.label + && self.block == other.block + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprBox {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprBox { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.expr == other.expr + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprBreak {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprBreak { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.label == other.label && self.expr == other.expr + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprCall {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprCall { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.func == other.func && self.args == other.args + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprCast {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprCast { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.expr == other.expr && self.ty == other.ty + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprClosure {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprClosure { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.movability == other.movability + && self.asyncness == other.asyncness && self.capture == other.capture + && self.inputs == other.inputs && self.output == other.output + && self.body == other.body + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprContinue {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprContinue { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.label == other.label + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprField {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprField { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.base == other.base + && self.member == other.member + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprForLoop {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprForLoop { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.label == other.label && self.pat == other.pat + && self.expr == other.expr && self.body == other.body + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprGroup {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprGroup { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.expr == other.expr + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprIf {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprIf { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.cond == other.cond + && self.then_branch == other.then_branch + && self.else_branch == other.else_branch + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprIndex {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprIndex { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.expr == other.expr && self.index == other.index + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprLet {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprLet { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.pat == other.pat && self.expr == other.expr + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprLit {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprLit { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.lit == other.lit + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprLoop {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprLoop { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.label == other.label && self.body == other.body + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprMacro {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprMacro { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.mac == other.mac + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprMatch {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprMatch { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.expr == other.expr && self.arms == other.arms + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprMethodCall {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprMethodCall { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.receiver == other.receiver + && self.method == other.method && self.turbofish == other.turbofish + && self.args == other.args + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprParen {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprParen { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.expr == other.expr + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprPath {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprPath { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.qself == other.qself && self.path == other.path + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprRange {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprRange { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.from == other.from + && self.limits == other.limits && self.to == other.to + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprReference {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprReference { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.mutability == other.mutability + && self.expr == other.expr + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprRepeat {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprRepeat { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.expr == other.expr && self.len == other.len + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprReturn {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprReturn { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.expr == other.expr + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprStruct {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprStruct { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.path == other.path + && self.fields == other.fields && self.dot2_token == other.dot2_token + && self.rest == other.rest + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprTry {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprTry { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.expr == other.expr + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprTryBlock {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprTryBlock { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.block == other.block + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprTuple {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprTuple { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.elems == other.elems + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprType {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprType { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.expr == other.expr && self.ty == other.ty + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprUnary {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprUnary { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.op == other.op && self.expr == other.expr + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprUnsafe {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprUnsafe { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.block == other.block + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprWhile {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprWhile { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.label == other.label && self.cond == other.cond + && self.body == other.body + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ExprYield {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ExprYield { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.expr == other.expr + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Field {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Field { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident + && self.colon_token == other.colon_token && self.ty == other.ty + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for FieldPat {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for FieldPat { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.member == other.member + && self.colon_token == other.colon_token && self.pat == other.pat + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for FieldValue {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for FieldValue { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.member == other.member + && self.colon_token == other.colon_token && self.expr == other.expr + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Fields {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Fields { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (Fields::Named(self0), Fields::Named(other0)) => self0 == other0, + (Fields::Unnamed(self0), Fields::Unnamed(other0)) => self0 == other0, + (Fields::Unit, Fields::Unit) => true, + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for FieldsNamed {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for FieldsNamed { + fn eq(&self, other: &Self) -> bool { + self.named == other.named + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for FieldsUnnamed {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for FieldsUnnamed { + fn eq(&self, other: &Self) -> bool { + self.unnamed == other.unnamed + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for File {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for File { + fn eq(&self, other: &Self) -> bool { + self.shebang == other.shebang && self.attrs == other.attrs + && self.items == other.items + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for FnArg {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for FnArg { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (FnArg::Receiver(self0), FnArg::Receiver(other0)) => self0 == other0, + (FnArg::Typed(self0), FnArg::Typed(other0)) => self0 == other0, + _ => false, + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ForeignItem {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ForeignItem { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (ForeignItem::Fn(self0), ForeignItem::Fn(other0)) => self0 == other0, + (ForeignItem::Static(self0), ForeignItem::Static(other0)) => self0 == other0, + (ForeignItem::Type(self0), ForeignItem::Type(other0)) => self0 == other0, + (ForeignItem::Macro(self0), ForeignItem::Macro(other0)) => self0 == other0, + (ForeignItem::Verbatim(self0), ForeignItem::Verbatim(other0)) => { + TokenStreamHelper(self0) == TokenStreamHelper(other0) + } + _ => false, + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ForeignItemFn {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ForeignItemFn { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.sig == other.sig + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ForeignItemMacro {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ForeignItemMacro { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.mac == other.mac + && self.semi_token == other.semi_token + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ForeignItemStatic {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ForeignItemStatic { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis + && self.mutability == other.mutability && self.ident == other.ident + && self.ty == other.ty + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ForeignItemType {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ForeignItemType { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for GenericArgument {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for GenericArgument { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (GenericArgument::Lifetime(self0), GenericArgument::Lifetime(other0)) => { + self0 == other0 + } + (GenericArgument::Type(self0), GenericArgument::Type(other0)) => { + self0 == other0 + } + (GenericArgument::Const(self0), GenericArgument::Const(other0)) => { + self0 == other0 + } + (GenericArgument::Binding(self0), GenericArgument::Binding(other0)) => { + self0 == other0 + } + (GenericArgument::Constraint(self0), GenericArgument::Constraint(other0)) => { + self0 == other0 + } + _ => false, + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for GenericMethodArgument {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for GenericMethodArgument { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (GenericMethodArgument::Type(self0), GenericMethodArgument::Type(other0)) => { + self0 == other0 + } + ( + GenericMethodArgument::Const(self0), + GenericMethodArgument::Const(other0), + ) => self0 == other0, + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for GenericParam {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for GenericParam { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (GenericParam::Type(self0), GenericParam::Type(other0)) => self0 == other0, + (GenericParam::Lifetime(self0), GenericParam::Lifetime(other0)) => { + self0 == other0 + } + (GenericParam::Const(self0), GenericParam::Const(other0)) => self0 == other0, + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Generics {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Generics { + fn eq(&self, other: &Self) -> bool { + self.lt_token == other.lt_token && self.params == other.params + && self.gt_token == other.gt_token && self.where_clause == other.where_clause + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ImplItem {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ImplItem { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (ImplItem::Const(self0), ImplItem::Const(other0)) => self0 == other0, + (ImplItem::Method(self0), ImplItem::Method(other0)) => self0 == other0, + (ImplItem::Type(self0), ImplItem::Type(other0)) => self0 == other0, + (ImplItem::Macro(self0), ImplItem::Macro(other0)) => self0 == other0, + (ImplItem::Verbatim(self0), ImplItem::Verbatim(other0)) => { + TokenStreamHelper(self0) == TokenStreamHelper(other0) + } + _ => false, + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ImplItemConst {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ImplItemConst { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis + && self.defaultness == other.defaultness && self.ident == other.ident + && self.ty == other.ty && self.expr == other.expr + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ImplItemMacro {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ImplItemMacro { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.mac == other.mac + && self.semi_token == other.semi_token + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ImplItemMethod {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ImplItemMethod { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis + && self.defaultness == other.defaultness && self.sig == other.sig + && self.block == other.block + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ImplItemType {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ImplItemType { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis + && self.defaultness == other.defaultness && self.ident == other.ident + && self.generics == other.generics && self.ty == other.ty + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Item {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Item { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (Item::Const(self0), Item::Const(other0)) => self0 == other0, + (Item::Enum(self0), Item::Enum(other0)) => self0 == other0, + (Item::ExternCrate(self0), Item::ExternCrate(other0)) => self0 == other0, + (Item::Fn(self0), Item::Fn(other0)) => self0 == other0, + (Item::ForeignMod(self0), Item::ForeignMod(other0)) => self0 == other0, + (Item::Impl(self0), Item::Impl(other0)) => self0 == other0, + (Item::Macro(self0), Item::Macro(other0)) => self0 == other0, + (Item::Macro2(self0), Item::Macro2(other0)) => self0 == other0, + (Item::Mod(self0), Item::Mod(other0)) => self0 == other0, + (Item::Static(self0), Item::Static(other0)) => self0 == other0, + (Item::Struct(self0), Item::Struct(other0)) => self0 == other0, + (Item::Trait(self0), Item::Trait(other0)) => self0 == other0, + (Item::TraitAlias(self0), Item::TraitAlias(other0)) => self0 == other0, + (Item::Type(self0), Item::Type(other0)) => self0 == other0, + (Item::Union(self0), Item::Union(other0)) => self0 == other0, + (Item::Use(self0), Item::Use(other0)) => self0 == other0, + (Item::Verbatim(self0), Item::Verbatim(other0)) => { + TokenStreamHelper(self0) == TokenStreamHelper(other0) + } + _ => false, + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemConst {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemConst { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident + && self.ty == other.ty && self.expr == other.expr + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemEnum {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemEnum { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident + && self.generics == other.generics && self.variants == other.variants + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemExternCrate {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemExternCrate { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident + && self.rename == other.rename + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemFn {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemFn { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.sig == other.sig + && self.block == other.block + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemForeignMod {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemForeignMod { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.abi == other.abi && self.items == other.items + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemImpl {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemImpl { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.defaultness == other.defaultness + && self.unsafety == other.unsafety && self.generics == other.generics + && self.trait_ == other.trait_ && self.self_ty == other.self_ty + && self.items == other.items + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemMacro {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemMacro { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.ident == other.ident && self.mac == other.mac + && self.semi_token == other.semi_token + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemMacro2 {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemMacro2 { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident + && TokenStreamHelper(&self.rules) == TokenStreamHelper(&other.rules) + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemMod {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemMod { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident + && self.content == other.content && self.semi == other.semi + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemStatic {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemStatic { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis + && self.mutability == other.mutability && self.ident == other.ident + && self.ty == other.ty && self.expr == other.expr + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemStruct {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemStruct { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident + && self.generics == other.generics && self.fields == other.fields + && self.semi_token == other.semi_token + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemTrait {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemTrait { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis + && self.unsafety == other.unsafety && self.auto_token == other.auto_token + && self.ident == other.ident && self.generics == other.generics + && self.colon_token == other.colon_token + && self.supertraits == other.supertraits && self.items == other.items + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemTraitAlias {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemTraitAlias { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident + && self.generics == other.generics && self.bounds == other.bounds + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemType {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemType { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident + && self.generics == other.generics && self.ty == other.ty + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemUnion {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemUnion { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident + && self.generics == other.generics && self.fields == other.fields + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ItemUse {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ItemUse { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.vis == other.vis + && self.leading_colon == other.leading_colon && self.tree == other.tree + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Label {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Label { + fn eq(&self, other: &Self) -> bool { + self.name == other.name + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for LifetimeDef {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for LifetimeDef { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.lifetime == other.lifetime + && self.colon_token == other.colon_token && self.bounds == other.bounds + } +} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Lit {} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Lit { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (Lit::Str(self0), Lit::Str(other0)) => self0 == other0, + (Lit::ByteStr(self0), Lit::ByteStr(other0)) => self0 == other0, + (Lit::Byte(self0), Lit::Byte(other0)) => self0 == other0, + (Lit::Char(self0), Lit::Char(other0)) => self0 == other0, + (Lit::Int(self0), Lit::Int(other0)) => self0 == other0, + (Lit::Float(self0), Lit::Float(other0)) => self0 == other0, + (Lit::Bool(self0), Lit::Bool(other0)) => self0 == other0, + (Lit::Verbatim(self0), Lit::Verbatim(other0)) => { + self0.to_string() == other0.to_string() + } + _ => false, + } + } +} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for LitBool {} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for LitBool { + fn eq(&self, other: &Self) -> bool { + self.value == other.value + } +} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for LitByte {} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for LitByteStr {} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for LitChar {} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for LitFloat {} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for LitInt {} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for LitStr {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Local {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Local { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.pat == other.pat && self.init == other.init + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Macro {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Macro { + fn eq(&self, other: &Self) -> bool { + self.path == other.path && self.delimiter == other.delimiter + && TokenStreamHelper(&self.tokens) == TokenStreamHelper(&other.tokens) + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for MacroDelimiter {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for MacroDelimiter { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (MacroDelimiter::Paren(_), MacroDelimiter::Paren(_)) => true, + (MacroDelimiter::Brace(_), MacroDelimiter::Brace(_)) => true, + (MacroDelimiter::Bracket(_), MacroDelimiter::Bracket(_)) => true, + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Meta {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Meta { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (Meta::Path(self0), Meta::Path(other0)) => self0 == other0, + (Meta::List(self0), Meta::List(other0)) => self0 == other0, + (Meta::NameValue(self0), Meta::NameValue(other0)) => self0 == other0, + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for MetaList {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for MetaList { + fn eq(&self, other: &Self) -> bool { + self.path == other.path && self.nested == other.nested + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for MetaNameValue {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for MetaNameValue { + fn eq(&self, other: &Self) -> bool { + self.path == other.path && self.lit == other.lit + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for MethodTurbofish {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for MethodTurbofish { + fn eq(&self, other: &Self) -> bool { + self.args == other.args + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for NestedMeta {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for NestedMeta { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (NestedMeta::Meta(self0), NestedMeta::Meta(other0)) => self0 == other0, + (NestedMeta::Lit(self0), NestedMeta::Lit(other0)) => self0 == other0, + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ParenthesizedGenericArguments {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ParenthesizedGenericArguments { + fn eq(&self, other: &Self) -> bool { + self.inputs == other.inputs && self.output == other.output + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Pat {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Pat { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (Pat::Box(self0), Pat::Box(other0)) => self0 == other0, + (Pat::Ident(self0), Pat::Ident(other0)) => self0 == other0, + (Pat::Lit(self0), Pat::Lit(other0)) => self0 == other0, + (Pat::Macro(self0), Pat::Macro(other0)) => self0 == other0, + (Pat::Or(self0), Pat::Or(other0)) => self0 == other0, + (Pat::Path(self0), Pat::Path(other0)) => self0 == other0, + (Pat::Range(self0), Pat::Range(other0)) => self0 == other0, + (Pat::Reference(self0), Pat::Reference(other0)) => self0 == other0, + (Pat::Rest(self0), Pat::Rest(other0)) => self0 == other0, + (Pat::Slice(self0), Pat::Slice(other0)) => self0 == other0, + (Pat::Struct(self0), Pat::Struct(other0)) => self0 == other0, + (Pat::Tuple(self0), Pat::Tuple(other0)) => self0 == other0, + (Pat::TupleStruct(self0), Pat::TupleStruct(other0)) => self0 == other0, + (Pat::Type(self0), Pat::Type(other0)) => self0 == other0, + (Pat::Verbatim(self0), Pat::Verbatim(other0)) => { + TokenStreamHelper(self0) == TokenStreamHelper(other0) + } + (Pat::Wild(self0), Pat::Wild(other0)) => self0 == other0, + _ => false, + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatBox {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatBox { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.pat == other.pat + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatIdent {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatIdent { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.by_ref == other.by_ref + && self.mutability == other.mutability && self.ident == other.ident + && self.subpat == other.subpat + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatLit {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatLit { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.expr == other.expr + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatMacro {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatMacro { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.mac == other.mac + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatOr {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatOr { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.leading_vert == other.leading_vert + && self.cases == other.cases + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatPath {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatPath { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.qself == other.qself && self.path == other.path + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatRange {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatRange { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.lo == other.lo && self.limits == other.limits + && self.hi == other.hi + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatReference {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatReference { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.mutability == other.mutability + && self.pat == other.pat + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatRest {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatRest { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatSlice {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatSlice { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.elems == other.elems + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatStruct {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatStruct { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.path == other.path + && self.fields == other.fields && self.dot2_token == other.dot2_token + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatTuple {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatTuple { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.elems == other.elems + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatTupleStruct {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatTupleStruct { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.path == other.path && self.pat == other.pat + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatType {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatType { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.pat == other.pat && self.ty == other.ty + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PatWild {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PatWild { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Path {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Path { + fn eq(&self, other: &Self) -> bool { + self.leading_colon == other.leading_colon && self.segments == other.segments + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PathArguments {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PathArguments { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (PathArguments::None, PathArguments::None) => true, + ( + PathArguments::AngleBracketed(self0), + PathArguments::AngleBracketed(other0), + ) => self0 == other0, + ( + PathArguments::Parenthesized(self0), + PathArguments::Parenthesized(other0), + ) => self0 == other0, + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PathSegment {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PathSegment { + fn eq(&self, other: &Self) -> bool { + self.ident == other.ident && self.arguments == other.arguments + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PredicateEq {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PredicateEq { + fn eq(&self, other: &Self) -> bool { + self.lhs_ty == other.lhs_ty && self.rhs_ty == other.rhs_ty + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PredicateLifetime {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PredicateLifetime { + fn eq(&self, other: &Self) -> bool { + self.lifetime == other.lifetime && self.bounds == other.bounds + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for PredicateType {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for PredicateType { + fn eq(&self, other: &Self) -> bool { + self.lifetimes == other.lifetimes && self.bounded_ty == other.bounded_ty + && self.bounds == other.bounds + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for QSelf {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for QSelf { + fn eq(&self, other: &Self) -> bool { + self.ty == other.ty && self.position == other.position + && self.as_token == other.as_token + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for RangeLimits {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for RangeLimits { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (RangeLimits::HalfOpen(_), RangeLimits::HalfOpen(_)) => true, + (RangeLimits::Closed(_), RangeLimits::Closed(_)) => true, + _ => false, + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Receiver {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Receiver { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.reference == other.reference + && self.mutability == other.mutability + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for ReturnType {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for ReturnType { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (ReturnType::Default, ReturnType::Default) => true, + (ReturnType::Type(_, self1), ReturnType::Type(_, other1)) => self1 == other1, + _ => false, + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Signature {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Signature { + fn eq(&self, other: &Self) -> bool { + self.constness == other.constness && self.asyncness == other.asyncness + && self.unsafety == other.unsafety && self.abi == other.abi + && self.ident == other.ident && self.generics == other.generics + && self.inputs == other.inputs && self.variadic == other.variadic + && self.output == other.output + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Stmt {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Stmt { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (Stmt::Local(self0), Stmt::Local(other0)) => self0 == other0, + (Stmt::Item(self0), Stmt::Item(other0)) => self0 == other0, + (Stmt::Expr(self0), Stmt::Expr(other0)) => self0 == other0, + (Stmt::Semi(self0, _), Stmt::Semi(other0, _)) => self0 == other0, + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TraitBound {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TraitBound { + fn eq(&self, other: &Self) -> bool { + self.paren_token == other.paren_token && self.modifier == other.modifier + && self.lifetimes == other.lifetimes && self.path == other.path + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TraitBoundModifier {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TraitBoundModifier { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (TraitBoundModifier::None, TraitBoundModifier::None) => true, + (TraitBoundModifier::Maybe(_), TraitBoundModifier::Maybe(_)) => true, + _ => false, + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TraitItem {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TraitItem { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (TraitItem::Const(self0), TraitItem::Const(other0)) => self0 == other0, + (TraitItem::Method(self0), TraitItem::Method(other0)) => self0 == other0, + (TraitItem::Type(self0), TraitItem::Type(other0)) => self0 == other0, + (TraitItem::Macro(self0), TraitItem::Macro(other0)) => self0 == other0, + (TraitItem::Verbatim(self0), TraitItem::Verbatim(other0)) => { + TokenStreamHelper(self0) == TokenStreamHelper(other0) + } + _ => false, + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TraitItemConst {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TraitItemConst { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.ident == other.ident && self.ty == other.ty + && self.default == other.default + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TraitItemMacro {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TraitItemMacro { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.mac == other.mac + && self.semi_token == other.semi_token + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TraitItemMethod {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TraitItemMethod { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.sig == other.sig + && self.default == other.default && self.semi_token == other.semi_token + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TraitItemType {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TraitItemType { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.ident == other.ident + && self.generics == other.generics && self.colon_token == other.colon_token + && self.bounds == other.bounds && self.default == other.default + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Type {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Type { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (Type::Array(self0), Type::Array(other0)) => self0 == other0, + (Type::BareFn(self0), Type::BareFn(other0)) => self0 == other0, + (Type::Group(self0), Type::Group(other0)) => self0 == other0, + (Type::ImplTrait(self0), Type::ImplTrait(other0)) => self0 == other0, + (Type::Infer(self0), Type::Infer(other0)) => self0 == other0, + (Type::Macro(self0), Type::Macro(other0)) => self0 == other0, + (Type::Never(self0), Type::Never(other0)) => self0 == other0, + (Type::Paren(self0), Type::Paren(other0)) => self0 == other0, + (Type::Path(self0), Type::Path(other0)) => self0 == other0, + (Type::Ptr(self0), Type::Ptr(other0)) => self0 == other0, + (Type::Reference(self0), Type::Reference(other0)) => self0 == other0, + (Type::Slice(self0), Type::Slice(other0)) => self0 == other0, + (Type::TraitObject(self0), Type::TraitObject(other0)) => self0 == other0, + (Type::Tuple(self0), Type::Tuple(other0)) => self0 == other0, + (Type::Verbatim(self0), Type::Verbatim(other0)) => { + TokenStreamHelper(self0) == TokenStreamHelper(other0) + } + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeArray {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeArray { + fn eq(&self, other: &Self) -> bool { + self.elem == other.elem && self.len == other.len + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeBareFn {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeBareFn { + fn eq(&self, other: &Self) -> bool { + self.lifetimes == other.lifetimes && self.unsafety == other.unsafety + && self.abi == other.abi && self.inputs == other.inputs + && self.variadic == other.variadic && self.output == other.output + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeGroup {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeGroup { + fn eq(&self, other: &Self) -> bool { + self.elem == other.elem + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeImplTrait {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeImplTrait { + fn eq(&self, other: &Self) -> bool { + self.bounds == other.bounds + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeInfer {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeInfer { + fn eq(&self, _other: &Self) -> bool { + true + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeMacro {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeMacro { + fn eq(&self, other: &Self) -> bool { + self.mac == other.mac + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeNever {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeNever { + fn eq(&self, _other: &Self) -> bool { + true + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeParam {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeParam { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.ident == other.ident + && self.colon_token == other.colon_token && self.bounds == other.bounds + && self.eq_token == other.eq_token && self.default == other.default + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeParamBound {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeParamBound { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (TypeParamBound::Trait(self0), TypeParamBound::Trait(other0)) => { + self0 == other0 + } + (TypeParamBound::Lifetime(self0), TypeParamBound::Lifetime(other0)) => { + self0 == other0 + } + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeParen {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeParen { + fn eq(&self, other: &Self) -> bool { + self.elem == other.elem + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypePath {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypePath { + fn eq(&self, other: &Self) -> bool { + self.qself == other.qself && self.path == other.path + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypePtr {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypePtr { + fn eq(&self, other: &Self) -> bool { + self.const_token == other.const_token && self.mutability == other.mutability + && self.elem == other.elem + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeReference {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeReference { + fn eq(&self, other: &Self) -> bool { + self.lifetime == other.lifetime && self.mutability == other.mutability + && self.elem == other.elem + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeSlice {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeSlice { + fn eq(&self, other: &Self) -> bool { + self.elem == other.elem + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeTraitObject {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeTraitObject { + fn eq(&self, other: &Self) -> bool { + self.dyn_token == other.dyn_token && self.bounds == other.bounds + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for TypeTuple {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for TypeTuple { + fn eq(&self, other: &Self) -> bool { + self.elems == other.elems + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for UnOp {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for UnOp { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (UnOp::Deref(_), UnOp::Deref(_)) => true, + (UnOp::Not(_), UnOp::Not(_)) => true, + (UnOp::Neg(_), UnOp::Neg(_)) => true, + _ => false, + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for UseGlob {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for UseGlob { + fn eq(&self, _other: &Self) -> bool { + true + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for UseGroup {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for UseGroup { + fn eq(&self, other: &Self) -> bool { + self.items == other.items + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for UseName {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for UseName { + fn eq(&self, other: &Self) -> bool { + self.ident == other.ident + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for UsePath {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for UsePath { + fn eq(&self, other: &Self) -> bool { + self.ident == other.ident && self.tree == other.tree + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for UseRename {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for UseRename { + fn eq(&self, other: &Self) -> bool { + self.ident == other.ident && self.rename == other.rename + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for UseTree {} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for UseTree { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (UseTree::Path(self0), UseTree::Path(other0)) => self0 == other0, + (UseTree::Name(self0), UseTree::Name(other0)) => self0 == other0, + (UseTree::Rename(self0), UseTree::Rename(other0)) => self0 == other0, + (UseTree::Glob(self0), UseTree::Glob(other0)) => self0 == other0, + (UseTree::Group(self0), UseTree::Group(other0)) => self0 == other0, + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Variadic {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Variadic { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Variant {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Variant { + fn eq(&self, other: &Self) -> bool { + self.attrs == other.attrs && self.ident == other.ident + && self.fields == other.fields && self.discriminant == other.discriminant + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for VisCrate {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for VisCrate { + fn eq(&self, _other: &Self) -> bool { + true + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for VisPublic {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for VisPublic { + fn eq(&self, _other: &Self) -> bool { + true + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for VisRestricted {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for VisRestricted { + fn eq(&self, other: &Self) -> bool { + self.in_token == other.in_token && self.path == other.path + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for Visibility {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Visibility { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (Visibility::Public(self0), Visibility::Public(other0)) => self0 == other0, + (Visibility::Crate(self0), Visibility::Crate(other0)) => self0 == other0, + (Visibility::Restricted(self0), Visibility::Restricted(other0)) => { + self0 == other0 + } + (Visibility::Inherited, Visibility::Inherited) => true, + _ => false, + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for WhereClause {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for WhereClause { + fn eq(&self, other: &Self) -> bool { + self.predicates == other.predicates + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Eq for WherePredicate {} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl PartialEq for WherePredicate { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (WherePredicate::Type(self0), WherePredicate::Type(other0)) => { + self0 == other0 + } + (WherePredicate::Lifetime(self0), WherePredicate::Lifetime(other0)) => { + self0 == other0 + } + (WherePredicate::Eq(self0), WherePredicate::Eq(other0)) => self0 == other0, + _ => false, + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/fold.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/fold.rs new file mode 100644 index 0000000000000000000000000000000000000000..98bb5794aab9f49e098ba2842736fa4f4120a9fc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/fold.rs @@ -0,0 +1,3341 @@ +// This file is @generated by syn-internal-codegen. +// It is not intended for manual editing. + +#![allow(unreachable_code, unused_variables)] +#![allow(clippy::match_wildcard_for_single_variants)] +#[cfg(any(feature = "full", feature = "derive"))] +use crate::gen::helper::fold::*; +#[cfg(any(feature = "full", feature = "derive"))] +use crate::token::{Brace, Bracket, Group, Paren}; +use crate::*; +use proc_macro2::Span; +#[cfg(feature = "full")] +macro_rules! full { + ($e:expr) => { + $e + }; +} +#[cfg(all(feature = "derive", not(feature = "full")))] +macro_rules! full { + ($e:expr) => { + unreachable!() + }; +} +/// Syntax tree traversal to transform the nodes of an owned syntax tree. +/// +/// See the [module documentation] for details. +/// +/// [module documentation]: self +/// +/// *This trait is available only if Syn is built with the `"fold"` feature.* +pub trait Fold { + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_abi(&mut self, i: Abi) -> Abi { + fold_abi(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_angle_bracketed_generic_arguments( + &mut self, + i: AngleBracketedGenericArguments, + ) -> AngleBracketedGenericArguments { + fold_angle_bracketed_generic_arguments(self, i) + } + #[cfg(feature = "full")] + fn fold_arm(&mut self, i: Arm) -> Arm { + fold_arm(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_attr_style(&mut self, i: AttrStyle) -> AttrStyle { + fold_attr_style(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_attribute(&mut self, i: Attribute) -> Attribute { + fold_attribute(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_bare_fn_arg(&mut self, i: BareFnArg) -> BareFnArg { + fold_bare_fn_arg(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_bin_op(&mut self, i: BinOp) -> BinOp { + fold_bin_op(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_binding(&mut self, i: Binding) -> Binding { + fold_binding(self, i) + } + #[cfg(feature = "full")] + fn fold_block(&mut self, i: Block) -> Block { + fold_block(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_bound_lifetimes(&mut self, i: BoundLifetimes) -> BoundLifetimes { + fold_bound_lifetimes(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_const_param(&mut self, i: ConstParam) -> ConstParam { + fold_const_param(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_constraint(&mut self, i: Constraint) -> Constraint { + fold_constraint(self, i) + } + #[cfg(feature = "derive")] + fn fold_data(&mut self, i: Data) -> Data { + fold_data(self, i) + } + #[cfg(feature = "derive")] + fn fold_data_enum(&mut self, i: DataEnum) -> DataEnum { + fold_data_enum(self, i) + } + #[cfg(feature = "derive")] + fn fold_data_struct(&mut self, i: DataStruct) -> DataStruct { + fold_data_struct(self, i) + } + #[cfg(feature = "derive")] + fn fold_data_union(&mut self, i: DataUnion) -> DataUnion { + fold_data_union(self, i) + } + #[cfg(feature = "derive")] + fn fold_derive_input(&mut self, i: DeriveInput) -> DeriveInput { + fold_derive_input(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_expr(&mut self, i: Expr) -> Expr { + fold_expr(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_array(&mut self, i: ExprArray) -> ExprArray { + fold_expr_array(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_assign(&mut self, i: ExprAssign) -> ExprAssign { + fold_expr_assign(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_assign_op(&mut self, i: ExprAssignOp) -> ExprAssignOp { + fold_expr_assign_op(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_async(&mut self, i: ExprAsync) -> ExprAsync { + fold_expr_async(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_await(&mut self, i: ExprAwait) -> ExprAwait { + fold_expr_await(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_expr_binary(&mut self, i: ExprBinary) -> ExprBinary { + fold_expr_binary(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_block(&mut self, i: ExprBlock) -> ExprBlock { + fold_expr_block(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_box(&mut self, i: ExprBox) -> ExprBox { + fold_expr_box(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_break(&mut self, i: ExprBreak) -> ExprBreak { + fold_expr_break(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_expr_call(&mut self, i: ExprCall) -> ExprCall { + fold_expr_call(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_expr_cast(&mut self, i: ExprCast) -> ExprCast { + fold_expr_cast(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_closure(&mut self, i: ExprClosure) -> ExprClosure { + fold_expr_closure(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_continue(&mut self, i: ExprContinue) -> ExprContinue { + fold_expr_continue(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_expr_field(&mut self, i: ExprField) -> ExprField { + fold_expr_field(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_for_loop(&mut self, i: ExprForLoop) -> ExprForLoop { + fold_expr_for_loop(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_group(&mut self, i: ExprGroup) -> ExprGroup { + fold_expr_group(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_if(&mut self, i: ExprIf) -> ExprIf { + fold_expr_if(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_expr_index(&mut self, i: ExprIndex) -> ExprIndex { + fold_expr_index(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_let(&mut self, i: ExprLet) -> ExprLet { + fold_expr_let(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_expr_lit(&mut self, i: ExprLit) -> ExprLit { + fold_expr_lit(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_loop(&mut self, i: ExprLoop) -> ExprLoop { + fold_expr_loop(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_macro(&mut self, i: ExprMacro) -> ExprMacro { + fold_expr_macro(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_match(&mut self, i: ExprMatch) -> ExprMatch { + fold_expr_match(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_method_call(&mut self, i: ExprMethodCall) -> ExprMethodCall { + fold_expr_method_call(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_expr_paren(&mut self, i: ExprParen) -> ExprParen { + fold_expr_paren(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_expr_path(&mut self, i: ExprPath) -> ExprPath { + fold_expr_path(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_range(&mut self, i: ExprRange) -> ExprRange { + fold_expr_range(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_reference(&mut self, i: ExprReference) -> ExprReference { + fold_expr_reference(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_repeat(&mut self, i: ExprRepeat) -> ExprRepeat { + fold_expr_repeat(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_return(&mut self, i: ExprReturn) -> ExprReturn { + fold_expr_return(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_struct(&mut self, i: ExprStruct) -> ExprStruct { + fold_expr_struct(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_try(&mut self, i: ExprTry) -> ExprTry { + fold_expr_try(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_try_block(&mut self, i: ExprTryBlock) -> ExprTryBlock { + fold_expr_try_block(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_tuple(&mut self, i: ExprTuple) -> ExprTuple { + fold_expr_tuple(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_type(&mut self, i: ExprType) -> ExprType { + fold_expr_type(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_expr_unary(&mut self, i: ExprUnary) -> ExprUnary { + fold_expr_unary(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_unsafe(&mut self, i: ExprUnsafe) -> ExprUnsafe { + fold_expr_unsafe(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_while(&mut self, i: ExprWhile) -> ExprWhile { + fold_expr_while(self, i) + } + #[cfg(feature = "full")] + fn fold_expr_yield(&mut self, i: ExprYield) -> ExprYield { + fold_expr_yield(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_field(&mut self, i: Field) -> Field { + fold_field(self, i) + } + #[cfg(feature = "full")] + fn fold_field_pat(&mut self, i: FieldPat) -> FieldPat { + fold_field_pat(self, i) + } + #[cfg(feature = "full")] + fn fold_field_value(&mut self, i: FieldValue) -> FieldValue { + fold_field_value(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_fields(&mut self, i: Fields) -> Fields { + fold_fields(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_fields_named(&mut self, i: FieldsNamed) -> FieldsNamed { + fold_fields_named(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_fields_unnamed(&mut self, i: FieldsUnnamed) -> FieldsUnnamed { + fold_fields_unnamed(self, i) + } + #[cfg(feature = "full")] + fn fold_file(&mut self, i: File) -> File { + fold_file(self, i) + } + #[cfg(feature = "full")] + fn fold_fn_arg(&mut self, i: FnArg) -> FnArg { + fold_fn_arg(self, i) + } + #[cfg(feature = "full")] + fn fold_foreign_item(&mut self, i: ForeignItem) -> ForeignItem { + fold_foreign_item(self, i) + } + #[cfg(feature = "full")] + fn fold_foreign_item_fn(&mut self, i: ForeignItemFn) -> ForeignItemFn { + fold_foreign_item_fn(self, i) + } + #[cfg(feature = "full")] + fn fold_foreign_item_macro(&mut self, i: ForeignItemMacro) -> ForeignItemMacro { + fold_foreign_item_macro(self, i) + } + #[cfg(feature = "full")] + fn fold_foreign_item_static(&mut self, i: ForeignItemStatic) -> ForeignItemStatic { + fold_foreign_item_static(self, i) + } + #[cfg(feature = "full")] + fn fold_foreign_item_type(&mut self, i: ForeignItemType) -> ForeignItemType { + fold_foreign_item_type(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_generic_argument(&mut self, i: GenericArgument) -> GenericArgument { + fold_generic_argument(self, i) + } + #[cfg(feature = "full")] + fn fold_generic_method_argument( + &mut self, + i: GenericMethodArgument, + ) -> GenericMethodArgument { + fold_generic_method_argument(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_generic_param(&mut self, i: GenericParam) -> GenericParam { + fold_generic_param(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_generics(&mut self, i: Generics) -> Generics { + fold_generics(self, i) + } + fn fold_ident(&mut self, i: Ident) -> Ident { + fold_ident(self, i) + } + #[cfg(feature = "full")] + fn fold_impl_item(&mut self, i: ImplItem) -> ImplItem { + fold_impl_item(self, i) + } + #[cfg(feature = "full")] + fn fold_impl_item_const(&mut self, i: ImplItemConst) -> ImplItemConst { + fold_impl_item_const(self, i) + } + #[cfg(feature = "full")] + fn fold_impl_item_macro(&mut self, i: ImplItemMacro) -> ImplItemMacro { + fold_impl_item_macro(self, i) + } + #[cfg(feature = "full")] + fn fold_impl_item_method(&mut self, i: ImplItemMethod) -> ImplItemMethod { + fold_impl_item_method(self, i) + } + #[cfg(feature = "full")] + fn fold_impl_item_type(&mut self, i: ImplItemType) -> ImplItemType { + fold_impl_item_type(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_index(&mut self, i: Index) -> Index { + fold_index(self, i) + } + #[cfg(feature = "full")] + fn fold_item(&mut self, i: Item) -> Item { + fold_item(self, i) + } + #[cfg(feature = "full")] + fn fold_item_const(&mut self, i: ItemConst) -> ItemConst { + fold_item_const(self, i) + } + #[cfg(feature = "full")] + fn fold_item_enum(&mut self, i: ItemEnum) -> ItemEnum { + fold_item_enum(self, i) + } + #[cfg(feature = "full")] + fn fold_item_extern_crate(&mut self, i: ItemExternCrate) -> ItemExternCrate { + fold_item_extern_crate(self, i) + } + #[cfg(feature = "full")] + fn fold_item_fn(&mut self, i: ItemFn) -> ItemFn { + fold_item_fn(self, i) + } + #[cfg(feature = "full")] + fn fold_item_foreign_mod(&mut self, i: ItemForeignMod) -> ItemForeignMod { + fold_item_foreign_mod(self, i) + } + #[cfg(feature = "full")] + fn fold_item_impl(&mut self, i: ItemImpl) -> ItemImpl { + fold_item_impl(self, i) + } + #[cfg(feature = "full")] + fn fold_item_macro(&mut self, i: ItemMacro) -> ItemMacro { + fold_item_macro(self, i) + } + #[cfg(feature = "full")] + fn fold_item_macro2(&mut self, i: ItemMacro2) -> ItemMacro2 { + fold_item_macro2(self, i) + } + #[cfg(feature = "full")] + fn fold_item_mod(&mut self, i: ItemMod) -> ItemMod { + fold_item_mod(self, i) + } + #[cfg(feature = "full")] + fn fold_item_static(&mut self, i: ItemStatic) -> ItemStatic { + fold_item_static(self, i) + } + #[cfg(feature = "full")] + fn fold_item_struct(&mut self, i: ItemStruct) -> ItemStruct { + fold_item_struct(self, i) + } + #[cfg(feature = "full")] + fn fold_item_trait(&mut self, i: ItemTrait) -> ItemTrait { + fold_item_trait(self, i) + } + #[cfg(feature = "full")] + fn fold_item_trait_alias(&mut self, i: ItemTraitAlias) -> ItemTraitAlias { + fold_item_trait_alias(self, i) + } + #[cfg(feature = "full")] + fn fold_item_type(&mut self, i: ItemType) -> ItemType { + fold_item_type(self, i) + } + #[cfg(feature = "full")] + fn fold_item_union(&mut self, i: ItemUnion) -> ItemUnion { + fold_item_union(self, i) + } + #[cfg(feature = "full")] + fn fold_item_use(&mut self, i: ItemUse) -> ItemUse { + fold_item_use(self, i) + } + #[cfg(feature = "full")] + fn fold_label(&mut self, i: Label) -> Label { + fold_label(self, i) + } + fn fold_lifetime(&mut self, i: Lifetime) -> Lifetime { + fold_lifetime(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_lifetime_def(&mut self, i: LifetimeDef) -> LifetimeDef { + fold_lifetime_def(self, i) + } + fn fold_lit(&mut self, i: Lit) -> Lit { + fold_lit(self, i) + } + fn fold_lit_bool(&mut self, i: LitBool) -> LitBool { + fold_lit_bool(self, i) + } + fn fold_lit_byte(&mut self, i: LitByte) -> LitByte { + fold_lit_byte(self, i) + } + fn fold_lit_byte_str(&mut self, i: LitByteStr) -> LitByteStr { + fold_lit_byte_str(self, i) + } + fn fold_lit_char(&mut self, i: LitChar) -> LitChar { + fold_lit_char(self, i) + } + fn fold_lit_float(&mut self, i: LitFloat) -> LitFloat { + fold_lit_float(self, i) + } + fn fold_lit_int(&mut self, i: LitInt) -> LitInt { + fold_lit_int(self, i) + } + fn fold_lit_str(&mut self, i: LitStr) -> LitStr { + fold_lit_str(self, i) + } + #[cfg(feature = "full")] + fn fold_local(&mut self, i: Local) -> Local { + fold_local(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_macro(&mut self, i: Macro) -> Macro { + fold_macro(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_macro_delimiter(&mut self, i: MacroDelimiter) -> MacroDelimiter { + fold_macro_delimiter(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_member(&mut self, i: Member) -> Member { + fold_member(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_meta(&mut self, i: Meta) -> Meta { + fold_meta(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_meta_list(&mut self, i: MetaList) -> MetaList { + fold_meta_list(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_meta_name_value(&mut self, i: MetaNameValue) -> MetaNameValue { + fold_meta_name_value(self, i) + } + #[cfg(feature = "full")] + fn fold_method_turbofish(&mut self, i: MethodTurbofish) -> MethodTurbofish { + fold_method_turbofish(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_nested_meta(&mut self, i: NestedMeta) -> NestedMeta { + fold_nested_meta(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_parenthesized_generic_arguments( + &mut self, + i: ParenthesizedGenericArguments, + ) -> ParenthesizedGenericArguments { + fold_parenthesized_generic_arguments(self, i) + } + #[cfg(feature = "full")] + fn fold_pat(&mut self, i: Pat) -> Pat { + fold_pat(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_box(&mut self, i: PatBox) -> PatBox { + fold_pat_box(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_ident(&mut self, i: PatIdent) -> PatIdent { + fold_pat_ident(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_lit(&mut self, i: PatLit) -> PatLit { + fold_pat_lit(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_macro(&mut self, i: PatMacro) -> PatMacro { + fold_pat_macro(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_or(&mut self, i: PatOr) -> PatOr { + fold_pat_or(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_path(&mut self, i: PatPath) -> PatPath { + fold_pat_path(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_range(&mut self, i: PatRange) -> PatRange { + fold_pat_range(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_reference(&mut self, i: PatReference) -> PatReference { + fold_pat_reference(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_rest(&mut self, i: PatRest) -> PatRest { + fold_pat_rest(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_slice(&mut self, i: PatSlice) -> PatSlice { + fold_pat_slice(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_struct(&mut self, i: PatStruct) -> PatStruct { + fold_pat_struct(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_tuple(&mut self, i: PatTuple) -> PatTuple { + fold_pat_tuple(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_tuple_struct(&mut self, i: PatTupleStruct) -> PatTupleStruct { + fold_pat_tuple_struct(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_type(&mut self, i: PatType) -> PatType { + fold_pat_type(self, i) + } + #[cfg(feature = "full")] + fn fold_pat_wild(&mut self, i: PatWild) -> PatWild { + fold_pat_wild(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_path(&mut self, i: Path) -> Path { + fold_path(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_path_arguments(&mut self, i: PathArguments) -> PathArguments { + fold_path_arguments(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_path_segment(&mut self, i: PathSegment) -> PathSegment { + fold_path_segment(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_predicate_eq(&mut self, i: PredicateEq) -> PredicateEq { + fold_predicate_eq(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_predicate_lifetime(&mut self, i: PredicateLifetime) -> PredicateLifetime { + fold_predicate_lifetime(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_predicate_type(&mut self, i: PredicateType) -> PredicateType { + fold_predicate_type(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_qself(&mut self, i: QSelf) -> QSelf { + fold_qself(self, i) + } + #[cfg(feature = "full")] + fn fold_range_limits(&mut self, i: RangeLimits) -> RangeLimits { + fold_range_limits(self, i) + } + #[cfg(feature = "full")] + fn fold_receiver(&mut self, i: Receiver) -> Receiver { + fold_receiver(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_return_type(&mut self, i: ReturnType) -> ReturnType { + fold_return_type(self, i) + } + #[cfg(feature = "full")] + fn fold_signature(&mut self, i: Signature) -> Signature { + fold_signature(self, i) + } + fn fold_span(&mut self, i: Span) -> Span { + fold_span(self, i) + } + #[cfg(feature = "full")] + fn fold_stmt(&mut self, i: Stmt) -> Stmt { + fold_stmt(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_trait_bound(&mut self, i: TraitBound) -> TraitBound { + fold_trait_bound(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_trait_bound_modifier( + &mut self, + i: TraitBoundModifier, + ) -> TraitBoundModifier { + fold_trait_bound_modifier(self, i) + } + #[cfg(feature = "full")] + fn fold_trait_item(&mut self, i: TraitItem) -> TraitItem { + fold_trait_item(self, i) + } + #[cfg(feature = "full")] + fn fold_trait_item_const(&mut self, i: TraitItemConst) -> TraitItemConst { + fold_trait_item_const(self, i) + } + #[cfg(feature = "full")] + fn fold_trait_item_macro(&mut self, i: TraitItemMacro) -> TraitItemMacro { + fold_trait_item_macro(self, i) + } + #[cfg(feature = "full")] + fn fold_trait_item_method(&mut self, i: TraitItemMethod) -> TraitItemMethod { + fold_trait_item_method(self, i) + } + #[cfg(feature = "full")] + fn fold_trait_item_type(&mut self, i: TraitItemType) -> TraitItemType { + fold_trait_item_type(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type(&mut self, i: Type) -> Type { + fold_type(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_array(&mut self, i: TypeArray) -> TypeArray { + fold_type_array(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_bare_fn(&mut self, i: TypeBareFn) -> TypeBareFn { + fold_type_bare_fn(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_group(&mut self, i: TypeGroup) -> TypeGroup { + fold_type_group(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_impl_trait(&mut self, i: TypeImplTrait) -> TypeImplTrait { + fold_type_impl_trait(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_infer(&mut self, i: TypeInfer) -> TypeInfer { + fold_type_infer(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_macro(&mut self, i: TypeMacro) -> TypeMacro { + fold_type_macro(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_never(&mut self, i: TypeNever) -> TypeNever { + fold_type_never(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_param(&mut self, i: TypeParam) -> TypeParam { + fold_type_param(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_param_bound(&mut self, i: TypeParamBound) -> TypeParamBound { + fold_type_param_bound(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_paren(&mut self, i: TypeParen) -> TypeParen { + fold_type_paren(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_path(&mut self, i: TypePath) -> TypePath { + fold_type_path(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_ptr(&mut self, i: TypePtr) -> TypePtr { + fold_type_ptr(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_reference(&mut self, i: TypeReference) -> TypeReference { + fold_type_reference(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_slice(&mut self, i: TypeSlice) -> TypeSlice { + fold_type_slice(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_trait_object(&mut self, i: TypeTraitObject) -> TypeTraitObject { + fold_type_trait_object(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_type_tuple(&mut self, i: TypeTuple) -> TypeTuple { + fold_type_tuple(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_un_op(&mut self, i: UnOp) -> UnOp { + fold_un_op(self, i) + } + #[cfg(feature = "full")] + fn fold_use_glob(&mut self, i: UseGlob) -> UseGlob { + fold_use_glob(self, i) + } + #[cfg(feature = "full")] + fn fold_use_group(&mut self, i: UseGroup) -> UseGroup { + fold_use_group(self, i) + } + #[cfg(feature = "full")] + fn fold_use_name(&mut self, i: UseName) -> UseName { + fold_use_name(self, i) + } + #[cfg(feature = "full")] + fn fold_use_path(&mut self, i: UsePath) -> UsePath { + fold_use_path(self, i) + } + #[cfg(feature = "full")] + fn fold_use_rename(&mut self, i: UseRename) -> UseRename { + fold_use_rename(self, i) + } + #[cfg(feature = "full")] + fn fold_use_tree(&mut self, i: UseTree) -> UseTree { + fold_use_tree(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_variadic(&mut self, i: Variadic) -> Variadic { + fold_variadic(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_variant(&mut self, i: Variant) -> Variant { + fold_variant(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_vis_crate(&mut self, i: VisCrate) -> VisCrate { + fold_vis_crate(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_vis_public(&mut self, i: VisPublic) -> VisPublic { + fold_vis_public(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_vis_restricted(&mut self, i: VisRestricted) -> VisRestricted { + fold_vis_restricted(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_visibility(&mut self, i: Visibility) -> Visibility { + fold_visibility(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_where_clause(&mut self, i: WhereClause) -> WhereClause { + fold_where_clause(self, i) + } + #[cfg(any(feature = "derive", feature = "full"))] + fn fold_where_predicate(&mut self, i: WherePredicate) -> WherePredicate { + fold_where_predicate(self, i) + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_abi(f: &mut F, node: Abi) -> Abi +where + F: Fold + ?Sized, +{ + Abi { + extern_token: Token![extern](tokens_helper(f, &node.extern_token.span)), + name: (node.name).map(|it| f.fold_lit_str(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_angle_bracketed_generic_arguments( + f: &mut F, + node: AngleBracketedGenericArguments, +) -> AngleBracketedGenericArguments +where + F: Fold + ?Sized, +{ + AngleBracketedGenericArguments { + colon2_token: (node.colon2_token) + .map(|it| Token![::](tokens_helper(f, &it.spans))), + lt_token: Token![<](tokens_helper(f, &node.lt_token.spans)), + args: FoldHelper::lift(node.args, |it| f.fold_generic_argument(it)), + gt_token: Token![>](tokens_helper(f, &node.gt_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_arm(f: &mut F, node: Arm) -> Arm +where + F: Fold + ?Sized, +{ + Arm { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + pat: f.fold_pat(node.pat), + guard: (node.guard) + .map(|it| ( + Token![if](tokens_helper(f, &(it).0.span)), + Box::new(f.fold_expr(*(it).1)), + )), + fat_arrow_token: Token![=>](tokens_helper(f, &node.fat_arrow_token.spans)), + body: Box::new(f.fold_expr(*node.body)), + comma: (node.comma).map(|it| Token![,](tokens_helper(f, &it.spans))), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_attr_style(f: &mut F, node: AttrStyle) -> AttrStyle +where + F: Fold + ?Sized, +{ + match node { + AttrStyle::Outer => AttrStyle::Outer, + AttrStyle::Inner(_binding_0) => { + AttrStyle::Inner(Token![!](tokens_helper(f, &_binding_0.spans))) + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_attribute(f: &mut F, node: Attribute) -> Attribute +where + F: Fold + ?Sized, +{ + Attribute { + pound_token: Token![#](tokens_helper(f, &node.pound_token.spans)), + style: f.fold_attr_style(node.style), + bracket_token: Bracket(tokens_helper(f, &node.bracket_token.span)), + path: f.fold_path(node.path), + tokens: node.tokens, + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_bare_fn_arg(f: &mut F, node: BareFnArg) -> BareFnArg +where + F: Fold + ?Sized, +{ + BareFnArg { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + name: (node.name) + .map(|it| ( + f.fold_ident((it).0), + Token![:](tokens_helper(f, &(it).1.spans)), + )), + ty: f.fold_type(node.ty), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_bin_op(f: &mut F, node: BinOp) -> BinOp +where + F: Fold + ?Sized, +{ + match node { + BinOp::Add(_binding_0) => { + BinOp::Add(Token![+](tokens_helper(f, &_binding_0.spans))) + } + BinOp::Sub(_binding_0) => { + BinOp::Sub(Token![-](tokens_helper(f, &_binding_0.spans))) + } + BinOp::Mul(_binding_0) => { + BinOp::Mul(Token![*](tokens_helper(f, &_binding_0.spans))) + } + BinOp::Div(_binding_0) => { + BinOp::Div(Token![/](tokens_helper(f, &_binding_0.spans))) + } + BinOp::Rem(_binding_0) => { + BinOp::Rem(Token![%](tokens_helper(f, &_binding_0.spans))) + } + BinOp::And(_binding_0) => { + BinOp::And(Token![&&](tokens_helper(f, &_binding_0.spans))) + } + BinOp::Or(_binding_0) => { + BinOp::Or(Token![||](tokens_helper(f, &_binding_0.spans))) + } + BinOp::BitXor(_binding_0) => { + BinOp::BitXor(Token![^](tokens_helper(f, &_binding_0.spans))) + } + BinOp::BitAnd(_binding_0) => { + BinOp::BitAnd(Token![&](tokens_helper(f, &_binding_0.spans))) + } + BinOp::BitOr(_binding_0) => { + BinOp::BitOr(Token![|](tokens_helper(f, &_binding_0.spans))) + } + BinOp::Shl(_binding_0) => { + BinOp::Shl(Token![<<](tokens_helper(f, &_binding_0.spans))) + } + BinOp::Shr(_binding_0) => { + BinOp::Shr(Token![>>](tokens_helper(f, &_binding_0.spans))) + } + BinOp::Eq(_binding_0) => { + BinOp::Eq(Token![==](tokens_helper(f, &_binding_0.spans))) + } + BinOp::Lt(_binding_0) => { + BinOp::Lt(Token![<](tokens_helper(f, &_binding_0.spans))) + } + BinOp::Le(_binding_0) => { + BinOp::Le(Token![<=](tokens_helper(f, &_binding_0.spans))) + } + BinOp::Ne(_binding_0) => { + BinOp::Ne(Token![!=](tokens_helper(f, &_binding_0.spans))) + } + BinOp::Ge(_binding_0) => { + BinOp::Ge(Token![>=](tokens_helper(f, &_binding_0.spans))) + } + BinOp::Gt(_binding_0) => { + BinOp::Gt(Token![>](tokens_helper(f, &_binding_0.spans))) + } + BinOp::AddEq(_binding_0) => { + BinOp::AddEq(Token![+=](tokens_helper(f, &_binding_0.spans))) + } + BinOp::SubEq(_binding_0) => { + BinOp::SubEq(Token![-=](tokens_helper(f, &_binding_0.spans))) + } + BinOp::MulEq(_binding_0) => { + BinOp::MulEq(Token![*=](tokens_helper(f, &_binding_0.spans))) + } + BinOp::DivEq(_binding_0) => { + BinOp::DivEq(Token![/=](tokens_helper(f, &_binding_0.spans))) + } + BinOp::RemEq(_binding_0) => { + BinOp::RemEq(Token![%=](tokens_helper(f, &_binding_0.spans))) + } + BinOp::BitXorEq(_binding_0) => { + BinOp::BitXorEq(Token![^=](tokens_helper(f, &_binding_0.spans))) + } + BinOp::BitAndEq(_binding_0) => { + BinOp::BitAndEq(Token![&=](tokens_helper(f, &_binding_0.spans))) + } + BinOp::BitOrEq(_binding_0) => { + BinOp::BitOrEq(Token![|=](tokens_helper(f, &_binding_0.spans))) + } + BinOp::ShlEq(_binding_0) => { + BinOp::ShlEq(Token![<<=](tokens_helper(f, &_binding_0.spans))) + } + BinOp::ShrEq(_binding_0) => { + BinOp::ShrEq(Token![>>=](tokens_helper(f, &_binding_0.spans))) + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_binding(f: &mut F, node: Binding) -> Binding +where + F: Fold + ?Sized, +{ + Binding { + ident: f.fold_ident(node.ident), + eq_token: Token![=](tokens_helper(f, &node.eq_token.spans)), + ty: f.fold_type(node.ty), + } +} +#[cfg(feature = "full")] +pub fn fold_block(f: &mut F, node: Block) -> Block +where + F: Fold + ?Sized, +{ + Block { + brace_token: Brace(tokens_helper(f, &node.brace_token.span)), + stmts: FoldHelper::lift(node.stmts, |it| f.fold_stmt(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_bound_lifetimes(f: &mut F, node: BoundLifetimes) -> BoundLifetimes +where + F: Fold + ?Sized, +{ + BoundLifetimes { + for_token: Token![for](tokens_helper(f, &node.for_token.span)), + lt_token: Token![<](tokens_helper(f, &node.lt_token.spans)), + lifetimes: FoldHelper::lift(node.lifetimes, |it| f.fold_lifetime_def(it)), + gt_token: Token![>](tokens_helper(f, &node.gt_token.spans)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_const_param(f: &mut F, node: ConstParam) -> ConstParam +where + F: Fold + ?Sized, +{ + ConstParam { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + const_token: Token![const](tokens_helper(f, &node.const_token.span)), + ident: f.fold_ident(node.ident), + colon_token: Token![:](tokens_helper(f, &node.colon_token.spans)), + ty: f.fold_type(node.ty), + eq_token: (node.eq_token).map(|it| Token![=](tokens_helper(f, &it.spans))), + default: (node.default).map(|it| f.fold_expr(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_constraint(f: &mut F, node: Constraint) -> Constraint +where + F: Fold + ?Sized, +{ + Constraint { + ident: f.fold_ident(node.ident), + colon_token: Token![:](tokens_helper(f, &node.colon_token.spans)), + bounds: FoldHelper::lift(node.bounds, |it| f.fold_type_param_bound(it)), + } +} +#[cfg(feature = "derive")] +pub fn fold_data(f: &mut F, node: Data) -> Data +where + F: Fold + ?Sized, +{ + match node { + Data::Struct(_binding_0) => Data::Struct(f.fold_data_struct(_binding_0)), + Data::Enum(_binding_0) => Data::Enum(f.fold_data_enum(_binding_0)), + Data::Union(_binding_0) => Data::Union(f.fold_data_union(_binding_0)), + } +} +#[cfg(feature = "derive")] +pub fn fold_data_enum(f: &mut F, node: DataEnum) -> DataEnum +where + F: Fold + ?Sized, +{ + DataEnum { + enum_token: Token![enum](tokens_helper(f, &node.enum_token.span)), + brace_token: Brace(tokens_helper(f, &node.brace_token.span)), + variants: FoldHelper::lift(node.variants, |it| f.fold_variant(it)), + } +} +#[cfg(feature = "derive")] +pub fn fold_data_struct(f: &mut F, node: DataStruct) -> DataStruct +where + F: Fold + ?Sized, +{ + DataStruct { + struct_token: Token![struct](tokens_helper(f, &node.struct_token.span)), + fields: f.fold_fields(node.fields), + semi_token: (node.semi_token).map(|it| Token![;](tokens_helper(f, &it.spans))), + } +} +#[cfg(feature = "derive")] +pub fn fold_data_union(f: &mut F, node: DataUnion) -> DataUnion +where + F: Fold + ?Sized, +{ + DataUnion { + union_token: Token![union](tokens_helper(f, &node.union_token.span)), + fields: f.fold_fields_named(node.fields), + } +} +#[cfg(feature = "derive")] +pub fn fold_derive_input(f: &mut F, node: DeriveInput) -> DeriveInput +where + F: Fold + ?Sized, +{ + DeriveInput { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + ident: f.fold_ident(node.ident), + generics: f.fold_generics(node.generics), + data: f.fold_data(node.data), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_expr(f: &mut F, node: Expr) -> Expr +where + F: Fold + ?Sized, +{ + match node { + Expr::Array(_binding_0) => Expr::Array(full!(f.fold_expr_array(_binding_0))), + Expr::Assign(_binding_0) => Expr::Assign(full!(f.fold_expr_assign(_binding_0))), + Expr::AssignOp(_binding_0) => { + Expr::AssignOp(full!(f.fold_expr_assign_op(_binding_0))) + } + Expr::Async(_binding_0) => Expr::Async(full!(f.fold_expr_async(_binding_0))), + Expr::Await(_binding_0) => Expr::Await(full!(f.fold_expr_await(_binding_0))), + Expr::Binary(_binding_0) => Expr::Binary(f.fold_expr_binary(_binding_0)), + Expr::Block(_binding_0) => Expr::Block(full!(f.fold_expr_block(_binding_0))), + Expr::Box(_binding_0) => Expr::Box(full!(f.fold_expr_box(_binding_0))), + Expr::Break(_binding_0) => Expr::Break(full!(f.fold_expr_break(_binding_0))), + Expr::Call(_binding_0) => Expr::Call(f.fold_expr_call(_binding_0)), + Expr::Cast(_binding_0) => Expr::Cast(f.fold_expr_cast(_binding_0)), + Expr::Closure(_binding_0) => { + Expr::Closure(full!(f.fold_expr_closure(_binding_0))) + } + Expr::Continue(_binding_0) => { + Expr::Continue(full!(f.fold_expr_continue(_binding_0))) + } + Expr::Field(_binding_0) => Expr::Field(f.fold_expr_field(_binding_0)), + Expr::ForLoop(_binding_0) => { + Expr::ForLoop(full!(f.fold_expr_for_loop(_binding_0))) + } + Expr::Group(_binding_0) => Expr::Group(full!(f.fold_expr_group(_binding_0))), + Expr::If(_binding_0) => Expr::If(full!(f.fold_expr_if(_binding_0))), + Expr::Index(_binding_0) => Expr::Index(f.fold_expr_index(_binding_0)), + Expr::Let(_binding_0) => Expr::Let(full!(f.fold_expr_let(_binding_0))), + Expr::Lit(_binding_0) => Expr::Lit(f.fold_expr_lit(_binding_0)), + Expr::Loop(_binding_0) => Expr::Loop(full!(f.fold_expr_loop(_binding_0))), + Expr::Macro(_binding_0) => Expr::Macro(full!(f.fold_expr_macro(_binding_0))), + Expr::Match(_binding_0) => Expr::Match(full!(f.fold_expr_match(_binding_0))), + Expr::MethodCall(_binding_0) => { + Expr::MethodCall(full!(f.fold_expr_method_call(_binding_0))) + } + Expr::Paren(_binding_0) => Expr::Paren(f.fold_expr_paren(_binding_0)), + Expr::Path(_binding_0) => Expr::Path(f.fold_expr_path(_binding_0)), + Expr::Range(_binding_0) => Expr::Range(full!(f.fold_expr_range(_binding_0))), + Expr::Reference(_binding_0) => { + Expr::Reference(full!(f.fold_expr_reference(_binding_0))) + } + Expr::Repeat(_binding_0) => Expr::Repeat(full!(f.fold_expr_repeat(_binding_0))), + Expr::Return(_binding_0) => Expr::Return(full!(f.fold_expr_return(_binding_0))), + Expr::Struct(_binding_0) => Expr::Struct(full!(f.fold_expr_struct(_binding_0))), + Expr::Try(_binding_0) => Expr::Try(full!(f.fold_expr_try(_binding_0))), + Expr::TryBlock(_binding_0) => { + Expr::TryBlock(full!(f.fold_expr_try_block(_binding_0))) + } + Expr::Tuple(_binding_0) => Expr::Tuple(full!(f.fold_expr_tuple(_binding_0))), + Expr::Type(_binding_0) => Expr::Type(full!(f.fold_expr_type(_binding_0))), + Expr::Unary(_binding_0) => Expr::Unary(f.fold_expr_unary(_binding_0)), + Expr::Unsafe(_binding_0) => Expr::Unsafe(full!(f.fold_expr_unsafe(_binding_0))), + Expr::Verbatim(_binding_0) => Expr::Verbatim(_binding_0), + Expr::While(_binding_0) => Expr::While(full!(f.fold_expr_while(_binding_0))), + Expr::Yield(_binding_0) => Expr::Yield(full!(f.fold_expr_yield(_binding_0))), + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_array(f: &mut F, node: ExprArray) -> ExprArray +where + F: Fold + ?Sized, +{ + ExprArray { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + bracket_token: Bracket(tokens_helper(f, &node.bracket_token.span)), + elems: FoldHelper::lift(node.elems, |it| f.fold_expr(it)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_assign(f: &mut F, node: ExprAssign) -> ExprAssign +where + F: Fold + ?Sized, +{ + ExprAssign { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + left: Box::new(f.fold_expr(*node.left)), + eq_token: Token![=](tokens_helper(f, &node.eq_token.spans)), + right: Box::new(f.fold_expr(*node.right)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_assign_op(f: &mut F, node: ExprAssignOp) -> ExprAssignOp +where + F: Fold + ?Sized, +{ + ExprAssignOp { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + left: Box::new(f.fold_expr(*node.left)), + op: f.fold_bin_op(node.op), + right: Box::new(f.fold_expr(*node.right)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_async(f: &mut F, node: ExprAsync) -> ExprAsync +where + F: Fold + ?Sized, +{ + ExprAsync { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + async_token: Token![async](tokens_helper(f, &node.async_token.span)), + capture: (node.capture).map(|it| Token![move](tokens_helper(f, &it.span))), + block: f.fold_block(node.block), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_await(f: &mut F, node: ExprAwait) -> ExprAwait +where + F: Fold + ?Sized, +{ + ExprAwait { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + base: Box::new(f.fold_expr(*node.base)), + dot_token: Token![.](tokens_helper(f, &node.dot_token.spans)), + await_token: crate::token::Await(tokens_helper(f, &node.await_token.span)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_expr_binary(f: &mut F, node: ExprBinary) -> ExprBinary +where + F: Fold + ?Sized, +{ + ExprBinary { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + left: Box::new(f.fold_expr(*node.left)), + op: f.fold_bin_op(node.op), + right: Box::new(f.fold_expr(*node.right)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_block(f: &mut F, node: ExprBlock) -> ExprBlock +where + F: Fold + ?Sized, +{ + ExprBlock { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + label: (node.label).map(|it| f.fold_label(it)), + block: f.fold_block(node.block), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_box(f: &mut F, node: ExprBox) -> ExprBox +where + F: Fold + ?Sized, +{ + ExprBox { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + box_token: Token![box](tokens_helper(f, &node.box_token.span)), + expr: Box::new(f.fold_expr(*node.expr)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_break(f: &mut F, node: ExprBreak) -> ExprBreak +where + F: Fold + ?Sized, +{ + ExprBreak { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + break_token: Token![break](tokens_helper(f, &node.break_token.span)), + label: (node.label).map(|it| f.fold_lifetime(it)), + expr: (node.expr).map(|it| Box::new(f.fold_expr(*it))), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_expr_call(f: &mut F, node: ExprCall) -> ExprCall +where + F: Fold + ?Sized, +{ + ExprCall { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + func: Box::new(f.fold_expr(*node.func)), + paren_token: Paren(tokens_helper(f, &node.paren_token.span)), + args: FoldHelper::lift(node.args, |it| f.fold_expr(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_expr_cast(f: &mut F, node: ExprCast) -> ExprCast +where + F: Fold + ?Sized, +{ + ExprCast { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + expr: Box::new(f.fold_expr(*node.expr)), + as_token: Token![as](tokens_helper(f, &node.as_token.span)), + ty: Box::new(f.fold_type(*node.ty)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_closure(f: &mut F, node: ExprClosure) -> ExprClosure +where + F: Fold + ?Sized, +{ + ExprClosure { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + movability: (node.movability) + .map(|it| Token![static](tokens_helper(f, &it.span))), + asyncness: (node.asyncness).map(|it| Token![async](tokens_helper(f, &it.span))), + capture: (node.capture).map(|it| Token![move](tokens_helper(f, &it.span))), + or1_token: Token![|](tokens_helper(f, &node.or1_token.spans)), + inputs: FoldHelper::lift(node.inputs, |it| f.fold_pat(it)), + or2_token: Token![|](tokens_helper(f, &node.or2_token.spans)), + output: f.fold_return_type(node.output), + body: Box::new(f.fold_expr(*node.body)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_continue(f: &mut F, node: ExprContinue) -> ExprContinue +where + F: Fold + ?Sized, +{ + ExprContinue { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + continue_token: Token![continue](tokens_helper(f, &node.continue_token.span)), + label: (node.label).map(|it| f.fold_lifetime(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_expr_field(f: &mut F, node: ExprField) -> ExprField +where + F: Fold + ?Sized, +{ + ExprField { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + base: Box::new(f.fold_expr(*node.base)), + dot_token: Token![.](tokens_helper(f, &node.dot_token.spans)), + member: f.fold_member(node.member), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_for_loop(f: &mut F, node: ExprForLoop) -> ExprForLoop +where + F: Fold + ?Sized, +{ + ExprForLoop { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + label: (node.label).map(|it| f.fold_label(it)), + for_token: Token![for](tokens_helper(f, &node.for_token.span)), + pat: f.fold_pat(node.pat), + in_token: Token![in](tokens_helper(f, &node.in_token.span)), + expr: Box::new(f.fold_expr(*node.expr)), + body: f.fold_block(node.body), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_group(f: &mut F, node: ExprGroup) -> ExprGroup +where + F: Fold + ?Sized, +{ + ExprGroup { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + group_token: Group(tokens_helper(f, &node.group_token.span)), + expr: Box::new(f.fold_expr(*node.expr)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_if(f: &mut F, node: ExprIf) -> ExprIf +where + F: Fold + ?Sized, +{ + ExprIf { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + if_token: Token![if](tokens_helper(f, &node.if_token.span)), + cond: Box::new(f.fold_expr(*node.cond)), + then_branch: f.fold_block(node.then_branch), + else_branch: (node.else_branch) + .map(|it| ( + Token![else](tokens_helper(f, &(it).0.span)), + Box::new(f.fold_expr(*(it).1)), + )), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_expr_index(f: &mut F, node: ExprIndex) -> ExprIndex +where + F: Fold + ?Sized, +{ + ExprIndex { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + expr: Box::new(f.fold_expr(*node.expr)), + bracket_token: Bracket(tokens_helper(f, &node.bracket_token.span)), + index: Box::new(f.fold_expr(*node.index)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_let(f: &mut F, node: ExprLet) -> ExprLet +where + F: Fold + ?Sized, +{ + ExprLet { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + let_token: Token![let](tokens_helper(f, &node.let_token.span)), + pat: f.fold_pat(node.pat), + eq_token: Token![=](tokens_helper(f, &node.eq_token.spans)), + expr: Box::new(f.fold_expr(*node.expr)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_expr_lit(f: &mut F, node: ExprLit) -> ExprLit +where + F: Fold + ?Sized, +{ + ExprLit { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + lit: f.fold_lit(node.lit), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_loop(f: &mut F, node: ExprLoop) -> ExprLoop +where + F: Fold + ?Sized, +{ + ExprLoop { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + label: (node.label).map(|it| f.fold_label(it)), + loop_token: Token![loop](tokens_helper(f, &node.loop_token.span)), + body: f.fold_block(node.body), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_macro(f: &mut F, node: ExprMacro) -> ExprMacro +where + F: Fold + ?Sized, +{ + ExprMacro { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + mac: f.fold_macro(node.mac), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_match(f: &mut F, node: ExprMatch) -> ExprMatch +where + F: Fold + ?Sized, +{ + ExprMatch { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + match_token: Token![match](tokens_helper(f, &node.match_token.span)), + expr: Box::new(f.fold_expr(*node.expr)), + brace_token: Brace(tokens_helper(f, &node.brace_token.span)), + arms: FoldHelper::lift(node.arms, |it| f.fold_arm(it)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_method_call(f: &mut F, node: ExprMethodCall) -> ExprMethodCall +where + F: Fold + ?Sized, +{ + ExprMethodCall { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + receiver: Box::new(f.fold_expr(*node.receiver)), + dot_token: Token![.](tokens_helper(f, &node.dot_token.spans)), + method: f.fold_ident(node.method), + turbofish: (node.turbofish).map(|it| f.fold_method_turbofish(it)), + paren_token: Paren(tokens_helper(f, &node.paren_token.span)), + args: FoldHelper::lift(node.args, |it| f.fold_expr(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_expr_paren(f: &mut F, node: ExprParen) -> ExprParen +where + F: Fold + ?Sized, +{ + ExprParen { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + paren_token: Paren(tokens_helper(f, &node.paren_token.span)), + expr: Box::new(f.fold_expr(*node.expr)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_expr_path(f: &mut F, node: ExprPath) -> ExprPath +where + F: Fold + ?Sized, +{ + ExprPath { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + qself: (node.qself).map(|it| f.fold_qself(it)), + path: f.fold_path(node.path), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_range(f: &mut F, node: ExprRange) -> ExprRange +where + F: Fold + ?Sized, +{ + ExprRange { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + from: (node.from).map(|it| Box::new(f.fold_expr(*it))), + limits: f.fold_range_limits(node.limits), + to: (node.to).map(|it| Box::new(f.fold_expr(*it))), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_reference(f: &mut F, node: ExprReference) -> ExprReference +where + F: Fold + ?Sized, +{ + ExprReference { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + and_token: Token![&](tokens_helper(f, &node.and_token.spans)), + raw: node.raw, + mutability: (node.mutability).map(|it| Token![mut](tokens_helper(f, &it.span))), + expr: Box::new(f.fold_expr(*node.expr)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_repeat(f: &mut F, node: ExprRepeat) -> ExprRepeat +where + F: Fold + ?Sized, +{ + ExprRepeat { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + bracket_token: Bracket(tokens_helper(f, &node.bracket_token.span)), + expr: Box::new(f.fold_expr(*node.expr)), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + len: Box::new(f.fold_expr(*node.len)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_return(f: &mut F, node: ExprReturn) -> ExprReturn +where + F: Fold + ?Sized, +{ + ExprReturn { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + return_token: Token![return](tokens_helper(f, &node.return_token.span)), + expr: (node.expr).map(|it| Box::new(f.fold_expr(*it))), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_struct(f: &mut F, node: ExprStruct) -> ExprStruct +where + F: Fold + ?Sized, +{ + ExprStruct { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + path: f.fold_path(node.path), + brace_token: Brace(tokens_helper(f, &node.brace_token.span)), + fields: FoldHelper::lift(node.fields, |it| f.fold_field_value(it)), + dot2_token: (node.dot2_token).map(|it| Token![..](tokens_helper(f, &it.spans))), + rest: (node.rest).map(|it| Box::new(f.fold_expr(*it))), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_try(f: &mut F, node: ExprTry) -> ExprTry +where + F: Fold + ?Sized, +{ + ExprTry { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + expr: Box::new(f.fold_expr(*node.expr)), + question_token: Token![?](tokens_helper(f, &node.question_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_try_block(f: &mut F, node: ExprTryBlock) -> ExprTryBlock +where + F: Fold + ?Sized, +{ + ExprTryBlock { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + try_token: Token![try](tokens_helper(f, &node.try_token.span)), + block: f.fold_block(node.block), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_tuple(f: &mut F, node: ExprTuple) -> ExprTuple +where + F: Fold + ?Sized, +{ + ExprTuple { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + paren_token: Paren(tokens_helper(f, &node.paren_token.span)), + elems: FoldHelper::lift(node.elems, |it| f.fold_expr(it)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_type(f: &mut F, node: ExprType) -> ExprType +where + F: Fold + ?Sized, +{ + ExprType { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + expr: Box::new(f.fold_expr(*node.expr)), + colon_token: Token![:](tokens_helper(f, &node.colon_token.spans)), + ty: Box::new(f.fold_type(*node.ty)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_expr_unary(f: &mut F, node: ExprUnary) -> ExprUnary +where + F: Fold + ?Sized, +{ + ExprUnary { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + op: f.fold_un_op(node.op), + expr: Box::new(f.fold_expr(*node.expr)), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_unsafe(f: &mut F, node: ExprUnsafe) -> ExprUnsafe +where + F: Fold + ?Sized, +{ + ExprUnsafe { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + unsafe_token: Token![unsafe](tokens_helper(f, &node.unsafe_token.span)), + block: f.fold_block(node.block), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_while(f: &mut F, node: ExprWhile) -> ExprWhile +where + F: Fold + ?Sized, +{ + ExprWhile { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + label: (node.label).map(|it| f.fold_label(it)), + while_token: Token![while](tokens_helper(f, &node.while_token.span)), + cond: Box::new(f.fold_expr(*node.cond)), + body: f.fold_block(node.body), + } +} +#[cfg(feature = "full")] +pub fn fold_expr_yield(f: &mut F, node: ExprYield) -> ExprYield +where + F: Fold + ?Sized, +{ + ExprYield { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + yield_token: Token![yield](tokens_helper(f, &node.yield_token.span)), + expr: (node.expr).map(|it| Box::new(f.fold_expr(*it))), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_field(f: &mut F, node: Field) -> Field +where + F: Fold + ?Sized, +{ + Field { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + ident: (node.ident).map(|it| f.fold_ident(it)), + colon_token: (node.colon_token).map(|it| Token![:](tokens_helper(f, &it.spans))), + ty: f.fold_type(node.ty), + } +} +#[cfg(feature = "full")] +pub fn fold_field_pat(f: &mut F, node: FieldPat) -> FieldPat +where + F: Fold + ?Sized, +{ + FieldPat { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + member: f.fold_member(node.member), + colon_token: (node.colon_token).map(|it| Token![:](tokens_helper(f, &it.spans))), + pat: Box::new(f.fold_pat(*node.pat)), + } +} +#[cfg(feature = "full")] +pub fn fold_field_value(f: &mut F, node: FieldValue) -> FieldValue +where + F: Fold + ?Sized, +{ + FieldValue { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + member: f.fold_member(node.member), + colon_token: (node.colon_token).map(|it| Token![:](tokens_helper(f, &it.spans))), + expr: f.fold_expr(node.expr), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_fields(f: &mut F, node: Fields) -> Fields +where + F: Fold + ?Sized, +{ + match node { + Fields::Named(_binding_0) => Fields::Named(f.fold_fields_named(_binding_0)), + Fields::Unnamed(_binding_0) => Fields::Unnamed(f.fold_fields_unnamed(_binding_0)), + Fields::Unit => Fields::Unit, + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_fields_named(f: &mut F, node: FieldsNamed) -> FieldsNamed +where + F: Fold + ?Sized, +{ + FieldsNamed { + brace_token: Brace(tokens_helper(f, &node.brace_token.span)), + named: FoldHelper::lift(node.named, |it| f.fold_field(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_fields_unnamed(f: &mut F, node: FieldsUnnamed) -> FieldsUnnamed +where + F: Fold + ?Sized, +{ + FieldsUnnamed { + paren_token: Paren(tokens_helper(f, &node.paren_token.span)), + unnamed: FoldHelper::lift(node.unnamed, |it| f.fold_field(it)), + } +} +#[cfg(feature = "full")] +pub fn fold_file(f: &mut F, node: File) -> File +where + F: Fold + ?Sized, +{ + File { + shebang: node.shebang, + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + items: FoldHelper::lift(node.items, |it| f.fold_item(it)), + } +} +#[cfg(feature = "full")] +pub fn fold_fn_arg(f: &mut F, node: FnArg) -> FnArg +where + F: Fold + ?Sized, +{ + match node { + FnArg::Receiver(_binding_0) => FnArg::Receiver(f.fold_receiver(_binding_0)), + FnArg::Typed(_binding_0) => FnArg::Typed(f.fold_pat_type(_binding_0)), + } +} +#[cfg(feature = "full")] +pub fn fold_foreign_item(f: &mut F, node: ForeignItem) -> ForeignItem +where + F: Fold + ?Sized, +{ + match node { + ForeignItem::Fn(_binding_0) => { + ForeignItem::Fn(f.fold_foreign_item_fn(_binding_0)) + } + ForeignItem::Static(_binding_0) => { + ForeignItem::Static(f.fold_foreign_item_static(_binding_0)) + } + ForeignItem::Type(_binding_0) => { + ForeignItem::Type(f.fold_foreign_item_type(_binding_0)) + } + ForeignItem::Macro(_binding_0) => { + ForeignItem::Macro(f.fold_foreign_item_macro(_binding_0)) + } + ForeignItem::Verbatim(_binding_0) => ForeignItem::Verbatim(_binding_0), + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn fold_foreign_item_fn(f: &mut F, node: ForeignItemFn) -> ForeignItemFn +where + F: Fold + ?Sized, +{ + ForeignItemFn { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + sig: f.fold_signature(node.sig), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_foreign_item_macro(f: &mut F, node: ForeignItemMacro) -> ForeignItemMacro +where + F: Fold + ?Sized, +{ + ForeignItemMacro { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + mac: f.fold_macro(node.mac), + semi_token: (node.semi_token).map(|it| Token![;](tokens_helper(f, &it.spans))), + } +} +#[cfg(feature = "full")] +pub fn fold_foreign_item_static( + f: &mut F, + node: ForeignItemStatic, +) -> ForeignItemStatic +where + F: Fold + ?Sized, +{ + ForeignItemStatic { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + static_token: Token![static](tokens_helper(f, &node.static_token.span)), + mutability: (node.mutability).map(|it| Token![mut](tokens_helper(f, &it.span))), + ident: f.fold_ident(node.ident), + colon_token: Token![:](tokens_helper(f, &node.colon_token.spans)), + ty: Box::new(f.fold_type(*node.ty)), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_foreign_item_type(f: &mut F, node: ForeignItemType) -> ForeignItemType +where + F: Fold + ?Sized, +{ + ForeignItemType { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + type_token: Token![type](tokens_helper(f, &node.type_token.span)), + ident: f.fold_ident(node.ident), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_generic_argument(f: &mut F, node: GenericArgument) -> GenericArgument +where + F: Fold + ?Sized, +{ + match node { + GenericArgument::Lifetime(_binding_0) => { + GenericArgument::Lifetime(f.fold_lifetime(_binding_0)) + } + GenericArgument::Type(_binding_0) => { + GenericArgument::Type(f.fold_type(_binding_0)) + } + GenericArgument::Const(_binding_0) => { + GenericArgument::Const(f.fold_expr(_binding_0)) + } + GenericArgument::Binding(_binding_0) => { + GenericArgument::Binding(f.fold_binding(_binding_0)) + } + GenericArgument::Constraint(_binding_0) => { + GenericArgument::Constraint(f.fold_constraint(_binding_0)) + } + } +} +#[cfg(feature = "full")] +pub fn fold_generic_method_argument( + f: &mut F, + node: GenericMethodArgument, +) -> GenericMethodArgument +where + F: Fold + ?Sized, +{ + match node { + GenericMethodArgument::Type(_binding_0) => { + GenericMethodArgument::Type(f.fold_type(_binding_0)) + } + GenericMethodArgument::Const(_binding_0) => { + GenericMethodArgument::Const(f.fold_expr(_binding_0)) + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_generic_param(f: &mut F, node: GenericParam) -> GenericParam +where + F: Fold + ?Sized, +{ + match node { + GenericParam::Type(_binding_0) => { + GenericParam::Type(f.fold_type_param(_binding_0)) + } + GenericParam::Lifetime(_binding_0) => { + GenericParam::Lifetime(f.fold_lifetime_def(_binding_0)) + } + GenericParam::Const(_binding_0) => { + GenericParam::Const(f.fold_const_param(_binding_0)) + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_generics(f: &mut F, node: Generics) -> Generics +where + F: Fold + ?Sized, +{ + Generics { + lt_token: (node.lt_token).map(|it| Token![<](tokens_helper(f, &it.spans))), + params: FoldHelper::lift(node.params, |it| f.fold_generic_param(it)), + gt_token: (node.gt_token).map(|it| Token![>](tokens_helper(f, &it.spans))), + where_clause: (node.where_clause).map(|it| f.fold_where_clause(it)), + } +} +pub fn fold_ident(f: &mut F, node: Ident) -> Ident +where + F: Fold + ?Sized, +{ + let mut node = node; + let span = f.fold_span(node.span()); + node.set_span(span); + node +} +#[cfg(feature = "full")] +pub fn fold_impl_item(f: &mut F, node: ImplItem) -> ImplItem +where + F: Fold + ?Sized, +{ + match node { + ImplItem::Const(_binding_0) => { + ImplItem::Const(f.fold_impl_item_const(_binding_0)) + } + ImplItem::Method(_binding_0) => { + ImplItem::Method(f.fold_impl_item_method(_binding_0)) + } + ImplItem::Type(_binding_0) => ImplItem::Type(f.fold_impl_item_type(_binding_0)), + ImplItem::Macro(_binding_0) => { + ImplItem::Macro(f.fold_impl_item_macro(_binding_0)) + } + ImplItem::Verbatim(_binding_0) => ImplItem::Verbatim(_binding_0), + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn fold_impl_item_const(f: &mut F, node: ImplItemConst) -> ImplItemConst +where + F: Fold + ?Sized, +{ + ImplItemConst { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + defaultness: (node.defaultness) + .map(|it| Token![default](tokens_helper(f, &it.span))), + const_token: Token![const](tokens_helper(f, &node.const_token.span)), + ident: f.fold_ident(node.ident), + colon_token: Token![:](tokens_helper(f, &node.colon_token.spans)), + ty: f.fold_type(node.ty), + eq_token: Token![=](tokens_helper(f, &node.eq_token.spans)), + expr: f.fold_expr(node.expr), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_impl_item_macro(f: &mut F, node: ImplItemMacro) -> ImplItemMacro +where + F: Fold + ?Sized, +{ + ImplItemMacro { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + mac: f.fold_macro(node.mac), + semi_token: (node.semi_token).map(|it| Token![;](tokens_helper(f, &it.spans))), + } +} +#[cfg(feature = "full")] +pub fn fold_impl_item_method(f: &mut F, node: ImplItemMethod) -> ImplItemMethod +where + F: Fold + ?Sized, +{ + ImplItemMethod { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + defaultness: (node.defaultness) + .map(|it| Token![default](tokens_helper(f, &it.span))), + sig: f.fold_signature(node.sig), + block: f.fold_block(node.block), + } +} +#[cfg(feature = "full")] +pub fn fold_impl_item_type(f: &mut F, node: ImplItemType) -> ImplItemType +where + F: Fold + ?Sized, +{ + ImplItemType { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + defaultness: (node.defaultness) + .map(|it| Token![default](tokens_helper(f, &it.span))), + type_token: Token![type](tokens_helper(f, &node.type_token.span)), + ident: f.fold_ident(node.ident), + generics: f.fold_generics(node.generics), + eq_token: Token![=](tokens_helper(f, &node.eq_token.spans)), + ty: f.fold_type(node.ty), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_index(f: &mut F, node: Index) -> Index +where + F: Fold + ?Sized, +{ + Index { + index: node.index, + span: f.fold_span(node.span), + } +} +#[cfg(feature = "full")] +pub fn fold_item(f: &mut F, node: Item) -> Item +where + F: Fold + ?Sized, +{ + match node { + Item::Const(_binding_0) => Item::Const(f.fold_item_const(_binding_0)), + Item::Enum(_binding_0) => Item::Enum(f.fold_item_enum(_binding_0)), + Item::ExternCrate(_binding_0) => { + Item::ExternCrate(f.fold_item_extern_crate(_binding_0)) + } + Item::Fn(_binding_0) => Item::Fn(f.fold_item_fn(_binding_0)), + Item::ForeignMod(_binding_0) => { + Item::ForeignMod(f.fold_item_foreign_mod(_binding_0)) + } + Item::Impl(_binding_0) => Item::Impl(f.fold_item_impl(_binding_0)), + Item::Macro(_binding_0) => Item::Macro(f.fold_item_macro(_binding_0)), + Item::Macro2(_binding_0) => Item::Macro2(f.fold_item_macro2(_binding_0)), + Item::Mod(_binding_0) => Item::Mod(f.fold_item_mod(_binding_0)), + Item::Static(_binding_0) => Item::Static(f.fold_item_static(_binding_0)), + Item::Struct(_binding_0) => Item::Struct(f.fold_item_struct(_binding_0)), + Item::Trait(_binding_0) => Item::Trait(f.fold_item_trait(_binding_0)), + Item::TraitAlias(_binding_0) => { + Item::TraitAlias(f.fold_item_trait_alias(_binding_0)) + } + Item::Type(_binding_0) => Item::Type(f.fold_item_type(_binding_0)), + Item::Union(_binding_0) => Item::Union(f.fold_item_union(_binding_0)), + Item::Use(_binding_0) => Item::Use(f.fold_item_use(_binding_0)), + Item::Verbatim(_binding_0) => Item::Verbatim(_binding_0), + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn fold_item_const(f: &mut F, node: ItemConst) -> ItemConst +where + F: Fold + ?Sized, +{ + ItemConst { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + const_token: Token![const](tokens_helper(f, &node.const_token.span)), + ident: f.fold_ident(node.ident), + colon_token: Token![:](tokens_helper(f, &node.colon_token.spans)), + ty: Box::new(f.fold_type(*node.ty)), + eq_token: Token![=](tokens_helper(f, &node.eq_token.spans)), + expr: Box::new(f.fold_expr(*node.expr)), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_item_enum(f: &mut F, node: ItemEnum) -> ItemEnum +where + F: Fold + ?Sized, +{ + ItemEnum { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + enum_token: Token![enum](tokens_helper(f, &node.enum_token.span)), + ident: f.fold_ident(node.ident), + generics: f.fold_generics(node.generics), + brace_token: Brace(tokens_helper(f, &node.brace_token.span)), + variants: FoldHelper::lift(node.variants, |it| f.fold_variant(it)), + } +} +#[cfg(feature = "full")] +pub fn fold_item_extern_crate(f: &mut F, node: ItemExternCrate) -> ItemExternCrate +where + F: Fold + ?Sized, +{ + ItemExternCrate { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + extern_token: Token![extern](tokens_helper(f, &node.extern_token.span)), + crate_token: Token![crate](tokens_helper(f, &node.crate_token.span)), + ident: f.fold_ident(node.ident), + rename: (node.rename) + .map(|it| ( + Token![as](tokens_helper(f, &(it).0.span)), + f.fold_ident((it).1), + )), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_item_fn(f: &mut F, node: ItemFn) -> ItemFn +where + F: Fold + ?Sized, +{ + ItemFn { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + sig: f.fold_signature(node.sig), + block: Box::new(f.fold_block(*node.block)), + } +} +#[cfg(feature = "full")] +pub fn fold_item_foreign_mod(f: &mut F, node: ItemForeignMod) -> ItemForeignMod +where + F: Fold + ?Sized, +{ + ItemForeignMod { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + abi: f.fold_abi(node.abi), + brace_token: Brace(tokens_helper(f, &node.brace_token.span)), + items: FoldHelper::lift(node.items, |it| f.fold_foreign_item(it)), + } +} +#[cfg(feature = "full")] +pub fn fold_item_impl(f: &mut F, node: ItemImpl) -> ItemImpl +where + F: Fold + ?Sized, +{ + ItemImpl { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + defaultness: (node.defaultness) + .map(|it| Token![default](tokens_helper(f, &it.span))), + unsafety: (node.unsafety).map(|it| Token![unsafe](tokens_helper(f, &it.span))), + impl_token: Token![impl](tokens_helper(f, &node.impl_token.span)), + generics: f.fold_generics(node.generics), + trait_: (node.trait_) + .map(|it| ( + ((it).0).map(|it| Token![!](tokens_helper(f, &it.spans))), + f.fold_path((it).1), + Token![for](tokens_helper(f, &(it).2.span)), + )), + self_ty: Box::new(f.fold_type(*node.self_ty)), + brace_token: Brace(tokens_helper(f, &node.brace_token.span)), + items: FoldHelper::lift(node.items, |it| f.fold_impl_item(it)), + } +} +#[cfg(feature = "full")] +pub fn fold_item_macro(f: &mut F, node: ItemMacro) -> ItemMacro +where + F: Fold + ?Sized, +{ + ItemMacro { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + ident: (node.ident).map(|it| f.fold_ident(it)), + mac: f.fold_macro(node.mac), + semi_token: (node.semi_token).map(|it| Token![;](tokens_helper(f, &it.spans))), + } +} +#[cfg(feature = "full")] +pub fn fold_item_macro2(f: &mut F, node: ItemMacro2) -> ItemMacro2 +where + F: Fold + ?Sized, +{ + ItemMacro2 { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + macro_token: Token![macro](tokens_helper(f, &node.macro_token.span)), + ident: f.fold_ident(node.ident), + rules: node.rules, + } +} +#[cfg(feature = "full")] +pub fn fold_item_mod(f: &mut F, node: ItemMod) -> ItemMod +where + F: Fold + ?Sized, +{ + ItemMod { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + mod_token: Token![mod](tokens_helper(f, &node.mod_token.span)), + ident: f.fold_ident(node.ident), + content: (node.content) + .map(|it| ( + Brace(tokens_helper(f, &(it).0.span)), + FoldHelper::lift((it).1, |it| f.fold_item(it)), + )), + semi: (node.semi).map(|it| Token![;](tokens_helper(f, &it.spans))), + } +} +#[cfg(feature = "full")] +pub fn fold_item_static(f: &mut F, node: ItemStatic) -> ItemStatic +where + F: Fold + ?Sized, +{ + ItemStatic { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + static_token: Token![static](tokens_helper(f, &node.static_token.span)), + mutability: (node.mutability).map(|it| Token![mut](tokens_helper(f, &it.span))), + ident: f.fold_ident(node.ident), + colon_token: Token![:](tokens_helper(f, &node.colon_token.spans)), + ty: Box::new(f.fold_type(*node.ty)), + eq_token: Token![=](tokens_helper(f, &node.eq_token.spans)), + expr: Box::new(f.fold_expr(*node.expr)), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_item_struct(f: &mut F, node: ItemStruct) -> ItemStruct +where + F: Fold + ?Sized, +{ + ItemStruct { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + struct_token: Token![struct](tokens_helper(f, &node.struct_token.span)), + ident: f.fold_ident(node.ident), + generics: f.fold_generics(node.generics), + fields: f.fold_fields(node.fields), + semi_token: (node.semi_token).map(|it| Token![;](tokens_helper(f, &it.spans))), + } +} +#[cfg(feature = "full")] +pub fn fold_item_trait(f: &mut F, node: ItemTrait) -> ItemTrait +where + F: Fold + ?Sized, +{ + ItemTrait { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + unsafety: (node.unsafety).map(|it| Token![unsafe](tokens_helper(f, &it.span))), + auto_token: (node.auto_token).map(|it| Token![auto](tokens_helper(f, &it.span))), + trait_token: Token![trait](tokens_helper(f, &node.trait_token.span)), + ident: f.fold_ident(node.ident), + generics: f.fold_generics(node.generics), + colon_token: (node.colon_token).map(|it| Token![:](tokens_helper(f, &it.spans))), + supertraits: FoldHelper::lift( + node.supertraits, + |it| f.fold_type_param_bound(it), + ), + brace_token: Brace(tokens_helper(f, &node.brace_token.span)), + items: FoldHelper::lift(node.items, |it| f.fold_trait_item(it)), + } +} +#[cfg(feature = "full")] +pub fn fold_item_trait_alias(f: &mut F, node: ItemTraitAlias) -> ItemTraitAlias +where + F: Fold + ?Sized, +{ + ItemTraitAlias { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + trait_token: Token![trait](tokens_helper(f, &node.trait_token.span)), + ident: f.fold_ident(node.ident), + generics: f.fold_generics(node.generics), + eq_token: Token![=](tokens_helper(f, &node.eq_token.spans)), + bounds: FoldHelper::lift(node.bounds, |it| f.fold_type_param_bound(it)), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_item_type(f: &mut F, node: ItemType) -> ItemType +where + F: Fold + ?Sized, +{ + ItemType { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + type_token: Token![type](tokens_helper(f, &node.type_token.span)), + ident: f.fold_ident(node.ident), + generics: f.fold_generics(node.generics), + eq_token: Token![=](tokens_helper(f, &node.eq_token.spans)), + ty: Box::new(f.fold_type(*node.ty)), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_item_union(f: &mut F, node: ItemUnion) -> ItemUnion +where + F: Fold + ?Sized, +{ + ItemUnion { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + union_token: Token![union](tokens_helper(f, &node.union_token.span)), + ident: f.fold_ident(node.ident), + generics: f.fold_generics(node.generics), + fields: f.fold_fields_named(node.fields), + } +} +#[cfg(feature = "full")] +pub fn fold_item_use(f: &mut F, node: ItemUse) -> ItemUse +where + F: Fold + ?Sized, +{ + ItemUse { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + vis: f.fold_visibility(node.vis), + use_token: Token![use](tokens_helper(f, &node.use_token.span)), + leading_colon: (node.leading_colon) + .map(|it| Token![::](tokens_helper(f, &it.spans))), + tree: f.fold_use_tree(node.tree), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_label(f: &mut F, node: Label) -> Label +where + F: Fold + ?Sized, +{ + Label { + name: f.fold_lifetime(node.name), + colon_token: Token![:](tokens_helper(f, &node.colon_token.spans)), + } +} +pub fn fold_lifetime(f: &mut F, node: Lifetime) -> Lifetime +where + F: Fold + ?Sized, +{ + Lifetime { + apostrophe: f.fold_span(node.apostrophe), + ident: f.fold_ident(node.ident), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_lifetime_def(f: &mut F, node: LifetimeDef) -> LifetimeDef +where + F: Fold + ?Sized, +{ + LifetimeDef { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + lifetime: f.fold_lifetime(node.lifetime), + colon_token: (node.colon_token).map(|it| Token![:](tokens_helper(f, &it.spans))), + bounds: FoldHelper::lift(node.bounds, |it| f.fold_lifetime(it)), + } +} +pub fn fold_lit(f: &mut F, node: Lit) -> Lit +where + F: Fold + ?Sized, +{ + match node { + Lit::Str(_binding_0) => Lit::Str(f.fold_lit_str(_binding_0)), + Lit::ByteStr(_binding_0) => Lit::ByteStr(f.fold_lit_byte_str(_binding_0)), + Lit::Byte(_binding_0) => Lit::Byte(f.fold_lit_byte(_binding_0)), + Lit::Char(_binding_0) => Lit::Char(f.fold_lit_char(_binding_0)), + Lit::Int(_binding_0) => Lit::Int(f.fold_lit_int(_binding_0)), + Lit::Float(_binding_0) => Lit::Float(f.fold_lit_float(_binding_0)), + Lit::Bool(_binding_0) => Lit::Bool(f.fold_lit_bool(_binding_0)), + Lit::Verbatim(_binding_0) => Lit::Verbatim(_binding_0), + } +} +pub fn fold_lit_bool(f: &mut F, node: LitBool) -> LitBool +where + F: Fold + ?Sized, +{ + LitBool { + value: node.value, + span: f.fold_span(node.span), + } +} +pub fn fold_lit_byte(f: &mut F, node: LitByte) -> LitByte +where + F: Fold + ?Sized, +{ + let span = f.fold_span(node.span()); + let mut node = node; + node.set_span(span); + node +} +pub fn fold_lit_byte_str(f: &mut F, node: LitByteStr) -> LitByteStr +where + F: Fold + ?Sized, +{ + let span = f.fold_span(node.span()); + let mut node = node; + node.set_span(span); + node +} +pub fn fold_lit_char(f: &mut F, node: LitChar) -> LitChar +where + F: Fold + ?Sized, +{ + let span = f.fold_span(node.span()); + let mut node = node; + node.set_span(span); + node +} +pub fn fold_lit_float(f: &mut F, node: LitFloat) -> LitFloat +where + F: Fold + ?Sized, +{ + let span = f.fold_span(node.span()); + let mut node = node; + node.set_span(span); + node +} +pub fn fold_lit_int(f: &mut F, node: LitInt) -> LitInt +where + F: Fold + ?Sized, +{ + let span = f.fold_span(node.span()); + let mut node = node; + node.set_span(span); + node +} +pub fn fold_lit_str(f: &mut F, node: LitStr) -> LitStr +where + F: Fold + ?Sized, +{ + let span = f.fold_span(node.span()); + let mut node = node; + node.set_span(span); + node +} +#[cfg(feature = "full")] +pub fn fold_local(f: &mut F, node: Local) -> Local +where + F: Fold + ?Sized, +{ + Local { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + let_token: Token![let](tokens_helper(f, &node.let_token.span)), + pat: f.fold_pat(node.pat), + init: (node.init) + .map(|it| ( + Token![=](tokens_helper(f, &(it).0.spans)), + Box::new(f.fold_expr(*(it).1)), + )), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_macro(f: &mut F, node: Macro) -> Macro +where + F: Fold + ?Sized, +{ + Macro { + path: f.fold_path(node.path), + bang_token: Token![!](tokens_helper(f, &node.bang_token.spans)), + delimiter: f.fold_macro_delimiter(node.delimiter), + tokens: node.tokens, + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_macro_delimiter(f: &mut F, node: MacroDelimiter) -> MacroDelimiter +where + F: Fold + ?Sized, +{ + match node { + MacroDelimiter::Paren(_binding_0) => { + MacroDelimiter::Paren(Paren(tokens_helper(f, &_binding_0.span))) + } + MacroDelimiter::Brace(_binding_0) => { + MacroDelimiter::Brace(Brace(tokens_helper(f, &_binding_0.span))) + } + MacroDelimiter::Bracket(_binding_0) => { + MacroDelimiter::Bracket(Bracket(tokens_helper(f, &_binding_0.span))) + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_member(f: &mut F, node: Member) -> Member +where + F: Fold + ?Sized, +{ + match node { + Member::Named(_binding_0) => Member::Named(f.fold_ident(_binding_0)), + Member::Unnamed(_binding_0) => Member::Unnamed(f.fold_index(_binding_0)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_meta(f: &mut F, node: Meta) -> Meta +where + F: Fold + ?Sized, +{ + match node { + Meta::Path(_binding_0) => Meta::Path(f.fold_path(_binding_0)), + Meta::List(_binding_0) => Meta::List(f.fold_meta_list(_binding_0)), + Meta::NameValue(_binding_0) => { + Meta::NameValue(f.fold_meta_name_value(_binding_0)) + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_meta_list(f: &mut F, node: MetaList) -> MetaList +where + F: Fold + ?Sized, +{ + MetaList { + path: f.fold_path(node.path), + paren_token: Paren(tokens_helper(f, &node.paren_token.span)), + nested: FoldHelper::lift(node.nested, |it| f.fold_nested_meta(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_meta_name_value(f: &mut F, node: MetaNameValue) -> MetaNameValue +where + F: Fold + ?Sized, +{ + MetaNameValue { + path: f.fold_path(node.path), + eq_token: Token![=](tokens_helper(f, &node.eq_token.spans)), + lit: f.fold_lit(node.lit), + } +} +#[cfg(feature = "full")] +pub fn fold_method_turbofish(f: &mut F, node: MethodTurbofish) -> MethodTurbofish +where + F: Fold + ?Sized, +{ + MethodTurbofish { + colon2_token: Token![::](tokens_helper(f, &node.colon2_token.spans)), + lt_token: Token![<](tokens_helper(f, &node.lt_token.spans)), + args: FoldHelper::lift(node.args, |it| f.fold_generic_method_argument(it)), + gt_token: Token![>](tokens_helper(f, &node.gt_token.spans)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_nested_meta(f: &mut F, node: NestedMeta) -> NestedMeta +where + F: Fold + ?Sized, +{ + match node { + NestedMeta::Meta(_binding_0) => NestedMeta::Meta(f.fold_meta(_binding_0)), + NestedMeta::Lit(_binding_0) => NestedMeta::Lit(f.fold_lit(_binding_0)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_parenthesized_generic_arguments( + f: &mut F, + node: ParenthesizedGenericArguments, +) -> ParenthesizedGenericArguments +where + F: Fold + ?Sized, +{ + ParenthesizedGenericArguments { + paren_token: Paren(tokens_helper(f, &node.paren_token.span)), + inputs: FoldHelper::lift(node.inputs, |it| f.fold_type(it)), + output: f.fold_return_type(node.output), + } +} +#[cfg(feature = "full")] +pub fn fold_pat(f: &mut F, node: Pat) -> Pat +where + F: Fold + ?Sized, +{ + match node { + Pat::Box(_binding_0) => Pat::Box(f.fold_pat_box(_binding_0)), + Pat::Ident(_binding_0) => Pat::Ident(f.fold_pat_ident(_binding_0)), + Pat::Lit(_binding_0) => Pat::Lit(f.fold_pat_lit(_binding_0)), + Pat::Macro(_binding_0) => Pat::Macro(f.fold_pat_macro(_binding_0)), + Pat::Or(_binding_0) => Pat::Or(f.fold_pat_or(_binding_0)), + Pat::Path(_binding_0) => Pat::Path(f.fold_pat_path(_binding_0)), + Pat::Range(_binding_0) => Pat::Range(f.fold_pat_range(_binding_0)), + Pat::Reference(_binding_0) => Pat::Reference(f.fold_pat_reference(_binding_0)), + Pat::Rest(_binding_0) => Pat::Rest(f.fold_pat_rest(_binding_0)), + Pat::Slice(_binding_0) => Pat::Slice(f.fold_pat_slice(_binding_0)), + Pat::Struct(_binding_0) => Pat::Struct(f.fold_pat_struct(_binding_0)), + Pat::Tuple(_binding_0) => Pat::Tuple(f.fold_pat_tuple(_binding_0)), + Pat::TupleStruct(_binding_0) => { + Pat::TupleStruct(f.fold_pat_tuple_struct(_binding_0)) + } + Pat::Type(_binding_0) => Pat::Type(f.fold_pat_type(_binding_0)), + Pat::Verbatim(_binding_0) => Pat::Verbatim(_binding_0), + Pat::Wild(_binding_0) => Pat::Wild(f.fold_pat_wild(_binding_0)), + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_box(f: &mut F, node: PatBox) -> PatBox +where + F: Fold + ?Sized, +{ + PatBox { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + box_token: Token![box](tokens_helper(f, &node.box_token.span)), + pat: Box::new(f.fold_pat(*node.pat)), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_ident(f: &mut F, node: PatIdent) -> PatIdent +where + F: Fold + ?Sized, +{ + PatIdent { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + by_ref: (node.by_ref).map(|it| Token![ref](tokens_helper(f, &it.span))), + mutability: (node.mutability).map(|it| Token![mut](tokens_helper(f, &it.span))), + ident: f.fold_ident(node.ident), + subpat: (node.subpat) + .map(|it| ( + Token![@](tokens_helper(f, &(it).0.spans)), + Box::new(f.fold_pat(*(it).1)), + )), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_lit(f: &mut F, node: PatLit) -> PatLit +where + F: Fold + ?Sized, +{ + PatLit { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + expr: Box::new(f.fold_expr(*node.expr)), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_macro(f: &mut F, node: PatMacro) -> PatMacro +where + F: Fold + ?Sized, +{ + PatMacro { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + mac: f.fold_macro(node.mac), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_or(f: &mut F, node: PatOr) -> PatOr +where + F: Fold + ?Sized, +{ + PatOr { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + leading_vert: (node.leading_vert) + .map(|it| Token![|](tokens_helper(f, &it.spans))), + cases: FoldHelper::lift(node.cases, |it| f.fold_pat(it)), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_path(f: &mut F, node: PatPath) -> PatPath +where + F: Fold + ?Sized, +{ + PatPath { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + qself: (node.qself).map(|it| f.fold_qself(it)), + path: f.fold_path(node.path), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_range(f: &mut F, node: PatRange) -> PatRange +where + F: Fold + ?Sized, +{ + PatRange { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + lo: Box::new(f.fold_expr(*node.lo)), + limits: f.fold_range_limits(node.limits), + hi: Box::new(f.fold_expr(*node.hi)), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_reference(f: &mut F, node: PatReference) -> PatReference +where + F: Fold + ?Sized, +{ + PatReference { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + and_token: Token![&](tokens_helper(f, &node.and_token.spans)), + mutability: (node.mutability).map(|it| Token![mut](tokens_helper(f, &it.span))), + pat: Box::new(f.fold_pat(*node.pat)), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_rest(f: &mut F, node: PatRest) -> PatRest +where + F: Fold + ?Sized, +{ + PatRest { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + dot2_token: Token![..](tokens_helper(f, &node.dot2_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_slice(f: &mut F, node: PatSlice) -> PatSlice +where + F: Fold + ?Sized, +{ + PatSlice { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + bracket_token: Bracket(tokens_helper(f, &node.bracket_token.span)), + elems: FoldHelper::lift(node.elems, |it| f.fold_pat(it)), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_struct(f: &mut F, node: PatStruct) -> PatStruct +where + F: Fold + ?Sized, +{ + PatStruct { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + path: f.fold_path(node.path), + brace_token: Brace(tokens_helper(f, &node.brace_token.span)), + fields: FoldHelper::lift(node.fields, |it| f.fold_field_pat(it)), + dot2_token: (node.dot2_token).map(|it| Token![..](tokens_helper(f, &it.spans))), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_tuple(f: &mut F, node: PatTuple) -> PatTuple +where + F: Fold + ?Sized, +{ + PatTuple { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + paren_token: Paren(tokens_helper(f, &node.paren_token.span)), + elems: FoldHelper::lift(node.elems, |it| f.fold_pat(it)), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_tuple_struct(f: &mut F, node: PatTupleStruct) -> PatTupleStruct +where + F: Fold + ?Sized, +{ + PatTupleStruct { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + path: f.fold_path(node.path), + pat: f.fold_pat_tuple(node.pat), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_type(f: &mut F, node: PatType) -> PatType +where + F: Fold + ?Sized, +{ + PatType { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + pat: Box::new(f.fold_pat(*node.pat)), + colon_token: Token![:](tokens_helper(f, &node.colon_token.spans)), + ty: Box::new(f.fold_type(*node.ty)), + } +} +#[cfg(feature = "full")] +pub fn fold_pat_wild(f: &mut F, node: PatWild) -> PatWild +where + F: Fold + ?Sized, +{ + PatWild { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + underscore_token: Token![_](tokens_helper(f, &node.underscore_token.spans)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_path(f: &mut F, node: Path) -> Path +where + F: Fold + ?Sized, +{ + Path { + leading_colon: (node.leading_colon) + .map(|it| Token![::](tokens_helper(f, &it.spans))), + segments: FoldHelper::lift(node.segments, |it| f.fold_path_segment(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_path_arguments(f: &mut F, node: PathArguments) -> PathArguments +where + F: Fold + ?Sized, +{ + match node { + PathArguments::None => PathArguments::None, + PathArguments::AngleBracketed(_binding_0) => { + PathArguments::AngleBracketed( + f.fold_angle_bracketed_generic_arguments(_binding_0), + ) + } + PathArguments::Parenthesized(_binding_0) => { + PathArguments::Parenthesized( + f.fold_parenthesized_generic_arguments(_binding_0), + ) + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_path_segment(f: &mut F, node: PathSegment) -> PathSegment +where + F: Fold + ?Sized, +{ + PathSegment { + ident: f.fold_ident(node.ident), + arguments: f.fold_path_arguments(node.arguments), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_predicate_eq(f: &mut F, node: PredicateEq) -> PredicateEq +where + F: Fold + ?Sized, +{ + PredicateEq { + lhs_ty: f.fold_type(node.lhs_ty), + eq_token: Token![=](tokens_helper(f, &node.eq_token.spans)), + rhs_ty: f.fold_type(node.rhs_ty), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_predicate_lifetime( + f: &mut F, + node: PredicateLifetime, +) -> PredicateLifetime +where + F: Fold + ?Sized, +{ + PredicateLifetime { + lifetime: f.fold_lifetime(node.lifetime), + colon_token: Token![:](tokens_helper(f, &node.colon_token.spans)), + bounds: FoldHelper::lift(node.bounds, |it| f.fold_lifetime(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_predicate_type(f: &mut F, node: PredicateType) -> PredicateType +where + F: Fold + ?Sized, +{ + PredicateType { + lifetimes: (node.lifetimes).map(|it| f.fold_bound_lifetimes(it)), + bounded_ty: f.fold_type(node.bounded_ty), + colon_token: Token![:](tokens_helper(f, &node.colon_token.spans)), + bounds: FoldHelper::lift(node.bounds, |it| f.fold_type_param_bound(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_qself(f: &mut F, node: QSelf) -> QSelf +where + F: Fold + ?Sized, +{ + QSelf { + lt_token: Token![<](tokens_helper(f, &node.lt_token.spans)), + ty: Box::new(f.fold_type(*node.ty)), + position: node.position, + as_token: (node.as_token).map(|it| Token![as](tokens_helper(f, &it.span))), + gt_token: Token![>](tokens_helper(f, &node.gt_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_range_limits(f: &mut F, node: RangeLimits) -> RangeLimits +where + F: Fold + ?Sized, +{ + match node { + RangeLimits::HalfOpen(_binding_0) => { + RangeLimits::HalfOpen(Token![..](tokens_helper(f, &_binding_0.spans))) + } + RangeLimits::Closed(_binding_0) => { + RangeLimits::Closed(Token![..=](tokens_helper(f, &_binding_0.spans))) + } + } +} +#[cfg(feature = "full")] +pub fn fold_receiver(f: &mut F, node: Receiver) -> Receiver +where + F: Fold + ?Sized, +{ + Receiver { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + reference: (node.reference) + .map(|it| ( + Token![&](tokens_helper(f, &(it).0.spans)), + ((it).1).map(|it| f.fold_lifetime(it)), + )), + mutability: (node.mutability).map(|it| Token![mut](tokens_helper(f, &it.span))), + self_token: Token![self](tokens_helper(f, &node.self_token.span)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_return_type(f: &mut F, node: ReturnType) -> ReturnType +where + F: Fold + ?Sized, +{ + match node { + ReturnType::Default => ReturnType::Default, + ReturnType::Type(_binding_0, _binding_1) => { + ReturnType::Type( + Token![->](tokens_helper(f, &_binding_0.spans)), + Box::new(f.fold_type(*_binding_1)), + ) + } + } +} +#[cfg(feature = "full")] +pub fn fold_signature(f: &mut F, node: Signature) -> Signature +where + F: Fold + ?Sized, +{ + Signature { + constness: (node.constness).map(|it| Token![const](tokens_helper(f, &it.span))), + asyncness: (node.asyncness).map(|it| Token![async](tokens_helper(f, &it.span))), + unsafety: (node.unsafety).map(|it| Token![unsafe](tokens_helper(f, &it.span))), + abi: (node.abi).map(|it| f.fold_abi(it)), + fn_token: Token![fn](tokens_helper(f, &node.fn_token.span)), + ident: f.fold_ident(node.ident), + generics: f.fold_generics(node.generics), + paren_token: Paren(tokens_helper(f, &node.paren_token.span)), + inputs: FoldHelper::lift(node.inputs, |it| f.fold_fn_arg(it)), + variadic: (node.variadic).map(|it| f.fold_variadic(it)), + output: f.fold_return_type(node.output), + } +} +pub fn fold_span(f: &mut F, node: Span) -> Span +where + F: Fold + ?Sized, +{ + node +} +#[cfg(feature = "full")] +pub fn fold_stmt(f: &mut F, node: Stmt) -> Stmt +where + F: Fold + ?Sized, +{ + match node { + Stmt::Local(_binding_0) => Stmt::Local(f.fold_local(_binding_0)), + Stmt::Item(_binding_0) => Stmt::Item(f.fold_item(_binding_0)), + Stmt::Expr(_binding_0) => Stmt::Expr(f.fold_expr(_binding_0)), + Stmt::Semi(_binding_0, _binding_1) => { + Stmt::Semi( + f.fold_expr(_binding_0), + Token![;](tokens_helper(f, &_binding_1.spans)), + ) + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_trait_bound(f: &mut F, node: TraitBound) -> TraitBound +where + F: Fold + ?Sized, +{ + TraitBound { + paren_token: (node.paren_token).map(|it| Paren(tokens_helper(f, &it.span))), + modifier: f.fold_trait_bound_modifier(node.modifier), + lifetimes: (node.lifetimes).map(|it| f.fold_bound_lifetimes(it)), + path: f.fold_path(node.path), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_trait_bound_modifier( + f: &mut F, + node: TraitBoundModifier, +) -> TraitBoundModifier +where + F: Fold + ?Sized, +{ + match node { + TraitBoundModifier::None => TraitBoundModifier::None, + TraitBoundModifier::Maybe(_binding_0) => { + TraitBoundModifier::Maybe(Token![?](tokens_helper(f, &_binding_0.spans))) + } + } +} +#[cfg(feature = "full")] +pub fn fold_trait_item(f: &mut F, node: TraitItem) -> TraitItem +where + F: Fold + ?Sized, +{ + match node { + TraitItem::Const(_binding_0) => { + TraitItem::Const(f.fold_trait_item_const(_binding_0)) + } + TraitItem::Method(_binding_0) => { + TraitItem::Method(f.fold_trait_item_method(_binding_0)) + } + TraitItem::Type(_binding_0) => { + TraitItem::Type(f.fold_trait_item_type(_binding_0)) + } + TraitItem::Macro(_binding_0) => { + TraitItem::Macro(f.fold_trait_item_macro(_binding_0)) + } + TraitItem::Verbatim(_binding_0) => TraitItem::Verbatim(_binding_0), + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn fold_trait_item_const(f: &mut F, node: TraitItemConst) -> TraitItemConst +where + F: Fold + ?Sized, +{ + TraitItemConst { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + const_token: Token![const](tokens_helper(f, &node.const_token.span)), + ident: f.fold_ident(node.ident), + colon_token: Token![:](tokens_helper(f, &node.colon_token.spans)), + ty: f.fold_type(node.ty), + default: (node.default) + .map(|it| (Token![=](tokens_helper(f, &(it).0.spans)), f.fold_expr((it).1))), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_trait_item_macro(f: &mut F, node: TraitItemMacro) -> TraitItemMacro +where + F: Fold + ?Sized, +{ + TraitItemMacro { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + mac: f.fold_macro(node.mac), + semi_token: (node.semi_token).map(|it| Token![;](tokens_helper(f, &it.spans))), + } +} +#[cfg(feature = "full")] +pub fn fold_trait_item_method(f: &mut F, node: TraitItemMethod) -> TraitItemMethod +where + F: Fold + ?Sized, +{ + TraitItemMethod { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + sig: f.fold_signature(node.sig), + default: (node.default).map(|it| f.fold_block(it)), + semi_token: (node.semi_token).map(|it| Token![;](tokens_helper(f, &it.spans))), + } +} +#[cfg(feature = "full")] +pub fn fold_trait_item_type(f: &mut F, node: TraitItemType) -> TraitItemType +where + F: Fold + ?Sized, +{ + TraitItemType { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + type_token: Token![type](tokens_helper(f, &node.type_token.span)), + ident: f.fold_ident(node.ident), + generics: f.fold_generics(node.generics), + colon_token: (node.colon_token).map(|it| Token![:](tokens_helper(f, &it.spans))), + bounds: FoldHelper::lift(node.bounds, |it| f.fold_type_param_bound(it)), + default: (node.default) + .map(|it| (Token![=](tokens_helper(f, &(it).0.spans)), f.fold_type((it).1))), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type(f: &mut F, node: Type) -> Type +where + F: Fold + ?Sized, +{ + match node { + Type::Array(_binding_0) => Type::Array(f.fold_type_array(_binding_0)), + Type::BareFn(_binding_0) => Type::BareFn(f.fold_type_bare_fn(_binding_0)), + Type::Group(_binding_0) => Type::Group(f.fold_type_group(_binding_0)), + Type::ImplTrait(_binding_0) => { + Type::ImplTrait(f.fold_type_impl_trait(_binding_0)) + } + Type::Infer(_binding_0) => Type::Infer(f.fold_type_infer(_binding_0)), + Type::Macro(_binding_0) => Type::Macro(f.fold_type_macro(_binding_0)), + Type::Never(_binding_0) => Type::Never(f.fold_type_never(_binding_0)), + Type::Paren(_binding_0) => Type::Paren(f.fold_type_paren(_binding_0)), + Type::Path(_binding_0) => Type::Path(f.fold_type_path(_binding_0)), + Type::Ptr(_binding_0) => Type::Ptr(f.fold_type_ptr(_binding_0)), + Type::Reference(_binding_0) => Type::Reference(f.fold_type_reference(_binding_0)), + Type::Slice(_binding_0) => Type::Slice(f.fold_type_slice(_binding_0)), + Type::TraitObject(_binding_0) => { + Type::TraitObject(f.fold_type_trait_object(_binding_0)) + } + Type::Tuple(_binding_0) => Type::Tuple(f.fold_type_tuple(_binding_0)), + Type::Verbatim(_binding_0) => Type::Verbatim(_binding_0), + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_array(f: &mut F, node: TypeArray) -> TypeArray +where + F: Fold + ?Sized, +{ + TypeArray { + bracket_token: Bracket(tokens_helper(f, &node.bracket_token.span)), + elem: Box::new(f.fold_type(*node.elem)), + semi_token: Token![;](tokens_helper(f, &node.semi_token.spans)), + len: f.fold_expr(node.len), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_bare_fn(f: &mut F, node: TypeBareFn) -> TypeBareFn +where + F: Fold + ?Sized, +{ + TypeBareFn { + lifetimes: (node.lifetimes).map(|it| f.fold_bound_lifetimes(it)), + unsafety: (node.unsafety).map(|it| Token![unsafe](tokens_helper(f, &it.span))), + abi: (node.abi).map(|it| f.fold_abi(it)), + fn_token: Token![fn](tokens_helper(f, &node.fn_token.span)), + paren_token: Paren(tokens_helper(f, &node.paren_token.span)), + inputs: FoldHelper::lift(node.inputs, |it| f.fold_bare_fn_arg(it)), + variadic: (node.variadic).map(|it| f.fold_variadic(it)), + output: f.fold_return_type(node.output), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_group(f: &mut F, node: TypeGroup) -> TypeGroup +where + F: Fold + ?Sized, +{ + TypeGroup { + group_token: Group(tokens_helper(f, &node.group_token.span)), + elem: Box::new(f.fold_type(*node.elem)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_impl_trait(f: &mut F, node: TypeImplTrait) -> TypeImplTrait +where + F: Fold + ?Sized, +{ + TypeImplTrait { + impl_token: Token![impl](tokens_helper(f, &node.impl_token.span)), + bounds: FoldHelper::lift(node.bounds, |it| f.fold_type_param_bound(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_infer(f: &mut F, node: TypeInfer) -> TypeInfer +where + F: Fold + ?Sized, +{ + TypeInfer { + underscore_token: Token![_](tokens_helper(f, &node.underscore_token.spans)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_macro(f: &mut F, node: TypeMacro) -> TypeMacro +where + F: Fold + ?Sized, +{ + TypeMacro { + mac: f.fold_macro(node.mac), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_never(f: &mut F, node: TypeNever) -> TypeNever +where + F: Fold + ?Sized, +{ + TypeNever { + bang_token: Token![!](tokens_helper(f, &node.bang_token.spans)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_param(f: &mut F, node: TypeParam) -> TypeParam +where + F: Fold + ?Sized, +{ + TypeParam { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + ident: f.fold_ident(node.ident), + colon_token: (node.colon_token).map(|it| Token![:](tokens_helper(f, &it.spans))), + bounds: FoldHelper::lift(node.bounds, |it| f.fold_type_param_bound(it)), + eq_token: (node.eq_token).map(|it| Token![=](tokens_helper(f, &it.spans))), + default: (node.default).map(|it| f.fold_type(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_param_bound(f: &mut F, node: TypeParamBound) -> TypeParamBound +where + F: Fold + ?Sized, +{ + match node { + TypeParamBound::Trait(_binding_0) => { + TypeParamBound::Trait(f.fold_trait_bound(_binding_0)) + } + TypeParamBound::Lifetime(_binding_0) => { + TypeParamBound::Lifetime(f.fold_lifetime(_binding_0)) + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_paren(f: &mut F, node: TypeParen) -> TypeParen +where + F: Fold + ?Sized, +{ + TypeParen { + paren_token: Paren(tokens_helper(f, &node.paren_token.span)), + elem: Box::new(f.fold_type(*node.elem)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_path(f: &mut F, node: TypePath) -> TypePath +where + F: Fold + ?Sized, +{ + TypePath { + qself: (node.qself).map(|it| f.fold_qself(it)), + path: f.fold_path(node.path), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_ptr(f: &mut F, node: TypePtr) -> TypePtr +where + F: Fold + ?Sized, +{ + TypePtr { + star_token: Token![*](tokens_helper(f, &node.star_token.spans)), + const_token: (node.const_token) + .map(|it| Token![const](tokens_helper(f, &it.span))), + mutability: (node.mutability).map(|it| Token![mut](tokens_helper(f, &it.span))), + elem: Box::new(f.fold_type(*node.elem)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_reference(f: &mut F, node: TypeReference) -> TypeReference +where + F: Fold + ?Sized, +{ + TypeReference { + and_token: Token![&](tokens_helper(f, &node.and_token.spans)), + lifetime: (node.lifetime).map(|it| f.fold_lifetime(it)), + mutability: (node.mutability).map(|it| Token![mut](tokens_helper(f, &it.span))), + elem: Box::new(f.fold_type(*node.elem)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_slice(f: &mut F, node: TypeSlice) -> TypeSlice +where + F: Fold + ?Sized, +{ + TypeSlice { + bracket_token: Bracket(tokens_helper(f, &node.bracket_token.span)), + elem: Box::new(f.fold_type(*node.elem)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_trait_object(f: &mut F, node: TypeTraitObject) -> TypeTraitObject +where + F: Fold + ?Sized, +{ + TypeTraitObject { + dyn_token: (node.dyn_token).map(|it| Token![dyn](tokens_helper(f, &it.span))), + bounds: FoldHelper::lift(node.bounds, |it| f.fold_type_param_bound(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_type_tuple(f: &mut F, node: TypeTuple) -> TypeTuple +where + F: Fold + ?Sized, +{ + TypeTuple { + paren_token: Paren(tokens_helper(f, &node.paren_token.span)), + elems: FoldHelper::lift(node.elems, |it| f.fold_type(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_un_op(f: &mut F, node: UnOp) -> UnOp +where + F: Fold + ?Sized, +{ + match node { + UnOp::Deref(_binding_0) => { + UnOp::Deref(Token![*](tokens_helper(f, &_binding_0.spans))) + } + UnOp::Not(_binding_0) => { + UnOp::Not(Token![!](tokens_helper(f, &_binding_0.spans))) + } + UnOp::Neg(_binding_0) => { + UnOp::Neg(Token![-](tokens_helper(f, &_binding_0.spans))) + } + } +} +#[cfg(feature = "full")] +pub fn fold_use_glob(f: &mut F, node: UseGlob) -> UseGlob +where + F: Fold + ?Sized, +{ + UseGlob { + star_token: Token![*](tokens_helper(f, &node.star_token.spans)), + } +} +#[cfg(feature = "full")] +pub fn fold_use_group(f: &mut F, node: UseGroup) -> UseGroup +where + F: Fold + ?Sized, +{ + UseGroup { + brace_token: Brace(tokens_helper(f, &node.brace_token.span)), + items: FoldHelper::lift(node.items, |it| f.fold_use_tree(it)), + } +} +#[cfg(feature = "full")] +pub fn fold_use_name(f: &mut F, node: UseName) -> UseName +where + F: Fold + ?Sized, +{ + UseName { + ident: f.fold_ident(node.ident), + } +} +#[cfg(feature = "full")] +pub fn fold_use_path(f: &mut F, node: UsePath) -> UsePath +where + F: Fold + ?Sized, +{ + UsePath { + ident: f.fold_ident(node.ident), + colon2_token: Token![::](tokens_helper(f, &node.colon2_token.spans)), + tree: Box::new(f.fold_use_tree(*node.tree)), + } +} +#[cfg(feature = "full")] +pub fn fold_use_rename(f: &mut F, node: UseRename) -> UseRename +where + F: Fold + ?Sized, +{ + UseRename { + ident: f.fold_ident(node.ident), + as_token: Token![as](tokens_helper(f, &node.as_token.span)), + rename: f.fold_ident(node.rename), + } +} +#[cfg(feature = "full")] +pub fn fold_use_tree(f: &mut F, node: UseTree) -> UseTree +where + F: Fold + ?Sized, +{ + match node { + UseTree::Path(_binding_0) => UseTree::Path(f.fold_use_path(_binding_0)), + UseTree::Name(_binding_0) => UseTree::Name(f.fold_use_name(_binding_0)), + UseTree::Rename(_binding_0) => UseTree::Rename(f.fold_use_rename(_binding_0)), + UseTree::Glob(_binding_0) => UseTree::Glob(f.fold_use_glob(_binding_0)), + UseTree::Group(_binding_0) => UseTree::Group(f.fold_use_group(_binding_0)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_variadic(f: &mut F, node: Variadic) -> Variadic +where + F: Fold + ?Sized, +{ + Variadic { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + dots: Token![...](tokens_helper(f, &node.dots.spans)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_variant(f: &mut F, node: Variant) -> Variant +where + F: Fold + ?Sized, +{ + Variant { + attrs: FoldHelper::lift(node.attrs, |it| f.fold_attribute(it)), + ident: f.fold_ident(node.ident), + fields: f.fold_fields(node.fields), + discriminant: (node.discriminant) + .map(|it| (Token![=](tokens_helper(f, &(it).0.spans)), f.fold_expr((it).1))), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_vis_crate(f: &mut F, node: VisCrate) -> VisCrate +where + F: Fold + ?Sized, +{ + VisCrate { + crate_token: Token![crate](tokens_helper(f, &node.crate_token.span)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_vis_public(f: &mut F, node: VisPublic) -> VisPublic +where + F: Fold + ?Sized, +{ + VisPublic { + pub_token: Token![pub](tokens_helper(f, &node.pub_token.span)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_vis_restricted(f: &mut F, node: VisRestricted) -> VisRestricted +where + F: Fold + ?Sized, +{ + VisRestricted { + pub_token: Token![pub](tokens_helper(f, &node.pub_token.span)), + paren_token: Paren(tokens_helper(f, &node.paren_token.span)), + in_token: (node.in_token).map(|it| Token![in](tokens_helper(f, &it.span))), + path: Box::new(f.fold_path(*node.path)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_visibility(f: &mut F, node: Visibility) -> Visibility +where + F: Fold + ?Sized, +{ + match node { + Visibility::Public(_binding_0) => { + Visibility::Public(f.fold_vis_public(_binding_0)) + } + Visibility::Crate(_binding_0) => Visibility::Crate(f.fold_vis_crate(_binding_0)), + Visibility::Restricted(_binding_0) => { + Visibility::Restricted(f.fold_vis_restricted(_binding_0)) + } + Visibility::Inherited => Visibility::Inherited, + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_where_clause(f: &mut F, node: WhereClause) -> WhereClause +where + F: Fold + ?Sized, +{ + WhereClause { + where_token: Token![where](tokens_helper(f, &node.where_token.span)), + predicates: FoldHelper::lift(node.predicates, |it| f.fold_where_predicate(it)), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn fold_where_predicate(f: &mut F, node: WherePredicate) -> WherePredicate +where + F: Fold + ?Sized, +{ + match node { + WherePredicate::Type(_binding_0) => { + WherePredicate::Type(f.fold_predicate_type(_binding_0)) + } + WherePredicate::Lifetime(_binding_0) => { + WherePredicate::Lifetime(f.fold_predicate_lifetime(_binding_0)) + } + WherePredicate::Eq(_binding_0) => { + WherePredicate::Eq(f.fold_predicate_eq(_binding_0)) + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/hash.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/hash.rs new file mode 100644 index 0000000000000000000000000000000000000000..d0400e19d6d8c6d3ef6187387d3352a9a6a91751 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/hash.rs @@ -0,0 +1,2869 @@ +// This file is @generated by syn-internal-codegen. +// It is not intended for manual editing. + +#[cfg(any(feature = "derive", feature = "full"))] +use crate::tt::TokenStreamHelper; +use crate::*; +use std::hash::{Hash, Hasher}; +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Abi { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.name.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for AngleBracketedGenericArguments { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.colon2_token.hash(state); + self.args.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Arm { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.pat.hash(state); + self.guard.hash(state); + self.body.hash(state); + self.comma.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for AttrStyle { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + AttrStyle::Outer => { + state.write_u8(0u8); + } + AttrStyle::Inner(_) => { + state.write_u8(1u8); + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Attribute { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.style.hash(state); + self.path.hash(state); + TokenStreamHelper(&self.tokens).hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for BareFnArg { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.name.hash(state); + self.ty.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for BinOp { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + BinOp::Add(_) => { + state.write_u8(0u8); + } + BinOp::Sub(_) => { + state.write_u8(1u8); + } + BinOp::Mul(_) => { + state.write_u8(2u8); + } + BinOp::Div(_) => { + state.write_u8(3u8); + } + BinOp::Rem(_) => { + state.write_u8(4u8); + } + BinOp::And(_) => { + state.write_u8(5u8); + } + BinOp::Or(_) => { + state.write_u8(6u8); + } + BinOp::BitXor(_) => { + state.write_u8(7u8); + } + BinOp::BitAnd(_) => { + state.write_u8(8u8); + } + BinOp::BitOr(_) => { + state.write_u8(9u8); + } + BinOp::Shl(_) => { + state.write_u8(10u8); + } + BinOp::Shr(_) => { + state.write_u8(11u8); + } + BinOp::Eq(_) => { + state.write_u8(12u8); + } + BinOp::Lt(_) => { + state.write_u8(13u8); + } + BinOp::Le(_) => { + state.write_u8(14u8); + } + BinOp::Ne(_) => { + state.write_u8(15u8); + } + BinOp::Ge(_) => { + state.write_u8(16u8); + } + BinOp::Gt(_) => { + state.write_u8(17u8); + } + BinOp::AddEq(_) => { + state.write_u8(18u8); + } + BinOp::SubEq(_) => { + state.write_u8(19u8); + } + BinOp::MulEq(_) => { + state.write_u8(20u8); + } + BinOp::DivEq(_) => { + state.write_u8(21u8); + } + BinOp::RemEq(_) => { + state.write_u8(22u8); + } + BinOp::BitXorEq(_) => { + state.write_u8(23u8); + } + BinOp::BitAndEq(_) => { + state.write_u8(24u8); + } + BinOp::BitOrEq(_) => { + state.write_u8(25u8); + } + BinOp::ShlEq(_) => { + state.write_u8(26u8); + } + BinOp::ShrEq(_) => { + state.write_u8(27u8); + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Binding { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.ident.hash(state); + self.ty.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Block { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.stmts.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for BoundLifetimes { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.lifetimes.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ConstParam { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.ident.hash(state); + self.ty.hash(state); + self.eq_token.hash(state); + self.default.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Constraint { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.ident.hash(state); + self.bounds.hash(state); + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Data { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + Data::Struct(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + Data::Enum(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + Data::Union(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + } + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for DataEnum { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.variants.hash(state); + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for DataStruct { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.fields.hash(state); + self.semi_token.hash(state); + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for DataUnion { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.fields.hash(state); + } +} +#[cfg(feature = "derive")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for DeriveInput { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.ident.hash(state); + self.generics.hash(state); + self.data.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Expr { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + #[cfg(feature = "full")] + Expr::Array(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Assign(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::AssignOp(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Async(v0) => { + state.write_u8(3u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Await(v0) => { + state.write_u8(4u8); + v0.hash(state); + } + Expr::Binary(v0) => { + state.write_u8(5u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Block(v0) => { + state.write_u8(6u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Box(v0) => { + state.write_u8(7u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Break(v0) => { + state.write_u8(8u8); + v0.hash(state); + } + Expr::Call(v0) => { + state.write_u8(9u8); + v0.hash(state); + } + Expr::Cast(v0) => { + state.write_u8(10u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Closure(v0) => { + state.write_u8(11u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Continue(v0) => { + state.write_u8(12u8); + v0.hash(state); + } + Expr::Field(v0) => { + state.write_u8(13u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::ForLoop(v0) => { + state.write_u8(14u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Group(v0) => { + state.write_u8(15u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::If(v0) => { + state.write_u8(16u8); + v0.hash(state); + } + Expr::Index(v0) => { + state.write_u8(17u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Let(v0) => { + state.write_u8(18u8); + v0.hash(state); + } + Expr::Lit(v0) => { + state.write_u8(19u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Loop(v0) => { + state.write_u8(20u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Macro(v0) => { + state.write_u8(21u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Match(v0) => { + state.write_u8(22u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::MethodCall(v0) => { + state.write_u8(23u8); + v0.hash(state); + } + Expr::Paren(v0) => { + state.write_u8(24u8); + v0.hash(state); + } + Expr::Path(v0) => { + state.write_u8(25u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Range(v0) => { + state.write_u8(26u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Reference(v0) => { + state.write_u8(27u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Repeat(v0) => { + state.write_u8(28u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Return(v0) => { + state.write_u8(29u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Struct(v0) => { + state.write_u8(30u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Try(v0) => { + state.write_u8(31u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::TryBlock(v0) => { + state.write_u8(32u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Tuple(v0) => { + state.write_u8(33u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Type(v0) => { + state.write_u8(34u8); + v0.hash(state); + } + Expr::Unary(v0) => { + state.write_u8(35u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Unsafe(v0) => { + state.write_u8(36u8); + v0.hash(state); + } + Expr::Verbatim(v0) => { + state.write_u8(37u8); + TokenStreamHelper(v0).hash(state); + } + #[cfg(feature = "full")] + Expr::While(v0) => { + state.write_u8(38u8); + v0.hash(state); + } + #[cfg(feature = "full")] + Expr::Yield(v0) => { + state.write_u8(39u8); + v0.hash(state); + } + #[cfg(any(syn_no_non_exhaustive, not(feature = "full")))] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprArray { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.elems.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprAssign { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.left.hash(state); + self.right.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprAssignOp { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.left.hash(state); + self.op.hash(state); + self.right.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprAsync { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.capture.hash(state); + self.block.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprAwait { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.base.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprBinary { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.left.hash(state); + self.op.hash(state); + self.right.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprBlock { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.label.hash(state); + self.block.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprBox { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.expr.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprBreak { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.label.hash(state); + self.expr.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprCall { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.func.hash(state); + self.args.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprCast { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.expr.hash(state); + self.ty.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprClosure { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.movability.hash(state); + self.asyncness.hash(state); + self.capture.hash(state); + self.inputs.hash(state); + self.output.hash(state); + self.body.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprContinue { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.label.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprField { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.base.hash(state); + self.member.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprForLoop { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.label.hash(state); + self.pat.hash(state); + self.expr.hash(state); + self.body.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprGroup { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.expr.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprIf { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.cond.hash(state); + self.then_branch.hash(state); + self.else_branch.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprIndex { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.expr.hash(state); + self.index.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprLet { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.pat.hash(state); + self.expr.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprLit { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.lit.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprLoop { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.label.hash(state); + self.body.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprMacro { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.mac.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprMatch { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.expr.hash(state); + self.arms.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprMethodCall { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.receiver.hash(state); + self.method.hash(state); + self.turbofish.hash(state); + self.args.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprParen { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.expr.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprPath { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.qself.hash(state); + self.path.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprRange { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.from.hash(state); + self.limits.hash(state); + self.to.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprReference { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.mutability.hash(state); + self.expr.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprRepeat { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.expr.hash(state); + self.len.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprReturn { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.expr.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprStruct { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.path.hash(state); + self.fields.hash(state); + self.dot2_token.hash(state); + self.rest.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprTry { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.expr.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprTryBlock { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.block.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprTuple { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.elems.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprType { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.expr.hash(state); + self.ty.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprUnary { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.op.hash(state); + self.expr.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprUnsafe { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.block.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprWhile { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.label.hash(state); + self.cond.hash(state); + self.body.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ExprYield { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.expr.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Field { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.ident.hash(state); + self.colon_token.hash(state); + self.ty.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for FieldPat { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.member.hash(state); + self.colon_token.hash(state); + self.pat.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for FieldValue { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.member.hash(state); + self.colon_token.hash(state); + self.expr.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Fields { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + Fields::Named(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + Fields::Unnamed(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + Fields::Unit => { + state.write_u8(2u8); + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for FieldsNamed { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.named.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for FieldsUnnamed { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.unnamed.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for File { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.shebang.hash(state); + self.attrs.hash(state); + self.items.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for FnArg { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + FnArg::Receiver(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + FnArg::Typed(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ForeignItem { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + ForeignItem::Fn(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + ForeignItem::Static(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + ForeignItem::Type(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + ForeignItem::Macro(v0) => { + state.write_u8(3u8); + v0.hash(state); + } + ForeignItem::Verbatim(v0) => { + state.write_u8(4u8); + TokenStreamHelper(v0).hash(state); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ForeignItemFn { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.sig.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ForeignItemMacro { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.mac.hash(state); + self.semi_token.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ForeignItemStatic { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.mutability.hash(state); + self.ident.hash(state); + self.ty.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ForeignItemType { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.ident.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for GenericArgument { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + GenericArgument::Lifetime(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + GenericArgument::Type(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + GenericArgument::Const(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + GenericArgument::Binding(v0) => { + state.write_u8(3u8); + v0.hash(state); + } + GenericArgument::Constraint(v0) => { + state.write_u8(4u8); + v0.hash(state); + } + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for GenericMethodArgument { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + GenericMethodArgument::Type(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + GenericMethodArgument::Const(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for GenericParam { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + GenericParam::Type(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + GenericParam::Lifetime(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + GenericParam::Const(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Generics { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.lt_token.hash(state); + self.params.hash(state); + self.gt_token.hash(state); + self.where_clause.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ImplItem { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + ImplItem::Const(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + ImplItem::Method(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + ImplItem::Type(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + ImplItem::Macro(v0) => { + state.write_u8(3u8); + v0.hash(state); + } + ImplItem::Verbatim(v0) => { + state.write_u8(4u8); + TokenStreamHelper(v0).hash(state); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ImplItemConst { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.defaultness.hash(state); + self.ident.hash(state); + self.ty.hash(state); + self.expr.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ImplItemMacro { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.mac.hash(state); + self.semi_token.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ImplItemMethod { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.defaultness.hash(state); + self.sig.hash(state); + self.block.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ImplItemType { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.defaultness.hash(state); + self.ident.hash(state); + self.generics.hash(state); + self.ty.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Item { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + Item::Const(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + Item::Enum(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + Item::ExternCrate(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + Item::Fn(v0) => { + state.write_u8(3u8); + v0.hash(state); + } + Item::ForeignMod(v0) => { + state.write_u8(4u8); + v0.hash(state); + } + Item::Impl(v0) => { + state.write_u8(5u8); + v0.hash(state); + } + Item::Macro(v0) => { + state.write_u8(6u8); + v0.hash(state); + } + Item::Macro2(v0) => { + state.write_u8(7u8); + v0.hash(state); + } + Item::Mod(v0) => { + state.write_u8(8u8); + v0.hash(state); + } + Item::Static(v0) => { + state.write_u8(9u8); + v0.hash(state); + } + Item::Struct(v0) => { + state.write_u8(10u8); + v0.hash(state); + } + Item::Trait(v0) => { + state.write_u8(11u8); + v0.hash(state); + } + Item::TraitAlias(v0) => { + state.write_u8(12u8); + v0.hash(state); + } + Item::Type(v0) => { + state.write_u8(13u8); + v0.hash(state); + } + Item::Union(v0) => { + state.write_u8(14u8); + v0.hash(state); + } + Item::Use(v0) => { + state.write_u8(15u8); + v0.hash(state); + } + Item::Verbatim(v0) => { + state.write_u8(16u8); + TokenStreamHelper(v0).hash(state); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemConst { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.ident.hash(state); + self.ty.hash(state); + self.expr.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemEnum { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.ident.hash(state); + self.generics.hash(state); + self.variants.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemExternCrate { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.ident.hash(state); + self.rename.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemFn { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.sig.hash(state); + self.block.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemForeignMod { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.abi.hash(state); + self.items.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemImpl { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.defaultness.hash(state); + self.unsafety.hash(state); + self.generics.hash(state); + self.trait_.hash(state); + self.self_ty.hash(state); + self.items.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemMacro { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.ident.hash(state); + self.mac.hash(state); + self.semi_token.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemMacro2 { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.ident.hash(state); + TokenStreamHelper(&self.rules).hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemMod { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.ident.hash(state); + self.content.hash(state); + self.semi.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemStatic { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.mutability.hash(state); + self.ident.hash(state); + self.ty.hash(state); + self.expr.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemStruct { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.ident.hash(state); + self.generics.hash(state); + self.fields.hash(state); + self.semi_token.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemTrait { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.unsafety.hash(state); + self.auto_token.hash(state); + self.ident.hash(state); + self.generics.hash(state); + self.colon_token.hash(state); + self.supertraits.hash(state); + self.items.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemTraitAlias { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.ident.hash(state); + self.generics.hash(state); + self.bounds.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemType { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.ident.hash(state); + self.generics.hash(state); + self.ty.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemUnion { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.ident.hash(state); + self.generics.hash(state); + self.fields.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ItemUse { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.vis.hash(state); + self.leading_colon.hash(state); + self.tree.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Label { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.name.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for LifetimeDef { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.lifetime.hash(state); + self.colon_token.hash(state); + self.bounds.hash(state); + } +} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Lit { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + Lit::Str(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + Lit::ByteStr(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + Lit::Byte(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + Lit::Char(v0) => { + state.write_u8(3u8); + v0.hash(state); + } + Lit::Int(v0) => { + state.write_u8(4u8); + v0.hash(state); + } + Lit::Float(v0) => { + state.write_u8(5u8); + v0.hash(state); + } + Lit::Bool(v0) => { + state.write_u8(6u8); + v0.hash(state); + } + Lit::Verbatim(v0) => { + state.write_u8(7u8); + v0.to_string().hash(state); + } + } + } +} +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for LitBool { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.value.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Local { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.pat.hash(state); + self.init.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Macro { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.path.hash(state); + self.delimiter.hash(state); + TokenStreamHelper(&self.tokens).hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for MacroDelimiter { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + MacroDelimiter::Paren(_) => { + state.write_u8(0u8); + } + MacroDelimiter::Brace(_) => { + state.write_u8(1u8); + } + MacroDelimiter::Bracket(_) => { + state.write_u8(2u8); + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Meta { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + Meta::Path(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + Meta::List(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + Meta::NameValue(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for MetaList { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.path.hash(state); + self.nested.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for MetaNameValue { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.path.hash(state); + self.lit.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for MethodTurbofish { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.args.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for NestedMeta { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + NestedMeta::Meta(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + NestedMeta::Lit(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ParenthesizedGenericArguments { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.inputs.hash(state); + self.output.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Pat { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + Pat::Box(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + Pat::Ident(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + Pat::Lit(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + Pat::Macro(v0) => { + state.write_u8(3u8); + v0.hash(state); + } + Pat::Or(v0) => { + state.write_u8(4u8); + v0.hash(state); + } + Pat::Path(v0) => { + state.write_u8(5u8); + v0.hash(state); + } + Pat::Range(v0) => { + state.write_u8(6u8); + v0.hash(state); + } + Pat::Reference(v0) => { + state.write_u8(7u8); + v0.hash(state); + } + Pat::Rest(v0) => { + state.write_u8(8u8); + v0.hash(state); + } + Pat::Slice(v0) => { + state.write_u8(9u8); + v0.hash(state); + } + Pat::Struct(v0) => { + state.write_u8(10u8); + v0.hash(state); + } + Pat::Tuple(v0) => { + state.write_u8(11u8); + v0.hash(state); + } + Pat::TupleStruct(v0) => { + state.write_u8(12u8); + v0.hash(state); + } + Pat::Type(v0) => { + state.write_u8(13u8); + v0.hash(state); + } + Pat::Verbatim(v0) => { + state.write_u8(14u8); + TokenStreamHelper(v0).hash(state); + } + Pat::Wild(v0) => { + state.write_u8(15u8); + v0.hash(state); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatBox { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.pat.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatIdent { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.by_ref.hash(state); + self.mutability.hash(state); + self.ident.hash(state); + self.subpat.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatLit { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.expr.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatMacro { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.mac.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatOr { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.leading_vert.hash(state); + self.cases.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatPath { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.qself.hash(state); + self.path.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatRange { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.lo.hash(state); + self.limits.hash(state); + self.hi.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatReference { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.mutability.hash(state); + self.pat.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatRest { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatSlice { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.elems.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatStruct { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.path.hash(state); + self.fields.hash(state); + self.dot2_token.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatTuple { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.elems.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatTupleStruct { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.path.hash(state); + self.pat.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatType { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.pat.hash(state); + self.ty.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PatWild { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Path { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.leading_colon.hash(state); + self.segments.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PathArguments { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + PathArguments::None => { + state.write_u8(0u8); + } + PathArguments::AngleBracketed(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + PathArguments::Parenthesized(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PathSegment { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.ident.hash(state); + self.arguments.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PredicateEq { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.lhs_ty.hash(state); + self.rhs_ty.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PredicateLifetime { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.lifetime.hash(state); + self.bounds.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for PredicateType { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.lifetimes.hash(state); + self.bounded_ty.hash(state); + self.bounds.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for QSelf { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.ty.hash(state); + self.position.hash(state); + self.as_token.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for RangeLimits { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + RangeLimits::HalfOpen(_) => { + state.write_u8(0u8); + } + RangeLimits::Closed(_) => { + state.write_u8(1u8); + } + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Receiver { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.reference.hash(state); + self.mutability.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for ReturnType { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + ReturnType::Default => { + state.write_u8(0u8); + } + ReturnType::Type(_, v1) => { + state.write_u8(1u8); + v1.hash(state); + } + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Signature { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.constness.hash(state); + self.asyncness.hash(state); + self.unsafety.hash(state); + self.abi.hash(state); + self.ident.hash(state); + self.generics.hash(state); + self.inputs.hash(state); + self.variadic.hash(state); + self.output.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Stmt { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + Stmt::Local(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + Stmt::Item(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + Stmt::Expr(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + Stmt::Semi(v0, _) => { + state.write_u8(3u8); + v0.hash(state); + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TraitBound { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.paren_token.hash(state); + self.modifier.hash(state); + self.lifetimes.hash(state); + self.path.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TraitBoundModifier { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + TraitBoundModifier::None => { + state.write_u8(0u8); + } + TraitBoundModifier::Maybe(_) => { + state.write_u8(1u8); + } + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TraitItem { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + TraitItem::Const(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + TraitItem::Method(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + TraitItem::Type(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + TraitItem::Macro(v0) => { + state.write_u8(3u8); + v0.hash(state); + } + TraitItem::Verbatim(v0) => { + state.write_u8(4u8); + TokenStreamHelper(v0).hash(state); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TraitItemConst { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.ident.hash(state); + self.ty.hash(state); + self.default.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TraitItemMacro { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.mac.hash(state); + self.semi_token.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TraitItemMethod { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.sig.hash(state); + self.default.hash(state); + self.semi_token.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TraitItemType { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.ident.hash(state); + self.generics.hash(state); + self.colon_token.hash(state); + self.bounds.hash(state); + self.default.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Type { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + Type::Array(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + Type::BareFn(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + Type::Group(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + Type::ImplTrait(v0) => { + state.write_u8(3u8); + v0.hash(state); + } + Type::Infer(v0) => { + state.write_u8(4u8); + v0.hash(state); + } + Type::Macro(v0) => { + state.write_u8(5u8); + v0.hash(state); + } + Type::Never(v0) => { + state.write_u8(6u8); + v0.hash(state); + } + Type::Paren(v0) => { + state.write_u8(7u8); + v0.hash(state); + } + Type::Path(v0) => { + state.write_u8(8u8); + v0.hash(state); + } + Type::Ptr(v0) => { + state.write_u8(9u8); + v0.hash(state); + } + Type::Reference(v0) => { + state.write_u8(10u8); + v0.hash(state); + } + Type::Slice(v0) => { + state.write_u8(11u8); + v0.hash(state); + } + Type::TraitObject(v0) => { + state.write_u8(12u8); + v0.hash(state); + } + Type::Tuple(v0) => { + state.write_u8(13u8); + v0.hash(state); + } + Type::Verbatim(v0) => { + state.write_u8(14u8); + TokenStreamHelper(v0).hash(state); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeArray { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.elem.hash(state); + self.len.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeBareFn { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.lifetimes.hash(state); + self.unsafety.hash(state); + self.abi.hash(state); + self.inputs.hash(state); + self.variadic.hash(state); + self.output.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeGroup { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.elem.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeImplTrait { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.bounds.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeInfer { + fn hash(&self, _state: &mut H) + where + H: Hasher, + {} +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeMacro { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.mac.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeNever { + fn hash(&self, _state: &mut H) + where + H: Hasher, + {} +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeParam { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.ident.hash(state); + self.colon_token.hash(state); + self.bounds.hash(state); + self.eq_token.hash(state); + self.default.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeParamBound { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + TypeParamBound::Trait(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + TypeParamBound::Lifetime(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeParen { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.elem.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypePath { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.qself.hash(state); + self.path.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypePtr { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.const_token.hash(state); + self.mutability.hash(state); + self.elem.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeReference { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.lifetime.hash(state); + self.mutability.hash(state); + self.elem.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeSlice { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.elem.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeTraitObject { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.dyn_token.hash(state); + self.bounds.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for TypeTuple { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.elems.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for UnOp { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + UnOp::Deref(_) => { + state.write_u8(0u8); + } + UnOp::Not(_) => { + state.write_u8(1u8); + } + UnOp::Neg(_) => { + state.write_u8(2u8); + } + } + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for UseGlob { + fn hash(&self, _state: &mut H) + where + H: Hasher, + {} +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for UseGroup { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.items.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for UseName { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.ident.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for UsePath { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.ident.hash(state); + self.tree.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for UseRename { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.ident.hash(state); + self.rename.hash(state); + } +} +#[cfg(feature = "full")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for UseTree { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + UseTree::Path(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + UseTree::Name(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + UseTree::Rename(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + UseTree::Glob(v0) => { + state.write_u8(3u8); + v0.hash(state); + } + UseTree::Group(v0) => { + state.write_u8(4u8); + v0.hash(state); + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Variadic { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Variant { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.attrs.hash(state); + self.ident.hash(state); + self.fields.hash(state); + self.discriminant.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for VisCrate { + fn hash(&self, _state: &mut H) + where + H: Hasher, + {} +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for VisPublic { + fn hash(&self, _state: &mut H) + where + H: Hasher, + {} +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for VisRestricted { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.in_token.hash(state); + self.path.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for Visibility { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + Visibility::Public(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + Visibility::Crate(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + Visibility::Restricted(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + Visibility::Inherited => { + state.write_u8(3u8); + } + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for WhereClause { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + self.predicates.hash(state); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] +impl Hash for WherePredicate { + fn hash(&self, state: &mut H) + where + H: Hasher, + { + match self { + WherePredicate::Type(v0) => { + state.write_u8(0u8); + v0.hash(state); + } + WherePredicate::Lifetime(v0) => { + state.write_u8(1u8); + v0.hash(state); + } + WherePredicate::Eq(v0) => { + state.write_u8(2u8); + v0.hash(state); + } + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/visit.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/visit.rs new file mode 100644 index 0000000000000000000000000000000000000000..19ddd2e726025c4ddbd3bebf545b7f41fb999f30 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/visit.rs @@ -0,0 +1,3786 @@ +// This file is @generated by syn-internal-codegen. +// It is not intended for manual editing. + +#![allow(unused_variables)] +#[cfg(any(feature = "full", feature = "derive"))] +use crate::gen::helper::visit::*; +#[cfg(any(feature = "full", feature = "derive"))] +use crate::punctuated::Punctuated; +use crate::*; +use proc_macro2::Span; +#[cfg(feature = "full")] +macro_rules! full { + ($e:expr) => { + $e + }; +} +#[cfg(all(feature = "derive", not(feature = "full")))] +macro_rules! full { + ($e:expr) => { + unreachable!() + }; +} +macro_rules! skip { + ($($tt:tt)*) => {}; +} +/// Syntax tree traversal to walk a shared borrow of a syntax tree. +/// +/// See the [module documentation] for details. +/// +/// [module documentation]: self +/// +/// *This trait is available only if Syn is built with the `"visit"` feature.* +pub trait Visit<'ast> { + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_abi(&mut self, i: &'ast Abi) { + visit_abi(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_angle_bracketed_generic_arguments( + &mut self, + i: &'ast AngleBracketedGenericArguments, + ) { + visit_angle_bracketed_generic_arguments(self, i); + } + #[cfg(feature = "full")] + fn visit_arm(&mut self, i: &'ast Arm) { + visit_arm(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_attr_style(&mut self, i: &'ast AttrStyle) { + visit_attr_style(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_attribute(&mut self, i: &'ast Attribute) { + visit_attribute(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_bare_fn_arg(&mut self, i: &'ast BareFnArg) { + visit_bare_fn_arg(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_bin_op(&mut self, i: &'ast BinOp) { + visit_bin_op(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_binding(&mut self, i: &'ast Binding) { + visit_binding(self, i); + } + #[cfg(feature = "full")] + fn visit_block(&mut self, i: &'ast Block) { + visit_block(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_bound_lifetimes(&mut self, i: &'ast BoundLifetimes) { + visit_bound_lifetimes(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_const_param(&mut self, i: &'ast ConstParam) { + visit_const_param(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_constraint(&mut self, i: &'ast Constraint) { + visit_constraint(self, i); + } + #[cfg(feature = "derive")] + fn visit_data(&mut self, i: &'ast Data) { + visit_data(self, i); + } + #[cfg(feature = "derive")] + fn visit_data_enum(&mut self, i: &'ast DataEnum) { + visit_data_enum(self, i); + } + #[cfg(feature = "derive")] + fn visit_data_struct(&mut self, i: &'ast DataStruct) { + visit_data_struct(self, i); + } + #[cfg(feature = "derive")] + fn visit_data_union(&mut self, i: &'ast DataUnion) { + visit_data_union(self, i); + } + #[cfg(feature = "derive")] + fn visit_derive_input(&mut self, i: &'ast DeriveInput) { + visit_derive_input(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr(&mut self, i: &'ast Expr) { + visit_expr(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_array(&mut self, i: &'ast ExprArray) { + visit_expr_array(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_assign(&mut self, i: &'ast ExprAssign) { + visit_expr_assign(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_assign_op(&mut self, i: &'ast ExprAssignOp) { + visit_expr_assign_op(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_async(&mut self, i: &'ast ExprAsync) { + visit_expr_async(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_await(&mut self, i: &'ast ExprAwait) { + visit_expr_await(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_binary(&mut self, i: &'ast ExprBinary) { + visit_expr_binary(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_block(&mut self, i: &'ast ExprBlock) { + visit_expr_block(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_box(&mut self, i: &'ast ExprBox) { + visit_expr_box(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_break(&mut self, i: &'ast ExprBreak) { + visit_expr_break(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_call(&mut self, i: &'ast ExprCall) { + visit_expr_call(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_cast(&mut self, i: &'ast ExprCast) { + visit_expr_cast(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_closure(&mut self, i: &'ast ExprClosure) { + visit_expr_closure(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_continue(&mut self, i: &'ast ExprContinue) { + visit_expr_continue(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_field(&mut self, i: &'ast ExprField) { + visit_expr_field(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_for_loop(&mut self, i: &'ast ExprForLoop) { + visit_expr_for_loop(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_group(&mut self, i: &'ast ExprGroup) { + visit_expr_group(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_if(&mut self, i: &'ast ExprIf) { + visit_expr_if(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_index(&mut self, i: &'ast ExprIndex) { + visit_expr_index(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_let(&mut self, i: &'ast ExprLet) { + visit_expr_let(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_lit(&mut self, i: &'ast ExprLit) { + visit_expr_lit(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_loop(&mut self, i: &'ast ExprLoop) { + visit_expr_loop(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_macro(&mut self, i: &'ast ExprMacro) { + visit_expr_macro(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_match(&mut self, i: &'ast ExprMatch) { + visit_expr_match(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_method_call(&mut self, i: &'ast ExprMethodCall) { + visit_expr_method_call(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_paren(&mut self, i: &'ast ExprParen) { + visit_expr_paren(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_path(&mut self, i: &'ast ExprPath) { + visit_expr_path(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_range(&mut self, i: &'ast ExprRange) { + visit_expr_range(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_reference(&mut self, i: &'ast ExprReference) { + visit_expr_reference(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_repeat(&mut self, i: &'ast ExprRepeat) { + visit_expr_repeat(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_return(&mut self, i: &'ast ExprReturn) { + visit_expr_return(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_struct(&mut self, i: &'ast ExprStruct) { + visit_expr_struct(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_try(&mut self, i: &'ast ExprTry) { + visit_expr_try(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_try_block(&mut self, i: &'ast ExprTryBlock) { + visit_expr_try_block(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_tuple(&mut self, i: &'ast ExprTuple) { + visit_expr_tuple(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_type(&mut self, i: &'ast ExprType) { + visit_expr_type(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_unary(&mut self, i: &'ast ExprUnary) { + visit_expr_unary(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_unsafe(&mut self, i: &'ast ExprUnsafe) { + visit_expr_unsafe(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_while(&mut self, i: &'ast ExprWhile) { + visit_expr_while(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_yield(&mut self, i: &'ast ExprYield) { + visit_expr_yield(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_field(&mut self, i: &'ast Field) { + visit_field(self, i); + } + #[cfg(feature = "full")] + fn visit_field_pat(&mut self, i: &'ast FieldPat) { + visit_field_pat(self, i); + } + #[cfg(feature = "full")] + fn visit_field_value(&mut self, i: &'ast FieldValue) { + visit_field_value(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_fields(&mut self, i: &'ast Fields) { + visit_fields(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_fields_named(&mut self, i: &'ast FieldsNamed) { + visit_fields_named(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_fields_unnamed(&mut self, i: &'ast FieldsUnnamed) { + visit_fields_unnamed(self, i); + } + #[cfg(feature = "full")] + fn visit_file(&mut self, i: &'ast File) { + visit_file(self, i); + } + #[cfg(feature = "full")] + fn visit_fn_arg(&mut self, i: &'ast FnArg) { + visit_fn_arg(self, i); + } + #[cfg(feature = "full")] + fn visit_foreign_item(&mut self, i: &'ast ForeignItem) { + visit_foreign_item(self, i); + } + #[cfg(feature = "full")] + fn visit_foreign_item_fn(&mut self, i: &'ast ForeignItemFn) { + visit_foreign_item_fn(self, i); + } + #[cfg(feature = "full")] + fn visit_foreign_item_macro(&mut self, i: &'ast ForeignItemMacro) { + visit_foreign_item_macro(self, i); + } + #[cfg(feature = "full")] + fn visit_foreign_item_static(&mut self, i: &'ast ForeignItemStatic) { + visit_foreign_item_static(self, i); + } + #[cfg(feature = "full")] + fn visit_foreign_item_type(&mut self, i: &'ast ForeignItemType) { + visit_foreign_item_type(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_generic_argument(&mut self, i: &'ast GenericArgument) { + visit_generic_argument(self, i); + } + #[cfg(feature = "full")] + fn visit_generic_method_argument(&mut self, i: &'ast GenericMethodArgument) { + visit_generic_method_argument(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_generic_param(&mut self, i: &'ast GenericParam) { + visit_generic_param(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_generics(&mut self, i: &'ast Generics) { + visit_generics(self, i); + } + fn visit_ident(&mut self, i: &'ast Ident) { + visit_ident(self, i); + } + #[cfg(feature = "full")] + fn visit_impl_item(&mut self, i: &'ast ImplItem) { + visit_impl_item(self, i); + } + #[cfg(feature = "full")] + fn visit_impl_item_const(&mut self, i: &'ast ImplItemConst) { + visit_impl_item_const(self, i); + } + #[cfg(feature = "full")] + fn visit_impl_item_macro(&mut self, i: &'ast ImplItemMacro) { + visit_impl_item_macro(self, i); + } + #[cfg(feature = "full")] + fn visit_impl_item_method(&mut self, i: &'ast ImplItemMethod) { + visit_impl_item_method(self, i); + } + #[cfg(feature = "full")] + fn visit_impl_item_type(&mut self, i: &'ast ImplItemType) { + visit_impl_item_type(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_index(&mut self, i: &'ast Index) { + visit_index(self, i); + } + #[cfg(feature = "full")] + fn visit_item(&mut self, i: &'ast Item) { + visit_item(self, i); + } + #[cfg(feature = "full")] + fn visit_item_const(&mut self, i: &'ast ItemConst) { + visit_item_const(self, i); + } + #[cfg(feature = "full")] + fn visit_item_enum(&mut self, i: &'ast ItemEnum) { + visit_item_enum(self, i); + } + #[cfg(feature = "full")] + fn visit_item_extern_crate(&mut self, i: &'ast ItemExternCrate) { + visit_item_extern_crate(self, i); + } + #[cfg(feature = "full")] + fn visit_item_fn(&mut self, i: &'ast ItemFn) { + visit_item_fn(self, i); + } + #[cfg(feature = "full")] + fn visit_item_foreign_mod(&mut self, i: &'ast ItemForeignMod) { + visit_item_foreign_mod(self, i); + } + #[cfg(feature = "full")] + fn visit_item_impl(&mut self, i: &'ast ItemImpl) { + visit_item_impl(self, i); + } + #[cfg(feature = "full")] + fn visit_item_macro(&mut self, i: &'ast ItemMacro) { + visit_item_macro(self, i); + } + #[cfg(feature = "full")] + fn visit_item_macro2(&mut self, i: &'ast ItemMacro2) { + visit_item_macro2(self, i); + } + #[cfg(feature = "full")] + fn visit_item_mod(&mut self, i: &'ast ItemMod) { + visit_item_mod(self, i); + } + #[cfg(feature = "full")] + fn visit_item_static(&mut self, i: &'ast ItemStatic) { + visit_item_static(self, i); + } + #[cfg(feature = "full")] + fn visit_item_struct(&mut self, i: &'ast ItemStruct) { + visit_item_struct(self, i); + } + #[cfg(feature = "full")] + fn visit_item_trait(&mut self, i: &'ast ItemTrait) { + visit_item_trait(self, i); + } + #[cfg(feature = "full")] + fn visit_item_trait_alias(&mut self, i: &'ast ItemTraitAlias) { + visit_item_trait_alias(self, i); + } + #[cfg(feature = "full")] + fn visit_item_type(&mut self, i: &'ast ItemType) { + visit_item_type(self, i); + } + #[cfg(feature = "full")] + fn visit_item_union(&mut self, i: &'ast ItemUnion) { + visit_item_union(self, i); + } + #[cfg(feature = "full")] + fn visit_item_use(&mut self, i: &'ast ItemUse) { + visit_item_use(self, i); + } + #[cfg(feature = "full")] + fn visit_label(&mut self, i: &'ast Label) { + visit_label(self, i); + } + fn visit_lifetime(&mut self, i: &'ast Lifetime) { + visit_lifetime(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_lifetime_def(&mut self, i: &'ast LifetimeDef) { + visit_lifetime_def(self, i); + } + fn visit_lit(&mut self, i: &'ast Lit) { + visit_lit(self, i); + } + fn visit_lit_bool(&mut self, i: &'ast LitBool) { + visit_lit_bool(self, i); + } + fn visit_lit_byte(&mut self, i: &'ast LitByte) { + visit_lit_byte(self, i); + } + fn visit_lit_byte_str(&mut self, i: &'ast LitByteStr) { + visit_lit_byte_str(self, i); + } + fn visit_lit_char(&mut self, i: &'ast LitChar) { + visit_lit_char(self, i); + } + fn visit_lit_float(&mut self, i: &'ast LitFloat) { + visit_lit_float(self, i); + } + fn visit_lit_int(&mut self, i: &'ast LitInt) { + visit_lit_int(self, i); + } + fn visit_lit_str(&mut self, i: &'ast LitStr) { + visit_lit_str(self, i); + } + #[cfg(feature = "full")] + fn visit_local(&mut self, i: &'ast Local) { + visit_local(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_macro(&mut self, i: &'ast Macro) { + visit_macro(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_macro_delimiter(&mut self, i: &'ast MacroDelimiter) { + visit_macro_delimiter(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_member(&mut self, i: &'ast Member) { + visit_member(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_meta(&mut self, i: &'ast Meta) { + visit_meta(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_meta_list(&mut self, i: &'ast MetaList) { + visit_meta_list(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_meta_name_value(&mut self, i: &'ast MetaNameValue) { + visit_meta_name_value(self, i); + } + #[cfg(feature = "full")] + fn visit_method_turbofish(&mut self, i: &'ast MethodTurbofish) { + visit_method_turbofish(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_nested_meta(&mut self, i: &'ast NestedMeta) { + visit_nested_meta(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_parenthesized_generic_arguments( + &mut self, + i: &'ast ParenthesizedGenericArguments, + ) { + visit_parenthesized_generic_arguments(self, i); + } + #[cfg(feature = "full")] + fn visit_pat(&mut self, i: &'ast Pat) { + visit_pat(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_box(&mut self, i: &'ast PatBox) { + visit_pat_box(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_ident(&mut self, i: &'ast PatIdent) { + visit_pat_ident(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_lit(&mut self, i: &'ast PatLit) { + visit_pat_lit(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_macro(&mut self, i: &'ast PatMacro) { + visit_pat_macro(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_or(&mut self, i: &'ast PatOr) { + visit_pat_or(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_path(&mut self, i: &'ast PatPath) { + visit_pat_path(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_range(&mut self, i: &'ast PatRange) { + visit_pat_range(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_reference(&mut self, i: &'ast PatReference) { + visit_pat_reference(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_rest(&mut self, i: &'ast PatRest) { + visit_pat_rest(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_slice(&mut self, i: &'ast PatSlice) { + visit_pat_slice(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_struct(&mut self, i: &'ast PatStruct) { + visit_pat_struct(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_tuple(&mut self, i: &'ast PatTuple) { + visit_pat_tuple(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_tuple_struct(&mut self, i: &'ast PatTupleStruct) { + visit_pat_tuple_struct(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_type(&mut self, i: &'ast PatType) { + visit_pat_type(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_wild(&mut self, i: &'ast PatWild) { + visit_pat_wild(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_path(&mut self, i: &'ast Path) { + visit_path(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_path_arguments(&mut self, i: &'ast PathArguments) { + visit_path_arguments(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_path_segment(&mut self, i: &'ast PathSegment) { + visit_path_segment(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_predicate_eq(&mut self, i: &'ast PredicateEq) { + visit_predicate_eq(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_predicate_lifetime(&mut self, i: &'ast PredicateLifetime) { + visit_predicate_lifetime(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_predicate_type(&mut self, i: &'ast PredicateType) { + visit_predicate_type(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_qself(&mut self, i: &'ast QSelf) { + visit_qself(self, i); + } + #[cfg(feature = "full")] + fn visit_range_limits(&mut self, i: &'ast RangeLimits) { + visit_range_limits(self, i); + } + #[cfg(feature = "full")] + fn visit_receiver(&mut self, i: &'ast Receiver) { + visit_receiver(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_return_type(&mut self, i: &'ast ReturnType) { + visit_return_type(self, i); + } + #[cfg(feature = "full")] + fn visit_signature(&mut self, i: &'ast Signature) { + visit_signature(self, i); + } + fn visit_span(&mut self, i: &Span) { + visit_span(self, i); + } + #[cfg(feature = "full")] + fn visit_stmt(&mut self, i: &'ast Stmt) { + visit_stmt(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_trait_bound(&mut self, i: &'ast TraitBound) { + visit_trait_bound(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_trait_bound_modifier(&mut self, i: &'ast TraitBoundModifier) { + visit_trait_bound_modifier(self, i); + } + #[cfg(feature = "full")] + fn visit_trait_item(&mut self, i: &'ast TraitItem) { + visit_trait_item(self, i); + } + #[cfg(feature = "full")] + fn visit_trait_item_const(&mut self, i: &'ast TraitItemConst) { + visit_trait_item_const(self, i); + } + #[cfg(feature = "full")] + fn visit_trait_item_macro(&mut self, i: &'ast TraitItemMacro) { + visit_trait_item_macro(self, i); + } + #[cfg(feature = "full")] + fn visit_trait_item_method(&mut self, i: &'ast TraitItemMethod) { + visit_trait_item_method(self, i); + } + #[cfg(feature = "full")] + fn visit_trait_item_type(&mut self, i: &'ast TraitItemType) { + visit_trait_item_type(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type(&mut self, i: &'ast Type) { + visit_type(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_array(&mut self, i: &'ast TypeArray) { + visit_type_array(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_bare_fn(&mut self, i: &'ast TypeBareFn) { + visit_type_bare_fn(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_group(&mut self, i: &'ast TypeGroup) { + visit_type_group(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_impl_trait(&mut self, i: &'ast TypeImplTrait) { + visit_type_impl_trait(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_infer(&mut self, i: &'ast TypeInfer) { + visit_type_infer(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_macro(&mut self, i: &'ast TypeMacro) { + visit_type_macro(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_never(&mut self, i: &'ast TypeNever) { + visit_type_never(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_param(&mut self, i: &'ast TypeParam) { + visit_type_param(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_param_bound(&mut self, i: &'ast TypeParamBound) { + visit_type_param_bound(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_paren(&mut self, i: &'ast TypeParen) { + visit_type_paren(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_path(&mut self, i: &'ast TypePath) { + visit_type_path(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_ptr(&mut self, i: &'ast TypePtr) { + visit_type_ptr(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_reference(&mut self, i: &'ast TypeReference) { + visit_type_reference(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_slice(&mut self, i: &'ast TypeSlice) { + visit_type_slice(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_trait_object(&mut self, i: &'ast TypeTraitObject) { + visit_type_trait_object(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_tuple(&mut self, i: &'ast TypeTuple) { + visit_type_tuple(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_un_op(&mut self, i: &'ast UnOp) { + visit_un_op(self, i); + } + #[cfg(feature = "full")] + fn visit_use_glob(&mut self, i: &'ast UseGlob) { + visit_use_glob(self, i); + } + #[cfg(feature = "full")] + fn visit_use_group(&mut self, i: &'ast UseGroup) { + visit_use_group(self, i); + } + #[cfg(feature = "full")] + fn visit_use_name(&mut self, i: &'ast UseName) { + visit_use_name(self, i); + } + #[cfg(feature = "full")] + fn visit_use_path(&mut self, i: &'ast UsePath) { + visit_use_path(self, i); + } + #[cfg(feature = "full")] + fn visit_use_rename(&mut self, i: &'ast UseRename) { + visit_use_rename(self, i); + } + #[cfg(feature = "full")] + fn visit_use_tree(&mut self, i: &'ast UseTree) { + visit_use_tree(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_variadic(&mut self, i: &'ast Variadic) { + visit_variadic(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_variant(&mut self, i: &'ast Variant) { + visit_variant(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_vis_crate(&mut self, i: &'ast VisCrate) { + visit_vis_crate(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_vis_public(&mut self, i: &'ast VisPublic) { + visit_vis_public(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_vis_restricted(&mut self, i: &'ast VisRestricted) { + visit_vis_restricted(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_visibility(&mut self, i: &'ast Visibility) { + visit_visibility(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_where_clause(&mut self, i: &'ast WhereClause) { + visit_where_clause(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_where_predicate(&mut self, i: &'ast WherePredicate) { + visit_where_predicate(self, i); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_abi<'ast, V>(v: &mut V, node: &'ast Abi) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.extern_token.span); + if let Some(it) = &node.name { + v.visit_lit_str(it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_angle_bracketed_generic_arguments<'ast, V>( + v: &mut V, + node: &'ast AngleBracketedGenericArguments, +) +where + V: Visit<'ast> + ?Sized, +{ + if let Some(it) = &node.colon2_token { + tokens_helper(v, &it.spans); + } + tokens_helper(v, &node.lt_token.spans); + for el in Punctuated::pairs(&node.args) { + let (it, p) = el.into_tuple(); + v.visit_generic_argument(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + tokens_helper(v, &node.gt_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_arm<'ast, V>(v: &mut V, node: &'ast Arm) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_pat(&node.pat); + if let Some(it) = &node.guard { + tokens_helper(v, &(it).0.span); + v.visit_expr(&*(it).1); + } + tokens_helper(v, &node.fat_arrow_token.spans); + v.visit_expr(&*node.body); + if let Some(it) = &node.comma { + tokens_helper(v, &it.spans); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_attr_style<'ast, V>(v: &mut V, node: &'ast AttrStyle) +where + V: Visit<'ast> + ?Sized, +{ + match node { + AttrStyle::Outer => {} + AttrStyle::Inner(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_attribute<'ast, V>(v: &mut V, node: &'ast Attribute) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.pound_token.spans); + v.visit_attr_style(&node.style); + tokens_helper(v, &node.bracket_token.span); + v.visit_path(&node.path); + skip!(node.tokens); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_bare_fn_arg<'ast, V>(v: &mut V, node: &'ast BareFnArg) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.name { + v.visit_ident(&(it).0); + tokens_helper(v, &(it).1.spans); + } + v.visit_type(&node.ty); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_bin_op<'ast, V>(v: &mut V, node: &'ast BinOp) +where + V: Visit<'ast> + ?Sized, +{ + match node { + BinOp::Add(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::Sub(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::Mul(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::Div(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::Rem(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::And(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::Or(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::BitXor(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::BitAnd(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::BitOr(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::Shl(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::Shr(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::Eq(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::Lt(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::Le(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::Ne(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::Ge(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::Gt(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::AddEq(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::SubEq(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::MulEq(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::DivEq(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::RemEq(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::BitXorEq(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::BitAndEq(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::BitOrEq(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::ShlEq(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + BinOp::ShrEq(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_binding<'ast, V>(v: &mut V, node: &'ast Binding) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_ident(&node.ident); + tokens_helper(v, &node.eq_token.spans); + v.visit_type(&node.ty); +} +#[cfg(feature = "full")] +pub fn visit_block<'ast, V>(v: &mut V, node: &'ast Block) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.brace_token.span); + for it in &node.stmts { + v.visit_stmt(it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_bound_lifetimes<'ast, V>(v: &mut V, node: &'ast BoundLifetimes) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.for_token.span); + tokens_helper(v, &node.lt_token.spans); + for el in Punctuated::pairs(&node.lifetimes) { + let (it, p) = el.into_tuple(); + v.visit_lifetime_def(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + tokens_helper(v, &node.gt_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_const_param<'ast, V>(v: &mut V, node: &'ast ConstParam) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.const_token.span); + v.visit_ident(&node.ident); + tokens_helper(v, &node.colon_token.spans); + v.visit_type(&node.ty); + if let Some(it) = &node.eq_token { + tokens_helper(v, &it.spans); + } + if let Some(it) = &node.default { + v.visit_expr(it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_constraint<'ast, V>(v: &mut V, node: &'ast Constraint) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_ident(&node.ident); + tokens_helper(v, &node.colon_token.spans); + for el in Punctuated::pairs(&node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(feature = "derive")] +pub fn visit_data<'ast, V>(v: &mut V, node: &'ast Data) +where + V: Visit<'ast> + ?Sized, +{ + match node { + Data::Struct(_binding_0) => { + v.visit_data_struct(_binding_0); + } + Data::Enum(_binding_0) => { + v.visit_data_enum(_binding_0); + } + Data::Union(_binding_0) => { + v.visit_data_union(_binding_0); + } + } +} +#[cfg(feature = "derive")] +pub fn visit_data_enum<'ast, V>(v: &mut V, node: &'ast DataEnum) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.enum_token.span); + tokens_helper(v, &node.brace_token.span); + for el in Punctuated::pairs(&node.variants) { + let (it, p) = el.into_tuple(); + v.visit_variant(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(feature = "derive")] +pub fn visit_data_struct<'ast, V>(v: &mut V, node: &'ast DataStruct) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.struct_token.span); + v.visit_fields(&node.fields); + if let Some(it) = &node.semi_token { + tokens_helper(v, &it.spans); + } +} +#[cfg(feature = "derive")] +pub fn visit_data_union<'ast, V>(v: &mut V, node: &'ast DataUnion) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.union_token.span); + v.visit_fields_named(&node.fields); +} +#[cfg(feature = "derive")] +pub fn visit_derive_input<'ast, V>(v: &mut V, node: &'ast DeriveInput) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + v.visit_ident(&node.ident); + v.visit_generics(&node.generics); + v.visit_data(&node.data); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr<'ast, V>(v: &mut V, node: &'ast Expr) +where + V: Visit<'ast> + ?Sized, +{ + match node { + Expr::Array(_binding_0) => { + full!(v.visit_expr_array(_binding_0)); + } + Expr::Assign(_binding_0) => { + full!(v.visit_expr_assign(_binding_0)); + } + Expr::AssignOp(_binding_0) => { + full!(v.visit_expr_assign_op(_binding_0)); + } + Expr::Async(_binding_0) => { + full!(v.visit_expr_async(_binding_0)); + } + Expr::Await(_binding_0) => { + full!(v.visit_expr_await(_binding_0)); + } + Expr::Binary(_binding_0) => { + v.visit_expr_binary(_binding_0); + } + Expr::Block(_binding_0) => { + full!(v.visit_expr_block(_binding_0)); + } + Expr::Box(_binding_0) => { + full!(v.visit_expr_box(_binding_0)); + } + Expr::Break(_binding_0) => { + full!(v.visit_expr_break(_binding_0)); + } + Expr::Call(_binding_0) => { + v.visit_expr_call(_binding_0); + } + Expr::Cast(_binding_0) => { + v.visit_expr_cast(_binding_0); + } + Expr::Closure(_binding_0) => { + full!(v.visit_expr_closure(_binding_0)); + } + Expr::Continue(_binding_0) => { + full!(v.visit_expr_continue(_binding_0)); + } + Expr::Field(_binding_0) => { + v.visit_expr_field(_binding_0); + } + Expr::ForLoop(_binding_0) => { + full!(v.visit_expr_for_loop(_binding_0)); + } + Expr::Group(_binding_0) => { + full!(v.visit_expr_group(_binding_0)); + } + Expr::If(_binding_0) => { + full!(v.visit_expr_if(_binding_0)); + } + Expr::Index(_binding_0) => { + v.visit_expr_index(_binding_0); + } + Expr::Let(_binding_0) => { + full!(v.visit_expr_let(_binding_0)); + } + Expr::Lit(_binding_0) => { + v.visit_expr_lit(_binding_0); + } + Expr::Loop(_binding_0) => { + full!(v.visit_expr_loop(_binding_0)); + } + Expr::Macro(_binding_0) => { + full!(v.visit_expr_macro(_binding_0)); + } + Expr::Match(_binding_0) => { + full!(v.visit_expr_match(_binding_0)); + } + Expr::MethodCall(_binding_0) => { + full!(v.visit_expr_method_call(_binding_0)); + } + Expr::Paren(_binding_0) => { + v.visit_expr_paren(_binding_0); + } + Expr::Path(_binding_0) => { + v.visit_expr_path(_binding_0); + } + Expr::Range(_binding_0) => { + full!(v.visit_expr_range(_binding_0)); + } + Expr::Reference(_binding_0) => { + full!(v.visit_expr_reference(_binding_0)); + } + Expr::Repeat(_binding_0) => { + full!(v.visit_expr_repeat(_binding_0)); + } + Expr::Return(_binding_0) => { + full!(v.visit_expr_return(_binding_0)); + } + Expr::Struct(_binding_0) => { + full!(v.visit_expr_struct(_binding_0)); + } + Expr::Try(_binding_0) => { + full!(v.visit_expr_try(_binding_0)); + } + Expr::TryBlock(_binding_0) => { + full!(v.visit_expr_try_block(_binding_0)); + } + Expr::Tuple(_binding_0) => { + full!(v.visit_expr_tuple(_binding_0)); + } + Expr::Type(_binding_0) => { + full!(v.visit_expr_type(_binding_0)); + } + Expr::Unary(_binding_0) => { + v.visit_expr_unary(_binding_0); + } + Expr::Unsafe(_binding_0) => { + full!(v.visit_expr_unsafe(_binding_0)); + } + Expr::Verbatim(_binding_0) => { + skip!(_binding_0); + } + Expr::While(_binding_0) => { + full!(v.visit_expr_while(_binding_0)); + } + Expr::Yield(_binding_0) => { + full!(v.visit_expr_yield(_binding_0)); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn visit_expr_array<'ast, V>(v: &mut V, node: &'ast ExprArray) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.bracket_token.span); + for el in Punctuated::pairs(&node.elems) { + let (it, p) = el.into_tuple(); + v.visit_expr(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_expr_assign<'ast, V>(v: &mut V, node: &'ast ExprAssign) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_expr(&*node.left); + tokens_helper(v, &node.eq_token.spans); + v.visit_expr(&*node.right); +} +#[cfg(feature = "full")] +pub fn visit_expr_assign_op<'ast, V>(v: &mut V, node: &'ast ExprAssignOp) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_expr(&*node.left); + v.visit_bin_op(&node.op); + v.visit_expr(&*node.right); +} +#[cfg(feature = "full")] +pub fn visit_expr_async<'ast, V>(v: &mut V, node: &'ast ExprAsync) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.async_token.span); + if let Some(it) = &node.capture { + tokens_helper(v, &it.span); + } + v.visit_block(&node.block); +} +#[cfg(feature = "full")] +pub fn visit_expr_await<'ast, V>(v: &mut V, node: &'ast ExprAwait) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_expr(&*node.base); + tokens_helper(v, &node.dot_token.spans); + tokens_helper(v, &node.await_token.span); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_binary<'ast, V>(v: &mut V, node: &'ast ExprBinary) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_expr(&*node.left); + v.visit_bin_op(&node.op); + v.visit_expr(&*node.right); +} +#[cfg(feature = "full")] +pub fn visit_expr_block<'ast, V>(v: &mut V, node: &'ast ExprBlock) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.label { + v.visit_label(it); + } + v.visit_block(&node.block); +} +#[cfg(feature = "full")] +pub fn visit_expr_box<'ast, V>(v: &mut V, node: &'ast ExprBox) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.box_token.span); + v.visit_expr(&*node.expr); +} +#[cfg(feature = "full")] +pub fn visit_expr_break<'ast, V>(v: &mut V, node: &'ast ExprBreak) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.break_token.span); + if let Some(it) = &node.label { + v.visit_lifetime(it); + } + if let Some(it) = &node.expr { + v.visit_expr(&**it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_call<'ast, V>(v: &mut V, node: &'ast ExprCall) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_expr(&*node.func); + tokens_helper(v, &node.paren_token.span); + for el in Punctuated::pairs(&node.args) { + let (it, p) = el.into_tuple(); + v.visit_expr(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_cast<'ast, V>(v: &mut V, node: &'ast ExprCast) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_expr(&*node.expr); + tokens_helper(v, &node.as_token.span); + v.visit_type(&*node.ty); +} +#[cfg(feature = "full")] +pub fn visit_expr_closure<'ast, V>(v: &mut V, node: &'ast ExprClosure) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.movability { + tokens_helper(v, &it.span); + } + if let Some(it) = &node.asyncness { + tokens_helper(v, &it.span); + } + if let Some(it) = &node.capture { + tokens_helper(v, &it.span); + } + tokens_helper(v, &node.or1_token.spans); + for el in Punctuated::pairs(&node.inputs) { + let (it, p) = el.into_tuple(); + v.visit_pat(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + tokens_helper(v, &node.or2_token.spans); + v.visit_return_type(&node.output); + v.visit_expr(&*node.body); +} +#[cfg(feature = "full")] +pub fn visit_expr_continue<'ast, V>(v: &mut V, node: &'ast ExprContinue) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.continue_token.span); + if let Some(it) = &node.label { + v.visit_lifetime(it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_field<'ast, V>(v: &mut V, node: &'ast ExprField) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_expr(&*node.base); + tokens_helper(v, &node.dot_token.spans); + v.visit_member(&node.member); +} +#[cfg(feature = "full")] +pub fn visit_expr_for_loop<'ast, V>(v: &mut V, node: &'ast ExprForLoop) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.label { + v.visit_label(it); + } + tokens_helper(v, &node.for_token.span); + v.visit_pat(&node.pat); + tokens_helper(v, &node.in_token.span); + v.visit_expr(&*node.expr); + v.visit_block(&node.body); +} +#[cfg(feature = "full")] +pub fn visit_expr_group<'ast, V>(v: &mut V, node: &'ast ExprGroup) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.group_token.span); + v.visit_expr(&*node.expr); +} +#[cfg(feature = "full")] +pub fn visit_expr_if<'ast, V>(v: &mut V, node: &'ast ExprIf) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.if_token.span); + v.visit_expr(&*node.cond); + v.visit_block(&node.then_branch); + if let Some(it) = &node.else_branch { + tokens_helper(v, &(it).0.span); + v.visit_expr(&*(it).1); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_index<'ast, V>(v: &mut V, node: &'ast ExprIndex) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_expr(&*node.expr); + tokens_helper(v, &node.bracket_token.span); + v.visit_expr(&*node.index); +} +#[cfg(feature = "full")] +pub fn visit_expr_let<'ast, V>(v: &mut V, node: &'ast ExprLet) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.let_token.span); + v.visit_pat(&node.pat); + tokens_helper(v, &node.eq_token.spans); + v.visit_expr(&*node.expr); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_lit<'ast, V>(v: &mut V, node: &'ast ExprLit) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_lit(&node.lit); +} +#[cfg(feature = "full")] +pub fn visit_expr_loop<'ast, V>(v: &mut V, node: &'ast ExprLoop) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.label { + v.visit_label(it); + } + tokens_helper(v, &node.loop_token.span); + v.visit_block(&node.body); +} +#[cfg(feature = "full")] +pub fn visit_expr_macro<'ast, V>(v: &mut V, node: &'ast ExprMacro) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_macro(&node.mac); +} +#[cfg(feature = "full")] +pub fn visit_expr_match<'ast, V>(v: &mut V, node: &'ast ExprMatch) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.match_token.span); + v.visit_expr(&*node.expr); + tokens_helper(v, &node.brace_token.span); + for it in &node.arms { + v.visit_arm(it); + } +} +#[cfg(feature = "full")] +pub fn visit_expr_method_call<'ast, V>(v: &mut V, node: &'ast ExprMethodCall) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_expr(&*node.receiver); + tokens_helper(v, &node.dot_token.spans); + v.visit_ident(&node.method); + if let Some(it) = &node.turbofish { + v.visit_method_turbofish(it); + } + tokens_helper(v, &node.paren_token.span); + for el in Punctuated::pairs(&node.args) { + let (it, p) = el.into_tuple(); + v.visit_expr(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_paren<'ast, V>(v: &mut V, node: &'ast ExprParen) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.paren_token.span); + v.visit_expr(&*node.expr); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_path<'ast, V>(v: &mut V, node: &'ast ExprPath) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.qself { + v.visit_qself(it); + } + v.visit_path(&node.path); +} +#[cfg(feature = "full")] +pub fn visit_expr_range<'ast, V>(v: &mut V, node: &'ast ExprRange) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.from { + v.visit_expr(&**it); + } + v.visit_range_limits(&node.limits); + if let Some(it) = &node.to { + v.visit_expr(&**it); + } +} +#[cfg(feature = "full")] +pub fn visit_expr_reference<'ast, V>(v: &mut V, node: &'ast ExprReference) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.and_token.spans); + if let Some(it) = &node.mutability { + tokens_helper(v, &it.span); + } + v.visit_expr(&*node.expr); +} +#[cfg(feature = "full")] +pub fn visit_expr_repeat<'ast, V>(v: &mut V, node: &'ast ExprRepeat) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.bracket_token.span); + v.visit_expr(&*node.expr); + tokens_helper(v, &node.semi_token.spans); + v.visit_expr(&*node.len); +} +#[cfg(feature = "full")] +pub fn visit_expr_return<'ast, V>(v: &mut V, node: &'ast ExprReturn) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.return_token.span); + if let Some(it) = &node.expr { + v.visit_expr(&**it); + } +} +#[cfg(feature = "full")] +pub fn visit_expr_struct<'ast, V>(v: &mut V, node: &'ast ExprStruct) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_path(&node.path); + tokens_helper(v, &node.brace_token.span); + for el in Punctuated::pairs(&node.fields) { + let (it, p) = el.into_tuple(); + v.visit_field_value(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + if let Some(it) = &node.dot2_token { + tokens_helper(v, &it.spans); + } + if let Some(it) = &node.rest { + v.visit_expr(&**it); + } +} +#[cfg(feature = "full")] +pub fn visit_expr_try<'ast, V>(v: &mut V, node: &'ast ExprTry) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_expr(&*node.expr); + tokens_helper(v, &node.question_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_expr_try_block<'ast, V>(v: &mut V, node: &'ast ExprTryBlock) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.try_token.span); + v.visit_block(&node.block); +} +#[cfg(feature = "full")] +pub fn visit_expr_tuple<'ast, V>(v: &mut V, node: &'ast ExprTuple) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.paren_token.span); + for el in Punctuated::pairs(&node.elems) { + let (it, p) = el.into_tuple(); + v.visit_expr(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_expr_type<'ast, V>(v: &mut V, node: &'ast ExprType) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_expr(&*node.expr); + tokens_helper(v, &node.colon_token.spans); + v.visit_type(&*node.ty); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_unary<'ast, V>(v: &mut V, node: &'ast ExprUnary) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_un_op(&node.op); + v.visit_expr(&*node.expr); +} +#[cfg(feature = "full")] +pub fn visit_expr_unsafe<'ast, V>(v: &mut V, node: &'ast ExprUnsafe) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.unsafe_token.span); + v.visit_block(&node.block); +} +#[cfg(feature = "full")] +pub fn visit_expr_while<'ast, V>(v: &mut V, node: &'ast ExprWhile) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.label { + v.visit_label(it); + } + tokens_helper(v, &node.while_token.span); + v.visit_expr(&*node.cond); + v.visit_block(&node.body); +} +#[cfg(feature = "full")] +pub fn visit_expr_yield<'ast, V>(v: &mut V, node: &'ast ExprYield) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.yield_token.span); + if let Some(it) = &node.expr { + v.visit_expr(&**it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_field<'ast, V>(v: &mut V, node: &'ast Field) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + if let Some(it) = &node.ident { + v.visit_ident(it); + } + if let Some(it) = &node.colon_token { + tokens_helper(v, &it.spans); + } + v.visit_type(&node.ty); +} +#[cfg(feature = "full")] +pub fn visit_field_pat<'ast, V>(v: &mut V, node: &'ast FieldPat) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_member(&node.member); + if let Some(it) = &node.colon_token { + tokens_helper(v, &it.spans); + } + v.visit_pat(&*node.pat); +} +#[cfg(feature = "full")] +pub fn visit_field_value<'ast, V>(v: &mut V, node: &'ast FieldValue) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_member(&node.member); + if let Some(it) = &node.colon_token { + tokens_helper(v, &it.spans); + } + v.visit_expr(&node.expr); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_fields<'ast, V>(v: &mut V, node: &'ast Fields) +where + V: Visit<'ast> + ?Sized, +{ + match node { + Fields::Named(_binding_0) => { + v.visit_fields_named(_binding_0); + } + Fields::Unnamed(_binding_0) => { + v.visit_fields_unnamed(_binding_0); + } + Fields::Unit => {} + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_fields_named<'ast, V>(v: &mut V, node: &'ast FieldsNamed) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.brace_token.span); + for el in Punctuated::pairs(&node.named) { + let (it, p) = el.into_tuple(); + v.visit_field(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_fields_unnamed<'ast, V>(v: &mut V, node: &'ast FieldsUnnamed) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.paren_token.span); + for el in Punctuated::pairs(&node.unnamed) { + let (it, p) = el.into_tuple(); + v.visit_field(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_file<'ast, V>(v: &mut V, node: &'ast File) +where + V: Visit<'ast> + ?Sized, +{ + skip!(node.shebang); + for it in &node.attrs { + v.visit_attribute(it); + } + for it in &node.items { + v.visit_item(it); + } +} +#[cfg(feature = "full")] +pub fn visit_fn_arg<'ast, V>(v: &mut V, node: &'ast FnArg) +where + V: Visit<'ast> + ?Sized, +{ + match node { + FnArg::Receiver(_binding_0) => { + v.visit_receiver(_binding_0); + } + FnArg::Typed(_binding_0) => { + v.visit_pat_type(_binding_0); + } + } +} +#[cfg(feature = "full")] +pub fn visit_foreign_item<'ast, V>(v: &mut V, node: &'ast ForeignItem) +where + V: Visit<'ast> + ?Sized, +{ + match node { + ForeignItem::Fn(_binding_0) => { + v.visit_foreign_item_fn(_binding_0); + } + ForeignItem::Static(_binding_0) => { + v.visit_foreign_item_static(_binding_0); + } + ForeignItem::Type(_binding_0) => { + v.visit_foreign_item_type(_binding_0); + } + ForeignItem::Macro(_binding_0) => { + v.visit_foreign_item_macro(_binding_0); + } + ForeignItem::Verbatim(_binding_0) => { + skip!(_binding_0); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn visit_foreign_item_fn<'ast, V>(v: &mut V, node: &'ast ForeignItemFn) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + v.visit_signature(&node.sig); + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_foreign_item_macro<'ast, V>(v: &mut V, node: &'ast ForeignItemMacro) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_macro(&node.mac); + if let Some(it) = &node.semi_token { + tokens_helper(v, &it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_foreign_item_static<'ast, V>(v: &mut V, node: &'ast ForeignItemStatic) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + tokens_helper(v, &node.static_token.span); + if let Some(it) = &node.mutability { + tokens_helper(v, &it.span); + } + v.visit_ident(&node.ident); + tokens_helper(v, &node.colon_token.spans); + v.visit_type(&*node.ty); + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_foreign_item_type<'ast, V>(v: &mut V, node: &'ast ForeignItemType) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + tokens_helper(v, &node.type_token.span); + v.visit_ident(&node.ident); + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_generic_argument<'ast, V>(v: &mut V, node: &'ast GenericArgument) +where + V: Visit<'ast> + ?Sized, +{ + match node { + GenericArgument::Lifetime(_binding_0) => { + v.visit_lifetime(_binding_0); + } + GenericArgument::Type(_binding_0) => { + v.visit_type(_binding_0); + } + GenericArgument::Const(_binding_0) => { + v.visit_expr(_binding_0); + } + GenericArgument::Binding(_binding_0) => { + v.visit_binding(_binding_0); + } + GenericArgument::Constraint(_binding_0) => { + v.visit_constraint(_binding_0); + } + } +} +#[cfg(feature = "full")] +pub fn visit_generic_method_argument<'ast, V>( + v: &mut V, + node: &'ast GenericMethodArgument, +) +where + V: Visit<'ast> + ?Sized, +{ + match node { + GenericMethodArgument::Type(_binding_0) => { + v.visit_type(_binding_0); + } + GenericMethodArgument::Const(_binding_0) => { + v.visit_expr(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_generic_param<'ast, V>(v: &mut V, node: &'ast GenericParam) +where + V: Visit<'ast> + ?Sized, +{ + match node { + GenericParam::Type(_binding_0) => { + v.visit_type_param(_binding_0); + } + GenericParam::Lifetime(_binding_0) => { + v.visit_lifetime_def(_binding_0); + } + GenericParam::Const(_binding_0) => { + v.visit_const_param(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_generics<'ast, V>(v: &mut V, node: &'ast Generics) +where + V: Visit<'ast> + ?Sized, +{ + if let Some(it) = &node.lt_token { + tokens_helper(v, &it.spans); + } + for el in Punctuated::pairs(&node.params) { + let (it, p) = el.into_tuple(); + v.visit_generic_param(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + if let Some(it) = &node.gt_token { + tokens_helper(v, &it.spans); + } + if let Some(it) = &node.where_clause { + v.visit_where_clause(it); + } +} +pub fn visit_ident<'ast, V>(v: &mut V, node: &'ast Ident) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_span(&node.span()); +} +#[cfg(feature = "full")] +pub fn visit_impl_item<'ast, V>(v: &mut V, node: &'ast ImplItem) +where + V: Visit<'ast> + ?Sized, +{ + match node { + ImplItem::Const(_binding_0) => { + v.visit_impl_item_const(_binding_0); + } + ImplItem::Method(_binding_0) => { + v.visit_impl_item_method(_binding_0); + } + ImplItem::Type(_binding_0) => { + v.visit_impl_item_type(_binding_0); + } + ImplItem::Macro(_binding_0) => { + v.visit_impl_item_macro(_binding_0); + } + ImplItem::Verbatim(_binding_0) => { + skip!(_binding_0); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn visit_impl_item_const<'ast, V>(v: &mut V, node: &'ast ImplItemConst) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + if let Some(it) = &node.defaultness { + tokens_helper(v, &it.span); + } + tokens_helper(v, &node.const_token.span); + v.visit_ident(&node.ident); + tokens_helper(v, &node.colon_token.spans); + v.visit_type(&node.ty); + tokens_helper(v, &node.eq_token.spans); + v.visit_expr(&node.expr); + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_impl_item_macro<'ast, V>(v: &mut V, node: &'ast ImplItemMacro) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_macro(&node.mac); + if let Some(it) = &node.semi_token { + tokens_helper(v, &it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_impl_item_method<'ast, V>(v: &mut V, node: &'ast ImplItemMethod) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + if let Some(it) = &node.defaultness { + tokens_helper(v, &it.span); + } + v.visit_signature(&node.sig); + v.visit_block(&node.block); +} +#[cfg(feature = "full")] +pub fn visit_impl_item_type<'ast, V>(v: &mut V, node: &'ast ImplItemType) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + if let Some(it) = &node.defaultness { + tokens_helper(v, &it.span); + } + tokens_helper(v, &node.type_token.span); + v.visit_ident(&node.ident); + v.visit_generics(&node.generics); + tokens_helper(v, &node.eq_token.spans); + v.visit_type(&node.ty); + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_index<'ast, V>(v: &mut V, node: &'ast Index) +where + V: Visit<'ast> + ?Sized, +{ + skip!(node.index); + v.visit_span(&node.span); +} +#[cfg(feature = "full")] +pub fn visit_item<'ast, V>(v: &mut V, node: &'ast Item) +where + V: Visit<'ast> + ?Sized, +{ + match node { + Item::Const(_binding_0) => { + v.visit_item_const(_binding_0); + } + Item::Enum(_binding_0) => { + v.visit_item_enum(_binding_0); + } + Item::ExternCrate(_binding_0) => { + v.visit_item_extern_crate(_binding_0); + } + Item::Fn(_binding_0) => { + v.visit_item_fn(_binding_0); + } + Item::ForeignMod(_binding_0) => { + v.visit_item_foreign_mod(_binding_0); + } + Item::Impl(_binding_0) => { + v.visit_item_impl(_binding_0); + } + Item::Macro(_binding_0) => { + v.visit_item_macro(_binding_0); + } + Item::Macro2(_binding_0) => { + v.visit_item_macro2(_binding_0); + } + Item::Mod(_binding_0) => { + v.visit_item_mod(_binding_0); + } + Item::Static(_binding_0) => { + v.visit_item_static(_binding_0); + } + Item::Struct(_binding_0) => { + v.visit_item_struct(_binding_0); + } + Item::Trait(_binding_0) => { + v.visit_item_trait(_binding_0); + } + Item::TraitAlias(_binding_0) => { + v.visit_item_trait_alias(_binding_0); + } + Item::Type(_binding_0) => { + v.visit_item_type(_binding_0); + } + Item::Union(_binding_0) => { + v.visit_item_union(_binding_0); + } + Item::Use(_binding_0) => { + v.visit_item_use(_binding_0); + } + Item::Verbatim(_binding_0) => { + skip!(_binding_0); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn visit_item_const<'ast, V>(v: &mut V, node: &'ast ItemConst) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + tokens_helper(v, &node.const_token.span); + v.visit_ident(&node.ident); + tokens_helper(v, &node.colon_token.spans); + v.visit_type(&*node.ty); + tokens_helper(v, &node.eq_token.spans); + v.visit_expr(&*node.expr); + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_item_enum<'ast, V>(v: &mut V, node: &'ast ItemEnum) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + tokens_helper(v, &node.enum_token.span); + v.visit_ident(&node.ident); + v.visit_generics(&node.generics); + tokens_helper(v, &node.brace_token.span); + for el in Punctuated::pairs(&node.variants) { + let (it, p) = el.into_tuple(); + v.visit_variant(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_item_extern_crate<'ast, V>(v: &mut V, node: &'ast ItemExternCrate) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + tokens_helper(v, &node.extern_token.span); + tokens_helper(v, &node.crate_token.span); + v.visit_ident(&node.ident); + if let Some(it) = &node.rename { + tokens_helper(v, &(it).0.span); + v.visit_ident(&(it).1); + } + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_item_fn<'ast, V>(v: &mut V, node: &'ast ItemFn) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + v.visit_signature(&node.sig); + v.visit_block(&*node.block); +} +#[cfg(feature = "full")] +pub fn visit_item_foreign_mod<'ast, V>(v: &mut V, node: &'ast ItemForeignMod) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_abi(&node.abi); + tokens_helper(v, &node.brace_token.span); + for it in &node.items { + v.visit_foreign_item(it); + } +} +#[cfg(feature = "full")] +pub fn visit_item_impl<'ast, V>(v: &mut V, node: &'ast ItemImpl) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.defaultness { + tokens_helper(v, &it.span); + } + if let Some(it) = &node.unsafety { + tokens_helper(v, &it.span); + } + tokens_helper(v, &node.impl_token.span); + v.visit_generics(&node.generics); + if let Some(it) = &node.trait_ { + if let Some(it) = &(it).0 { + tokens_helper(v, &it.spans); + } + v.visit_path(&(it).1); + tokens_helper(v, &(it).2.span); + } + v.visit_type(&*node.self_ty); + tokens_helper(v, &node.brace_token.span); + for it in &node.items { + v.visit_impl_item(it); + } +} +#[cfg(feature = "full")] +pub fn visit_item_macro<'ast, V>(v: &mut V, node: &'ast ItemMacro) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.ident { + v.visit_ident(it); + } + v.visit_macro(&node.mac); + if let Some(it) = &node.semi_token { + tokens_helper(v, &it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_item_macro2<'ast, V>(v: &mut V, node: &'ast ItemMacro2) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + tokens_helper(v, &node.macro_token.span); + v.visit_ident(&node.ident); + skip!(node.rules); +} +#[cfg(feature = "full")] +pub fn visit_item_mod<'ast, V>(v: &mut V, node: &'ast ItemMod) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + tokens_helper(v, &node.mod_token.span); + v.visit_ident(&node.ident); + if let Some(it) = &node.content { + tokens_helper(v, &(it).0.span); + for it in &(it).1 { + v.visit_item(it); + } + } + if let Some(it) = &node.semi { + tokens_helper(v, &it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_item_static<'ast, V>(v: &mut V, node: &'ast ItemStatic) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + tokens_helper(v, &node.static_token.span); + if let Some(it) = &node.mutability { + tokens_helper(v, &it.span); + } + v.visit_ident(&node.ident); + tokens_helper(v, &node.colon_token.spans); + v.visit_type(&*node.ty); + tokens_helper(v, &node.eq_token.spans); + v.visit_expr(&*node.expr); + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_item_struct<'ast, V>(v: &mut V, node: &'ast ItemStruct) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + tokens_helper(v, &node.struct_token.span); + v.visit_ident(&node.ident); + v.visit_generics(&node.generics); + v.visit_fields(&node.fields); + if let Some(it) = &node.semi_token { + tokens_helper(v, &it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_item_trait<'ast, V>(v: &mut V, node: &'ast ItemTrait) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + if let Some(it) = &node.unsafety { + tokens_helper(v, &it.span); + } + if let Some(it) = &node.auto_token { + tokens_helper(v, &it.span); + } + tokens_helper(v, &node.trait_token.span); + v.visit_ident(&node.ident); + v.visit_generics(&node.generics); + if let Some(it) = &node.colon_token { + tokens_helper(v, &it.spans); + } + for el in Punctuated::pairs(&node.supertraits) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + tokens_helper(v, &node.brace_token.span); + for it in &node.items { + v.visit_trait_item(it); + } +} +#[cfg(feature = "full")] +pub fn visit_item_trait_alias<'ast, V>(v: &mut V, node: &'ast ItemTraitAlias) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + tokens_helper(v, &node.trait_token.span); + v.visit_ident(&node.ident); + v.visit_generics(&node.generics); + tokens_helper(v, &node.eq_token.spans); + for el in Punctuated::pairs(&node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_item_type<'ast, V>(v: &mut V, node: &'ast ItemType) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + tokens_helper(v, &node.type_token.span); + v.visit_ident(&node.ident); + v.visit_generics(&node.generics); + tokens_helper(v, &node.eq_token.spans); + v.visit_type(&*node.ty); + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_item_union<'ast, V>(v: &mut V, node: &'ast ItemUnion) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + tokens_helper(v, &node.union_token.span); + v.visit_ident(&node.ident); + v.visit_generics(&node.generics); + v.visit_fields_named(&node.fields); +} +#[cfg(feature = "full")] +pub fn visit_item_use<'ast, V>(v: &mut V, node: &'ast ItemUse) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_visibility(&node.vis); + tokens_helper(v, &node.use_token.span); + if let Some(it) = &node.leading_colon { + tokens_helper(v, &it.spans); + } + v.visit_use_tree(&node.tree); + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_label<'ast, V>(v: &mut V, node: &'ast Label) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_lifetime(&node.name); + tokens_helper(v, &node.colon_token.spans); +} +pub fn visit_lifetime<'ast, V>(v: &mut V, node: &'ast Lifetime) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_span(&node.apostrophe); + v.visit_ident(&node.ident); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_lifetime_def<'ast, V>(v: &mut V, node: &'ast LifetimeDef) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_lifetime(&node.lifetime); + if let Some(it) = &node.colon_token { + tokens_helper(v, &it.spans); + } + for el in Punctuated::pairs(&node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_lifetime(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +pub fn visit_lit<'ast, V>(v: &mut V, node: &'ast Lit) +where + V: Visit<'ast> + ?Sized, +{ + match node { + Lit::Str(_binding_0) => { + v.visit_lit_str(_binding_0); + } + Lit::ByteStr(_binding_0) => { + v.visit_lit_byte_str(_binding_0); + } + Lit::Byte(_binding_0) => { + v.visit_lit_byte(_binding_0); + } + Lit::Char(_binding_0) => { + v.visit_lit_char(_binding_0); + } + Lit::Int(_binding_0) => { + v.visit_lit_int(_binding_0); + } + Lit::Float(_binding_0) => { + v.visit_lit_float(_binding_0); + } + Lit::Bool(_binding_0) => { + v.visit_lit_bool(_binding_0); + } + Lit::Verbatim(_binding_0) => { + skip!(_binding_0); + } + } +} +pub fn visit_lit_bool<'ast, V>(v: &mut V, node: &'ast LitBool) +where + V: Visit<'ast> + ?Sized, +{ + skip!(node.value); + v.visit_span(&node.span); +} +pub fn visit_lit_byte<'ast, V>(v: &mut V, node: &'ast LitByte) +where + V: Visit<'ast> + ?Sized, +{} +pub fn visit_lit_byte_str<'ast, V>(v: &mut V, node: &'ast LitByteStr) +where + V: Visit<'ast> + ?Sized, +{} +pub fn visit_lit_char<'ast, V>(v: &mut V, node: &'ast LitChar) +where + V: Visit<'ast> + ?Sized, +{} +pub fn visit_lit_float<'ast, V>(v: &mut V, node: &'ast LitFloat) +where + V: Visit<'ast> + ?Sized, +{} +pub fn visit_lit_int<'ast, V>(v: &mut V, node: &'ast LitInt) +where + V: Visit<'ast> + ?Sized, +{} +pub fn visit_lit_str<'ast, V>(v: &mut V, node: &'ast LitStr) +where + V: Visit<'ast> + ?Sized, +{} +#[cfg(feature = "full")] +pub fn visit_local<'ast, V>(v: &mut V, node: &'ast Local) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.let_token.span); + v.visit_pat(&node.pat); + if let Some(it) = &node.init { + tokens_helper(v, &(it).0.spans); + v.visit_expr(&*(it).1); + } + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_macro<'ast, V>(v: &mut V, node: &'ast Macro) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_path(&node.path); + tokens_helper(v, &node.bang_token.spans); + v.visit_macro_delimiter(&node.delimiter); + skip!(node.tokens); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_macro_delimiter<'ast, V>(v: &mut V, node: &'ast MacroDelimiter) +where + V: Visit<'ast> + ?Sized, +{ + match node { + MacroDelimiter::Paren(_binding_0) => { + tokens_helper(v, &_binding_0.span); + } + MacroDelimiter::Brace(_binding_0) => { + tokens_helper(v, &_binding_0.span); + } + MacroDelimiter::Bracket(_binding_0) => { + tokens_helper(v, &_binding_0.span); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_member<'ast, V>(v: &mut V, node: &'ast Member) +where + V: Visit<'ast> + ?Sized, +{ + match node { + Member::Named(_binding_0) => { + v.visit_ident(_binding_0); + } + Member::Unnamed(_binding_0) => { + v.visit_index(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_meta<'ast, V>(v: &mut V, node: &'ast Meta) +where + V: Visit<'ast> + ?Sized, +{ + match node { + Meta::Path(_binding_0) => { + v.visit_path(_binding_0); + } + Meta::List(_binding_0) => { + v.visit_meta_list(_binding_0); + } + Meta::NameValue(_binding_0) => { + v.visit_meta_name_value(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_meta_list<'ast, V>(v: &mut V, node: &'ast MetaList) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_path(&node.path); + tokens_helper(v, &node.paren_token.span); + for el in Punctuated::pairs(&node.nested) { + let (it, p) = el.into_tuple(); + v.visit_nested_meta(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_meta_name_value<'ast, V>(v: &mut V, node: &'ast MetaNameValue) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_path(&node.path); + tokens_helper(v, &node.eq_token.spans); + v.visit_lit(&node.lit); +} +#[cfg(feature = "full")] +pub fn visit_method_turbofish<'ast, V>(v: &mut V, node: &'ast MethodTurbofish) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.colon2_token.spans); + tokens_helper(v, &node.lt_token.spans); + for el in Punctuated::pairs(&node.args) { + let (it, p) = el.into_tuple(); + v.visit_generic_method_argument(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + tokens_helper(v, &node.gt_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_nested_meta<'ast, V>(v: &mut V, node: &'ast NestedMeta) +where + V: Visit<'ast> + ?Sized, +{ + match node { + NestedMeta::Meta(_binding_0) => { + v.visit_meta(_binding_0); + } + NestedMeta::Lit(_binding_0) => { + v.visit_lit(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_parenthesized_generic_arguments<'ast, V>( + v: &mut V, + node: &'ast ParenthesizedGenericArguments, +) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.paren_token.span); + for el in Punctuated::pairs(&node.inputs) { + let (it, p) = el.into_tuple(); + v.visit_type(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + v.visit_return_type(&node.output); +} +#[cfg(feature = "full")] +pub fn visit_pat<'ast, V>(v: &mut V, node: &'ast Pat) +where + V: Visit<'ast> + ?Sized, +{ + match node { + Pat::Box(_binding_0) => { + v.visit_pat_box(_binding_0); + } + Pat::Ident(_binding_0) => { + v.visit_pat_ident(_binding_0); + } + Pat::Lit(_binding_0) => { + v.visit_pat_lit(_binding_0); + } + Pat::Macro(_binding_0) => { + v.visit_pat_macro(_binding_0); + } + Pat::Or(_binding_0) => { + v.visit_pat_or(_binding_0); + } + Pat::Path(_binding_0) => { + v.visit_pat_path(_binding_0); + } + Pat::Range(_binding_0) => { + v.visit_pat_range(_binding_0); + } + Pat::Reference(_binding_0) => { + v.visit_pat_reference(_binding_0); + } + Pat::Rest(_binding_0) => { + v.visit_pat_rest(_binding_0); + } + Pat::Slice(_binding_0) => { + v.visit_pat_slice(_binding_0); + } + Pat::Struct(_binding_0) => { + v.visit_pat_struct(_binding_0); + } + Pat::Tuple(_binding_0) => { + v.visit_pat_tuple(_binding_0); + } + Pat::TupleStruct(_binding_0) => { + v.visit_pat_tuple_struct(_binding_0); + } + Pat::Type(_binding_0) => { + v.visit_pat_type(_binding_0); + } + Pat::Verbatim(_binding_0) => { + skip!(_binding_0); + } + Pat::Wild(_binding_0) => { + v.visit_pat_wild(_binding_0); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn visit_pat_box<'ast, V>(v: &mut V, node: &'ast PatBox) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.box_token.span); + v.visit_pat(&*node.pat); +} +#[cfg(feature = "full")] +pub fn visit_pat_ident<'ast, V>(v: &mut V, node: &'ast PatIdent) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.by_ref { + tokens_helper(v, &it.span); + } + if let Some(it) = &node.mutability { + tokens_helper(v, &it.span); + } + v.visit_ident(&node.ident); + if let Some(it) = &node.subpat { + tokens_helper(v, &(it).0.spans); + v.visit_pat(&*(it).1); + } +} +#[cfg(feature = "full")] +pub fn visit_pat_lit<'ast, V>(v: &mut V, node: &'ast PatLit) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_expr(&*node.expr); +} +#[cfg(feature = "full")] +pub fn visit_pat_macro<'ast, V>(v: &mut V, node: &'ast PatMacro) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_macro(&node.mac); +} +#[cfg(feature = "full")] +pub fn visit_pat_or<'ast, V>(v: &mut V, node: &'ast PatOr) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.leading_vert { + tokens_helper(v, &it.spans); + } + for el in Punctuated::pairs(&node.cases) { + let (it, p) = el.into_tuple(); + v.visit_pat(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_pat_path<'ast, V>(v: &mut V, node: &'ast PatPath) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.qself { + v.visit_qself(it); + } + v.visit_path(&node.path); +} +#[cfg(feature = "full")] +pub fn visit_pat_range<'ast, V>(v: &mut V, node: &'ast PatRange) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_expr(&*node.lo); + v.visit_range_limits(&node.limits); + v.visit_expr(&*node.hi); +} +#[cfg(feature = "full")] +pub fn visit_pat_reference<'ast, V>(v: &mut V, node: &'ast PatReference) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.and_token.spans); + if let Some(it) = &node.mutability { + tokens_helper(v, &it.span); + } + v.visit_pat(&*node.pat); +} +#[cfg(feature = "full")] +pub fn visit_pat_rest<'ast, V>(v: &mut V, node: &'ast PatRest) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.dot2_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_pat_slice<'ast, V>(v: &mut V, node: &'ast PatSlice) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.bracket_token.span); + for el in Punctuated::pairs(&node.elems) { + let (it, p) = el.into_tuple(); + v.visit_pat(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_pat_struct<'ast, V>(v: &mut V, node: &'ast PatStruct) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_path(&node.path); + tokens_helper(v, &node.brace_token.span); + for el in Punctuated::pairs(&node.fields) { + let (it, p) = el.into_tuple(); + v.visit_field_pat(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + if let Some(it) = &node.dot2_token { + tokens_helper(v, &it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_pat_tuple<'ast, V>(v: &mut V, node: &'ast PatTuple) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.paren_token.span); + for el in Punctuated::pairs(&node.elems) { + let (it, p) = el.into_tuple(); + v.visit_pat(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_pat_tuple_struct<'ast, V>(v: &mut V, node: &'ast PatTupleStruct) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_path(&node.path); + v.visit_pat_tuple(&node.pat); +} +#[cfg(feature = "full")] +pub fn visit_pat_type<'ast, V>(v: &mut V, node: &'ast PatType) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_pat(&*node.pat); + tokens_helper(v, &node.colon_token.spans); + v.visit_type(&*node.ty); +} +#[cfg(feature = "full")] +pub fn visit_pat_wild<'ast, V>(v: &mut V, node: &'ast PatWild) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.underscore_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_path<'ast, V>(v: &mut V, node: &'ast Path) +where + V: Visit<'ast> + ?Sized, +{ + if let Some(it) = &node.leading_colon { + tokens_helper(v, &it.spans); + } + for el in Punctuated::pairs(&node.segments) { + let (it, p) = el.into_tuple(); + v.visit_path_segment(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_path_arguments<'ast, V>(v: &mut V, node: &'ast PathArguments) +where + V: Visit<'ast> + ?Sized, +{ + match node { + PathArguments::None => {} + PathArguments::AngleBracketed(_binding_0) => { + v.visit_angle_bracketed_generic_arguments(_binding_0); + } + PathArguments::Parenthesized(_binding_0) => { + v.visit_parenthesized_generic_arguments(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_path_segment<'ast, V>(v: &mut V, node: &'ast PathSegment) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_ident(&node.ident); + v.visit_path_arguments(&node.arguments); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_predicate_eq<'ast, V>(v: &mut V, node: &'ast PredicateEq) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_type(&node.lhs_ty); + tokens_helper(v, &node.eq_token.spans); + v.visit_type(&node.rhs_ty); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_predicate_lifetime<'ast, V>(v: &mut V, node: &'ast PredicateLifetime) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_lifetime(&node.lifetime); + tokens_helper(v, &node.colon_token.spans); + for el in Punctuated::pairs(&node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_lifetime(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_predicate_type<'ast, V>(v: &mut V, node: &'ast PredicateType) +where + V: Visit<'ast> + ?Sized, +{ + if let Some(it) = &node.lifetimes { + v.visit_bound_lifetimes(it); + } + v.visit_type(&node.bounded_ty); + tokens_helper(v, &node.colon_token.spans); + for el in Punctuated::pairs(&node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_qself<'ast, V>(v: &mut V, node: &'ast QSelf) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.lt_token.spans); + v.visit_type(&*node.ty); + skip!(node.position); + if let Some(it) = &node.as_token { + tokens_helper(v, &it.span); + } + tokens_helper(v, &node.gt_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_range_limits<'ast, V>(v: &mut V, node: &'ast RangeLimits) +where + V: Visit<'ast> + ?Sized, +{ + match node { + RangeLimits::HalfOpen(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + RangeLimits::Closed(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_receiver<'ast, V>(v: &mut V, node: &'ast Receiver) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + if let Some(it) = &node.reference { + tokens_helper(v, &(it).0.spans); + if let Some(it) = &(it).1 { + v.visit_lifetime(it); + } + } + if let Some(it) = &node.mutability { + tokens_helper(v, &it.span); + } + tokens_helper(v, &node.self_token.span); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_return_type<'ast, V>(v: &mut V, node: &'ast ReturnType) +where + V: Visit<'ast> + ?Sized, +{ + match node { + ReturnType::Default => {} + ReturnType::Type(_binding_0, _binding_1) => { + tokens_helper(v, &_binding_0.spans); + v.visit_type(&**_binding_1); + } + } +} +#[cfg(feature = "full")] +pub fn visit_signature<'ast, V>(v: &mut V, node: &'ast Signature) +where + V: Visit<'ast> + ?Sized, +{ + if let Some(it) = &node.constness { + tokens_helper(v, &it.span); + } + if let Some(it) = &node.asyncness { + tokens_helper(v, &it.span); + } + if let Some(it) = &node.unsafety { + tokens_helper(v, &it.span); + } + if let Some(it) = &node.abi { + v.visit_abi(it); + } + tokens_helper(v, &node.fn_token.span); + v.visit_ident(&node.ident); + v.visit_generics(&node.generics); + tokens_helper(v, &node.paren_token.span); + for el in Punctuated::pairs(&node.inputs) { + let (it, p) = el.into_tuple(); + v.visit_fn_arg(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + if let Some(it) = &node.variadic { + v.visit_variadic(it); + } + v.visit_return_type(&node.output); +} +pub fn visit_span<'ast, V>(v: &mut V, node: &Span) +where + V: Visit<'ast> + ?Sized, +{} +#[cfg(feature = "full")] +pub fn visit_stmt<'ast, V>(v: &mut V, node: &'ast Stmt) +where + V: Visit<'ast> + ?Sized, +{ + match node { + Stmt::Local(_binding_0) => { + v.visit_local(_binding_0); + } + Stmt::Item(_binding_0) => { + v.visit_item(_binding_0); + } + Stmt::Expr(_binding_0) => { + v.visit_expr(_binding_0); + } + Stmt::Semi(_binding_0, _binding_1) => { + v.visit_expr(_binding_0); + tokens_helper(v, &_binding_1.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_trait_bound<'ast, V>(v: &mut V, node: &'ast TraitBound) +where + V: Visit<'ast> + ?Sized, +{ + if let Some(it) = &node.paren_token { + tokens_helper(v, &it.span); + } + v.visit_trait_bound_modifier(&node.modifier); + if let Some(it) = &node.lifetimes { + v.visit_bound_lifetimes(it); + } + v.visit_path(&node.path); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_trait_bound_modifier<'ast, V>(v: &mut V, node: &'ast TraitBoundModifier) +where + V: Visit<'ast> + ?Sized, +{ + match node { + TraitBoundModifier::None => {} + TraitBoundModifier::Maybe(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_trait_item<'ast, V>(v: &mut V, node: &'ast TraitItem) +where + V: Visit<'ast> + ?Sized, +{ + match node { + TraitItem::Const(_binding_0) => { + v.visit_trait_item_const(_binding_0); + } + TraitItem::Method(_binding_0) => { + v.visit_trait_item_method(_binding_0); + } + TraitItem::Type(_binding_0) => { + v.visit_trait_item_type(_binding_0); + } + TraitItem::Macro(_binding_0) => { + v.visit_trait_item_macro(_binding_0); + } + TraitItem::Verbatim(_binding_0) => { + skip!(_binding_0); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn visit_trait_item_const<'ast, V>(v: &mut V, node: &'ast TraitItemConst) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.const_token.span); + v.visit_ident(&node.ident); + tokens_helper(v, &node.colon_token.spans); + v.visit_type(&node.ty); + if let Some(it) = &node.default { + tokens_helper(v, &(it).0.spans); + v.visit_expr(&(it).1); + } + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_trait_item_macro<'ast, V>(v: &mut V, node: &'ast TraitItemMacro) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_macro(&node.mac); + if let Some(it) = &node.semi_token { + tokens_helper(v, &it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_trait_item_method<'ast, V>(v: &mut V, node: &'ast TraitItemMethod) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_signature(&node.sig); + if let Some(it) = &node.default { + v.visit_block(it); + } + if let Some(it) = &node.semi_token { + tokens_helper(v, &it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_trait_item_type<'ast, V>(v: &mut V, node: &'ast TraitItemType) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.type_token.span); + v.visit_ident(&node.ident); + v.visit_generics(&node.generics); + if let Some(it) = &node.colon_token { + tokens_helper(v, &it.spans); + } + for el in Punctuated::pairs(&node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + if let Some(it) = &node.default { + tokens_helper(v, &(it).0.spans); + v.visit_type(&(it).1); + } + tokens_helper(v, &node.semi_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type<'ast, V>(v: &mut V, node: &'ast Type) +where + V: Visit<'ast> + ?Sized, +{ + match node { + Type::Array(_binding_0) => { + v.visit_type_array(_binding_0); + } + Type::BareFn(_binding_0) => { + v.visit_type_bare_fn(_binding_0); + } + Type::Group(_binding_0) => { + v.visit_type_group(_binding_0); + } + Type::ImplTrait(_binding_0) => { + v.visit_type_impl_trait(_binding_0); + } + Type::Infer(_binding_0) => { + v.visit_type_infer(_binding_0); + } + Type::Macro(_binding_0) => { + v.visit_type_macro(_binding_0); + } + Type::Never(_binding_0) => { + v.visit_type_never(_binding_0); + } + Type::Paren(_binding_0) => { + v.visit_type_paren(_binding_0); + } + Type::Path(_binding_0) => { + v.visit_type_path(_binding_0); + } + Type::Ptr(_binding_0) => { + v.visit_type_ptr(_binding_0); + } + Type::Reference(_binding_0) => { + v.visit_type_reference(_binding_0); + } + Type::Slice(_binding_0) => { + v.visit_type_slice(_binding_0); + } + Type::TraitObject(_binding_0) => { + v.visit_type_trait_object(_binding_0); + } + Type::Tuple(_binding_0) => { + v.visit_type_tuple(_binding_0); + } + Type::Verbatim(_binding_0) => { + skip!(_binding_0); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_array<'ast, V>(v: &mut V, node: &'ast TypeArray) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.bracket_token.span); + v.visit_type(&*node.elem); + tokens_helper(v, &node.semi_token.spans); + v.visit_expr(&node.len); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_bare_fn<'ast, V>(v: &mut V, node: &'ast TypeBareFn) +where + V: Visit<'ast> + ?Sized, +{ + if let Some(it) = &node.lifetimes { + v.visit_bound_lifetimes(it); + } + if let Some(it) = &node.unsafety { + tokens_helper(v, &it.span); + } + if let Some(it) = &node.abi { + v.visit_abi(it); + } + tokens_helper(v, &node.fn_token.span); + tokens_helper(v, &node.paren_token.span); + for el in Punctuated::pairs(&node.inputs) { + let (it, p) = el.into_tuple(); + v.visit_bare_fn_arg(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + if let Some(it) = &node.variadic { + v.visit_variadic(it); + } + v.visit_return_type(&node.output); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_group<'ast, V>(v: &mut V, node: &'ast TypeGroup) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.group_token.span); + v.visit_type(&*node.elem); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_impl_trait<'ast, V>(v: &mut V, node: &'ast TypeImplTrait) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.impl_token.span); + for el in Punctuated::pairs(&node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_infer<'ast, V>(v: &mut V, node: &'ast TypeInfer) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.underscore_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_macro<'ast, V>(v: &mut V, node: &'ast TypeMacro) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_macro(&node.mac); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_never<'ast, V>(v: &mut V, node: &'ast TypeNever) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.bang_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_param<'ast, V>(v: &mut V, node: &'ast TypeParam) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_ident(&node.ident); + if let Some(it) = &node.colon_token { + tokens_helper(v, &it.spans); + } + for el in Punctuated::pairs(&node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } + if let Some(it) = &node.eq_token { + tokens_helper(v, &it.spans); + } + if let Some(it) = &node.default { + v.visit_type(it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_param_bound<'ast, V>(v: &mut V, node: &'ast TypeParamBound) +where + V: Visit<'ast> + ?Sized, +{ + match node { + TypeParamBound::Trait(_binding_0) => { + v.visit_trait_bound(_binding_0); + } + TypeParamBound::Lifetime(_binding_0) => { + v.visit_lifetime(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_paren<'ast, V>(v: &mut V, node: &'ast TypeParen) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.paren_token.span); + v.visit_type(&*node.elem); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_path<'ast, V>(v: &mut V, node: &'ast TypePath) +where + V: Visit<'ast> + ?Sized, +{ + if let Some(it) = &node.qself { + v.visit_qself(it); + } + v.visit_path(&node.path); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_ptr<'ast, V>(v: &mut V, node: &'ast TypePtr) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.star_token.spans); + if let Some(it) = &node.const_token { + tokens_helper(v, &it.span); + } + if let Some(it) = &node.mutability { + tokens_helper(v, &it.span); + } + v.visit_type(&*node.elem); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_reference<'ast, V>(v: &mut V, node: &'ast TypeReference) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.and_token.spans); + if let Some(it) = &node.lifetime { + v.visit_lifetime(it); + } + if let Some(it) = &node.mutability { + tokens_helper(v, &it.span); + } + v.visit_type(&*node.elem); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_slice<'ast, V>(v: &mut V, node: &'ast TypeSlice) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.bracket_token.span); + v.visit_type(&*node.elem); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_trait_object<'ast, V>(v: &mut V, node: &'ast TypeTraitObject) +where + V: Visit<'ast> + ?Sized, +{ + if let Some(it) = &node.dyn_token { + tokens_helper(v, &it.span); + } + for el in Punctuated::pairs(&node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_tuple<'ast, V>(v: &mut V, node: &'ast TypeTuple) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.paren_token.span); + for el in Punctuated::pairs(&node.elems) { + let (it, p) = el.into_tuple(); + v.visit_type(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_un_op<'ast, V>(v: &mut V, node: &'ast UnOp) +where + V: Visit<'ast> + ?Sized, +{ + match node { + UnOp::Deref(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + UnOp::Not(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + UnOp::Neg(_binding_0) => { + tokens_helper(v, &_binding_0.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_use_glob<'ast, V>(v: &mut V, node: &'ast UseGlob) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.star_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_use_group<'ast, V>(v: &mut V, node: &'ast UseGroup) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.brace_token.span); + for el in Punctuated::pairs(&node.items) { + let (it, p) = el.into_tuple(); + v.visit_use_tree(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_use_name<'ast, V>(v: &mut V, node: &'ast UseName) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_ident(&node.ident); +} +#[cfg(feature = "full")] +pub fn visit_use_path<'ast, V>(v: &mut V, node: &'ast UsePath) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_ident(&node.ident); + tokens_helper(v, &node.colon2_token.spans); + v.visit_use_tree(&*node.tree); +} +#[cfg(feature = "full")] +pub fn visit_use_rename<'ast, V>(v: &mut V, node: &'ast UseRename) +where + V: Visit<'ast> + ?Sized, +{ + v.visit_ident(&node.ident); + tokens_helper(v, &node.as_token.span); + v.visit_ident(&node.rename); +} +#[cfg(feature = "full")] +pub fn visit_use_tree<'ast, V>(v: &mut V, node: &'ast UseTree) +where + V: Visit<'ast> + ?Sized, +{ + match node { + UseTree::Path(_binding_0) => { + v.visit_use_path(_binding_0); + } + UseTree::Name(_binding_0) => { + v.visit_use_name(_binding_0); + } + UseTree::Rename(_binding_0) => { + v.visit_use_rename(_binding_0); + } + UseTree::Glob(_binding_0) => { + v.visit_use_glob(_binding_0); + } + UseTree::Group(_binding_0) => { + v.visit_use_group(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_variadic<'ast, V>(v: &mut V, node: &'ast Variadic) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + tokens_helper(v, &node.dots.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_variant<'ast, V>(v: &mut V, node: &'ast Variant) +where + V: Visit<'ast> + ?Sized, +{ + for it in &node.attrs { + v.visit_attribute(it); + } + v.visit_ident(&node.ident); + v.visit_fields(&node.fields); + if let Some(it) = &node.discriminant { + tokens_helper(v, &(it).0.spans); + v.visit_expr(&(it).1); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_vis_crate<'ast, V>(v: &mut V, node: &'ast VisCrate) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.crate_token.span); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_vis_public<'ast, V>(v: &mut V, node: &'ast VisPublic) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.pub_token.span); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_vis_restricted<'ast, V>(v: &mut V, node: &'ast VisRestricted) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.pub_token.span); + tokens_helper(v, &node.paren_token.span); + if let Some(it) = &node.in_token { + tokens_helper(v, &it.span); + } + v.visit_path(&*node.path); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_visibility<'ast, V>(v: &mut V, node: &'ast Visibility) +where + V: Visit<'ast> + ?Sized, +{ + match node { + Visibility::Public(_binding_0) => { + v.visit_vis_public(_binding_0); + } + Visibility::Crate(_binding_0) => { + v.visit_vis_crate(_binding_0); + } + Visibility::Restricted(_binding_0) => { + v.visit_vis_restricted(_binding_0); + } + Visibility::Inherited => {} + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_where_clause<'ast, V>(v: &mut V, node: &'ast WhereClause) +where + V: Visit<'ast> + ?Sized, +{ + tokens_helper(v, &node.where_token.span); + for el in Punctuated::pairs(&node.predicates) { + let (it, p) = el.into_tuple(); + v.visit_where_predicate(it); + if let Some(p) = p { + tokens_helper(v, &p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_where_predicate<'ast, V>(v: &mut V, node: &'ast WherePredicate) +where + V: Visit<'ast> + ?Sized, +{ + match node { + WherePredicate::Type(_binding_0) => { + v.visit_predicate_type(_binding_0); + } + WherePredicate::Lifetime(_binding_0) => { + v.visit_predicate_lifetime(_binding_0); + } + WherePredicate::Eq(_binding_0) => { + v.visit_predicate_eq(_binding_0); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/visit_mut.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/visit_mut.rs new file mode 100644 index 0000000000000000000000000000000000000000..239709d19410717f81a36f9b3409e2b418bfd6c3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/gen/visit_mut.rs @@ -0,0 +1,3786 @@ +// This file is @generated by syn-internal-codegen. +// It is not intended for manual editing. + +#![allow(unused_variables)] +#[cfg(any(feature = "full", feature = "derive"))] +use crate::gen::helper::visit_mut::*; +#[cfg(any(feature = "full", feature = "derive"))] +use crate::punctuated::Punctuated; +use crate::*; +use proc_macro2::Span; +#[cfg(feature = "full")] +macro_rules! full { + ($e:expr) => { + $e + }; +} +#[cfg(all(feature = "derive", not(feature = "full")))] +macro_rules! full { + ($e:expr) => { + unreachable!() + }; +} +macro_rules! skip { + ($($tt:tt)*) => {}; +} +/// Syntax tree traversal to mutate an exclusive borrow of a syntax tree in +/// place. +/// +/// See the [module documentation] for details. +/// +/// [module documentation]: self +/// +/// *This trait is available only if Syn is built with the `"visit-mut"` feature.* +pub trait VisitMut { + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_abi_mut(&mut self, i: &mut Abi) { + visit_abi_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_angle_bracketed_generic_arguments_mut( + &mut self, + i: &mut AngleBracketedGenericArguments, + ) { + visit_angle_bracketed_generic_arguments_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_arm_mut(&mut self, i: &mut Arm) { + visit_arm_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_attr_style_mut(&mut self, i: &mut AttrStyle) { + visit_attr_style_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_attribute_mut(&mut self, i: &mut Attribute) { + visit_attribute_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_bare_fn_arg_mut(&mut self, i: &mut BareFnArg) { + visit_bare_fn_arg_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_bin_op_mut(&mut self, i: &mut BinOp) { + visit_bin_op_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_binding_mut(&mut self, i: &mut Binding) { + visit_binding_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_block_mut(&mut self, i: &mut Block) { + visit_block_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_bound_lifetimes_mut(&mut self, i: &mut BoundLifetimes) { + visit_bound_lifetimes_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_const_param_mut(&mut self, i: &mut ConstParam) { + visit_const_param_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_constraint_mut(&mut self, i: &mut Constraint) { + visit_constraint_mut(self, i); + } + #[cfg(feature = "derive")] + fn visit_data_mut(&mut self, i: &mut Data) { + visit_data_mut(self, i); + } + #[cfg(feature = "derive")] + fn visit_data_enum_mut(&mut self, i: &mut DataEnum) { + visit_data_enum_mut(self, i); + } + #[cfg(feature = "derive")] + fn visit_data_struct_mut(&mut self, i: &mut DataStruct) { + visit_data_struct_mut(self, i); + } + #[cfg(feature = "derive")] + fn visit_data_union_mut(&mut self, i: &mut DataUnion) { + visit_data_union_mut(self, i); + } + #[cfg(feature = "derive")] + fn visit_derive_input_mut(&mut self, i: &mut DeriveInput) { + visit_derive_input_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_mut(&mut self, i: &mut Expr) { + visit_expr_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_array_mut(&mut self, i: &mut ExprArray) { + visit_expr_array_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_assign_mut(&mut self, i: &mut ExprAssign) { + visit_expr_assign_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_assign_op_mut(&mut self, i: &mut ExprAssignOp) { + visit_expr_assign_op_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_async_mut(&mut self, i: &mut ExprAsync) { + visit_expr_async_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_await_mut(&mut self, i: &mut ExprAwait) { + visit_expr_await_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_binary_mut(&mut self, i: &mut ExprBinary) { + visit_expr_binary_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_block_mut(&mut self, i: &mut ExprBlock) { + visit_expr_block_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_box_mut(&mut self, i: &mut ExprBox) { + visit_expr_box_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_break_mut(&mut self, i: &mut ExprBreak) { + visit_expr_break_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_call_mut(&mut self, i: &mut ExprCall) { + visit_expr_call_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_cast_mut(&mut self, i: &mut ExprCast) { + visit_expr_cast_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_closure_mut(&mut self, i: &mut ExprClosure) { + visit_expr_closure_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_continue_mut(&mut self, i: &mut ExprContinue) { + visit_expr_continue_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_field_mut(&mut self, i: &mut ExprField) { + visit_expr_field_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_for_loop_mut(&mut self, i: &mut ExprForLoop) { + visit_expr_for_loop_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_group_mut(&mut self, i: &mut ExprGroup) { + visit_expr_group_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_if_mut(&mut self, i: &mut ExprIf) { + visit_expr_if_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_index_mut(&mut self, i: &mut ExprIndex) { + visit_expr_index_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_let_mut(&mut self, i: &mut ExprLet) { + visit_expr_let_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_lit_mut(&mut self, i: &mut ExprLit) { + visit_expr_lit_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_loop_mut(&mut self, i: &mut ExprLoop) { + visit_expr_loop_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_macro_mut(&mut self, i: &mut ExprMacro) { + visit_expr_macro_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_match_mut(&mut self, i: &mut ExprMatch) { + visit_expr_match_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_method_call_mut(&mut self, i: &mut ExprMethodCall) { + visit_expr_method_call_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_paren_mut(&mut self, i: &mut ExprParen) { + visit_expr_paren_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_path_mut(&mut self, i: &mut ExprPath) { + visit_expr_path_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_range_mut(&mut self, i: &mut ExprRange) { + visit_expr_range_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_reference_mut(&mut self, i: &mut ExprReference) { + visit_expr_reference_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_repeat_mut(&mut self, i: &mut ExprRepeat) { + visit_expr_repeat_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_return_mut(&mut self, i: &mut ExprReturn) { + visit_expr_return_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_struct_mut(&mut self, i: &mut ExprStruct) { + visit_expr_struct_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_try_mut(&mut self, i: &mut ExprTry) { + visit_expr_try_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_try_block_mut(&mut self, i: &mut ExprTryBlock) { + visit_expr_try_block_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_tuple_mut(&mut self, i: &mut ExprTuple) { + visit_expr_tuple_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_type_mut(&mut self, i: &mut ExprType) { + visit_expr_type_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_expr_unary_mut(&mut self, i: &mut ExprUnary) { + visit_expr_unary_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_unsafe_mut(&mut self, i: &mut ExprUnsafe) { + visit_expr_unsafe_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_while_mut(&mut self, i: &mut ExprWhile) { + visit_expr_while_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_expr_yield_mut(&mut self, i: &mut ExprYield) { + visit_expr_yield_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_field_mut(&mut self, i: &mut Field) { + visit_field_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_field_pat_mut(&mut self, i: &mut FieldPat) { + visit_field_pat_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_field_value_mut(&mut self, i: &mut FieldValue) { + visit_field_value_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_fields_mut(&mut self, i: &mut Fields) { + visit_fields_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_fields_named_mut(&mut self, i: &mut FieldsNamed) { + visit_fields_named_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_fields_unnamed_mut(&mut self, i: &mut FieldsUnnamed) { + visit_fields_unnamed_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_file_mut(&mut self, i: &mut File) { + visit_file_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_fn_arg_mut(&mut self, i: &mut FnArg) { + visit_fn_arg_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_foreign_item_mut(&mut self, i: &mut ForeignItem) { + visit_foreign_item_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_foreign_item_fn_mut(&mut self, i: &mut ForeignItemFn) { + visit_foreign_item_fn_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_foreign_item_macro_mut(&mut self, i: &mut ForeignItemMacro) { + visit_foreign_item_macro_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_foreign_item_static_mut(&mut self, i: &mut ForeignItemStatic) { + visit_foreign_item_static_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_foreign_item_type_mut(&mut self, i: &mut ForeignItemType) { + visit_foreign_item_type_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_generic_argument_mut(&mut self, i: &mut GenericArgument) { + visit_generic_argument_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_generic_method_argument_mut(&mut self, i: &mut GenericMethodArgument) { + visit_generic_method_argument_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_generic_param_mut(&mut self, i: &mut GenericParam) { + visit_generic_param_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_generics_mut(&mut self, i: &mut Generics) { + visit_generics_mut(self, i); + } + fn visit_ident_mut(&mut self, i: &mut Ident) { + visit_ident_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_impl_item_mut(&mut self, i: &mut ImplItem) { + visit_impl_item_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_impl_item_const_mut(&mut self, i: &mut ImplItemConst) { + visit_impl_item_const_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_impl_item_macro_mut(&mut self, i: &mut ImplItemMacro) { + visit_impl_item_macro_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_impl_item_method_mut(&mut self, i: &mut ImplItemMethod) { + visit_impl_item_method_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_impl_item_type_mut(&mut self, i: &mut ImplItemType) { + visit_impl_item_type_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_index_mut(&mut self, i: &mut Index) { + visit_index_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_mut(&mut self, i: &mut Item) { + visit_item_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_const_mut(&mut self, i: &mut ItemConst) { + visit_item_const_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_enum_mut(&mut self, i: &mut ItemEnum) { + visit_item_enum_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_extern_crate_mut(&mut self, i: &mut ItemExternCrate) { + visit_item_extern_crate_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_fn_mut(&mut self, i: &mut ItemFn) { + visit_item_fn_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_foreign_mod_mut(&mut self, i: &mut ItemForeignMod) { + visit_item_foreign_mod_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_impl_mut(&mut self, i: &mut ItemImpl) { + visit_item_impl_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_macro_mut(&mut self, i: &mut ItemMacro) { + visit_item_macro_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_macro2_mut(&mut self, i: &mut ItemMacro2) { + visit_item_macro2_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_mod_mut(&mut self, i: &mut ItemMod) { + visit_item_mod_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_static_mut(&mut self, i: &mut ItemStatic) { + visit_item_static_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_struct_mut(&mut self, i: &mut ItemStruct) { + visit_item_struct_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_trait_mut(&mut self, i: &mut ItemTrait) { + visit_item_trait_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_trait_alias_mut(&mut self, i: &mut ItemTraitAlias) { + visit_item_trait_alias_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_type_mut(&mut self, i: &mut ItemType) { + visit_item_type_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_union_mut(&mut self, i: &mut ItemUnion) { + visit_item_union_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_item_use_mut(&mut self, i: &mut ItemUse) { + visit_item_use_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_label_mut(&mut self, i: &mut Label) { + visit_label_mut(self, i); + } + fn visit_lifetime_mut(&mut self, i: &mut Lifetime) { + visit_lifetime_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_lifetime_def_mut(&mut self, i: &mut LifetimeDef) { + visit_lifetime_def_mut(self, i); + } + fn visit_lit_mut(&mut self, i: &mut Lit) { + visit_lit_mut(self, i); + } + fn visit_lit_bool_mut(&mut self, i: &mut LitBool) { + visit_lit_bool_mut(self, i); + } + fn visit_lit_byte_mut(&mut self, i: &mut LitByte) { + visit_lit_byte_mut(self, i); + } + fn visit_lit_byte_str_mut(&mut self, i: &mut LitByteStr) { + visit_lit_byte_str_mut(self, i); + } + fn visit_lit_char_mut(&mut self, i: &mut LitChar) { + visit_lit_char_mut(self, i); + } + fn visit_lit_float_mut(&mut self, i: &mut LitFloat) { + visit_lit_float_mut(self, i); + } + fn visit_lit_int_mut(&mut self, i: &mut LitInt) { + visit_lit_int_mut(self, i); + } + fn visit_lit_str_mut(&mut self, i: &mut LitStr) { + visit_lit_str_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_local_mut(&mut self, i: &mut Local) { + visit_local_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_macro_mut(&mut self, i: &mut Macro) { + visit_macro_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_macro_delimiter_mut(&mut self, i: &mut MacroDelimiter) { + visit_macro_delimiter_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_member_mut(&mut self, i: &mut Member) { + visit_member_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_meta_mut(&mut self, i: &mut Meta) { + visit_meta_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_meta_list_mut(&mut self, i: &mut MetaList) { + visit_meta_list_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_meta_name_value_mut(&mut self, i: &mut MetaNameValue) { + visit_meta_name_value_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_method_turbofish_mut(&mut self, i: &mut MethodTurbofish) { + visit_method_turbofish_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_nested_meta_mut(&mut self, i: &mut NestedMeta) { + visit_nested_meta_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_parenthesized_generic_arguments_mut( + &mut self, + i: &mut ParenthesizedGenericArguments, + ) { + visit_parenthesized_generic_arguments_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_mut(&mut self, i: &mut Pat) { + visit_pat_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_box_mut(&mut self, i: &mut PatBox) { + visit_pat_box_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_ident_mut(&mut self, i: &mut PatIdent) { + visit_pat_ident_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_lit_mut(&mut self, i: &mut PatLit) { + visit_pat_lit_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_macro_mut(&mut self, i: &mut PatMacro) { + visit_pat_macro_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_or_mut(&mut self, i: &mut PatOr) { + visit_pat_or_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_path_mut(&mut self, i: &mut PatPath) { + visit_pat_path_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_range_mut(&mut self, i: &mut PatRange) { + visit_pat_range_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_reference_mut(&mut self, i: &mut PatReference) { + visit_pat_reference_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_rest_mut(&mut self, i: &mut PatRest) { + visit_pat_rest_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_slice_mut(&mut self, i: &mut PatSlice) { + visit_pat_slice_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_struct_mut(&mut self, i: &mut PatStruct) { + visit_pat_struct_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_tuple_mut(&mut self, i: &mut PatTuple) { + visit_pat_tuple_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_tuple_struct_mut(&mut self, i: &mut PatTupleStruct) { + visit_pat_tuple_struct_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_type_mut(&mut self, i: &mut PatType) { + visit_pat_type_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_pat_wild_mut(&mut self, i: &mut PatWild) { + visit_pat_wild_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_path_mut(&mut self, i: &mut Path) { + visit_path_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_path_arguments_mut(&mut self, i: &mut PathArguments) { + visit_path_arguments_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_path_segment_mut(&mut self, i: &mut PathSegment) { + visit_path_segment_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_predicate_eq_mut(&mut self, i: &mut PredicateEq) { + visit_predicate_eq_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_predicate_lifetime_mut(&mut self, i: &mut PredicateLifetime) { + visit_predicate_lifetime_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_predicate_type_mut(&mut self, i: &mut PredicateType) { + visit_predicate_type_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_qself_mut(&mut self, i: &mut QSelf) { + visit_qself_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_range_limits_mut(&mut self, i: &mut RangeLimits) { + visit_range_limits_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_receiver_mut(&mut self, i: &mut Receiver) { + visit_receiver_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_return_type_mut(&mut self, i: &mut ReturnType) { + visit_return_type_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_signature_mut(&mut self, i: &mut Signature) { + visit_signature_mut(self, i); + } + fn visit_span_mut(&mut self, i: &mut Span) { + visit_span_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_stmt_mut(&mut self, i: &mut Stmt) { + visit_stmt_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_trait_bound_mut(&mut self, i: &mut TraitBound) { + visit_trait_bound_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_trait_bound_modifier_mut(&mut self, i: &mut TraitBoundModifier) { + visit_trait_bound_modifier_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_trait_item_mut(&mut self, i: &mut TraitItem) { + visit_trait_item_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_trait_item_const_mut(&mut self, i: &mut TraitItemConst) { + visit_trait_item_const_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_trait_item_macro_mut(&mut self, i: &mut TraitItemMacro) { + visit_trait_item_macro_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_trait_item_method_mut(&mut self, i: &mut TraitItemMethod) { + visit_trait_item_method_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_trait_item_type_mut(&mut self, i: &mut TraitItemType) { + visit_trait_item_type_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_mut(&mut self, i: &mut Type) { + visit_type_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_array_mut(&mut self, i: &mut TypeArray) { + visit_type_array_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_bare_fn_mut(&mut self, i: &mut TypeBareFn) { + visit_type_bare_fn_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_group_mut(&mut self, i: &mut TypeGroup) { + visit_type_group_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_impl_trait_mut(&mut self, i: &mut TypeImplTrait) { + visit_type_impl_trait_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_infer_mut(&mut self, i: &mut TypeInfer) { + visit_type_infer_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_macro_mut(&mut self, i: &mut TypeMacro) { + visit_type_macro_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_never_mut(&mut self, i: &mut TypeNever) { + visit_type_never_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_param_mut(&mut self, i: &mut TypeParam) { + visit_type_param_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_param_bound_mut(&mut self, i: &mut TypeParamBound) { + visit_type_param_bound_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_paren_mut(&mut self, i: &mut TypeParen) { + visit_type_paren_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_path_mut(&mut self, i: &mut TypePath) { + visit_type_path_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_ptr_mut(&mut self, i: &mut TypePtr) { + visit_type_ptr_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_reference_mut(&mut self, i: &mut TypeReference) { + visit_type_reference_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_slice_mut(&mut self, i: &mut TypeSlice) { + visit_type_slice_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_trait_object_mut(&mut self, i: &mut TypeTraitObject) { + visit_type_trait_object_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_type_tuple_mut(&mut self, i: &mut TypeTuple) { + visit_type_tuple_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_un_op_mut(&mut self, i: &mut UnOp) { + visit_un_op_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_use_glob_mut(&mut self, i: &mut UseGlob) { + visit_use_glob_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_use_group_mut(&mut self, i: &mut UseGroup) { + visit_use_group_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_use_name_mut(&mut self, i: &mut UseName) { + visit_use_name_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_use_path_mut(&mut self, i: &mut UsePath) { + visit_use_path_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_use_rename_mut(&mut self, i: &mut UseRename) { + visit_use_rename_mut(self, i); + } + #[cfg(feature = "full")] + fn visit_use_tree_mut(&mut self, i: &mut UseTree) { + visit_use_tree_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_variadic_mut(&mut self, i: &mut Variadic) { + visit_variadic_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_variant_mut(&mut self, i: &mut Variant) { + visit_variant_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_vis_crate_mut(&mut self, i: &mut VisCrate) { + visit_vis_crate_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_vis_public_mut(&mut self, i: &mut VisPublic) { + visit_vis_public_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_vis_restricted_mut(&mut self, i: &mut VisRestricted) { + visit_vis_restricted_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_visibility_mut(&mut self, i: &mut Visibility) { + visit_visibility_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_where_clause_mut(&mut self, i: &mut WhereClause) { + visit_where_clause_mut(self, i); + } + #[cfg(any(feature = "derive", feature = "full"))] + fn visit_where_predicate_mut(&mut self, i: &mut WherePredicate) { + visit_where_predicate_mut(self, i); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_abi_mut(v: &mut V, node: &mut Abi) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.extern_token.span); + if let Some(it) = &mut node.name { + v.visit_lit_str_mut(it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_angle_bracketed_generic_arguments_mut( + v: &mut V, + node: &mut AngleBracketedGenericArguments, +) +where + V: VisitMut + ?Sized, +{ + if let Some(it) = &mut node.colon2_token { + tokens_helper(v, &mut it.spans); + } + tokens_helper(v, &mut node.lt_token.spans); + for el in Punctuated::pairs_mut(&mut node.args) { + let (it, p) = el.into_tuple(); + v.visit_generic_argument_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + tokens_helper(v, &mut node.gt_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_arm_mut(v: &mut V, node: &mut Arm) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_pat_mut(&mut node.pat); + if let Some(it) = &mut node.guard { + tokens_helper(v, &mut (it).0.span); + v.visit_expr_mut(&mut *(it).1); + } + tokens_helper(v, &mut node.fat_arrow_token.spans); + v.visit_expr_mut(&mut *node.body); + if let Some(it) = &mut node.comma { + tokens_helper(v, &mut it.spans); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_attr_style_mut(v: &mut V, node: &mut AttrStyle) +where + V: VisitMut + ?Sized, +{ + match node { + AttrStyle::Outer => {} + AttrStyle::Inner(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_attribute_mut(v: &mut V, node: &mut Attribute) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.pound_token.spans); + v.visit_attr_style_mut(&mut node.style); + tokens_helper(v, &mut node.bracket_token.span); + v.visit_path_mut(&mut node.path); + skip!(node.tokens); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_bare_fn_arg_mut(v: &mut V, node: &mut BareFnArg) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.name { + v.visit_ident_mut(&mut (it).0); + tokens_helper(v, &mut (it).1.spans); + } + v.visit_type_mut(&mut node.ty); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_bin_op_mut(v: &mut V, node: &mut BinOp) +where + V: VisitMut + ?Sized, +{ + match node { + BinOp::Add(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::Sub(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::Mul(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::Div(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::Rem(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::And(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::Or(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::BitXor(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::BitAnd(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::BitOr(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::Shl(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::Shr(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::Eq(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::Lt(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::Le(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::Ne(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::Ge(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::Gt(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::AddEq(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::SubEq(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::MulEq(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::DivEq(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::RemEq(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::BitXorEq(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::BitAndEq(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::BitOrEq(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::ShlEq(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + BinOp::ShrEq(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_binding_mut(v: &mut V, node: &mut Binding) +where + V: VisitMut + ?Sized, +{ + v.visit_ident_mut(&mut node.ident); + tokens_helper(v, &mut node.eq_token.spans); + v.visit_type_mut(&mut node.ty); +} +#[cfg(feature = "full")] +pub fn visit_block_mut(v: &mut V, node: &mut Block) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.brace_token.span); + for it in &mut node.stmts { + v.visit_stmt_mut(it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_bound_lifetimes_mut(v: &mut V, node: &mut BoundLifetimes) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.for_token.span); + tokens_helper(v, &mut node.lt_token.spans); + for el in Punctuated::pairs_mut(&mut node.lifetimes) { + let (it, p) = el.into_tuple(); + v.visit_lifetime_def_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + tokens_helper(v, &mut node.gt_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_const_param_mut(v: &mut V, node: &mut ConstParam) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.const_token.span); + v.visit_ident_mut(&mut node.ident); + tokens_helper(v, &mut node.colon_token.spans); + v.visit_type_mut(&mut node.ty); + if let Some(it) = &mut node.eq_token { + tokens_helper(v, &mut it.spans); + } + if let Some(it) = &mut node.default { + v.visit_expr_mut(it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_constraint_mut(v: &mut V, node: &mut Constraint) +where + V: VisitMut + ?Sized, +{ + v.visit_ident_mut(&mut node.ident); + tokens_helper(v, &mut node.colon_token.spans); + for el in Punctuated::pairs_mut(&mut node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(feature = "derive")] +pub fn visit_data_mut(v: &mut V, node: &mut Data) +where + V: VisitMut + ?Sized, +{ + match node { + Data::Struct(_binding_0) => { + v.visit_data_struct_mut(_binding_0); + } + Data::Enum(_binding_0) => { + v.visit_data_enum_mut(_binding_0); + } + Data::Union(_binding_0) => { + v.visit_data_union_mut(_binding_0); + } + } +} +#[cfg(feature = "derive")] +pub fn visit_data_enum_mut(v: &mut V, node: &mut DataEnum) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.enum_token.span); + tokens_helper(v, &mut node.brace_token.span); + for el in Punctuated::pairs_mut(&mut node.variants) { + let (it, p) = el.into_tuple(); + v.visit_variant_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(feature = "derive")] +pub fn visit_data_struct_mut(v: &mut V, node: &mut DataStruct) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.struct_token.span); + v.visit_fields_mut(&mut node.fields); + if let Some(it) = &mut node.semi_token { + tokens_helper(v, &mut it.spans); + } +} +#[cfg(feature = "derive")] +pub fn visit_data_union_mut(v: &mut V, node: &mut DataUnion) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.union_token.span); + v.visit_fields_named_mut(&mut node.fields); +} +#[cfg(feature = "derive")] +pub fn visit_derive_input_mut(v: &mut V, node: &mut DeriveInput) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + v.visit_ident_mut(&mut node.ident); + v.visit_generics_mut(&mut node.generics); + v.visit_data_mut(&mut node.data); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_mut(v: &mut V, node: &mut Expr) +where + V: VisitMut + ?Sized, +{ + match node { + Expr::Array(_binding_0) => { + full!(v.visit_expr_array_mut(_binding_0)); + } + Expr::Assign(_binding_0) => { + full!(v.visit_expr_assign_mut(_binding_0)); + } + Expr::AssignOp(_binding_0) => { + full!(v.visit_expr_assign_op_mut(_binding_0)); + } + Expr::Async(_binding_0) => { + full!(v.visit_expr_async_mut(_binding_0)); + } + Expr::Await(_binding_0) => { + full!(v.visit_expr_await_mut(_binding_0)); + } + Expr::Binary(_binding_0) => { + v.visit_expr_binary_mut(_binding_0); + } + Expr::Block(_binding_0) => { + full!(v.visit_expr_block_mut(_binding_0)); + } + Expr::Box(_binding_0) => { + full!(v.visit_expr_box_mut(_binding_0)); + } + Expr::Break(_binding_0) => { + full!(v.visit_expr_break_mut(_binding_0)); + } + Expr::Call(_binding_0) => { + v.visit_expr_call_mut(_binding_0); + } + Expr::Cast(_binding_0) => { + v.visit_expr_cast_mut(_binding_0); + } + Expr::Closure(_binding_0) => { + full!(v.visit_expr_closure_mut(_binding_0)); + } + Expr::Continue(_binding_0) => { + full!(v.visit_expr_continue_mut(_binding_0)); + } + Expr::Field(_binding_0) => { + v.visit_expr_field_mut(_binding_0); + } + Expr::ForLoop(_binding_0) => { + full!(v.visit_expr_for_loop_mut(_binding_0)); + } + Expr::Group(_binding_0) => { + full!(v.visit_expr_group_mut(_binding_0)); + } + Expr::If(_binding_0) => { + full!(v.visit_expr_if_mut(_binding_0)); + } + Expr::Index(_binding_0) => { + v.visit_expr_index_mut(_binding_0); + } + Expr::Let(_binding_0) => { + full!(v.visit_expr_let_mut(_binding_0)); + } + Expr::Lit(_binding_0) => { + v.visit_expr_lit_mut(_binding_0); + } + Expr::Loop(_binding_0) => { + full!(v.visit_expr_loop_mut(_binding_0)); + } + Expr::Macro(_binding_0) => { + full!(v.visit_expr_macro_mut(_binding_0)); + } + Expr::Match(_binding_0) => { + full!(v.visit_expr_match_mut(_binding_0)); + } + Expr::MethodCall(_binding_0) => { + full!(v.visit_expr_method_call_mut(_binding_0)); + } + Expr::Paren(_binding_0) => { + v.visit_expr_paren_mut(_binding_0); + } + Expr::Path(_binding_0) => { + v.visit_expr_path_mut(_binding_0); + } + Expr::Range(_binding_0) => { + full!(v.visit_expr_range_mut(_binding_0)); + } + Expr::Reference(_binding_0) => { + full!(v.visit_expr_reference_mut(_binding_0)); + } + Expr::Repeat(_binding_0) => { + full!(v.visit_expr_repeat_mut(_binding_0)); + } + Expr::Return(_binding_0) => { + full!(v.visit_expr_return_mut(_binding_0)); + } + Expr::Struct(_binding_0) => { + full!(v.visit_expr_struct_mut(_binding_0)); + } + Expr::Try(_binding_0) => { + full!(v.visit_expr_try_mut(_binding_0)); + } + Expr::TryBlock(_binding_0) => { + full!(v.visit_expr_try_block_mut(_binding_0)); + } + Expr::Tuple(_binding_0) => { + full!(v.visit_expr_tuple_mut(_binding_0)); + } + Expr::Type(_binding_0) => { + full!(v.visit_expr_type_mut(_binding_0)); + } + Expr::Unary(_binding_0) => { + v.visit_expr_unary_mut(_binding_0); + } + Expr::Unsafe(_binding_0) => { + full!(v.visit_expr_unsafe_mut(_binding_0)); + } + Expr::Verbatim(_binding_0) => { + skip!(_binding_0); + } + Expr::While(_binding_0) => { + full!(v.visit_expr_while_mut(_binding_0)); + } + Expr::Yield(_binding_0) => { + full!(v.visit_expr_yield_mut(_binding_0)); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn visit_expr_array_mut(v: &mut V, node: &mut ExprArray) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.bracket_token.span); + for el in Punctuated::pairs_mut(&mut node.elems) { + let (it, p) = el.into_tuple(); + v.visit_expr_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_expr_assign_mut(v: &mut V, node: &mut ExprAssign) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_expr_mut(&mut *node.left); + tokens_helper(v, &mut node.eq_token.spans); + v.visit_expr_mut(&mut *node.right); +} +#[cfg(feature = "full")] +pub fn visit_expr_assign_op_mut(v: &mut V, node: &mut ExprAssignOp) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_expr_mut(&mut *node.left); + v.visit_bin_op_mut(&mut node.op); + v.visit_expr_mut(&mut *node.right); +} +#[cfg(feature = "full")] +pub fn visit_expr_async_mut(v: &mut V, node: &mut ExprAsync) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.async_token.span); + if let Some(it) = &mut node.capture { + tokens_helper(v, &mut it.span); + } + v.visit_block_mut(&mut node.block); +} +#[cfg(feature = "full")] +pub fn visit_expr_await_mut(v: &mut V, node: &mut ExprAwait) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_expr_mut(&mut *node.base); + tokens_helper(v, &mut node.dot_token.spans); + tokens_helper(v, &mut node.await_token.span); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_binary_mut(v: &mut V, node: &mut ExprBinary) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_expr_mut(&mut *node.left); + v.visit_bin_op_mut(&mut node.op); + v.visit_expr_mut(&mut *node.right); +} +#[cfg(feature = "full")] +pub fn visit_expr_block_mut(v: &mut V, node: &mut ExprBlock) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.label { + v.visit_label_mut(it); + } + v.visit_block_mut(&mut node.block); +} +#[cfg(feature = "full")] +pub fn visit_expr_box_mut(v: &mut V, node: &mut ExprBox) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.box_token.span); + v.visit_expr_mut(&mut *node.expr); +} +#[cfg(feature = "full")] +pub fn visit_expr_break_mut(v: &mut V, node: &mut ExprBreak) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.break_token.span); + if let Some(it) = &mut node.label { + v.visit_lifetime_mut(it); + } + if let Some(it) = &mut node.expr { + v.visit_expr_mut(&mut **it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_call_mut(v: &mut V, node: &mut ExprCall) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_expr_mut(&mut *node.func); + tokens_helper(v, &mut node.paren_token.span); + for el in Punctuated::pairs_mut(&mut node.args) { + let (it, p) = el.into_tuple(); + v.visit_expr_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_cast_mut(v: &mut V, node: &mut ExprCast) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_expr_mut(&mut *node.expr); + tokens_helper(v, &mut node.as_token.span); + v.visit_type_mut(&mut *node.ty); +} +#[cfg(feature = "full")] +pub fn visit_expr_closure_mut(v: &mut V, node: &mut ExprClosure) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.movability { + tokens_helper(v, &mut it.span); + } + if let Some(it) = &mut node.asyncness { + tokens_helper(v, &mut it.span); + } + if let Some(it) = &mut node.capture { + tokens_helper(v, &mut it.span); + } + tokens_helper(v, &mut node.or1_token.spans); + for el in Punctuated::pairs_mut(&mut node.inputs) { + let (it, p) = el.into_tuple(); + v.visit_pat_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + tokens_helper(v, &mut node.or2_token.spans); + v.visit_return_type_mut(&mut node.output); + v.visit_expr_mut(&mut *node.body); +} +#[cfg(feature = "full")] +pub fn visit_expr_continue_mut(v: &mut V, node: &mut ExprContinue) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.continue_token.span); + if let Some(it) = &mut node.label { + v.visit_lifetime_mut(it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_field_mut(v: &mut V, node: &mut ExprField) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_expr_mut(&mut *node.base); + tokens_helper(v, &mut node.dot_token.spans); + v.visit_member_mut(&mut node.member); +} +#[cfg(feature = "full")] +pub fn visit_expr_for_loop_mut(v: &mut V, node: &mut ExprForLoop) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.label { + v.visit_label_mut(it); + } + tokens_helper(v, &mut node.for_token.span); + v.visit_pat_mut(&mut node.pat); + tokens_helper(v, &mut node.in_token.span); + v.visit_expr_mut(&mut *node.expr); + v.visit_block_mut(&mut node.body); +} +#[cfg(feature = "full")] +pub fn visit_expr_group_mut(v: &mut V, node: &mut ExprGroup) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.group_token.span); + v.visit_expr_mut(&mut *node.expr); +} +#[cfg(feature = "full")] +pub fn visit_expr_if_mut(v: &mut V, node: &mut ExprIf) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.if_token.span); + v.visit_expr_mut(&mut *node.cond); + v.visit_block_mut(&mut node.then_branch); + if let Some(it) = &mut node.else_branch { + tokens_helper(v, &mut (it).0.span); + v.visit_expr_mut(&mut *(it).1); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_index_mut(v: &mut V, node: &mut ExprIndex) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_expr_mut(&mut *node.expr); + tokens_helper(v, &mut node.bracket_token.span); + v.visit_expr_mut(&mut *node.index); +} +#[cfg(feature = "full")] +pub fn visit_expr_let_mut(v: &mut V, node: &mut ExprLet) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.let_token.span); + v.visit_pat_mut(&mut node.pat); + tokens_helper(v, &mut node.eq_token.spans); + v.visit_expr_mut(&mut *node.expr); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_lit_mut(v: &mut V, node: &mut ExprLit) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_lit_mut(&mut node.lit); +} +#[cfg(feature = "full")] +pub fn visit_expr_loop_mut(v: &mut V, node: &mut ExprLoop) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.label { + v.visit_label_mut(it); + } + tokens_helper(v, &mut node.loop_token.span); + v.visit_block_mut(&mut node.body); +} +#[cfg(feature = "full")] +pub fn visit_expr_macro_mut(v: &mut V, node: &mut ExprMacro) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_macro_mut(&mut node.mac); +} +#[cfg(feature = "full")] +pub fn visit_expr_match_mut(v: &mut V, node: &mut ExprMatch) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.match_token.span); + v.visit_expr_mut(&mut *node.expr); + tokens_helper(v, &mut node.brace_token.span); + for it in &mut node.arms { + v.visit_arm_mut(it); + } +} +#[cfg(feature = "full")] +pub fn visit_expr_method_call_mut(v: &mut V, node: &mut ExprMethodCall) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_expr_mut(&mut *node.receiver); + tokens_helper(v, &mut node.dot_token.spans); + v.visit_ident_mut(&mut node.method); + if let Some(it) = &mut node.turbofish { + v.visit_method_turbofish_mut(it); + } + tokens_helper(v, &mut node.paren_token.span); + for el in Punctuated::pairs_mut(&mut node.args) { + let (it, p) = el.into_tuple(); + v.visit_expr_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_paren_mut(v: &mut V, node: &mut ExprParen) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.paren_token.span); + v.visit_expr_mut(&mut *node.expr); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_path_mut(v: &mut V, node: &mut ExprPath) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.qself { + v.visit_qself_mut(it); + } + v.visit_path_mut(&mut node.path); +} +#[cfg(feature = "full")] +pub fn visit_expr_range_mut(v: &mut V, node: &mut ExprRange) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.from { + v.visit_expr_mut(&mut **it); + } + v.visit_range_limits_mut(&mut node.limits); + if let Some(it) = &mut node.to { + v.visit_expr_mut(&mut **it); + } +} +#[cfg(feature = "full")] +pub fn visit_expr_reference_mut(v: &mut V, node: &mut ExprReference) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.and_token.spans); + if let Some(it) = &mut node.mutability { + tokens_helper(v, &mut it.span); + } + v.visit_expr_mut(&mut *node.expr); +} +#[cfg(feature = "full")] +pub fn visit_expr_repeat_mut(v: &mut V, node: &mut ExprRepeat) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.bracket_token.span); + v.visit_expr_mut(&mut *node.expr); + tokens_helper(v, &mut node.semi_token.spans); + v.visit_expr_mut(&mut *node.len); +} +#[cfg(feature = "full")] +pub fn visit_expr_return_mut(v: &mut V, node: &mut ExprReturn) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.return_token.span); + if let Some(it) = &mut node.expr { + v.visit_expr_mut(&mut **it); + } +} +#[cfg(feature = "full")] +pub fn visit_expr_struct_mut(v: &mut V, node: &mut ExprStruct) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_path_mut(&mut node.path); + tokens_helper(v, &mut node.brace_token.span); + for el in Punctuated::pairs_mut(&mut node.fields) { + let (it, p) = el.into_tuple(); + v.visit_field_value_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + if let Some(it) = &mut node.dot2_token { + tokens_helper(v, &mut it.spans); + } + if let Some(it) = &mut node.rest { + v.visit_expr_mut(&mut **it); + } +} +#[cfg(feature = "full")] +pub fn visit_expr_try_mut(v: &mut V, node: &mut ExprTry) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_expr_mut(&mut *node.expr); + tokens_helper(v, &mut node.question_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_expr_try_block_mut(v: &mut V, node: &mut ExprTryBlock) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.try_token.span); + v.visit_block_mut(&mut node.block); +} +#[cfg(feature = "full")] +pub fn visit_expr_tuple_mut(v: &mut V, node: &mut ExprTuple) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.paren_token.span); + for el in Punctuated::pairs_mut(&mut node.elems) { + let (it, p) = el.into_tuple(); + v.visit_expr_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_expr_type_mut(v: &mut V, node: &mut ExprType) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_expr_mut(&mut *node.expr); + tokens_helper(v, &mut node.colon_token.spans); + v.visit_type_mut(&mut *node.ty); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_expr_unary_mut(v: &mut V, node: &mut ExprUnary) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_un_op_mut(&mut node.op); + v.visit_expr_mut(&mut *node.expr); +} +#[cfg(feature = "full")] +pub fn visit_expr_unsafe_mut(v: &mut V, node: &mut ExprUnsafe) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.unsafe_token.span); + v.visit_block_mut(&mut node.block); +} +#[cfg(feature = "full")] +pub fn visit_expr_while_mut(v: &mut V, node: &mut ExprWhile) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.label { + v.visit_label_mut(it); + } + tokens_helper(v, &mut node.while_token.span); + v.visit_expr_mut(&mut *node.cond); + v.visit_block_mut(&mut node.body); +} +#[cfg(feature = "full")] +pub fn visit_expr_yield_mut(v: &mut V, node: &mut ExprYield) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.yield_token.span); + if let Some(it) = &mut node.expr { + v.visit_expr_mut(&mut **it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_field_mut(v: &mut V, node: &mut Field) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + if let Some(it) = &mut node.ident { + v.visit_ident_mut(it); + } + if let Some(it) = &mut node.colon_token { + tokens_helper(v, &mut it.spans); + } + v.visit_type_mut(&mut node.ty); +} +#[cfg(feature = "full")] +pub fn visit_field_pat_mut(v: &mut V, node: &mut FieldPat) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_member_mut(&mut node.member); + if let Some(it) = &mut node.colon_token { + tokens_helper(v, &mut it.spans); + } + v.visit_pat_mut(&mut *node.pat); +} +#[cfg(feature = "full")] +pub fn visit_field_value_mut(v: &mut V, node: &mut FieldValue) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_member_mut(&mut node.member); + if let Some(it) = &mut node.colon_token { + tokens_helper(v, &mut it.spans); + } + v.visit_expr_mut(&mut node.expr); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_fields_mut(v: &mut V, node: &mut Fields) +where + V: VisitMut + ?Sized, +{ + match node { + Fields::Named(_binding_0) => { + v.visit_fields_named_mut(_binding_0); + } + Fields::Unnamed(_binding_0) => { + v.visit_fields_unnamed_mut(_binding_0); + } + Fields::Unit => {} + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_fields_named_mut(v: &mut V, node: &mut FieldsNamed) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.brace_token.span); + for el in Punctuated::pairs_mut(&mut node.named) { + let (it, p) = el.into_tuple(); + v.visit_field_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_fields_unnamed_mut(v: &mut V, node: &mut FieldsUnnamed) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.paren_token.span); + for el in Punctuated::pairs_mut(&mut node.unnamed) { + let (it, p) = el.into_tuple(); + v.visit_field_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_file_mut(v: &mut V, node: &mut File) +where + V: VisitMut + ?Sized, +{ + skip!(node.shebang); + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + for it in &mut node.items { + v.visit_item_mut(it); + } +} +#[cfg(feature = "full")] +pub fn visit_fn_arg_mut(v: &mut V, node: &mut FnArg) +where + V: VisitMut + ?Sized, +{ + match node { + FnArg::Receiver(_binding_0) => { + v.visit_receiver_mut(_binding_0); + } + FnArg::Typed(_binding_0) => { + v.visit_pat_type_mut(_binding_0); + } + } +} +#[cfg(feature = "full")] +pub fn visit_foreign_item_mut(v: &mut V, node: &mut ForeignItem) +where + V: VisitMut + ?Sized, +{ + match node { + ForeignItem::Fn(_binding_0) => { + v.visit_foreign_item_fn_mut(_binding_0); + } + ForeignItem::Static(_binding_0) => { + v.visit_foreign_item_static_mut(_binding_0); + } + ForeignItem::Type(_binding_0) => { + v.visit_foreign_item_type_mut(_binding_0); + } + ForeignItem::Macro(_binding_0) => { + v.visit_foreign_item_macro_mut(_binding_0); + } + ForeignItem::Verbatim(_binding_0) => { + skip!(_binding_0); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn visit_foreign_item_fn_mut(v: &mut V, node: &mut ForeignItemFn) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + v.visit_signature_mut(&mut node.sig); + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_foreign_item_macro_mut(v: &mut V, node: &mut ForeignItemMacro) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_macro_mut(&mut node.mac); + if let Some(it) = &mut node.semi_token { + tokens_helper(v, &mut it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_foreign_item_static_mut(v: &mut V, node: &mut ForeignItemStatic) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + tokens_helper(v, &mut node.static_token.span); + if let Some(it) = &mut node.mutability { + tokens_helper(v, &mut it.span); + } + v.visit_ident_mut(&mut node.ident); + tokens_helper(v, &mut node.colon_token.spans); + v.visit_type_mut(&mut *node.ty); + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_foreign_item_type_mut(v: &mut V, node: &mut ForeignItemType) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + tokens_helper(v, &mut node.type_token.span); + v.visit_ident_mut(&mut node.ident); + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_generic_argument_mut(v: &mut V, node: &mut GenericArgument) +where + V: VisitMut + ?Sized, +{ + match node { + GenericArgument::Lifetime(_binding_0) => { + v.visit_lifetime_mut(_binding_0); + } + GenericArgument::Type(_binding_0) => { + v.visit_type_mut(_binding_0); + } + GenericArgument::Const(_binding_0) => { + v.visit_expr_mut(_binding_0); + } + GenericArgument::Binding(_binding_0) => { + v.visit_binding_mut(_binding_0); + } + GenericArgument::Constraint(_binding_0) => { + v.visit_constraint_mut(_binding_0); + } + } +} +#[cfg(feature = "full")] +pub fn visit_generic_method_argument_mut(v: &mut V, node: &mut GenericMethodArgument) +where + V: VisitMut + ?Sized, +{ + match node { + GenericMethodArgument::Type(_binding_0) => { + v.visit_type_mut(_binding_0); + } + GenericMethodArgument::Const(_binding_0) => { + v.visit_expr_mut(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_generic_param_mut(v: &mut V, node: &mut GenericParam) +where + V: VisitMut + ?Sized, +{ + match node { + GenericParam::Type(_binding_0) => { + v.visit_type_param_mut(_binding_0); + } + GenericParam::Lifetime(_binding_0) => { + v.visit_lifetime_def_mut(_binding_0); + } + GenericParam::Const(_binding_0) => { + v.visit_const_param_mut(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_generics_mut(v: &mut V, node: &mut Generics) +where + V: VisitMut + ?Sized, +{ + if let Some(it) = &mut node.lt_token { + tokens_helper(v, &mut it.spans); + } + for el in Punctuated::pairs_mut(&mut node.params) { + let (it, p) = el.into_tuple(); + v.visit_generic_param_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + if let Some(it) = &mut node.gt_token { + tokens_helper(v, &mut it.spans); + } + if let Some(it) = &mut node.where_clause { + v.visit_where_clause_mut(it); + } +} +pub fn visit_ident_mut(v: &mut V, node: &mut Ident) +where + V: VisitMut + ?Sized, +{ + let mut span = node.span(); + v.visit_span_mut(&mut span); + node.set_span(span); +} +#[cfg(feature = "full")] +pub fn visit_impl_item_mut(v: &mut V, node: &mut ImplItem) +where + V: VisitMut + ?Sized, +{ + match node { + ImplItem::Const(_binding_0) => { + v.visit_impl_item_const_mut(_binding_0); + } + ImplItem::Method(_binding_0) => { + v.visit_impl_item_method_mut(_binding_0); + } + ImplItem::Type(_binding_0) => { + v.visit_impl_item_type_mut(_binding_0); + } + ImplItem::Macro(_binding_0) => { + v.visit_impl_item_macro_mut(_binding_0); + } + ImplItem::Verbatim(_binding_0) => { + skip!(_binding_0); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn visit_impl_item_const_mut(v: &mut V, node: &mut ImplItemConst) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + if let Some(it) = &mut node.defaultness { + tokens_helper(v, &mut it.span); + } + tokens_helper(v, &mut node.const_token.span); + v.visit_ident_mut(&mut node.ident); + tokens_helper(v, &mut node.colon_token.spans); + v.visit_type_mut(&mut node.ty); + tokens_helper(v, &mut node.eq_token.spans); + v.visit_expr_mut(&mut node.expr); + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_impl_item_macro_mut(v: &mut V, node: &mut ImplItemMacro) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_macro_mut(&mut node.mac); + if let Some(it) = &mut node.semi_token { + tokens_helper(v, &mut it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_impl_item_method_mut(v: &mut V, node: &mut ImplItemMethod) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + if let Some(it) = &mut node.defaultness { + tokens_helper(v, &mut it.span); + } + v.visit_signature_mut(&mut node.sig); + v.visit_block_mut(&mut node.block); +} +#[cfg(feature = "full")] +pub fn visit_impl_item_type_mut(v: &mut V, node: &mut ImplItemType) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + if let Some(it) = &mut node.defaultness { + tokens_helper(v, &mut it.span); + } + tokens_helper(v, &mut node.type_token.span); + v.visit_ident_mut(&mut node.ident); + v.visit_generics_mut(&mut node.generics); + tokens_helper(v, &mut node.eq_token.spans); + v.visit_type_mut(&mut node.ty); + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_index_mut(v: &mut V, node: &mut Index) +where + V: VisitMut + ?Sized, +{ + skip!(node.index); + v.visit_span_mut(&mut node.span); +} +#[cfg(feature = "full")] +pub fn visit_item_mut(v: &mut V, node: &mut Item) +where + V: VisitMut + ?Sized, +{ + match node { + Item::Const(_binding_0) => { + v.visit_item_const_mut(_binding_0); + } + Item::Enum(_binding_0) => { + v.visit_item_enum_mut(_binding_0); + } + Item::ExternCrate(_binding_0) => { + v.visit_item_extern_crate_mut(_binding_0); + } + Item::Fn(_binding_0) => { + v.visit_item_fn_mut(_binding_0); + } + Item::ForeignMod(_binding_0) => { + v.visit_item_foreign_mod_mut(_binding_0); + } + Item::Impl(_binding_0) => { + v.visit_item_impl_mut(_binding_0); + } + Item::Macro(_binding_0) => { + v.visit_item_macro_mut(_binding_0); + } + Item::Macro2(_binding_0) => { + v.visit_item_macro2_mut(_binding_0); + } + Item::Mod(_binding_0) => { + v.visit_item_mod_mut(_binding_0); + } + Item::Static(_binding_0) => { + v.visit_item_static_mut(_binding_0); + } + Item::Struct(_binding_0) => { + v.visit_item_struct_mut(_binding_0); + } + Item::Trait(_binding_0) => { + v.visit_item_trait_mut(_binding_0); + } + Item::TraitAlias(_binding_0) => { + v.visit_item_trait_alias_mut(_binding_0); + } + Item::Type(_binding_0) => { + v.visit_item_type_mut(_binding_0); + } + Item::Union(_binding_0) => { + v.visit_item_union_mut(_binding_0); + } + Item::Use(_binding_0) => { + v.visit_item_use_mut(_binding_0); + } + Item::Verbatim(_binding_0) => { + skip!(_binding_0); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn visit_item_const_mut(v: &mut V, node: &mut ItemConst) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + tokens_helper(v, &mut node.const_token.span); + v.visit_ident_mut(&mut node.ident); + tokens_helper(v, &mut node.colon_token.spans); + v.visit_type_mut(&mut *node.ty); + tokens_helper(v, &mut node.eq_token.spans); + v.visit_expr_mut(&mut *node.expr); + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_item_enum_mut(v: &mut V, node: &mut ItemEnum) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + tokens_helper(v, &mut node.enum_token.span); + v.visit_ident_mut(&mut node.ident); + v.visit_generics_mut(&mut node.generics); + tokens_helper(v, &mut node.brace_token.span); + for el in Punctuated::pairs_mut(&mut node.variants) { + let (it, p) = el.into_tuple(); + v.visit_variant_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_item_extern_crate_mut(v: &mut V, node: &mut ItemExternCrate) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + tokens_helper(v, &mut node.extern_token.span); + tokens_helper(v, &mut node.crate_token.span); + v.visit_ident_mut(&mut node.ident); + if let Some(it) = &mut node.rename { + tokens_helper(v, &mut (it).0.span); + v.visit_ident_mut(&mut (it).1); + } + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_item_fn_mut(v: &mut V, node: &mut ItemFn) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + v.visit_signature_mut(&mut node.sig); + v.visit_block_mut(&mut *node.block); +} +#[cfg(feature = "full")] +pub fn visit_item_foreign_mod_mut(v: &mut V, node: &mut ItemForeignMod) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_abi_mut(&mut node.abi); + tokens_helper(v, &mut node.brace_token.span); + for it in &mut node.items { + v.visit_foreign_item_mut(it); + } +} +#[cfg(feature = "full")] +pub fn visit_item_impl_mut(v: &mut V, node: &mut ItemImpl) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.defaultness { + tokens_helper(v, &mut it.span); + } + if let Some(it) = &mut node.unsafety { + tokens_helper(v, &mut it.span); + } + tokens_helper(v, &mut node.impl_token.span); + v.visit_generics_mut(&mut node.generics); + if let Some(it) = &mut node.trait_ { + if let Some(it) = &mut (it).0 { + tokens_helper(v, &mut it.spans); + } + v.visit_path_mut(&mut (it).1); + tokens_helper(v, &mut (it).2.span); + } + v.visit_type_mut(&mut *node.self_ty); + tokens_helper(v, &mut node.brace_token.span); + for it in &mut node.items { + v.visit_impl_item_mut(it); + } +} +#[cfg(feature = "full")] +pub fn visit_item_macro_mut(v: &mut V, node: &mut ItemMacro) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.ident { + v.visit_ident_mut(it); + } + v.visit_macro_mut(&mut node.mac); + if let Some(it) = &mut node.semi_token { + tokens_helper(v, &mut it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_item_macro2_mut(v: &mut V, node: &mut ItemMacro2) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + tokens_helper(v, &mut node.macro_token.span); + v.visit_ident_mut(&mut node.ident); + skip!(node.rules); +} +#[cfg(feature = "full")] +pub fn visit_item_mod_mut(v: &mut V, node: &mut ItemMod) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + tokens_helper(v, &mut node.mod_token.span); + v.visit_ident_mut(&mut node.ident); + if let Some(it) = &mut node.content { + tokens_helper(v, &mut (it).0.span); + for it in &mut (it).1 { + v.visit_item_mut(it); + } + } + if let Some(it) = &mut node.semi { + tokens_helper(v, &mut it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_item_static_mut(v: &mut V, node: &mut ItemStatic) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + tokens_helper(v, &mut node.static_token.span); + if let Some(it) = &mut node.mutability { + tokens_helper(v, &mut it.span); + } + v.visit_ident_mut(&mut node.ident); + tokens_helper(v, &mut node.colon_token.spans); + v.visit_type_mut(&mut *node.ty); + tokens_helper(v, &mut node.eq_token.spans); + v.visit_expr_mut(&mut *node.expr); + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_item_struct_mut(v: &mut V, node: &mut ItemStruct) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + tokens_helper(v, &mut node.struct_token.span); + v.visit_ident_mut(&mut node.ident); + v.visit_generics_mut(&mut node.generics); + v.visit_fields_mut(&mut node.fields); + if let Some(it) = &mut node.semi_token { + tokens_helper(v, &mut it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_item_trait_mut(v: &mut V, node: &mut ItemTrait) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + if let Some(it) = &mut node.unsafety { + tokens_helper(v, &mut it.span); + } + if let Some(it) = &mut node.auto_token { + tokens_helper(v, &mut it.span); + } + tokens_helper(v, &mut node.trait_token.span); + v.visit_ident_mut(&mut node.ident); + v.visit_generics_mut(&mut node.generics); + if let Some(it) = &mut node.colon_token { + tokens_helper(v, &mut it.spans); + } + for el in Punctuated::pairs_mut(&mut node.supertraits) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + tokens_helper(v, &mut node.brace_token.span); + for it in &mut node.items { + v.visit_trait_item_mut(it); + } +} +#[cfg(feature = "full")] +pub fn visit_item_trait_alias_mut(v: &mut V, node: &mut ItemTraitAlias) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + tokens_helper(v, &mut node.trait_token.span); + v.visit_ident_mut(&mut node.ident); + v.visit_generics_mut(&mut node.generics); + tokens_helper(v, &mut node.eq_token.spans); + for el in Punctuated::pairs_mut(&mut node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_item_type_mut(v: &mut V, node: &mut ItemType) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + tokens_helper(v, &mut node.type_token.span); + v.visit_ident_mut(&mut node.ident); + v.visit_generics_mut(&mut node.generics); + tokens_helper(v, &mut node.eq_token.spans); + v.visit_type_mut(&mut *node.ty); + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_item_union_mut(v: &mut V, node: &mut ItemUnion) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + tokens_helper(v, &mut node.union_token.span); + v.visit_ident_mut(&mut node.ident); + v.visit_generics_mut(&mut node.generics); + v.visit_fields_named_mut(&mut node.fields); +} +#[cfg(feature = "full")] +pub fn visit_item_use_mut(v: &mut V, node: &mut ItemUse) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_visibility_mut(&mut node.vis); + tokens_helper(v, &mut node.use_token.span); + if let Some(it) = &mut node.leading_colon { + tokens_helper(v, &mut it.spans); + } + v.visit_use_tree_mut(&mut node.tree); + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_label_mut(v: &mut V, node: &mut Label) +where + V: VisitMut + ?Sized, +{ + v.visit_lifetime_mut(&mut node.name); + tokens_helper(v, &mut node.colon_token.spans); +} +pub fn visit_lifetime_mut(v: &mut V, node: &mut Lifetime) +where + V: VisitMut + ?Sized, +{ + v.visit_span_mut(&mut node.apostrophe); + v.visit_ident_mut(&mut node.ident); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_lifetime_def_mut(v: &mut V, node: &mut LifetimeDef) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_lifetime_mut(&mut node.lifetime); + if let Some(it) = &mut node.colon_token { + tokens_helper(v, &mut it.spans); + } + for el in Punctuated::pairs_mut(&mut node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_lifetime_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +pub fn visit_lit_mut(v: &mut V, node: &mut Lit) +where + V: VisitMut + ?Sized, +{ + match node { + Lit::Str(_binding_0) => { + v.visit_lit_str_mut(_binding_0); + } + Lit::ByteStr(_binding_0) => { + v.visit_lit_byte_str_mut(_binding_0); + } + Lit::Byte(_binding_0) => { + v.visit_lit_byte_mut(_binding_0); + } + Lit::Char(_binding_0) => { + v.visit_lit_char_mut(_binding_0); + } + Lit::Int(_binding_0) => { + v.visit_lit_int_mut(_binding_0); + } + Lit::Float(_binding_0) => { + v.visit_lit_float_mut(_binding_0); + } + Lit::Bool(_binding_0) => { + v.visit_lit_bool_mut(_binding_0); + } + Lit::Verbatim(_binding_0) => { + skip!(_binding_0); + } + } +} +pub fn visit_lit_bool_mut(v: &mut V, node: &mut LitBool) +where + V: VisitMut + ?Sized, +{ + skip!(node.value); + v.visit_span_mut(&mut node.span); +} +pub fn visit_lit_byte_mut(v: &mut V, node: &mut LitByte) +where + V: VisitMut + ?Sized, +{} +pub fn visit_lit_byte_str_mut(v: &mut V, node: &mut LitByteStr) +where + V: VisitMut + ?Sized, +{} +pub fn visit_lit_char_mut(v: &mut V, node: &mut LitChar) +where + V: VisitMut + ?Sized, +{} +pub fn visit_lit_float_mut(v: &mut V, node: &mut LitFloat) +where + V: VisitMut + ?Sized, +{} +pub fn visit_lit_int_mut(v: &mut V, node: &mut LitInt) +where + V: VisitMut + ?Sized, +{} +pub fn visit_lit_str_mut(v: &mut V, node: &mut LitStr) +where + V: VisitMut + ?Sized, +{} +#[cfg(feature = "full")] +pub fn visit_local_mut(v: &mut V, node: &mut Local) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.let_token.span); + v.visit_pat_mut(&mut node.pat); + if let Some(it) = &mut node.init { + tokens_helper(v, &mut (it).0.spans); + v.visit_expr_mut(&mut *(it).1); + } + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_macro_mut(v: &mut V, node: &mut Macro) +where + V: VisitMut + ?Sized, +{ + v.visit_path_mut(&mut node.path); + tokens_helper(v, &mut node.bang_token.spans); + v.visit_macro_delimiter_mut(&mut node.delimiter); + skip!(node.tokens); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_macro_delimiter_mut(v: &mut V, node: &mut MacroDelimiter) +where + V: VisitMut + ?Sized, +{ + match node { + MacroDelimiter::Paren(_binding_0) => { + tokens_helper(v, &mut _binding_0.span); + } + MacroDelimiter::Brace(_binding_0) => { + tokens_helper(v, &mut _binding_0.span); + } + MacroDelimiter::Bracket(_binding_0) => { + tokens_helper(v, &mut _binding_0.span); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_member_mut(v: &mut V, node: &mut Member) +where + V: VisitMut + ?Sized, +{ + match node { + Member::Named(_binding_0) => { + v.visit_ident_mut(_binding_0); + } + Member::Unnamed(_binding_0) => { + v.visit_index_mut(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_meta_mut(v: &mut V, node: &mut Meta) +where + V: VisitMut + ?Sized, +{ + match node { + Meta::Path(_binding_0) => { + v.visit_path_mut(_binding_0); + } + Meta::List(_binding_0) => { + v.visit_meta_list_mut(_binding_0); + } + Meta::NameValue(_binding_0) => { + v.visit_meta_name_value_mut(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_meta_list_mut(v: &mut V, node: &mut MetaList) +where + V: VisitMut + ?Sized, +{ + v.visit_path_mut(&mut node.path); + tokens_helper(v, &mut node.paren_token.span); + for el in Punctuated::pairs_mut(&mut node.nested) { + let (it, p) = el.into_tuple(); + v.visit_nested_meta_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_meta_name_value_mut(v: &mut V, node: &mut MetaNameValue) +where + V: VisitMut + ?Sized, +{ + v.visit_path_mut(&mut node.path); + tokens_helper(v, &mut node.eq_token.spans); + v.visit_lit_mut(&mut node.lit); +} +#[cfg(feature = "full")] +pub fn visit_method_turbofish_mut(v: &mut V, node: &mut MethodTurbofish) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.colon2_token.spans); + tokens_helper(v, &mut node.lt_token.spans); + for el in Punctuated::pairs_mut(&mut node.args) { + let (it, p) = el.into_tuple(); + v.visit_generic_method_argument_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + tokens_helper(v, &mut node.gt_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_nested_meta_mut(v: &mut V, node: &mut NestedMeta) +where + V: VisitMut + ?Sized, +{ + match node { + NestedMeta::Meta(_binding_0) => { + v.visit_meta_mut(_binding_0); + } + NestedMeta::Lit(_binding_0) => { + v.visit_lit_mut(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_parenthesized_generic_arguments_mut( + v: &mut V, + node: &mut ParenthesizedGenericArguments, +) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.paren_token.span); + for el in Punctuated::pairs_mut(&mut node.inputs) { + let (it, p) = el.into_tuple(); + v.visit_type_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + v.visit_return_type_mut(&mut node.output); +} +#[cfg(feature = "full")] +pub fn visit_pat_mut(v: &mut V, node: &mut Pat) +where + V: VisitMut + ?Sized, +{ + match node { + Pat::Box(_binding_0) => { + v.visit_pat_box_mut(_binding_0); + } + Pat::Ident(_binding_0) => { + v.visit_pat_ident_mut(_binding_0); + } + Pat::Lit(_binding_0) => { + v.visit_pat_lit_mut(_binding_0); + } + Pat::Macro(_binding_0) => { + v.visit_pat_macro_mut(_binding_0); + } + Pat::Or(_binding_0) => { + v.visit_pat_or_mut(_binding_0); + } + Pat::Path(_binding_0) => { + v.visit_pat_path_mut(_binding_0); + } + Pat::Range(_binding_0) => { + v.visit_pat_range_mut(_binding_0); + } + Pat::Reference(_binding_0) => { + v.visit_pat_reference_mut(_binding_0); + } + Pat::Rest(_binding_0) => { + v.visit_pat_rest_mut(_binding_0); + } + Pat::Slice(_binding_0) => { + v.visit_pat_slice_mut(_binding_0); + } + Pat::Struct(_binding_0) => { + v.visit_pat_struct_mut(_binding_0); + } + Pat::Tuple(_binding_0) => { + v.visit_pat_tuple_mut(_binding_0); + } + Pat::TupleStruct(_binding_0) => { + v.visit_pat_tuple_struct_mut(_binding_0); + } + Pat::Type(_binding_0) => { + v.visit_pat_type_mut(_binding_0); + } + Pat::Verbatim(_binding_0) => { + skip!(_binding_0); + } + Pat::Wild(_binding_0) => { + v.visit_pat_wild_mut(_binding_0); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn visit_pat_box_mut(v: &mut V, node: &mut PatBox) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.box_token.span); + v.visit_pat_mut(&mut *node.pat); +} +#[cfg(feature = "full")] +pub fn visit_pat_ident_mut(v: &mut V, node: &mut PatIdent) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.by_ref { + tokens_helper(v, &mut it.span); + } + if let Some(it) = &mut node.mutability { + tokens_helper(v, &mut it.span); + } + v.visit_ident_mut(&mut node.ident); + if let Some(it) = &mut node.subpat { + tokens_helper(v, &mut (it).0.spans); + v.visit_pat_mut(&mut *(it).1); + } +} +#[cfg(feature = "full")] +pub fn visit_pat_lit_mut(v: &mut V, node: &mut PatLit) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_expr_mut(&mut *node.expr); +} +#[cfg(feature = "full")] +pub fn visit_pat_macro_mut(v: &mut V, node: &mut PatMacro) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_macro_mut(&mut node.mac); +} +#[cfg(feature = "full")] +pub fn visit_pat_or_mut(v: &mut V, node: &mut PatOr) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.leading_vert { + tokens_helper(v, &mut it.spans); + } + for el in Punctuated::pairs_mut(&mut node.cases) { + let (it, p) = el.into_tuple(); + v.visit_pat_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_pat_path_mut(v: &mut V, node: &mut PatPath) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.qself { + v.visit_qself_mut(it); + } + v.visit_path_mut(&mut node.path); +} +#[cfg(feature = "full")] +pub fn visit_pat_range_mut(v: &mut V, node: &mut PatRange) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_expr_mut(&mut *node.lo); + v.visit_range_limits_mut(&mut node.limits); + v.visit_expr_mut(&mut *node.hi); +} +#[cfg(feature = "full")] +pub fn visit_pat_reference_mut(v: &mut V, node: &mut PatReference) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.and_token.spans); + if let Some(it) = &mut node.mutability { + tokens_helper(v, &mut it.span); + } + v.visit_pat_mut(&mut *node.pat); +} +#[cfg(feature = "full")] +pub fn visit_pat_rest_mut(v: &mut V, node: &mut PatRest) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.dot2_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_pat_slice_mut(v: &mut V, node: &mut PatSlice) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.bracket_token.span); + for el in Punctuated::pairs_mut(&mut node.elems) { + let (it, p) = el.into_tuple(); + v.visit_pat_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_pat_struct_mut(v: &mut V, node: &mut PatStruct) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_path_mut(&mut node.path); + tokens_helper(v, &mut node.brace_token.span); + for el in Punctuated::pairs_mut(&mut node.fields) { + let (it, p) = el.into_tuple(); + v.visit_field_pat_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + if let Some(it) = &mut node.dot2_token { + tokens_helper(v, &mut it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_pat_tuple_mut(v: &mut V, node: &mut PatTuple) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.paren_token.span); + for el in Punctuated::pairs_mut(&mut node.elems) { + let (it, p) = el.into_tuple(); + v.visit_pat_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_pat_tuple_struct_mut(v: &mut V, node: &mut PatTupleStruct) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_path_mut(&mut node.path); + v.visit_pat_tuple_mut(&mut node.pat); +} +#[cfg(feature = "full")] +pub fn visit_pat_type_mut(v: &mut V, node: &mut PatType) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_pat_mut(&mut *node.pat); + tokens_helper(v, &mut node.colon_token.spans); + v.visit_type_mut(&mut *node.ty); +} +#[cfg(feature = "full")] +pub fn visit_pat_wild_mut(v: &mut V, node: &mut PatWild) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.underscore_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_path_mut(v: &mut V, node: &mut Path) +where + V: VisitMut + ?Sized, +{ + if let Some(it) = &mut node.leading_colon { + tokens_helper(v, &mut it.spans); + } + for el in Punctuated::pairs_mut(&mut node.segments) { + let (it, p) = el.into_tuple(); + v.visit_path_segment_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_path_arguments_mut(v: &mut V, node: &mut PathArguments) +where + V: VisitMut + ?Sized, +{ + match node { + PathArguments::None => {} + PathArguments::AngleBracketed(_binding_0) => { + v.visit_angle_bracketed_generic_arguments_mut(_binding_0); + } + PathArguments::Parenthesized(_binding_0) => { + v.visit_parenthesized_generic_arguments_mut(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_path_segment_mut(v: &mut V, node: &mut PathSegment) +where + V: VisitMut + ?Sized, +{ + v.visit_ident_mut(&mut node.ident); + v.visit_path_arguments_mut(&mut node.arguments); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_predicate_eq_mut(v: &mut V, node: &mut PredicateEq) +where + V: VisitMut + ?Sized, +{ + v.visit_type_mut(&mut node.lhs_ty); + tokens_helper(v, &mut node.eq_token.spans); + v.visit_type_mut(&mut node.rhs_ty); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_predicate_lifetime_mut(v: &mut V, node: &mut PredicateLifetime) +where + V: VisitMut + ?Sized, +{ + v.visit_lifetime_mut(&mut node.lifetime); + tokens_helper(v, &mut node.colon_token.spans); + for el in Punctuated::pairs_mut(&mut node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_lifetime_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_predicate_type_mut(v: &mut V, node: &mut PredicateType) +where + V: VisitMut + ?Sized, +{ + if let Some(it) = &mut node.lifetimes { + v.visit_bound_lifetimes_mut(it); + } + v.visit_type_mut(&mut node.bounded_ty); + tokens_helper(v, &mut node.colon_token.spans); + for el in Punctuated::pairs_mut(&mut node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_qself_mut(v: &mut V, node: &mut QSelf) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.lt_token.spans); + v.visit_type_mut(&mut *node.ty); + skip!(node.position); + if let Some(it) = &mut node.as_token { + tokens_helper(v, &mut it.span); + } + tokens_helper(v, &mut node.gt_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_range_limits_mut(v: &mut V, node: &mut RangeLimits) +where + V: VisitMut + ?Sized, +{ + match node { + RangeLimits::HalfOpen(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + RangeLimits::Closed(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_receiver_mut(v: &mut V, node: &mut Receiver) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + if let Some(it) = &mut node.reference { + tokens_helper(v, &mut (it).0.spans); + if let Some(it) = &mut (it).1 { + v.visit_lifetime_mut(it); + } + } + if let Some(it) = &mut node.mutability { + tokens_helper(v, &mut it.span); + } + tokens_helper(v, &mut node.self_token.span); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_return_type_mut(v: &mut V, node: &mut ReturnType) +where + V: VisitMut + ?Sized, +{ + match node { + ReturnType::Default => {} + ReturnType::Type(_binding_0, _binding_1) => { + tokens_helper(v, &mut _binding_0.spans); + v.visit_type_mut(&mut **_binding_1); + } + } +} +#[cfg(feature = "full")] +pub fn visit_signature_mut(v: &mut V, node: &mut Signature) +where + V: VisitMut + ?Sized, +{ + if let Some(it) = &mut node.constness { + tokens_helper(v, &mut it.span); + } + if let Some(it) = &mut node.asyncness { + tokens_helper(v, &mut it.span); + } + if let Some(it) = &mut node.unsafety { + tokens_helper(v, &mut it.span); + } + if let Some(it) = &mut node.abi { + v.visit_abi_mut(it); + } + tokens_helper(v, &mut node.fn_token.span); + v.visit_ident_mut(&mut node.ident); + v.visit_generics_mut(&mut node.generics); + tokens_helper(v, &mut node.paren_token.span); + for el in Punctuated::pairs_mut(&mut node.inputs) { + let (it, p) = el.into_tuple(); + v.visit_fn_arg_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + if let Some(it) = &mut node.variadic { + v.visit_variadic_mut(it); + } + v.visit_return_type_mut(&mut node.output); +} +pub fn visit_span_mut(v: &mut V, node: &mut Span) +where + V: VisitMut + ?Sized, +{} +#[cfg(feature = "full")] +pub fn visit_stmt_mut(v: &mut V, node: &mut Stmt) +where + V: VisitMut + ?Sized, +{ + match node { + Stmt::Local(_binding_0) => { + v.visit_local_mut(_binding_0); + } + Stmt::Item(_binding_0) => { + v.visit_item_mut(_binding_0); + } + Stmt::Expr(_binding_0) => { + v.visit_expr_mut(_binding_0); + } + Stmt::Semi(_binding_0, _binding_1) => { + v.visit_expr_mut(_binding_0); + tokens_helper(v, &mut _binding_1.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_trait_bound_mut(v: &mut V, node: &mut TraitBound) +where + V: VisitMut + ?Sized, +{ + if let Some(it) = &mut node.paren_token { + tokens_helper(v, &mut it.span); + } + v.visit_trait_bound_modifier_mut(&mut node.modifier); + if let Some(it) = &mut node.lifetimes { + v.visit_bound_lifetimes_mut(it); + } + v.visit_path_mut(&mut node.path); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_trait_bound_modifier_mut(v: &mut V, node: &mut TraitBoundModifier) +where + V: VisitMut + ?Sized, +{ + match node { + TraitBoundModifier::None => {} + TraitBoundModifier::Maybe(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_trait_item_mut(v: &mut V, node: &mut TraitItem) +where + V: VisitMut + ?Sized, +{ + match node { + TraitItem::Const(_binding_0) => { + v.visit_trait_item_const_mut(_binding_0); + } + TraitItem::Method(_binding_0) => { + v.visit_trait_item_method_mut(_binding_0); + } + TraitItem::Type(_binding_0) => { + v.visit_trait_item_type_mut(_binding_0); + } + TraitItem::Macro(_binding_0) => { + v.visit_trait_item_macro_mut(_binding_0); + } + TraitItem::Verbatim(_binding_0) => { + skip!(_binding_0); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(feature = "full")] +pub fn visit_trait_item_const_mut(v: &mut V, node: &mut TraitItemConst) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.const_token.span); + v.visit_ident_mut(&mut node.ident); + tokens_helper(v, &mut node.colon_token.spans); + v.visit_type_mut(&mut node.ty); + if let Some(it) = &mut node.default { + tokens_helper(v, &mut (it).0.spans); + v.visit_expr_mut(&mut (it).1); + } + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_trait_item_macro_mut(v: &mut V, node: &mut TraitItemMacro) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_macro_mut(&mut node.mac); + if let Some(it) = &mut node.semi_token { + tokens_helper(v, &mut it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_trait_item_method_mut(v: &mut V, node: &mut TraitItemMethod) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_signature_mut(&mut node.sig); + if let Some(it) = &mut node.default { + v.visit_block_mut(it); + } + if let Some(it) = &mut node.semi_token { + tokens_helper(v, &mut it.spans); + } +} +#[cfg(feature = "full")] +pub fn visit_trait_item_type_mut(v: &mut V, node: &mut TraitItemType) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.type_token.span); + v.visit_ident_mut(&mut node.ident); + v.visit_generics_mut(&mut node.generics); + if let Some(it) = &mut node.colon_token { + tokens_helper(v, &mut it.spans); + } + for el in Punctuated::pairs_mut(&mut node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + if let Some(it) = &mut node.default { + tokens_helper(v, &mut (it).0.spans); + v.visit_type_mut(&mut (it).1); + } + tokens_helper(v, &mut node.semi_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_mut(v: &mut V, node: &mut Type) +where + V: VisitMut + ?Sized, +{ + match node { + Type::Array(_binding_0) => { + v.visit_type_array_mut(_binding_0); + } + Type::BareFn(_binding_0) => { + v.visit_type_bare_fn_mut(_binding_0); + } + Type::Group(_binding_0) => { + v.visit_type_group_mut(_binding_0); + } + Type::ImplTrait(_binding_0) => { + v.visit_type_impl_trait_mut(_binding_0); + } + Type::Infer(_binding_0) => { + v.visit_type_infer_mut(_binding_0); + } + Type::Macro(_binding_0) => { + v.visit_type_macro_mut(_binding_0); + } + Type::Never(_binding_0) => { + v.visit_type_never_mut(_binding_0); + } + Type::Paren(_binding_0) => { + v.visit_type_paren_mut(_binding_0); + } + Type::Path(_binding_0) => { + v.visit_type_path_mut(_binding_0); + } + Type::Ptr(_binding_0) => { + v.visit_type_ptr_mut(_binding_0); + } + Type::Reference(_binding_0) => { + v.visit_type_reference_mut(_binding_0); + } + Type::Slice(_binding_0) => { + v.visit_type_slice_mut(_binding_0); + } + Type::TraitObject(_binding_0) => { + v.visit_type_trait_object_mut(_binding_0); + } + Type::Tuple(_binding_0) => { + v.visit_type_tuple_mut(_binding_0); + } + Type::Verbatim(_binding_0) => { + skip!(_binding_0); + } + #[cfg(syn_no_non_exhaustive)] + _ => unreachable!(), + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_array_mut(v: &mut V, node: &mut TypeArray) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.bracket_token.span); + v.visit_type_mut(&mut *node.elem); + tokens_helper(v, &mut node.semi_token.spans); + v.visit_expr_mut(&mut node.len); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_bare_fn_mut(v: &mut V, node: &mut TypeBareFn) +where + V: VisitMut + ?Sized, +{ + if let Some(it) = &mut node.lifetimes { + v.visit_bound_lifetimes_mut(it); + } + if let Some(it) = &mut node.unsafety { + tokens_helper(v, &mut it.span); + } + if let Some(it) = &mut node.abi { + v.visit_abi_mut(it); + } + tokens_helper(v, &mut node.fn_token.span); + tokens_helper(v, &mut node.paren_token.span); + for el in Punctuated::pairs_mut(&mut node.inputs) { + let (it, p) = el.into_tuple(); + v.visit_bare_fn_arg_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + if let Some(it) = &mut node.variadic { + v.visit_variadic_mut(it); + } + v.visit_return_type_mut(&mut node.output); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_group_mut(v: &mut V, node: &mut TypeGroup) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.group_token.span); + v.visit_type_mut(&mut *node.elem); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_impl_trait_mut(v: &mut V, node: &mut TypeImplTrait) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.impl_token.span); + for el in Punctuated::pairs_mut(&mut node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_infer_mut(v: &mut V, node: &mut TypeInfer) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.underscore_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_macro_mut(v: &mut V, node: &mut TypeMacro) +where + V: VisitMut + ?Sized, +{ + v.visit_macro_mut(&mut node.mac); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_never_mut(v: &mut V, node: &mut TypeNever) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.bang_token.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_param_mut(v: &mut V, node: &mut TypeParam) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_ident_mut(&mut node.ident); + if let Some(it) = &mut node.colon_token { + tokens_helper(v, &mut it.spans); + } + for el in Punctuated::pairs_mut(&mut node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } + if let Some(it) = &mut node.eq_token { + tokens_helper(v, &mut it.spans); + } + if let Some(it) = &mut node.default { + v.visit_type_mut(it); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_param_bound_mut(v: &mut V, node: &mut TypeParamBound) +where + V: VisitMut + ?Sized, +{ + match node { + TypeParamBound::Trait(_binding_0) => { + v.visit_trait_bound_mut(_binding_0); + } + TypeParamBound::Lifetime(_binding_0) => { + v.visit_lifetime_mut(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_paren_mut(v: &mut V, node: &mut TypeParen) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.paren_token.span); + v.visit_type_mut(&mut *node.elem); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_path_mut(v: &mut V, node: &mut TypePath) +where + V: VisitMut + ?Sized, +{ + if let Some(it) = &mut node.qself { + v.visit_qself_mut(it); + } + v.visit_path_mut(&mut node.path); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_ptr_mut(v: &mut V, node: &mut TypePtr) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.star_token.spans); + if let Some(it) = &mut node.const_token { + tokens_helper(v, &mut it.span); + } + if let Some(it) = &mut node.mutability { + tokens_helper(v, &mut it.span); + } + v.visit_type_mut(&mut *node.elem); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_reference_mut(v: &mut V, node: &mut TypeReference) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.and_token.spans); + if let Some(it) = &mut node.lifetime { + v.visit_lifetime_mut(it); + } + if let Some(it) = &mut node.mutability { + tokens_helper(v, &mut it.span); + } + v.visit_type_mut(&mut *node.elem); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_slice_mut(v: &mut V, node: &mut TypeSlice) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.bracket_token.span); + v.visit_type_mut(&mut *node.elem); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_trait_object_mut(v: &mut V, node: &mut TypeTraitObject) +where + V: VisitMut + ?Sized, +{ + if let Some(it) = &mut node.dyn_token { + tokens_helper(v, &mut it.span); + } + for el in Punctuated::pairs_mut(&mut node.bounds) { + let (it, p) = el.into_tuple(); + v.visit_type_param_bound_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_type_tuple_mut(v: &mut V, node: &mut TypeTuple) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.paren_token.span); + for el in Punctuated::pairs_mut(&mut node.elems) { + let (it, p) = el.into_tuple(); + v.visit_type_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_un_op_mut(v: &mut V, node: &mut UnOp) +where + V: VisitMut + ?Sized, +{ + match node { + UnOp::Deref(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + UnOp::Not(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + UnOp::Neg(_binding_0) => { + tokens_helper(v, &mut _binding_0.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_use_glob_mut(v: &mut V, node: &mut UseGlob) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.star_token.spans); +} +#[cfg(feature = "full")] +pub fn visit_use_group_mut(v: &mut V, node: &mut UseGroup) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.brace_token.span); + for el in Punctuated::pairs_mut(&mut node.items) { + let (it, p) = el.into_tuple(); + v.visit_use_tree_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(feature = "full")] +pub fn visit_use_name_mut(v: &mut V, node: &mut UseName) +where + V: VisitMut + ?Sized, +{ + v.visit_ident_mut(&mut node.ident); +} +#[cfg(feature = "full")] +pub fn visit_use_path_mut(v: &mut V, node: &mut UsePath) +where + V: VisitMut + ?Sized, +{ + v.visit_ident_mut(&mut node.ident); + tokens_helper(v, &mut node.colon2_token.spans); + v.visit_use_tree_mut(&mut *node.tree); +} +#[cfg(feature = "full")] +pub fn visit_use_rename_mut(v: &mut V, node: &mut UseRename) +where + V: VisitMut + ?Sized, +{ + v.visit_ident_mut(&mut node.ident); + tokens_helper(v, &mut node.as_token.span); + v.visit_ident_mut(&mut node.rename); +} +#[cfg(feature = "full")] +pub fn visit_use_tree_mut(v: &mut V, node: &mut UseTree) +where + V: VisitMut + ?Sized, +{ + match node { + UseTree::Path(_binding_0) => { + v.visit_use_path_mut(_binding_0); + } + UseTree::Name(_binding_0) => { + v.visit_use_name_mut(_binding_0); + } + UseTree::Rename(_binding_0) => { + v.visit_use_rename_mut(_binding_0); + } + UseTree::Glob(_binding_0) => { + v.visit_use_glob_mut(_binding_0); + } + UseTree::Group(_binding_0) => { + v.visit_use_group_mut(_binding_0); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_variadic_mut(v: &mut V, node: &mut Variadic) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + tokens_helper(v, &mut node.dots.spans); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_variant_mut(v: &mut V, node: &mut Variant) +where + V: VisitMut + ?Sized, +{ + for it in &mut node.attrs { + v.visit_attribute_mut(it); + } + v.visit_ident_mut(&mut node.ident); + v.visit_fields_mut(&mut node.fields); + if let Some(it) = &mut node.discriminant { + tokens_helper(v, &mut (it).0.spans); + v.visit_expr_mut(&mut (it).1); + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_vis_crate_mut(v: &mut V, node: &mut VisCrate) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.crate_token.span); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_vis_public_mut(v: &mut V, node: &mut VisPublic) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.pub_token.span); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_vis_restricted_mut(v: &mut V, node: &mut VisRestricted) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.pub_token.span); + tokens_helper(v, &mut node.paren_token.span); + if let Some(it) = &mut node.in_token { + tokens_helper(v, &mut it.span); + } + v.visit_path_mut(&mut *node.path); +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_visibility_mut(v: &mut V, node: &mut Visibility) +where + V: VisitMut + ?Sized, +{ + match node { + Visibility::Public(_binding_0) => { + v.visit_vis_public_mut(_binding_0); + } + Visibility::Crate(_binding_0) => { + v.visit_vis_crate_mut(_binding_0); + } + Visibility::Restricted(_binding_0) => { + v.visit_vis_restricted_mut(_binding_0); + } + Visibility::Inherited => {} + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_where_clause_mut(v: &mut V, node: &mut WhereClause) +where + V: VisitMut + ?Sized, +{ + tokens_helper(v, &mut node.where_token.span); + for el in Punctuated::pairs_mut(&mut node.predicates) { + let (it, p) = el.into_tuple(); + v.visit_where_predicate_mut(it); + if let Some(p) = p { + tokens_helper(v, &mut p.spans); + } + } +} +#[cfg(any(feature = "derive", feature = "full"))] +pub fn visit_where_predicate_mut(v: &mut V, node: &mut WherePredicate) +where + V: VisitMut + ?Sized, +{ + match node { + WherePredicate::Type(_binding_0) => { + v.visit_predicate_type_mut(_binding_0); + } + WherePredicate::Lifetime(_binding_0) => { + v.visit_predicate_lifetime_mut(_binding_0); + } + WherePredicate::Eq(_binding_0) => { + v.visit_predicate_eq_mut(_binding_0); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/common/eq.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/common/eq.rs new file mode 100644 index 0000000000000000000000000000000000000000..41d6d4118c39d8edd63f21ea0f437725e6eb700b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/common/eq.rs @@ -0,0 +1,806 @@ +#![allow(unused_macro_rules)] + +extern crate rustc_ast; +extern crate rustc_data_structures; +extern crate rustc_span; +extern crate thin_vec; + +use rustc_ast::ast::AngleBracketedArg; +use rustc_ast::ast::AngleBracketedArgs; +use rustc_ast::ast::AnonConst; +use rustc_ast::ast::Arm; +use rustc_ast::ast::AssocConstraint; +use rustc_ast::ast::AssocConstraintKind; +use rustc_ast::ast::AssocItemKind; +use rustc_ast::ast::Async; +use rustc_ast::ast::AttrArgs; +use rustc_ast::ast::AttrArgsEq; +use rustc_ast::ast::AttrId; +use rustc_ast::ast::AttrItem; +use rustc_ast::ast::AttrKind; +use rustc_ast::ast::AttrStyle; +use rustc_ast::ast::Attribute; +use rustc_ast::ast::BareFnTy; +use rustc_ast::ast::BinOpKind; +use rustc_ast::ast::BindingAnnotation; +use rustc_ast::ast::Block; +use rustc_ast::ast::BlockCheckMode; +use rustc_ast::ast::BorrowKind; +use rustc_ast::ast::ByRef; +use rustc_ast::ast::CaptureBy; +use rustc_ast::ast::Closure; +use rustc_ast::ast::ClosureBinder; +use rustc_ast::ast::Const; +use rustc_ast::ast::Crate; +use rustc_ast::ast::Defaultness; +use rustc_ast::ast::DelimArgs; +use rustc_ast::ast::EnumDef; +use rustc_ast::ast::Expr; +use rustc_ast::ast::ExprField; +use rustc_ast::ast::ExprKind; +use rustc_ast::ast::Extern; +use rustc_ast::ast::FieldDef; +use rustc_ast::ast::FloatTy; +use rustc_ast::ast::Fn; +use rustc_ast::ast::FnDecl; +use rustc_ast::ast::FnHeader; +use rustc_ast::ast::FnRetTy; +use rustc_ast::ast::FnSig; +use rustc_ast::ast::ForeignItemKind; +use rustc_ast::ast::ForeignMod; +use rustc_ast::ast::GenericArg; +use rustc_ast::ast::GenericArgs; +use rustc_ast::ast::GenericBound; +use rustc_ast::ast::GenericParam; +use rustc_ast::ast::GenericParamKind; +use rustc_ast::ast::Generics; +use rustc_ast::ast::Impl; +use rustc_ast::ast::ImplPolarity; +use rustc_ast::ast::Inline; +use rustc_ast::ast::InlineAsm; +use rustc_ast::ast::InlineAsmOperand; +use rustc_ast::ast::InlineAsmOptions; +use rustc_ast::ast::InlineAsmRegOrRegClass; +use rustc_ast::ast::InlineAsmSym; +use rustc_ast::ast::InlineAsmTemplatePiece; +use rustc_ast::ast::IntTy; +use rustc_ast::ast::IsAuto; +use rustc_ast::ast::Item; +use rustc_ast::ast::ItemKind; +use rustc_ast::ast::Label; +use rustc_ast::ast::Lifetime; +use rustc_ast::ast::LitFloatType; +use rustc_ast::ast::LitIntType; +use rustc_ast::ast::LitKind; +use rustc_ast::ast::Local; +use rustc_ast::ast::LocalKind; +use rustc_ast::ast::MacCall; +use rustc_ast::ast::MacCallStmt; +use rustc_ast::ast::MacDelimiter; +use rustc_ast::ast::MacStmtStyle; +use rustc_ast::ast::MacroDef; +use rustc_ast::ast::MetaItemLit; +use rustc_ast::ast::MethodCall; +use rustc_ast::ast::ModKind; +use rustc_ast::ast::ModSpans; +use rustc_ast::ast::Movability; +use rustc_ast::ast::MutTy; +use rustc_ast::ast::Mutability; +use rustc_ast::ast::NodeId; +use rustc_ast::ast::NormalAttr; +use rustc_ast::ast::Param; +use rustc_ast::ast::ParenthesizedArgs; +use rustc_ast::ast::Pat; +use rustc_ast::ast::PatField; +use rustc_ast::ast::PatKind; +use rustc_ast::ast::Path; +use rustc_ast::ast::PathSegment; +use rustc_ast::ast::PolyTraitRef; +use rustc_ast::ast::QSelf; +use rustc_ast::ast::RangeEnd; +use rustc_ast::ast::RangeLimits; +use rustc_ast::ast::RangeSyntax; +use rustc_ast::ast::Stmt; +use rustc_ast::ast::StmtKind; +use rustc_ast::ast::StrLit; +use rustc_ast::ast::StrStyle; +use rustc_ast::ast::StructExpr; +use rustc_ast::ast::StructRest; +use rustc_ast::ast::Term; +use rustc_ast::ast::Trait; +use rustc_ast::ast::TraitBoundModifier; +use rustc_ast::ast::TraitObjectSyntax; +use rustc_ast::ast::TraitRef; +use rustc_ast::ast::Ty; +use rustc_ast::ast::TyAlias; +use rustc_ast::ast::TyAliasWhereClause; +use rustc_ast::ast::TyKind; +use rustc_ast::ast::UintTy; +use rustc_ast::ast::UnOp; +use rustc_ast::ast::Unsafe; +use rustc_ast::ast::UnsafeSource; +use rustc_ast::ast::UseTree; +use rustc_ast::ast::UseTreeKind; +use rustc_ast::ast::Variant; +use rustc_ast::ast::VariantData; +use rustc_ast::ast::Visibility; +use rustc_ast::ast::VisibilityKind; +use rustc_ast::ast::WhereBoundPredicate; +use rustc_ast::ast::WhereClause; +use rustc_ast::ast::WhereEqPredicate; +use rustc_ast::ast::WherePredicate; +use rustc_ast::ast::WhereRegionPredicate; +use rustc_ast::ptr::P; +use rustc_ast::token::{self, CommentKind, Delimiter, Lit, Nonterminal, Token, TokenKind}; +use rustc_ast::tokenstream::{ + AttrTokenStream, AttrTokenTree, AttributesData, DelimSpan, LazyAttrTokenStream, Spacing, + TokenStream, TokenTree, +}; +use rustc_data_structures::sync::Lrc; +use rustc_span::source_map::Spanned; +use rustc_span::symbol::{sym, Ident}; +use rustc_span::{Span, Symbol, SyntaxContext, DUMMY_SP}; +use thin_vec::ThinVec; + +pub trait SpanlessEq { + fn eq(&self, other: &Self) -> bool; +} + +impl SpanlessEq for Box { + fn eq(&self, other: &Self) -> bool { + SpanlessEq::eq(&**self, &**other) + } +} + +impl SpanlessEq for P { + fn eq(&self, other: &Self) -> bool { + SpanlessEq::eq(&**self, &**other) + } +} + +impl SpanlessEq for Lrc { + fn eq(&self, other: &Self) -> bool { + SpanlessEq::eq(&**self, &**other) + } +} + +impl SpanlessEq for Option { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (None, None) => true, + (Some(this), Some(other)) => SpanlessEq::eq(this, other), + _ => false, + } + } +} + +impl SpanlessEq for [T] { + fn eq(&self, other: &Self) -> bool { + self.len() == other.len() && self.iter().zip(other).all(|(a, b)| SpanlessEq::eq(a, b)) + } +} + +impl SpanlessEq for Vec { + fn eq(&self, other: &Self) -> bool { + <[T] as SpanlessEq>::eq(self, other) + } +} + +impl SpanlessEq for ThinVec { + fn eq(&self, other: &Self) -> bool { + self.len() == other.len() + && self + .iter() + .zip(other.iter()) + .all(|(a, b)| SpanlessEq::eq(a, b)) + } +} + +impl SpanlessEq for Spanned { + fn eq(&self, other: &Self) -> bool { + SpanlessEq::eq(&self.node, &other.node) + } +} + +impl SpanlessEq for (A, B) { + fn eq(&self, other: &Self) -> bool { + SpanlessEq::eq(&self.0, &other.0) && SpanlessEq::eq(&self.1, &other.1) + } +} + +impl SpanlessEq for (A, B, C) { + fn eq(&self, other: &Self) -> bool { + SpanlessEq::eq(&self.0, &other.0) + && SpanlessEq::eq(&self.1, &other.1) + && SpanlessEq::eq(&self.2, &other.2) + } +} + +macro_rules! spanless_eq_true { + ($name:ty) => { + impl SpanlessEq for $name { + fn eq(&self, _other: &Self) -> bool { + true + } + } + }; +} + +spanless_eq_true!(Span); +spanless_eq_true!(DelimSpan); +spanless_eq_true!(AttrId); +spanless_eq_true!(NodeId); +spanless_eq_true!(SyntaxContext); +spanless_eq_true!(Spacing); + +macro_rules! spanless_eq_partial_eq { + ($name:ty) => { + impl SpanlessEq for $name { + fn eq(&self, other: &Self) -> bool { + PartialEq::eq(self, other) + } + } + }; +} + +spanless_eq_partial_eq!(bool); +spanless_eq_partial_eq!(u8); +spanless_eq_partial_eq!(u16); +spanless_eq_partial_eq!(u128); +spanless_eq_partial_eq!(usize); +spanless_eq_partial_eq!(char); +spanless_eq_partial_eq!(String); +spanless_eq_partial_eq!(Symbol); +spanless_eq_partial_eq!(CommentKind); +spanless_eq_partial_eq!(Delimiter); +spanless_eq_partial_eq!(InlineAsmOptions); +spanless_eq_partial_eq!(token::LitKind); + +macro_rules! spanless_eq_struct { + { + $($name:ident)::+ $(<$param:ident>)? + $([$field:tt $this:ident $other:ident])* + $(![$ignore:tt])*; + } => { + impl $(<$param: SpanlessEq>)* SpanlessEq for $($name)::+ $(<$param>)* { + fn eq(&self, other: &Self) -> bool { + let $($name)::+ { $($field: $this,)* $($ignore: _,)* } = self; + let $($name)::+ { $($field: $other,)* $($ignore: _,)* } = other; + true $(&& SpanlessEq::eq($this, $other))* + } + } + }; + + { + $($name:ident)::+ $(<$param:ident>)? + $([$field:tt $this:ident $other:ident])* + $(![$ignore:tt])*; + !$next:tt + $($rest:tt)* + } => { + spanless_eq_struct! { + $($name)::+ $(<$param>)* + $([$field $this $other])* + $(![$ignore])* + ![$next]; + $($rest)* + } + }; + + { + $($name:ident)::+ $(<$param:ident>)? + $([$field:tt $this:ident $other:ident])* + $(![$ignore:tt])*; + $next:tt + $($rest:tt)* + } => { + spanless_eq_struct! { + $($name)::+ $(<$param>)* + $([$field $this $other])* + [$next this other] + $(![$ignore])*; + $($rest)* + } + }; +} + +macro_rules! spanless_eq_enum { + { + $($name:ident)::+; + $([$($variant:ident)::+; $([$field:tt $this:ident $other:ident])* $(![$ignore:tt])*])* + } => { + impl SpanlessEq for $($name)::+ { + fn eq(&self, other: &Self) -> bool { + match self { + $( + $($variant)::+ { .. } => {} + )* + } + #[allow(unreachable_patterns)] + match (self, other) { + $( + ( + $($variant)::+ { $($field: $this,)* $($ignore: _,)* }, + $($variant)::+ { $($field: $other,)* $($ignore: _,)* }, + ) => { + true $(&& SpanlessEq::eq($this, $other))* + } + )* + _ => false, + } + } + } + }; + + { + $($name:ident)::+; + $([$($variant:ident)::+; $($fields:tt)*])* + $next:ident [$([$($named:tt)*])* $(![$ignore:tt])*] (!$i:tt $($field:tt)*) + $($rest:tt)* + } => { + spanless_eq_enum! { + $($name)::+; + $([$($variant)::+; $($fields)*])* + $next [$([$($named)*])* $(![$ignore])* ![$i]] ($($field)*) + $($rest)* + } + }; + + { + $($name:ident)::+; + $([$($variant:ident)::+; $($fields:tt)*])* + $next:ident [$([$($named:tt)*])* $(![$ignore:tt])*] ($i:tt $($field:tt)*) + $($rest:tt)* + } => { + spanless_eq_enum! { + $($name)::+; + $([$($variant)::+; $($fields)*])* + $next [$([$($named)*])* [$i this other] $(![$ignore])*] ($($field)*) + $($rest)* + } + }; + + { + $($name:ident)::+; + $([$($variant:ident)::+; $($fields:tt)*])* + $next:ident [$($named:tt)*] () + $($rest:tt)* + } => { + spanless_eq_enum! { + $($name)::+; + $([$($variant)::+; $($fields)*])* + [$($name)::+::$next; $($named)*] + $($rest)* + } + }; + + { + $($name:ident)::+; + $([$($variant:ident)::+; $($fields:tt)*])* + $next:ident ($($field:tt)*) + $($rest:tt)* + } => { + spanless_eq_enum! { + $($name)::+; + $([$($variant)::+; $($fields)*])* + $next [] ($($field)*) + $($rest)* + } + }; + + { + $($name:ident)::+; + $([$($variant:ident)::+; $($fields:tt)*])* + $next:ident + $($rest:tt)* + } => { + spanless_eq_enum! { + $($name)::+; + $([$($variant)::+; $($fields)*])* + [$($name)::+::$next;] + $($rest)* + } + }; +} + +spanless_eq_struct!(AngleBracketedArgs; span args); +spanless_eq_struct!(AnonConst; id value); +spanless_eq_struct!(Arm; attrs pat guard body span id is_placeholder); +spanless_eq_struct!(AssocConstraint; id ident gen_args kind span); +spanless_eq_struct!(AttrItem; path args tokens); +spanless_eq_struct!(AttrTokenStream; 0); +spanless_eq_struct!(Attribute; kind id style span); +spanless_eq_struct!(AttributesData; attrs tokens); +spanless_eq_struct!(BareFnTy; unsafety ext generic_params decl decl_span); +spanless_eq_struct!(BindingAnnotation; 0 1); +spanless_eq_struct!(Block; stmts id rules span tokens could_be_bare_literal); +spanless_eq_struct!(Closure; binder capture_clause asyncness movability fn_decl body !fn_decl_span); +spanless_eq_struct!(Crate; attrs items spans id is_placeholder); +spanless_eq_struct!(DelimArgs; dspan delim tokens); +spanless_eq_struct!(EnumDef; variants); +spanless_eq_struct!(Expr; id kind span attrs !tokens); +spanless_eq_struct!(ExprField; attrs id span ident expr is_shorthand is_placeholder); +spanless_eq_struct!(FieldDef; attrs id span vis ident ty is_placeholder); +spanless_eq_struct!(FnDecl; inputs output); +spanless_eq_struct!(FnHeader; constness asyncness unsafety ext); +spanless_eq_struct!(Fn; defaultness generics sig body); +spanless_eq_struct!(FnSig; header decl span); +spanless_eq_struct!(ForeignMod; unsafety abi items); +spanless_eq_struct!(GenericParam; id ident attrs bounds is_placeholder kind !colon_span); +spanless_eq_struct!(Generics; params where_clause span); +spanless_eq_struct!(Impl; defaultness unsafety generics constness polarity of_trait self_ty items); +spanless_eq_struct!(InlineAsm; template template_strs operands clobber_abis options line_spans); +spanless_eq_struct!(InlineAsmSym; id qself path); +spanless_eq_struct!(Item; attrs id span vis ident kind !tokens); +spanless_eq_struct!(Label; ident); +spanless_eq_struct!(Lifetime; id ident); +spanless_eq_struct!(Lit; kind symbol suffix); +spanless_eq_struct!(Local; pat ty kind id span attrs !tokens); +spanless_eq_struct!(MacCall; path args prior_type_ascription); +spanless_eq_struct!(MacCallStmt; mac style attrs tokens); +spanless_eq_struct!(MacroDef; body macro_rules); +spanless_eq_struct!(MetaItemLit; token_lit kind span); +spanless_eq_struct!(MethodCall; seg receiver args !span); +spanless_eq_struct!(ModSpans; !inner_span !inject_use_span); +spanless_eq_struct!(MutTy; ty mutbl); +spanless_eq_struct!(NormalAttr; item tokens); +spanless_eq_struct!(ParenthesizedArgs; span inputs inputs_span output); +spanless_eq_struct!(Pat; id kind span tokens); +spanless_eq_struct!(PatField; ident pat is_shorthand attrs id span is_placeholder); +spanless_eq_struct!(Path; span segments tokens); +spanless_eq_struct!(PathSegment; ident id args); +spanless_eq_struct!(PolyTraitRef; bound_generic_params trait_ref span); +spanless_eq_struct!(QSelf; ty path_span position); +spanless_eq_struct!(Stmt; id kind span); +spanless_eq_struct!(StrLit; style symbol suffix span symbol_unescaped); +spanless_eq_struct!(StructExpr; qself path fields rest); +spanless_eq_struct!(Token; kind span); +spanless_eq_struct!(Trait; unsafety is_auto generics bounds items); +spanless_eq_struct!(TraitRef; path ref_id); +spanless_eq_struct!(Ty; id kind span tokens); +spanless_eq_struct!(TyAlias; defaultness generics where_clauses !where_predicates_split bounds ty); +spanless_eq_struct!(TyAliasWhereClause; !0 1); +spanless_eq_struct!(UseTree; prefix kind span); +spanless_eq_struct!(Variant; attrs id span !vis ident data disr_expr is_placeholder); +spanless_eq_struct!(Visibility; kind span tokens); +spanless_eq_struct!(WhereBoundPredicate; span bound_generic_params bounded_ty bounds); +spanless_eq_struct!(WhereClause; has_where_token predicates span); +spanless_eq_struct!(WhereEqPredicate; span lhs_ty rhs_ty); +spanless_eq_struct!(WhereRegionPredicate; span lifetime bounds); +spanless_eq_enum!(AngleBracketedArg; Arg(0) Constraint(0)); +spanless_eq_enum!(AssocItemKind; Const(0 1 2) Fn(0) Type(0) MacCall(0)); +spanless_eq_enum!(AssocConstraintKind; Equality(term) Bound(bounds)); +spanless_eq_enum!(Async; Yes(span closure_id return_impl_trait_id) No); +spanless_eq_enum!(AttrArgs; Empty Delimited(0) Eq(0 1)); +spanless_eq_enum!(AttrArgsEq; Ast(0) Hir(0)); +spanless_eq_enum!(AttrStyle; Outer Inner); +spanless_eq_enum!(AttrTokenTree; Token(0 1) Delimited(0 1 2) Attributes(0)); +spanless_eq_enum!(BinOpKind; Add Sub Mul Div Rem And Or BitXor BitAnd BitOr Shl Shr Eq Lt Le Ne Ge Gt); +spanless_eq_enum!(BlockCheckMode; Default Unsafe(0)); +spanless_eq_enum!(BorrowKind; Ref Raw); +spanless_eq_enum!(ByRef; Yes No); +spanless_eq_enum!(CaptureBy; Value Ref); +spanless_eq_enum!(ClosureBinder; NotPresent For(span generic_params)); +spanless_eq_enum!(Const; Yes(0) No); +spanless_eq_enum!(Defaultness; Default(0) Final); +spanless_eq_enum!(Extern; None Implicit(0) Explicit(0 1)); +spanless_eq_enum!(FloatTy; F32 F64); +spanless_eq_enum!(FnRetTy; Default(0) Ty(0)); +spanless_eq_enum!(ForeignItemKind; Static(0 1 2) Fn(0) TyAlias(0) MacCall(0)); +spanless_eq_enum!(GenericArg; Lifetime(0) Type(0) Const(0)); +spanless_eq_enum!(GenericArgs; AngleBracketed(0) Parenthesized(0)); +spanless_eq_enum!(GenericBound; Trait(0 1) Outlives(0)); +spanless_eq_enum!(GenericParamKind; Lifetime Type(default) Const(ty kw_span default)); +spanless_eq_enum!(ImplPolarity; Positive Negative(0)); +spanless_eq_enum!(Inline; Yes No); +spanless_eq_enum!(InlineAsmRegOrRegClass; Reg(0) RegClass(0)); +spanless_eq_enum!(InlineAsmTemplatePiece; String(0) Placeholder(operand_idx modifier span)); +spanless_eq_enum!(IntTy; Isize I8 I16 I32 I64 I128); +spanless_eq_enum!(IsAuto; Yes No); +spanless_eq_enum!(LitFloatType; Suffixed(0) Unsuffixed); +spanless_eq_enum!(LitIntType; Signed(0) Unsigned(0) Unsuffixed); +spanless_eq_enum!(LocalKind; Decl Init(0) InitElse(0 1)); +spanless_eq_enum!(MacDelimiter; Parenthesis Bracket Brace); +spanless_eq_enum!(MacStmtStyle; Semicolon Braces NoBraces); +spanless_eq_enum!(ModKind; Loaded(0 1 2) Unloaded); +spanless_eq_enum!(Movability; Static Movable); +spanless_eq_enum!(Mutability; Mut Not); +spanless_eq_enum!(RangeEnd; Included(0) Excluded); +spanless_eq_enum!(RangeLimits; HalfOpen Closed); +spanless_eq_enum!(StmtKind; Local(0) Item(0) Expr(0) Semi(0) Empty MacCall(0)); +spanless_eq_enum!(StrStyle; Cooked Raw(0)); +spanless_eq_enum!(StructRest; Base(0) Rest(0) None); +spanless_eq_enum!(Term; Ty(0) Const(0)); +spanless_eq_enum!(TokenTree; Token(0 1) Delimited(0 1 2)); +spanless_eq_enum!(TraitBoundModifier; None Maybe MaybeConst MaybeConstMaybe); +spanless_eq_enum!(TraitObjectSyntax; Dyn DynStar None); +spanless_eq_enum!(UintTy; Usize U8 U16 U32 U64 U128); +spanless_eq_enum!(UnOp; Deref Not Neg); +spanless_eq_enum!(Unsafe; Yes(0) No); +spanless_eq_enum!(UnsafeSource; CompilerGenerated UserProvided); +spanless_eq_enum!(UseTreeKind; Simple(0) Nested(0) Glob); +spanless_eq_enum!(VariantData; Struct(0 1) Tuple(0 1) Unit(0)); +spanless_eq_enum!(VisibilityKind; Public Restricted(path id shorthand) Inherited); +spanless_eq_enum!(WherePredicate; BoundPredicate(0) RegionPredicate(0) EqPredicate(0)); +spanless_eq_enum!(ExprKind; Box(0) Array(0) ConstBlock(0) Call(0 1) + MethodCall(0) Tup(0) Binary(0 1 2) Unary(0 1) Lit(0) Cast(0 1) Type(0 1) + Let(0 1 2) If(0 1 2) While(0 1 2) ForLoop(0 1 2 3) Loop(0 1 2) Match(0 1) + Closure(0) Block(0 1) Async(0 1 2) Await(0) TryBlock(0) Assign(0 1 2) + AssignOp(0 1 2) Field(0 1) Index(0 1) Underscore Range(0 1 2) Path(0 1) + AddrOf(0 1 2) Break(0 1) Continue(0) Ret(0) InlineAsm(0) MacCall(0) + Struct(0) Repeat(0 1) Paren(0) Try(0) Yield(0) Yeet(0) IncludedBytes(0) + Err); +spanless_eq_enum!(InlineAsmOperand; In(reg expr) Out(reg late expr) + InOut(reg late expr) SplitInOut(reg late in_expr out_expr) Const(anon_const) + Sym(sym)); +spanless_eq_enum!(ItemKind; ExternCrate(0) Use(0) Static(0 1 2) Const(0 1 2) + Fn(0) Mod(0 1) ForeignMod(0) GlobalAsm(0) TyAlias(0) Enum(0 1) Struct(0 1) + Union(0 1) Trait(0) TraitAlias(0 1) Impl(0) MacCall(0) MacroDef(0)); +spanless_eq_enum!(LitKind; Str(0 1) ByteStr(0) Byte(0) Char(0) Int(0 1) + Float(0 1) Bool(0) Err); +spanless_eq_enum!(PatKind; Wild Ident(0 1 2) Struct(0 1 2 3) TupleStruct(0 1 2) + Or(0) Path(0 1) Tuple(0) Box(0) Ref(0 1) Lit(0) Range(0 1 2) Slice(0) Rest + Paren(0) MacCall(0)); +spanless_eq_enum!(TyKind; Slice(0) Array(0 1) Ptr(0) Rptr(0 1) BareFn(0) Never + Tup(0) Path(0 1) TraitObject(0 1) ImplTrait(0 1) Paren(0) Typeof(0) Infer + ImplicitSelf MacCall(0) Err CVarArgs); + +impl SpanlessEq for Ident { + fn eq(&self, other: &Self) -> bool { + self.as_str() == other.as_str() + } +} + +impl SpanlessEq for RangeSyntax { + fn eq(&self, _other: &Self) -> bool { + match self { + RangeSyntax::DotDotDot | RangeSyntax::DotDotEq => true, + } + } +} + +impl SpanlessEq for Param { + fn eq(&self, other: &Self) -> bool { + let Param { + attrs, + ty, + pat, + id, + span: _, + is_placeholder, + } = self; + let Param { + attrs: attrs2, + ty: ty2, + pat: pat2, + id: id2, + span: _, + is_placeholder: is_placeholder2, + } = other; + SpanlessEq::eq(id, id2) + && SpanlessEq::eq(is_placeholder, is_placeholder2) + && (matches!(ty.kind, TyKind::Err) + || matches!(ty2.kind, TyKind::Err) + || SpanlessEq::eq(attrs, attrs2) + && SpanlessEq::eq(ty, ty2) + && SpanlessEq::eq(pat, pat2)) + } +} + +impl SpanlessEq for TokenKind { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (TokenKind::Literal(this), TokenKind::Literal(other)) => SpanlessEq::eq(this, other), + (TokenKind::DotDotEq, _) | (TokenKind::DotDotDot, _) => match other { + TokenKind::DotDotEq | TokenKind::DotDotDot => true, + _ => false, + }, + (TokenKind::Interpolated(this), TokenKind::Interpolated(other)) => { + match (this.as_ref(), other.as_ref()) { + (Nonterminal::NtExpr(this), Nonterminal::NtExpr(other)) => { + SpanlessEq::eq(this, other) + } + _ => this == other, + } + } + _ => self == other, + } + } +} + +impl SpanlessEq for TokenStream { + fn eq(&self, other: &Self) -> bool { + let mut this_trees = self.trees(); + let mut other_trees = other.trees(); + loop { + let this = match this_trees.next() { + None => return other_trees.next().is_none(), + Some(tree) => tree, + }; + let other = match other_trees.next() { + None => return false, + Some(tree) => tree, + }; + if SpanlessEq::eq(this, other) { + continue; + } + if let (TokenTree::Token(this, _), TokenTree::Token(other, _)) = (this, other) { + if match (&this.kind, &other.kind) { + (TokenKind::Literal(this), TokenKind::Literal(other)) => { + SpanlessEq::eq(this, other) + } + (TokenKind::DocComment(_kind, style, symbol), TokenKind::Pound) => { + doc_comment(*style, *symbol, &mut other_trees) + } + (TokenKind::Pound, TokenKind::DocComment(_kind, style, symbol)) => { + doc_comment(*style, *symbol, &mut this_trees) + } + _ => false, + } { + continue; + } + } + return false; + } + } +} + +fn doc_comment<'a>( + style: AttrStyle, + unescaped: Symbol, + trees: &mut impl Iterator, +) -> bool { + if match style { + AttrStyle::Outer => false, + AttrStyle::Inner => true, + } { + match trees.next() { + Some(TokenTree::Token( + Token { + kind: TokenKind::Not, + span: _, + }, + _spacing, + )) => {} + _ => return false, + } + } + let stream = match trees.next() { + Some(TokenTree::Delimited(_span, Delimiter::Bracket, stream)) => stream, + _ => return false, + }; + let mut trees = stream.trees(); + match trees.next() { + Some(TokenTree::Token( + Token { + kind: TokenKind::Ident(symbol, false), + span: _, + }, + _spacing, + )) if *symbol == sym::doc => {} + _ => return false, + } + match trees.next() { + Some(TokenTree::Token( + Token { + kind: TokenKind::Eq, + span: _, + }, + _spacing, + )) => {} + _ => return false, + } + match trees.next() { + Some(TokenTree::Token(token, _spacing)) => { + is_escaped_literal_token(token, unescaped) && trees.next().is_none() + } + _ => false, + } +} + +fn is_escaped_literal_token(token: &Token, unescaped: Symbol) -> bool { + match token { + Token { + kind: TokenKind::Literal(lit), + span: _, + } => match MetaItemLit::from_token_lit(*lit, DUMMY_SP) { + Ok(lit) => is_escaped_literal_meta_item_lit(&lit, unescaped), + Err(_) => false, + }, + Token { + kind: TokenKind::Interpolated(nonterminal), + span: _, + } => match nonterminal.as_ref() { + Nonterminal::NtExpr(expr) => match &expr.kind { + ExprKind::Lit(lit) => is_escaped_lit(lit, unescaped), + _ => false, + }, + _ => false, + }, + _ => false, + } +} + +fn is_escaped_literal_attr_args(value: &AttrArgsEq, unescaped: Symbol) -> bool { + match value { + AttrArgsEq::Ast(expr) => match &expr.kind { + ExprKind::Lit(lit) => is_escaped_lit(lit, unescaped), + _ => false, + }, + AttrArgsEq::Hir(lit) => is_escaped_literal_meta_item_lit(lit, unescaped), + } +} + +fn is_escaped_literal_meta_item_lit(lit: &MetaItemLit, unescaped: Symbol) -> bool { + match lit { + MetaItemLit { + token_lit: + Lit { + kind: token::LitKind::Str, + symbol: _, + suffix: None, + }, + kind, + span: _, + } => is_escaped_lit_kind(kind, unescaped), + _ => false, + } +} + +fn is_escaped_lit(lit: &Lit, unescaped: Symbol) -> bool { + match lit { + Lit { + kind: token::LitKind::Str, + symbol: _, + suffix: None, + } => match LitKind::from_token_lit(*lit) { + Ok(lit_kind) => is_escaped_lit_kind(&lit_kind, unescaped), + _ => false, + }, + _ => false, + } +} + +fn is_escaped_lit_kind(kind: &LitKind, unescaped: Symbol) -> bool { + match kind { + LitKind::Str(symbol, StrStyle::Cooked) => { + symbol.as_str().replace('\r', "") == unescaped.as_str().replace('\r', "") + } + _ => false, + } +} + +impl SpanlessEq for LazyAttrTokenStream { + fn eq(&self, other: &Self) -> bool { + let this = self.to_attr_token_stream(); + let other = other.to_attr_token_stream(); + SpanlessEq::eq(&this, &other) + } +} + +impl SpanlessEq for AttrKind { + fn eq(&self, other: &Self) -> bool { + match (self, other) { + (AttrKind::Normal(normal), AttrKind::Normal(normal2)) => { + SpanlessEq::eq(normal, normal2) + } + (AttrKind::DocComment(kind, symbol), AttrKind::DocComment(kind2, symbol2)) => { + SpanlessEq::eq(kind, kind2) && SpanlessEq::eq(symbol, symbol2) + } + (AttrKind::DocComment(kind, unescaped), AttrKind::Normal(normal2)) => { + match kind { + CommentKind::Line | CommentKind::Block => {} + } + let path = Path::from_ident(Ident::with_dummy_span(sym::doc)); + SpanlessEq::eq(&path, &normal2.item.path) + && match &normal2.item.args { + AttrArgs::Empty | AttrArgs::Delimited(_) => false, + AttrArgs::Eq(_span, value) => { + is_escaped_literal_attr_args(value, *unescaped) + } + } + } + (AttrKind::Normal(_), AttrKind::DocComment(..)) => SpanlessEq::eq(other, self), + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/common/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/common/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..2156530b7cd839504cc39d7b4fc1e510ab9508da --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/common/mod.rs @@ -0,0 +1,28 @@ +#![allow(dead_code)] +#![allow(clippy::module_name_repetitions, clippy::shadow_unrelated)] + +use rayon::ThreadPoolBuilder; +use std::env; + +pub mod eq; +pub mod parse; + +/// Read the `ABORT_AFTER_FAILURE` environment variable, and parse it. +pub fn abort_after() -> usize { + match env::var("ABORT_AFTER_FAILURE") { + Ok(s) => s.parse().expect("failed to parse ABORT_AFTER_FAILURE"), + Err(_) => usize::max_value(), + } +} + +/// Configure Rayon threadpool. +pub fn rayon_init() { + let stack_size = match env::var("RUST_MIN_STACK") { + Ok(s) => s.parse().expect("failed to parse RUST_MIN_STACK"), + Err(_) => 20 * 1024 * 1024, + }; + ThreadPoolBuilder::new() + .stack_size(stack_size) + .build_global() + .unwrap(); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/common/parse.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/common/parse.rs new file mode 100644 index 0000000000000000000000000000000000000000..636d0a37a08b1665dbf369c41b95912ab4924485 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/common/parse.rs @@ -0,0 +1,48 @@ +extern crate rustc_ast; +extern crate rustc_expand; +extern crate rustc_parse as parse; +extern crate rustc_session; +extern crate rustc_span; + +use rustc_ast::ast; +use rustc_ast::ptr::P; +use rustc_session::parse::ParseSess; +use rustc_span::source_map::FilePathMapping; +use rustc_span::FileName; +use std::panic; + +pub fn librustc_expr(input: &str) -> Option> { + match panic::catch_unwind(|| { + let sess = ParseSess::new(FilePathMapping::empty()); + let e = parse::new_parser_from_source_str( + &sess, + FileName::Custom("test_precedence".to_string()), + input.to_string(), + ) + .parse_expr(); + match e { + Ok(expr) => Some(expr), + Err(mut diagnostic) => { + diagnostic.emit(); + None + } + } + }) { + Ok(Some(e)) => Some(e), + Ok(None) => None, + Err(_) => { + errorf!("librustc panicked\n"); + None + } + } +} + +pub fn syn_expr(input: &str) -> Option { + match syn::parse_str(input) { + Ok(e) => Some(e), + Err(msg) => { + errorf!("syn failed to parse\n{:?}\n", msg); + None + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/debug/gen.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/debug/gen.rs new file mode 100644 index 0000000000000000000000000000000000000000..cfd63d117b0f132af5ac6a01431d429e627d044f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/debug/gen.rs @@ -0,0 +1,5640 @@ +// This file is @generated by syn-internal-codegen. +// It is not intended for manual editing. + +use super::{Lite, RefCast}; +use std::fmt::{self, Debug, Display}; +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Abi"); + if let Some(val) = &_val.name { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::LitStr); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("name", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("AngleBracketedGenericArguments"); + if let Some(val) = &_val.colon2_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon2); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("colon2_token", Print::ref_cast(val)); + } + if !_val.args.is_empty() { + formatter.field("args", Lite(&_val.args)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Arm"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("pat", Lite(&_val.pat)); + if let Some(val) = &_val.guard { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::If, Box)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("guard", Print::ref_cast(val)); + } + formatter.field("body", Lite(&_val.body)); + if let Some(val) = &_val.comma { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Comma); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("comma", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::AttrStyle::Outer => formatter.write_str("Outer"), + syn::AttrStyle::Inner(_val) => { + formatter.write_str("Inner")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Attribute"); + formatter.field("style", Lite(&_val.style)); + formatter.field("path", Lite(&_val.path)); + formatter.field("tokens", Lite(&_val.tokens)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("BareFnArg"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.name { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((proc_macro2::Ident, syn::token::Colon)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.0), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("name", Print::ref_cast(val)); + } + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::BinOp::Add(_val) => { + formatter.write_str("Add")?; + Ok(()) + } + syn::BinOp::Sub(_val) => { + formatter.write_str("Sub")?; + Ok(()) + } + syn::BinOp::Mul(_val) => { + formatter.write_str("Mul")?; + Ok(()) + } + syn::BinOp::Div(_val) => { + formatter.write_str("Div")?; + Ok(()) + } + syn::BinOp::Rem(_val) => { + formatter.write_str("Rem")?; + Ok(()) + } + syn::BinOp::And(_val) => { + formatter.write_str("And")?; + Ok(()) + } + syn::BinOp::Or(_val) => { + formatter.write_str("Or")?; + Ok(()) + } + syn::BinOp::BitXor(_val) => { + formatter.write_str("BitXor")?; + Ok(()) + } + syn::BinOp::BitAnd(_val) => { + formatter.write_str("BitAnd")?; + Ok(()) + } + syn::BinOp::BitOr(_val) => { + formatter.write_str("BitOr")?; + Ok(()) + } + syn::BinOp::Shl(_val) => { + formatter.write_str("Shl")?; + Ok(()) + } + syn::BinOp::Shr(_val) => { + formatter.write_str("Shr")?; + Ok(()) + } + syn::BinOp::Eq(_val) => { + formatter.write_str("Eq")?; + Ok(()) + } + syn::BinOp::Lt(_val) => { + formatter.write_str("Lt")?; + Ok(()) + } + syn::BinOp::Le(_val) => { + formatter.write_str("Le")?; + Ok(()) + } + syn::BinOp::Ne(_val) => { + formatter.write_str("Ne")?; + Ok(()) + } + syn::BinOp::Ge(_val) => { + formatter.write_str("Ge")?; + Ok(()) + } + syn::BinOp::Gt(_val) => { + formatter.write_str("Gt")?; + Ok(()) + } + syn::BinOp::AddEq(_val) => { + formatter.write_str("AddEq")?; + Ok(()) + } + syn::BinOp::SubEq(_val) => { + formatter.write_str("SubEq")?; + Ok(()) + } + syn::BinOp::MulEq(_val) => { + formatter.write_str("MulEq")?; + Ok(()) + } + syn::BinOp::DivEq(_val) => { + formatter.write_str("DivEq")?; + Ok(()) + } + syn::BinOp::RemEq(_val) => { + formatter.write_str("RemEq")?; + Ok(()) + } + syn::BinOp::BitXorEq(_val) => { + formatter.write_str("BitXorEq")?; + Ok(()) + } + syn::BinOp::BitAndEq(_val) => { + formatter.write_str("BitAndEq")?; + Ok(()) + } + syn::BinOp::BitOrEq(_val) => { + formatter.write_str("BitOrEq")?; + Ok(()) + } + syn::BinOp::ShlEq(_val) => { + formatter.write_str("ShlEq")?; + Ok(()) + } + syn::BinOp::ShrEq(_val) => { + formatter.write_str("ShrEq")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Binding"); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Block"); + if !_val.stmts.is_empty() { + formatter.field("stmts", Lite(&_val.stmts)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("BoundLifetimes"); + if !_val.lifetimes.is_empty() { + formatter.field("lifetimes", Lite(&_val.lifetimes)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ConstParam"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("ty", Lite(&_val.ty)); + if let Some(val) = &_val.eq_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Eq); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("eq_token", Print::ref_cast(val)); + } + if let Some(val) = &_val.default { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Expr); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("default", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Constraint"); + formatter.field("ident", Lite(&_val.ident)); + if !_val.bounds.is_empty() { + formatter.field("bounds", Lite(&_val.bounds)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::Data::Struct(_val) => { + let mut formatter = formatter.debug_struct("Data::Struct"); + formatter.field("fields", Lite(&_val.fields)); + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } + syn::Data::Enum(_val) => { + let mut formatter = formatter.debug_struct("Data::Enum"); + if !_val.variants.is_empty() { + formatter.field("variants", Lite(&_val.variants)); + } + formatter.finish() + } + syn::Data::Union(_val) => { + let mut formatter = formatter.debug_struct("Data::Union"); + formatter.field("fields", Lite(&_val.fields)); + formatter.finish() + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("DataEnum"); + if !_val.variants.is_empty() { + formatter.field("variants", Lite(&_val.variants)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("DataStruct"); + formatter.field("fields", Lite(&_val.fields)); + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("DataUnion"); + formatter.field("fields", Lite(&_val.fields)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("DeriveInput"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + formatter.field("data", Lite(&_val.data)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::Expr::Array(_val) => { + let mut formatter = formatter.debug_struct("Expr::Array"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if !_val.elems.is_empty() { + formatter.field("elems", Lite(&_val.elems)); + } + formatter.finish() + } + syn::Expr::Assign(_val) => { + let mut formatter = formatter.debug_struct("Expr::Assign"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("left", Lite(&_val.left)); + formatter.field("right", Lite(&_val.right)); + formatter.finish() + } + syn::Expr::AssignOp(_val) => { + let mut formatter = formatter.debug_struct("Expr::AssignOp"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("left", Lite(&_val.left)); + formatter.field("op", Lite(&_val.op)); + formatter.field("right", Lite(&_val.right)); + formatter.finish() + } + syn::Expr::Async(_val) => { + let mut formatter = formatter.debug_struct("Expr::Async"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.capture { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Move); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("capture", Print::ref_cast(val)); + } + formatter.field("block", Lite(&_val.block)); + formatter.finish() + } + syn::Expr::Await(_val) => { + let mut formatter = formatter.debug_struct("Expr::Await"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("base", Lite(&_val.base)); + formatter.finish() + } + syn::Expr::Binary(_val) => { + let mut formatter = formatter.debug_struct("Expr::Binary"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("left", Lite(&_val.left)); + formatter.field("op", Lite(&_val.op)); + formatter.field("right", Lite(&_val.right)); + formatter.finish() + } + syn::Expr::Block(_val) => { + let mut formatter = formatter.debug_struct("Expr::Block"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.label { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Label); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("label", Print::ref_cast(val)); + } + formatter.field("block", Lite(&_val.block)); + formatter.finish() + } + syn::Expr::Box(_val) => { + let mut formatter = formatter.debug_struct("Expr::Box"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } + syn::Expr::Break(_val) => { + let mut formatter = formatter.debug_struct("Expr::Break"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.label { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Lifetime); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("label", Print::ref_cast(val)); + } + if let Some(val) = &_val.expr { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Box); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("expr", Print::ref_cast(val)); + } + formatter.finish() + } + syn::Expr::Call(_val) => { + let mut formatter = formatter.debug_struct("Expr::Call"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("func", Lite(&_val.func)); + if !_val.args.is_empty() { + formatter.field("args", Lite(&_val.args)); + } + formatter.finish() + } + syn::Expr::Cast(_val) => { + let mut formatter = formatter.debug_struct("Expr::Cast"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } + syn::Expr::Closure(_val) => { + let mut formatter = formatter.debug_struct("Expr::Closure"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.movability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Static); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("movability", Print::ref_cast(val)); + } + if let Some(val) = &_val.asyncness { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Async); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("asyncness", Print::ref_cast(val)); + } + if let Some(val) = &_val.capture { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Move); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("capture", Print::ref_cast(val)); + } + if !_val.inputs.is_empty() { + formatter.field("inputs", Lite(&_val.inputs)); + } + formatter.field("output", Lite(&_val.output)); + formatter.field("body", Lite(&_val.body)); + formatter.finish() + } + syn::Expr::Continue(_val) => { + let mut formatter = formatter.debug_struct("Expr::Continue"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.label { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Lifetime); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("label", Print::ref_cast(val)); + } + formatter.finish() + } + syn::Expr::Field(_val) => { + let mut formatter = formatter.debug_struct("Expr::Field"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("base", Lite(&_val.base)); + formatter.field("member", Lite(&_val.member)); + formatter.finish() + } + syn::Expr::ForLoop(_val) => { + let mut formatter = formatter.debug_struct("Expr::ForLoop"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.label { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Label); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("label", Print::ref_cast(val)); + } + formatter.field("pat", Lite(&_val.pat)); + formatter.field("expr", Lite(&_val.expr)); + formatter.field("body", Lite(&_val.body)); + formatter.finish() + } + syn::Expr::Group(_val) => { + let mut formatter = formatter.debug_struct("Expr::Group"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } + syn::Expr::If(_val) => { + let mut formatter = formatter.debug_struct("Expr::If"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("cond", Lite(&_val.cond)); + formatter.field("then_branch", Lite(&_val.then_branch)); + if let Some(val) = &_val.else_branch { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::Else, Box)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("else_branch", Print::ref_cast(val)); + } + formatter.finish() + } + syn::Expr::Index(_val) => { + let mut formatter = formatter.debug_struct("Expr::Index"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.field("index", Lite(&_val.index)); + formatter.finish() + } + syn::Expr::Let(_val) => { + let mut formatter = formatter.debug_struct("Expr::Let"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("pat", Lite(&_val.pat)); + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } + syn::Expr::Lit(_val) => { + let mut formatter = formatter.debug_struct("Expr::Lit"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("lit", Lite(&_val.lit)); + formatter.finish() + } + syn::Expr::Loop(_val) => { + let mut formatter = formatter.debug_struct("Expr::Loop"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.label { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Label); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("label", Print::ref_cast(val)); + } + formatter.field("body", Lite(&_val.body)); + formatter.finish() + } + syn::Expr::Macro(_val) => { + let mut formatter = formatter.debug_struct("Expr::Macro"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("mac", Lite(&_val.mac)); + formatter.finish() + } + syn::Expr::Match(_val) => { + let mut formatter = formatter.debug_struct("Expr::Match"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + if !_val.arms.is_empty() { + formatter.field("arms", Lite(&_val.arms)); + } + formatter.finish() + } + syn::Expr::MethodCall(_val) => { + let mut formatter = formatter.debug_struct("Expr::MethodCall"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("receiver", Lite(&_val.receiver)); + formatter.field("method", Lite(&_val.method)); + if let Some(val) = &_val.turbofish { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::MethodTurbofish); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("turbofish", Print::ref_cast(val)); + } + if !_val.args.is_empty() { + formatter.field("args", Lite(&_val.args)); + } + formatter.finish() + } + syn::Expr::Paren(_val) => { + let mut formatter = formatter.debug_struct("Expr::Paren"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } + syn::Expr::Path(_val) => { + let mut formatter = formatter.debug_struct("Expr::Path"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.qself { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::QSelf); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("qself", Print::ref_cast(val)); + } + formatter.field("path", Lite(&_val.path)); + formatter.finish() + } + syn::Expr::Range(_val) => { + let mut formatter = formatter.debug_struct("Expr::Range"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.from { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Box); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("from", Print::ref_cast(val)); + } + formatter.field("limits", Lite(&_val.limits)); + if let Some(val) = &_val.to { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Box); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("to", Print::ref_cast(val)); + } + formatter.finish() + } + syn::Expr::Reference(_val) => { + let mut formatter = formatter.debug_struct("Expr::Reference"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } + syn::Expr::Repeat(_val) => { + let mut formatter = formatter.debug_struct("Expr::Repeat"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.field("len", Lite(&_val.len)); + formatter.finish() + } + syn::Expr::Return(_val) => { + let mut formatter = formatter.debug_struct("Expr::Return"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.expr { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Box); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("expr", Print::ref_cast(val)); + } + formatter.finish() + } + syn::Expr::Struct(_val) => { + let mut formatter = formatter.debug_struct("Expr::Struct"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("path", Lite(&_val.path)); + if !_val.fields.is_empty() { + formatter.field("fields", Lite(&_val.fields)); + } + if let Some(val) = &_val.dot2_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Dot2); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("dot2_token", Print::ref_cast(val)); + } + if let Some(val) = &_val.rest { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Box); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("rest", Print::ref_cast(val)); + } + formatter.finish() + } + syn::Expr::Try(_val) => { + let mut formatter = formatter.debug_struct("Expr::Try"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } + syn::Expr::TryBlock(_val) => { + let mut formatter = formatter.debug_struct("Expr::TryBlock"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("block", Lite(&_val.block)); + formatter.finish() + } + syn::Expr::Tuple(_val) => { + let mut formatter = formatter.debug_struct("Expr::Tuple"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if !_val.elems.is_empty() { + formatter.field("elems", Lite(&_val.elems)); + } + formatter.finish() + } + syn::Expr::Type(_val) => { + let mut formatter = formatter.debug_struct("Expr::Type"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } + syn::Expr::Unary(_val) => { + let mut formatter = formatter.debug_struct("Expr::Unary"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("op", Lite(&_val.op)); + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } + syn::Expr::Unsafe(_val) => { + let mut formatter = formatter.debug_struct("Expr::Unsafe"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("block", Lite(&_val.block)); + formatter.finish() + } + syn::Expr::Verbatim(_val) => { + formatter.write_str("Verbatim")?; + formatter.write_str("(`")?; + Display::fmt(_val, formatter)?; + formatter.write_str("`)")?; + Ok(()) + } + syn::Expr::While(_val) => { + let mut formatter = formatter.debug_struct("Expr::While"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.label { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Label); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("label", Print::ref_cast(val)); + } + formatter.field("cond", Lite(&_val.cond)); + formatter.field("body", Lite(&_val.body)); + formatter.finish() + } + syn::Expr::Yield(_val) => { + let mut formatter = formatter.debug_struct("Expr::Yield"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.expr { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Box); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("expr", Print::ref_cast(val)); + } + formatter.finish() + } + _ => unreachable!(), + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprArray"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if !_val.elems.is_empty() { + formatter.field("elems", Lite(&_val.elems)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprAssign"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("left", Lite(&_val.left)); + formatter.field("right", Lite(&_val.right)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprAssignOp"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("left", Lite(&_val.left)); + formatter.field("op", Lite(&_val.op)); + formatter.field("right", Lite(&_val.right)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprAsync"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.capture { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Move); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("capture", Print::ref_cast(val)); + } + formatter.field("block", Lite(&_val.block)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprAwait"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("base", Lite(&_val.base)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprBinary"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("left", Lite(&_val.left)); + formatter.field("op", Lite(&_val.op)); + formatter.field("right", Lite(&_val.right)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprBlock"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.label { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Label); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("label", Print::ref_cast(val)); + } + formatter.field("block", Lite(&_val.block)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprBox"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprBreak"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.label { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Lifetime); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("label", Print::ref_cast(val)); + } + if let Some(val) = &_val.expr { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Box); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("expr", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprCall"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("func", Lite(&_val.func)); + if !_val.args.is_empty() { + formatter.field("args", Lite(&_val.args)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprCast"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprClosure"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.movability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Static); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("movability", Print::ref_cast(val)); + } + if let Some(val) = &_val.asyncness { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Async); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("asyncness", Print::ref_cast(val)); + } + if let Some(val) = &_val.capture { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Move); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("capture", Print::ref_cast(val)); + } + if !_val.inputs.is_empty() { + formatter.field("inputs", Lite(&_val.inputs)); + } + formatter.field("output", Lite(&_val.output)); + formatter.field("body", Lite(&_val.body)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprContinue"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.label { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Lifetime); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("label", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprField"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("base", Lite(&_val.base)); + formatter.field("member", Lite(&_val.member)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprForLoop"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.label { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Label); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("label", Print::ref_cast(val)); + } + formatter.field("pat", Lite(&_val.pat)); + formatter.field("expr", Lite(&_val.expr)); + formatter.field("body", Lite(&_val.body)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprGroup"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprIf"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("cond", Lite(&_val.cond)); + formatter.field("then_branch", Lite(&_val.then_branch)); + if let Some(val) = &_val.else_branch { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::Else, Box)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("else_branch", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprIndex"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.field("index", Lite(&_val.index)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprLet"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("pat", Lite(&_val.pat)); + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprLit"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("lit", Lite(&_val.lit)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprLoop"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.label { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Label); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("label", Print::ref_cast(val)); + } + formatter.field("body", Lite(&_val.body)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprMacro"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("mac", Lite(&_val.mac)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprMatch"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + if !_val.arms.is_empty() { + formatter.field("arms", Lite(&_val.arms)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprMethodCall"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("receiver", Lite(&_val.receiver)); + formatter.field("method", Lite(&_val.method)); + if let Some(val) = &_val.turbofish { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::MethodTurbofish); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("turbofish", Print::ref_cast(val)); + } + if !_val.args.is_empty() { + formatter.field("args", Lite(&_val.args)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprParen"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprPath"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.qself { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::QSelf); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("qself", Print::ref_cast(val)); + } + formatter.field("path", Lite(&_val.path)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprRange"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.from { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Box); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("from", Print::ref_cast(val)); + } + formatter.field("limits", Lite(&_val.limits)); + if let Some(val) = &_val.to { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Box); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("to", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprReference"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprRepeat"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.field("len", Lite(&_val.len)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprReturn"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.expr { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Box); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("expr", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprStruct"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("path", Lite(&_val.path)); + if !_val.fields.is_empty() { + formatter.field("fields", Lite(&_val.fields)); + } + if let Some(val) = &_val.dot2_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Dot2); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("dot2_token", Print::ref_cast(val)); + } + if let Some(val) = &_val.rest { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Box); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("rest", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprTry"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprTryBlock"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("block", Lite(&_val.block)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprTuple"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if !_val.elems.is_empty() { + formatter.field("elems", Lite(&_val.elems)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprType"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprUnary"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("op", Lite(&_val.op)); + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprUnsafe"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("block", Lite(&_val.block)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprWhile"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.label { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Label); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("label", Print::ref_cast(val)); + } + formatter.field("cond", Lite(&_val.cond)); + formatter.field("body", Lite(&_val.body)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ExprYield"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.expr { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Box); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("expr", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Field"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.ident { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(proc_macro2::Ident); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("ident", Print::ref_cast(val)); + } + if let Some(val) = &_val.colon_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("colon_token", Print::ref_cast(val)); + } + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("FieldPat"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("member", Lite(&_val.member)); + if let Some(val) = &_val.colon_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("colon_token", Print::ref_cast(val)); + } + formatter.field("pat", Lite(&_val.pat)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("FieldValue"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("member", Lite(&_val.member)); + if let Some(val) = &_val.colon_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("colon_token", Print::ref_cast(val)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::Fields::Named(_val) => { + let mut formatter = formatter.debug_struct("Fields::Named"); + if !_val.named.is_empty() { + formatter.field("named", Lite(&_val.named)); + } + formatter.finish() + } + syn::Fields::Unnamed(_val) => { + let mut formatter = formatter.debug_struct("Fields::Unnamed"); + if !_val.unnamed.is_empty() { + formatter.field("unnamed", Lite(&_val.unnamed)); + } + formatter.finish() + } + syn::Fields::Unit => formatter.write_str("Unit"), + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("FieldsNamed"); + if !_val.named.is_empty() { + formatter.field("named", Lite(&_val.named)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("FieldsUnnamed"); + if !_val.unnamed.is_empty() { + formatter.field("unnamed", Lite(&_val.unnamed)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("File"); + if let Some(val) = &_val.shebang { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(String); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("shebang", Print::ref_cast(val)); + } + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if !_val.items.is_empty() { + formatter.field("items", Lite(&_val.items)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::FnArg::Receiver(_val) => { + formatter.write_str("Receiver")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::FnArg::Typed(_val) => { + formatter.write_str("Typed")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::ForeignItem::Fn(_val) => { + let mut formatter = formatter.debug_struct("ForeignItem::Fn"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("sig", Lite(&_val.sig)); + formatter.finish() + } + syn::ForeignItem::Static(_val) => { + let mut formatter = formatter.debug_struct("ForeignItem::Static"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } + syn::ForeignItem::Type(_val) => { + let mut formatter = formatter.debug_struct("ForeignItem::Type"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.finish() + } + syn::ForeignItem::Macro(_val) => { + let mut formatter = formatter.debug_struct("ForeignItem::Macro"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("mac", Lite(&_val.mac)); + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } + syn::ForeignItem::Verbatim(_val) => { + formatter.write_str("Verbatim")?; + formatter.write_str("(`")?; + Display::fmt(_val, formatter)?; + formatter.write_str("`)")?; + Ok(()) + } + _ => unreachable!(), + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ForeignItemFn"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("sig", Lite(&_val.sig)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ForeignItemMacro"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("mac", Lite(&_val.mac)); + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ForeignItemStatic"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ForeignItemType"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::GenericArgument::Lifetime(_val) => { + formatter.write_str("Lifetime")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::GenericArgument::Type(_val) => { + formatter.write_str("Type")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::GenericArgument::Const(_val) => { + formatter.write_str("Const")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::GenericArgument::Binding(_val) => { + formatter.write_str("Binding")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::GenericArgument::Constraint(_val) => { + formatter.write_str("Constraint")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::GenericMethodArgument::Type(_val) => { + formatter.write_str("Type")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::GenericMethodArgument::Const(_val) => { + formatter.write_str("Const")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::GenericParam::Type(_val) => { + formatter.write_str("Type")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::GenericParam::Lifetime(_val) => { + formatter.write_str("Lifetime")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::GenericParam::Const(_val) => { + formatter.write_str("Const")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Generics"); + if let Some(val) = &_val.lt_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Lt); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("lt_token", Print::ref_cast(val)); + } + if !_val.params.is_empty() { + formatter.field("params", Lite(&_val.params)); + } + if let Some(val) = &_val.gt_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Gt); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("gt_token", Print::ref_cast(val)); + } + if let Some(val) = &_val.where_clause { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::WhereClause); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("where_clause", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::ImplItem::Const(_val) => { + let mut formatter = formatter.debug_struct("ImplItem::Const"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.defaultness { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Default); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("defaultness", Print::ref_cast(val)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("ty", Lite(&_val.ty)); + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } + syn::ImplItem::Method(_val) => { + let mut formatter = formatter.debug_struct("ImplItem::Method"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.defaultness { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Default); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("defaultness", Print::ref_cast(val)); + } + formatter.field("sig", Lite(&_val.sig)); + formatter.field("block", Lite(&_val.block)); + formatter.finish() + } + syn::ImplItem::Type(_val) => { + let mut formatter = formatter.debug_struct("ImplItem::Type"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.defaultness { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Default); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("defaultness", Print::ref_cast(val)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } + syn::ImplItem::Macro(_val) => { + let mut formatter = formatter.debug_struct("ImplItem::Macro"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("mac", Lite(&_val.mac)); + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } + syn::ImplItem::Verbatim(_val) => { + formatter.write_str("Verbatim")?; + formatter.write_str("(`")?; + Display::fmt(_val, formatter)?; + formatter.write_str("`)")?; + Ok(()) + } + _ => unreachable!(), + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ImplItemConst"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.defaultness { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Default); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("defaultness", Print::ref_cast(val)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("ty", Lite(&_val.ty)); + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ImplItemMacro"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("mac", Lite(&_val.mac)); + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ImplItemMethod"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.defaultness { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Default); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("defaultness", Print::ref_cast(val)); + } + formatter.field("sig", Lite(&_val.sig)); + formatter.field("block", Lite(&_val.block)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ImplItemType"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.defaultness { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Default); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("defaultness", Print::ref_cast(val)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Index"); + formatter.field("index", Lite(&_val.index)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::Item::Const(_val) => { + let mut formatter = formatter.debug_struct("Item::Const"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("ty", Lite(&_val.ty)); + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } + syn::Item::Enum(_val) => { + let mut formatter = formatter.debug_struct("Item::Enum"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + if !_val.variants.is_empty() { + formatter.field("variants", Lite(&_val.variants)); + } + formatter.finish() + } + syn::Item::ExternCrate(_val) => { + let mut formatter = formatter.debug_struct("Item::ExternCrate"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + if let Some(val) = &_val.rename { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::As, proc_macro2::Ident)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("rename", Print::ref_cast(val)); + } + formatter.finish() + } + syn::Item::Fn(_val) => { + let mut formatter = formatter.debug_struct("Item::Fn"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("sig", Lite(&_val.sig)); + formatter.field("block", Lite(&_val.block)); + formatter.finish() + } + syn::Item::ForeignMod(_val) => { + let mut formatter = formatter.debug_struct("Item::ForeignMod"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("abi", Lite(&_val.abi)); + if !_val.items.is_empty() { + formatter.field("items", Lite(&_val.items)); + } + formatter.finish() + } + syn::Item::Impl(_val) => { + let mut formatter = formatter.debug_struct("Item::Impl"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.defaultness { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Default); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("defaultness", Print::ref_cast(val)); + } + if let Some(val) = &_val.unsafety { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Unsafe); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("unsafety", Print::ref_cast(val)); + } + formatter.field("generics", Lite(&_val.generics)); + if let Some(val) = &_val.trait_ { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((Option, syn::Path, syn::token::For)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt( + &( + { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Option); + impl Debug for Print { + fn fmt( + &self, + formatter: &mut fmt::Formatter, + ) -> fmt::Result { + match &self.0 { + Some(_val) => { + formatter.write_str("Some")?; + Ok(()) + } + None => formatter.write_str("None"), + } + } + } + Print::ref_cast(&_val.0) + }, + Lite(&_val.1), + ), + formatter, + )?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("trait_", Print::ref_cast(val)); + } + formatter.field("self_ty", Lite(&_val.self_ty)); + if !_val.items.is_empty() { + formatter.field("items", Lite(&_val.items)); + } + formatter.finish() + } + syn::Item::Macro(_val) => { + let mut formatter = formatter.debug_struct("Item::Macro"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.ident { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(proc_macro2::Ident); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("ident", Print::ref_cast(val)); + } + formatter.field("mac", Lite(&_val.mac)); + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } + syn::Item::Macro2(_val) => { + let mut formatter = formatter.debug_struct("Item::Macro2"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("rules", Lite(&_val.rules)); + formatter.finish() + } + syn::Item::Mod(_val) => { + let mut formatter = formatter.debug_struct("Item::Mod"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + if let Some(val) = &_val.content { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::Brace, Vec)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("content", Print::ref_cast(val)); + } + if let Some(val) = &_val.semi { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi", Print::ref_cast(val)); + } + formatter.finish() + } + syn::Item::Static(_val) => { + let mut formatter = formatter.debug_struct("Item::Static"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("ty", Lite(&_val.ty)); + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } + syn::Item::Struct(_val) => { + let mut formatter = formatter.debug_struct("Item::Struct"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + formatter.field("fields", Lite(&_val.fields)); + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } + syn::Item::Trait(_val) => { + let mut formatter = formatter.debug_struct("Item::Trait"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.unsafety { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Unsafe); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("unsafety", Print::ref_cast(val)); + } + if let Some(val) = &_val.auto_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Auto); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("auto_token", Print::ref_cast(val)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + if let Some(val) = &_val.colon_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("colon_token", Print::ref_cast(val)); + } + if !_val.supertraits.is_empty() { + formatter.field("supertraits", Lite(&_val.supertraits)); + } + if !_val.items.is_empty() { + formatter.field("items", Lite(&_val.items)); + } + formatter.finish() + } + syn::Item::TraitAlias(_val) => { + let mut formatter = formatter.debug_struct("Item::TraitAlias"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + if !_val.bounds.is_empty() { + formatter.field("bounds", Lite(&_val.bounds)); + } + formatter.finish() + } + syn::Item::Type(_val) => { + let mut formatter = formatter.debug_struct("Item::Type"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } + syn::Item::Union(_val) => { + let mut formatter = formatter.debug_struct("Item::Union"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + formatter.field("fields", Lite(&_val.fields)); + formatter.finish() + } + syn::Item::Use(_val) => { + let mut formatter = formatter.debug_struct("Item::Use"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.leading_colon { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon2); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("leading_colon", Print::ref_cast(val)); + } + formatter.field("tree", Lite(&_val.tree)); + formatter.finish() + } + syn::Item::Verbatim(_val) => { + formatter.write_str("Verbatim")?; + formatter.write_str("(`")?; + Display::fmt(_val, formatter)?; + formatter.write_str("`)")?; + Ok(()) + } + _ => unreachable!(), + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemConst"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("ty", Lite(&_val.ty)); + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemEnum"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + if !_val.variants.is_empty() { + formatter.field("variants", Lite(&_val.variants)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemExternCrate"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + if let Some(val) = &_val.rename { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::As, proc_macro2::Ident)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("rename", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemFn"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("sig", Lite(&_val.sig)); + formatter.field("block", Lite(&_val.block)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemForeignMod"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("abi", Lite(&_val.abi)); + if !_val.items.is_empty() { + formatter.field("items", Lite(&_val.items)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemImpl"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.defaultness { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Default); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("defaultness", Print::ref_cast(val)); + } + if let Some(val) = &_val.unsafety { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Unsafe); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("unsafety", Print::ref_cast(val)); + } + formatter.field("generics", Lite(&_val.generics)); + if let Some(val) = &_val.trait_ { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((Option, syn::Path, syn::token::For)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt( + &( + { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Option); + impl Debug for Print { + fn fmt( + &self, + formatter: &mut fmt::Formatter, + ) -> fmt::Result { + match &self.0 { + Some(_val) => { + formatter.write_str("Some")?; + Ok(()) + } + None => formatter.write_str("None"), + } + } + } + Print::ref_cast(&_val.0) + }, + Lite(&_val.1), + ), + formatter, + )?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("trait_", Print::ref_cast(val)); + } + formatter.field("self_ty", Lite(&_val.self_ty)); + if !_val.items.is_empty() { + formatter.field("items", Lite(&_val.items)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemMacro"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.ident { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(proc_macro2::Ident); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("ident", Print::ref_cast(val)); + } + formatter.field("mac", Lite(&_val.mac)); + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemMacro2"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("rules", Lite(&_val.rules)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemMod"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + if let Some(val) = &_val.content { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::Brace, Vec)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("content", Print::ref_cast(val)); + } + if let Some(val) = &_val.semi { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemStatic"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("ty", Lite(&_val.ty)); + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemStruct"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + formatter.field("fields", Lite(&_val.fields)); + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemTrait"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.unsafety { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Unsafe); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("unsafety", Print::ref_cast(val)); + } + if let Some(val) = &_val.auto_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Auto); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("auto_token", Print::ref_cast(val)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + if let Some(val) = &_val.colon_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("colon_token", Print::ref_cast(val)); + } + if !_val.supertraits.is_empty() { + formatter.field("supertraits", Lite(&_val.supertraits)); + } + if !_val.items.is_empty() { + formatter.field("items", Lite(&_val.items)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemTraitAlias"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + if !_val.bounds.is_empty() { + formatter.field("bounds", Lite(&_val.bounds)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemType"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemUnion"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + formatter.field("fields", Lite(&_val.fields)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ItemUse"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("vis", Lite(&_val.vis)); + if let Some(val) = &_val.leading_colon { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon2); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("leading_colon", Print::ref_cast(val)); + } + formatter.field("tree", Lite(&_val.tree)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Label"); + formatter.field("name", Lite(&_val.name)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Lifetime"); + formatter.field("ident", Lite(&_val.ident)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("LifetimeDef"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("lifetime", Lite(&_val.lifetime)); + if let Some(val) = &_val.colon_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("colon_token", Print::ref_cast(val)); + } + if !_val.bounds.is_empty() { + formatter.field("bounds", Lite(&_val.bounds)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::Lit::Str(_val) => write!(formatter, "{:?}", _val.value()), + syn::Lit::ByteStr(_val) => write!(formatter, "{:?}", _val.value()), + syn::Lit::Byte(_val) => write!(formatter, "{:?}", _val.value()), + syn::Lit::Char(_val) => write!(formatter, "{:?}", _val.value()), + syn::Lit::Int(_val) => write!(formatter, "{}", _val), + syn::Lit::Float(_val) => write!(formatter, "{}", _val), + syn::Lit::Bool(_val) => { + let mut formatter = formatter.debug_struct("Lit::Bool"); + formatter.field("value", Lite(&_val.value)); + formatter.finish() + } + syn::Lit::Verbatim(_val) => { + formatter.write_str("Verbatim")?; + formatter.write_str("(`")?; + Display::fmt(_val, formatter)?; + formatter.write_str("`)")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("LitBool"); + formatter.field("value", Lite(&_val.value)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + write!(formatter, "{:?}", _val.value()) + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + write!(formatter, "{:?}", _val.value()) + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + write!(formatter, "{:?}", _val.value()) + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + write!(formatter, "{}", _val) + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + write!(formatter, "{}", _val) + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + write!(formatter, "{:?}", _val.value()) + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Local"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("pat", Lite(&_val.pat)); + if let Some(val) = &_val.init { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::Eq, Box)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("init", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Macro"); + formatter.field("path", Lite(&_val.path)); + formatter.field("delimiter", Lite(&_val.delimiter)); + formatter.field("tokens", Lite(&_val.tokens)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::MacroDelimiter::Paren(_val) => { + formatter.write_str("Paren")?; + Ok(()) + } + syn::MacroDelimiter::Brace(_val) => { + formatter.write_str("Brace")?; + Ok(()) + } + syn::MacroDelimiter::Bracket(_val) => { + formatter.write_str("Bracket")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::Member::Named(_val) => { + formatter.write_str("Named")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::Member::Unnamed(_val) => { + formatter.write_str("Unnamed")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::Meta::Path(_val) => { + formatter.write_str("Path")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::Meta::List(_val) => { + let mut formatter = formatter.debug_struct("Meta::List"); + formatter.field("path", Lite(&_val.path)); + if !_val.nested.is_empty() { + formatter.field("nested", Lite(&_val.nested)); + } + formatter.finish() + } + syn::Meta::NameValue(_val) => { + let mut formatter = formatter.debug_struct("Meta::NameValue"); + formatter.field("path", Lite(&_val.path)); + formatter.field("lit", Lite(&_val.lit)); + formatter.finish() + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("MetaList"); + formatter.field("path", Lite(&_val.path)); + if !_val.nested.is_empty() { + formatter.field("nested", Lite(&_val.nested)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("MetaNameValue"); + formatter.field("path", Lite(&_val.path)); + formatter.field("lit", Lite(&_val.lit)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("MethodTurbofish"); + if !_val.args.is_empty() { + formatter.field("args", Lite(&_val.args)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::NestedMeta::Meta(_val) => { + formatter.write_str("Meta")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::NestedMeta::Lit(_val) => { + formatter.write_str("Lit")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("ParenthesizedGenericArguments"); + if !_val.inputs.is_empty() { + formatter.field("inputs", Lite(&_val.inputs)); + } + formatter.field("output", Lite(&_val.output)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::Pat::Box(_val) => { + let mut formatter = formatter.debug_struct("Pat::Box"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("pat", Lite(&_val.pat)); + formatter.finish() + } + syn::Pat::Ident(_val) => { + let mut formatter = formatter.debug_struct("Pat::Ident"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.by_ref { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Ref); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("by_ref", Print::ref_cast(val)); + } + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("ident", Lite(&_val.ident)); + if let Some(val) = &_val.subpat { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::At, Box)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("subpat", Print::ref_cast(val)); + } + formatter.finish() + } + syn::Pat::Lit(_val) => { + let mut formatter = formatter.debug_struct("Pat::Lit"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } + syn::Pat::Macro(_val) => { + let mut formatter = formatter.debug_struct("Pat::Macro"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("mac", Lite(&_val.mac)); + formatter.finish() + } + syn::Pat::Or(_val) => { + let mut formatter = formatter.debug_struct("Pat::Or"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.leading_vert { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Or); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("leading_vert", Print::ref_cast(val)); + } + if !_val.cases.is_empty() { + formatter.field("cases", Lite(&_val.cases)); + } + formatter.finish() + } + syn::Pat::Path(_val) => { + let mut formatter = formatter.debug_struct("Pat::Path"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.qself { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::QSelf); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("qself", Print::ref_cast(val)); + } + formatter.field("path", Lite(&_val.path)); + formatter.finish() + } + syn::Pat::Range(_val) => { + let mut formatter = formatter.debug_struct("Pat::Range"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("lo", Lite(&_val.lo)); + formatter.field("limits", Lite(&_val.limits)); + formatter.field("hi", Lite(&_val.hi)); + formatter.finish() + } + syn::Pat::Reference(_val) => { + let mut formatter = formatter.debug_struct("Pat::Reference"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("pat", Lite(&_val.pat)); + formatter.finish() + } + syn::Pat::Rest(_val) => { + let mut formatter = formatter.debug_struct("Pat::Rest"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.finish() + } + syn::Pat::Slice(_val) => { + let mut formatter = formatter.debug_struct("Pat::Slice"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if !_val.elems.is_empty() { + formatter.field("elems", Lite(&_val.elems)); + } + formatter.finish() + } + syn::Pat::Struct(_val) => { + let mut formatter = formatter.debug_struct("Pat::Struct"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("path", Lite(&_val.path)); + if !_val.fields.is_empty() { + formatter.field("fields", Lite(&_val.fields)); + } + if let Some(val) = &_val.dot2_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Dot2); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("dot2_token", Print::ref_cast(val)); + } + formatter.finish() + } + syn::Pat::Tuple(_val) => { + let mut formatter = formatter.debug_struct("Pat::Tuple"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if !_val.elems.is_empty() { + formatter.field("elems", Lite(&_val.elems)); + } + formatter.finish() + } + syn::Pat::TupleStruct(_val) => { + let mut formatter = formatter.debug_struct("Pat::TupleStruct"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("path", Lite(&_val.path)); + formatter.field("pat", Lite(&_val.pat)); + formatter.finish() + } + syn::Pat::Type(_val) => { + let mut formatter = formatter.debug_struct("Pat::Type"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("pat", Lite(&_val.pat)); + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } + syn::Pat::Verbatim(_val) => { + formatter.write_str("Verbatim")?; + formatter.write_str("(`")?; + Display::fmt(_val, formatter)?; + formatter.write_str("`)")?; + Ok(()) + } + syn::Pat::Wild(_val) => { + let mut formatter = formatter.debug_struct("Pat::Wild"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.finish() + } + _ => unreachable!(), + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatBox"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("pat", Lite(&_val.pat)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatIdent"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.by_ref { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Ref); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("by_ref", Print::ref_cast(val)); + } + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("ident", Lite(&_val.ident)); + if let Some(val) = &_val.subpat { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::At, Box)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("subpat", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatLit"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("expr", Lite(&_val.expr)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatMacro"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("mac", Lite(&_val.mac)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatOr"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.leading_vert { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Or); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("leading_vert", Print::ref_cast(val)); + } + if !_val.cases.is_empty() { + formatter.field("cases", Lite(&_val.cases)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatPath"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.qself { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::QSelf); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("qself", Print::ref_cast(val)); + } + formatter.field("path", Lite(&_val.path)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatRange"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("lo", Lite(&_val.lo)); + formatter.field("limits", Lite(&_val.limits)); + formatter.field("hi", Lite(&_val.hi)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatReference"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("pat", Lite(&_val.pat)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatRest"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatSlice"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if !_val.elems.is_empty() { + formatter.field("elems", Lite(&_val.elems)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatStruct"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("path", Lite(&_val.path)); + if !_val.fields.is_empty() { + formatter.field("fields", Lite(&_val.fields)); + } + if let Some(val) = &_val.dot2_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Dot2); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("dot2_token", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatTuple"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if !_val.elems.is_empty() { + formatter.field("elems", Lite(&_val.elems)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatTupleStruct"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("path", Lite(&_val.path)); + formatter.field("pat", Lite(&_val.pat)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatType"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("pat", Lite(&_val.pat)); + formatter.field("ty", Lite(&_val.ty)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PatWild"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Path"); + if let Some(val) = &_val.leading_colon { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon2); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("leading_colon", Print::ref_cast(val)); + } + if !_val.segments.is_empty() { + formatter.field("segments", Lite(&_val.segments)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::PathArguments::None => formatter.write_str("None"), + syn::PathArguments::AngleBracketed(_val) => { + let mut formatter = formatter + .debug_struct("PathArguments::AngleBracketed"); + if let Some(val) = &_val.colon2_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon2); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("colon2_token", Print::ref_cast(val)); + } + if !_val.args.is_empty() { + formatter.field("args", Lite(&_val.args)); + } + formatter.finish() + } + syn::PathArguments::Parenthesized(_val) => { + let mut formatter = formatter + .debug_struct("PathArguments::Parenthesized"); + if !_val.inputs.is_empty() { + formatter.field("inputs", Lite(&_val.inputs)); + } + formatter.field("output", Lite(&_val.output)); + formatter.finish() + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PathSegment"); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("arguments", Lite(&_val.arguments)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PredicateEq"); + formatter.field("lhs_ty", Lite(&_val.lhs_ty)); + formatter.field("rhs_ty", Lite(&_val.rhs_ty)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PredicateLifetime"); + formatter.field("lifetime", Lite(&_val.lifetime)); + if !_val.bounds.is_empty() { + formatter.field("bounds", Lite(&_val.bounds)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("PredicateType"); + if let Some(val) = &_val.lifetimes { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::BoundLifetimes); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("lifetimes", Print::ref_cast(val)); + } + formatter.field("bounded_ty", Lite(&_val.bounded_ty)); + if !_val.bounds.is_empty() { + formatter.field("bounds", Lite(&_val.bounds)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("QSelf"); + formatter.field("ty", Lite(&_val.ty)); + formatter.field("position", Lite(&_val.position)); + if let Some(val) = &_val.as_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::As); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("as_token", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::RangeLimits::HalfOpen(_val) => { + formatter.write_str("HalfOpen")?; + Ok(()) + } + syn::RangeLimits::Closed(_val) => { + formatter.write_str("Closed")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Receiver"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + if let Some(val) = &_val.reference { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::And, Option)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt( + { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(Option); + impl Debug for Print { + fn fmt( + &self, + formatter: &mut fmt::Formatter, + ) -> fmt::Result { + match &self.0 { + Some(_val) => { + formatter.write_str("Some")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + None => formatter.write_str("None"), + } + } + } + Print::ref_cast(&_val.1) + }, + formatter, + )?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("reference", Print::ref_cast(val)); + } + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::ReturnType::Default => formatter.write_str("Default"), + syn::ReturnType::Type(_v0, _v1) => { + let mut formatter = formatter.debug_tuple("Type"); + formatter.field(Lite(_v1)); + formatter.finish() + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Signature"); + if let Some(val) = &_val.constness { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Const); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("constness", Print::ref_cast(val)); + } + if let Some(val) = &_val.asyncness { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Async); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("asyncness", Print::ref_cast(val)); + } + if let Some(val) = &_val.unsafety { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Unsafe); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("unsafety", Print::ref_cast(val)); + } + if let Some(val) = &_val.abi { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Abi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("abi", Print::ref_cast(val)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + if !_val.inputs.is_empty() { + formatter.field("inputs", Lite(&_val.inputs)); + } + if let Some(val) = &_val.variadic { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Variadic); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("variadic", Print::ref_cast(val)); + } + formatter.field("output", Lite(&_val.output)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::Stmt::Local(_val) => { + formatter.write_str("Local")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::Stmt::Item(_val) => { + formatter.write_str("Item")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::Stmt::Expr(_val) => { + formatter.write_str("Expr")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::Stmt::Semi(_v0, _v1) => { + let mut formatter = formatter.debug_tuple("Semi"); + formatter.field(Lite(_v0)); + formatter.finish() + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TraitBound"); + if let Some(val) = &_val.paren_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Paren); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("paren_token", Print::ref_cast(val)); + } + formatter.field("modifier", Lite(&_val.modifier)); + if let Some(val) = &_val.lifetimes { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::BoundLifetimes); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("lifetimes", Print::ref_cast(val)); + } + formatter.field("path", Lite(&_val.path)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::TraitBoundModifier::None => formatter.write_str("None"), + syn::TraitBoundModifier::Maybe(_val) => { + formatter.write_str("Maybe")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::TraitItem::Const(_val) => { + let mut formatter = formatter.debug_struct("TraitItem::Const"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("ty", Lite(&_val.ty)); + if let Some(val) = &_val.default { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::Eq, syn::Expr)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("default", Print::ref_cast(val)); + } + formatter.finish() + } + syn::TraitItem::Method(_val) => { + let mut formatter = formatter.debug_struct("TraitItem::Method"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("sig", Lite(&_val.sig)); + if let Some(val) = &_val.default { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Block); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("default", Print::ref_cast(val)); + } + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } + syn::TraitItem::Type(_val) => { + let mut formatter = formatter.debug_struct("TraitItem::Type"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + if let Some(val) = &_val.colon_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("colon_token", Print::ref_cast(val)); + } + if !_val.bounds.is_empty() { + formatter.field("bounds", Lite(&_val.bounds)); + } + if let Some(val) = &_val.default { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::Eq, syn::Type)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("default", Print::ref_cast(val)); + } + formatter.finish() + } + syn::TraitItem::Macro(_val) => { + let mut formatter = formatter.debug_struct("TraitItem::Macro"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("mac", Lite(&_val.mac)); + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } + syn::TraitItem::Verbatim(_val) => { + formatter.write_str("Verbatim")?; + formatter.write_str("(`")?; + Display::fmt(_val, formatter)?; + formatter.write_str("`)")?; + Ok(()) + } + _ => unreachable!(), + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TraitItemConst"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("ty", Lite(&_val.ty)); + if let Some(val) = &_val.default { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::Eq, syn::Expr)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("default", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TraitItemMacro"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("mac", Lite(&_val.mac)); + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TraitItemMethod"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("sig", Lite(&_val.sig)); + if let Some(val) = &_val.default { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Block); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("default", Print::ref_cast(val)); + } + if let Some(val) = &_val.semi_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Semi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("semi_token", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TraitItemType"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("generics", Lite(&_val.generics)); + if let Some(val) = &_val.colon_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("colon_token", Print::ref_cast(val)); + } + if !_val.bounds.is_empty() { + formatter.field("bounds", Lite(&_val.bounds)); + } + if let Some(val) = &_val.default { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::Eq, syn::Type)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("default", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::Type::Array(_val) => { + let mut formatter = formatter.debug_struct("Type::Array"); + formatter.field("elem", Lite(&_val.elem)); + formatter.field("len", Lite(&_val.len)); + formatter.finish() + } + syn::Type::BareFn(_val) => { + let mut formatter = formatter.debug_struct("Type::BareFn"); + if let Some(val) = &_val.lifetimes { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::BoundLifetimes); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("lifetimes", Print::ref_cast(val)); + } + if let Some(val) = &_val.unsafety { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Unsafe); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("unsafety", Print::ref_cast(val)); + } + if let Some(val) = &_val.abi { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Abi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("abi", Print::ref_cast(val)); + } + if !_val.inputs.is_empty() { + formatter.field("inputs", Lite(&_val.inputs)); + } + if let Some(val) = &_val.variadic { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Variadic); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("variadic", Print::ref_cast(val)); + } + formatter.field("output", Lite(&_val.output)); + formatter.finish() + } + syn::Type::Group(_val) => { + let mut formatter = formatter.debug_struct("Type::Group"); + formatter.field("elem", Lite(&_val.elem)); + formatter.finish() + } + syn::Type::ImplTrait(_val) => { + let mut formatter = formatter.debug_struct("Type::ImplTrait"); + if !_val.bounds.is_empty() { + formatter.field("bounds", Lite(&_val.bounds)); + } + formatter.finish() + } + syn::Type::Infer(_val) => { + let mut formatter = formatter.debug_struct("Type::Infer"); + formatter.finish() + } + syn::Type::Macro(_val) => { + let mut formatter = formatter.debug_struct("Type::Macro"); + formatter.field("mac", Lite(&_val.mac)); + formatter.finish() + } + syn::Type::Never(_val) => { + let mut formatter = formatter.debug_struct("Type::Never"); + formatter.finish() + } + syn::Type::Paren(_val) => { + let mut formatter = formatter.debug_struct("Type::Paren"); + formatter.field("elem", Lite(&_val.elem)); + formatter.finish() + } + syn::Type::Path(_val) => { + let mut formatter = formatter.debug_struct("Type::Path"); + if let Some(val) = &_val.qself { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::QSelf); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("qself", Print::ref_cast(val)); + } + formatter.field("path", Lite(&_val.path)); + formatter.finish() + } + syn::Type::Ptr(_val) => { + let mut formatter = formatter.debug_struct("Type::Ptr"); + if let Some(val) = &_val.const_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Const); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("const_token", Print::ref_cast(val)); + } + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("elem", Lite(&_val.elem)); + formatter.finish() + } + syn::Type::Reference(_val) => { + let mut formatter = formatter.debug_struct("Type::Reference"); + if let Some(val) = &_val.lifetime { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Lifetime); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("lifetime", Print::ref_cast(val)); + } + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("elem", Lite(&_val.elem)); + formatter.finish() + } + syn::Type::Slice(_val) => { + let mut formatter = formatter.debug_struct("Type::Slice"); + formatter.field("elem", Lite(&_val.elem)); + formatter.finish() + } + syn::Type::TraitObject(_val) => { + let mut formatter = formatter.debug_struct("Type::TraitObject"); + if let Some(val) = &_val.dyn_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Dyn); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("dyn_token", Print::ref_cast(val)); + } + if !_val.bounds.is_empty() { + formatter.field("bounds", Lite(&_val.bounds)); + } + formatter.finish() + } + syn::Type::Tuple(_val) => { + let mut formatter = formatter.debug_struct("Type::Tuple"); + if !_val.elems.is_empty() { + formatter.field("elems", Lite(&_val.elems)); + } + formatter.finish() + } + syn::Type::Verbatim(_val) => { + formatter.write_str("Verbatim")?; + formatter.write_str("(`")?; + Display::fmt(_val, formatter)?; + formatter.write_str("`)")?; + Ok(()) + } + _ => unreachable!(), + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypeArray"); + formatter.field("elem", Lite(&_val.elem)); + formatter.field("len", Lite(&_val.len)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypeBareFn"); + if let Some(val) = &_val.lifetimes { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::BoundLifetimes); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("lifetimes", Print::ref_cast(val)); + } + if let Some(val) = &_val.unsafety { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Unsafe); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("unsafety", Print::ref_cast(val)); + } + if let Some(val) = &_val.abi { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Abi); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("abi", Print::ref_cast(val)); + } + if !_val.inputs.is_empty() { + formatter.field("inputs", Lite(&_val.inputs)); + } + if let Some(val) = &_val.variadic { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Variadic); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("variadic", Print::ref_cast(val)); + } + formatter.field("output", Lite(&_val.output)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypeGroup"); + formatter.field("elem", Lite(&_val.elem)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypeImplTrait"); + if !_val.bounds.is_empty() { + formatter.field("bounds", Lite(&_val.bounds)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypeInfer"); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypeMacro"); + formatter.field("mac", Lite(&_val.mac)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypeNever"); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypeParam"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("ident", Lite(&_val.ident)); + if let Some(val) = &_val.colon_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Colon); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("colon_token", Print::ref_cast(val)); + } + if !_val.bounds.is_empty() { + formatter.field("bounds", Lite(&_val.bounds)); + } + if let Some(val) = &_val.eq_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Eq); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("eq_token", Print::ref_cast(val)); + } + if let Some(val) = &_val.default { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Type); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("default", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::TypeParamBound::Trait(_val) => { + formatter.write_str("Trait")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::TypeParamBound::Lifetime(_val) => { + formatter.write_str("Lifetime")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypeParen"); + formatter.field("elem", Lite(&_val.elem)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypePath"); + if let Some(val) = &_val.qself { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::QSelf); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("qself", Print::ref_cast(val)); + } + formatter.field("path", Lite(&_val.path)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypePtr"); + if let Some(val) = &_val.const_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Const); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("const_token", Print::ref_cast(val)); + } + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("elem", Lite(&_val.elem)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypeReference"); + if let Some(val) = &_val.lifetime { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::Lifetime); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("lifetime", Print::ref_cast(val)); + } + if let Some(val) = &_val.mutability { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Mut); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("mutability", Print::ref_cast(val)); + } + formatter.field("elem", Lite(&_val.elem)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypeSlice"); + formatter.field("elem", Lite(&_val.elem)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypeTraitObject"); + if let Some(val) = &_val.dyn_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::Dyn); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("dyn_token", Print::ref_cast(val)); + } + if !_val.bounds.is_empty() { + formatter.field("bounds", Lite(&_val.bounds)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("TypeTuple"); + if !_val.elems.is_empty() { + formatter.field("elems", Lite(&_val.elems)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::UnOp::Deref(_val) => { + formatter.write_str("Deref")?; + Ok(()) + } + syn::UnOp::Not(_val) => { + formatter.write_str("Not")?; + Ok(()) + } + syn::UnOp::Neg(_val) => { + formatter.write_str("Neg")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("UseGlob"); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("UseGroup"); + if !_val.items.is_empty() { + formatter.field("items", Lite(&_val.items)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("UseName"); + formatter.field("ident", Lite(&_val.ident)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("UsePath"); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("tree", Lite(&_val.tree)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("UseRename"); + formatter.field("ident", Lite(&_val.ident)); + formatter.field("rename", Lite(&_val.rename)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::UseTree::Path(_val) => { + formatter.write_str("Path")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::UseTree::Name(_val) => { + formatter.write_str("Name")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::UseTree::Rename(_val) => { + formatter.write_str("Rename")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::UseTree::Glob(_val) => { + formatter.write_str("Glob")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::UseTree::Group(_val) => { + formatter.write_str("Group")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Variadic"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("Variant"); + if !_val.attrs.is_empty() { + formatter.field("attrs", Lite(&_val.attrs)); + } + formatter.field("ident", Lite(&_val.ident)); + formatter.field("fields", Lite(&_val.fields)); + if let Some(val) = &_val.discriminant { + #[derive(RefCast)] + #[repr(transparent)] + struct Print((syn::token::Eq, syn::Expr)); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + let _val = &self.0; + formatter.write_str("(")?; + Debug::fmt(Lite(&_val.1), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + formatter.field("discriminant", Print::ref_cast(val)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("VisCrate"); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("VisPublic"); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("VisRestricted"); + if let Some(val) = &_val.in_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::In); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("in_token", Print::ref_cast(val)); + } + formatter.field("path", Lite(&_val.path)); + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::Visibility::Public(_val) => { + let mut formatter = formatter.debug_struct("Visibility::Public"); + formatter.finish() + } + syn::Visibility::Crate(_val) => { + let mut formatter = formatter.debug_struct("Visibility::Crate"); + formatter.finish() + } + syn::Visibility::Restricted(_val) => { + let mut formatter = formatter.debug_struct("Visibility::Restricted"); + if let Some(val) = &_val.in_token { + #[derive(RefCast)] + #[repr(transparent)] + struct Print(syn::token::In); + impl Debug for Print { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Some")?; + Ok(()) + } + } + formatter.field("in_token", Print::ref_cast(val)); + } + formatter.field("path", Lite(&_val.path)); + formatter.finish() + } + syn::Visibility::Inherited => formatter.write_str("Inherited"), + } + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + let mut formatter = formatter.debug_struct("WhereClause"); + if !_val.predicates.is_empty() { + formatter.field("predicates", Lite(&_val.predicates)); + } + formatter.finish() + } +} +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let _val = &self.value; + match _val { + syn::WherePredicate::Type(_val) => { + formatter.write_str("Type")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::WherePredicate::Lifetime(_val) => { + formatter.write_str("Lifetime")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + syn::WherePredicate::Eq(_val) => { + formatter.write_str("Eq")?; + formatter.write_str("(")?; + Debug::fmt(Lite(_val), formatter)?; + formatter.write_str(")")?; + Ok(()) + } + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/debug/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/debug/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..0a0991a92404488bf531f2501a5e5aa8d05c899c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/debug/mod.rs @@ -0,0 +1,125 @@ +#![allow( + clippy::no_effect_underscore_binding, + clippy::too_many_lines, + clippy::used_underscore_binding +)] + +#[rustfmt::skip] +mod gen; + +use proc_macro2::{Ident, Literal, TokenStream}; +use ref_cast::RefCast; +use std::fmt::{self, Debug}; +use std::ops::Deref; +use syn::punctuated::Punctuated; + +#[derive(RefCast)] +#[repr(transparent)] +pub struct Lite { + value: T, +} + +#[allow(non_snake_case)] +pub fn Lite(value: &T) -> &Lite { + Lite::ref_cast(value) +} + +impl Deref for Lite { + type Target = T; + + fn deref(&self) -> &Self::Target { + &self.value + } +} + +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + write!(formatter, "{}", self.value) + } +} + +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + write!(formatter, "{}", self.value) + } +} + +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + write!(formatter, "{}", self.value) + } +} + +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + write!(formatter, "{:?}", self.value) + } +} + +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + write!(formatter, "{:?}", self.value.to_string()) + } +} + +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + write!(formatter, "{}", self.value) + } +} + +impl Debug for Lite { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + let string = self.value.to_string(); + if string.len() <= 80 { + write!(formatter, "TokenStream(`{}`)", self.value) + } else { + formatter + .debug_tuple("TokenStream") + .field(&format_args!("`{}`", string)) + .finish() + } + } +} + +impl<'a, T> Debug for Lite<&'a T> +where + Lite: Debug, +{ + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + Debug::fmt(Lite(self.value), formatter) + } +} + +impl Debug for Lite> +where + Lite: Debug, +{ + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + Debug::fmt(Lite(&*self.value), formatter) + } +} + +impl Debug for Lite> +where + Lite: Debug, +{ + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter + .debug_list() + .entries(self.value.iter().map(Lite)) + .finish() + } +} + +impl Debug for Lite> +where + Lite: Debug, +{ + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter + .debug_list() + .entries(self.value.iter().map(Lite)) + .finish() + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/macros/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/macros/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..5ca88b083b9ed921803f12a17886c4d8c7855cc7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/macros/mod.rs @@ -0,0 +1,79 @@ +#![allow(unused_macros, unused_macro_rules)] + +#[path = "../debug/mod.rs"] +pub mod debug; + +use syn::parse::{Parse, Result}; + +macro_rules! errorf { + ($($tt:tt)*) => {{ + use ::std::io::Write; + let stderr = ::std::io::stderr(); + write!(stderr.lock(), $($tt)*).unwrap(); + }}; +} + +macro_rules! punctuated { + ($($e:expr,)+) => {{ + let mut seq = ::syn::punctuated::Punctuated::new(); + $( + seq.push($e); + )+ + seq + }}; + + ($($e:expr),+) => { + punctuated!($($e,)+) + }; +} + +macro_rules! snapshot { + ($($args:tt)*) => { + snapshot_impl!(() $($args)*) + }; +} + +macro_rules! snapshot_impl { + (($expr:ident) as $t:ty, @$snapshot:literal) => { + let $expr = crate::macros::Tokens::parse::<$t>($expr).unwrap(); + let debug = crate::macros::debug::Lite(&$expr); + if !cfg!(miri) { + insta::assert_debug_snapshot!(debug, @$snapshot); + } + }; + (($($expr:tt)*) as $t:ty, @$snapshot:literal) => {{ + let syntax_tree = crate::macros::Tokens::parse::<$t>($($expr)*).unwrap(); + let debug = crate::macros::debug::Lite(&syntax_tree); + if !cfg!(miri) { + insta::assert_debug_snapshot!(debug, @$snapshot); + } + syntax_tree + }}; + (($($expr:tt)*) , @$snapshot:literal) => {{ + let syntax_tree = $($expr)*; + let debug = crate::macros::debug::Lite(&syntax_tree); + if !cfg!(miri) { + insta::assert_debug_snapshot!(debug, @$snapshot); + } + syntax_tree + }}; + (($($expr:tt)*) $next:tt $($rest:tt)*) => { + snapshot_impl!(($($expr)* $next) $($rest)*) + }; +} + +pub trait Tokens { + fn parse(self) -> Result; +} + +impl<'a> Tokens for &'a str { + fn parse(self) -> Result { + syn::parse_str(self) + } +} + +impl Tokens for proc_macro2::TokenStream { + fn parse(self) -> Result { + syn::parse2(self) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/regression/issue1108.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/regression/issue1108.rs new file mode 100644 index 0000000000000000000000000000000000000000..4fd30c0c7a84a8caa6411636a2d44ff4fb41fc71 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/regression/issue1108.rs @@ -0,0 +1,5 @@ +#[test] +fn issue1108() { + let data = "impl>::x for"; + _ = syn::parse_file(data); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/regression/issue1235.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/regression/issue1235.rs new file mode 100644 index 0000000000000000000000000000000000000000..8836030664b8b7155fc34c4b83367e5c19a3e4ed --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/regression/issue1235.rs @@ -0,0 +1,32 @@ +use proc_macro2::{Delimiter, Group}; +use quote::quote; + +#[test] +fn main() { + // Okay. Rustc allows top-level `static` with no value syntactically, but + // not semantically. Syn parses as Item::Verbatim. + let tokens = quote! { + pub static FOO: usize; + pub static BAR: usize; + }; + let file = syn::parse2::(tokens).unwrap(); + println!("{:#?}", file); + + // Okay. + let inner = Group::new( + Delimiter::None, + quote!(static FOO: usize = 0; pub static BAR: usize = 0), + ); + let tokens = quote!(pub #inner;); + let file = syn::parse2::(tokens).unwrap(); + println!("{:#?}", file); + + // Formerly parser crash. + let inner = Group::new( + Delimiter::None, + quote!(static FOO: usize; pub static BAR: usize), + ); + let tokens = quote!(pub #inner;); + let file = syn::parse2::(tokens).unwrap(); + println!("{:#?}", file); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/repo/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/repo/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..8418b871925fb692920b5761545ba42a70bb6bb7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/repo/mod.rs @@ -0,0 +1,215 @@ +#![allow(clippy::manual_assert)] + +mod progress; + +use self::progress::Progress; +use anyhow::Result; +use flate2::read::GzDecoder; +use std::fs; +use std::path::Path; +use tar::Archive; +use walkdir::DirEntry; + +const REVISION: &str = "98ad6a5519651af36e246c0335c964dd52c554ba"; + +#[rustfmt::skip] +static EXCLUDE_FILES: &[&str] = &[ + // TODO: impl ~const T {} + // https://github.com/dtolnay/syn/issues/1051 + "src/test/ui/rfc-2632-const-trait-impl/syntax.rs", + + // Compile-fail expr parameter in const generic position: f::<1 + 2>() + "src/test/ui/const-generics/early/closing-args-token.rs", + "src/test/ui/const-generics/early/const-expression-parameter.rs", + + // Need at least one trait in impl Trait, no such type as impl 'static + "src/test/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.rs", + + // Deprecated anonymous parameter syntax in traits + "src/test/ui/issues/issue-13105.rs", + "src/test/ui/issues/issue-13775.rs", + "src/test/ui/issues/issue-34074.rs", + "src/test/ui/proc-macro/trait-fn-args-2015.rs", + "src/tools/rustfmt/tests/source/trait.rs", + "src/tools/rustfmt/tests/target/trait.rs", + + // Various extensions to Rust syntax made up by rust-analyzer + "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/0012_type_item_where_clause.rs", + "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/0040_crate_keyword_vis.rs", + "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/0131_existential_type.rs", + "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/0179_use_tree_abs_star.rs", + "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/0188_const_param_default_path.rs", + "src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0015_use_tree.rs", + "src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0029_range_forms.rs", + "src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0051_parameter_attrs.rs", + "src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0055_dot_dot_dot.rs", + "src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0068_item_modifiers.rs", + "src/tools/rust-analyzer/crates/syntax/test_data/parser/validation/0031_block_inner_attrs.rs", + "src/tools/rust-analyzer/crates/syntax/test_data/parser/validation/0045_ambiguous_trait_object.rs", + "src/tools/rust-analyzer/crates/syntax/test_data/parser/validation/0046_mutable_const_item.rs", + + // Placeholder syntax for "throw expressions" + "src/test/pretty/yeet-expr.rs", + "src/test/ui/try-trait/yeet-for-option.rs", + "src/test/ui/try-trait/yeet-for-result.rs", + + // Excessive nesting + "src/test/ui/issues/issue-74564-if-expr-stack-overflow.rs", + + // Testing tools on invalid syntax + "src/test/run-make/translation/test.rs", + "src/test/ui/generics/issue-94432-garbage-ice.rs", + "src/tools/rustfmt/tests/coverage/target/comments.rs", + "src/tools/rustfmt/tests/parser/issue-4126/invalid.rs", + "src/tools/rustfmt/tests/parser/issue_4418.rs", + "src/tools/rustfmt/tests/parser/unclosed-delims/issue_4466.rs", + "src/tools/rustfmt/tests/source/configs/disable_all_formatting/true.rs", + "src/tools/rustfmt/tests/source/configs/spaces_around_ranges/false.rs", + "src/tools/rustfmt/tests/source/configs/spaces_around_ranges/true.rs", + "src/tools/rustfmt/tests/source/type.rs", + "src/tools/rustfmt/tests/target/configs/spaces_around_ranges/false.rs", + "src/tools/rustfmt/tests/target/configs/spaces_around_ranges/true.rs", + "src/tools/rustfmt/tests/target/type.rs", + + // Generated file containing a top-level expression, used with `include!` + "compiler/rustc_codegen_gcc/src/intrinsic/archs.rs", + + // Clippy lint lists represented as expressions + "src/tools/clippy/clippy_lints/src/lib.deprecated.rs", + "src/tools/clippy/clippy_lints/src/lib.register_all.rs", + "src/tools/clippy/clippy_lints/src/lib.register_cargo.rs", + "src/tools/clippy/clippy_lints/src/lib.register_complexity.rs", + "src/tools/clippy/clippy_lints/src/lib.register_correctness.rs", + "src/tools/clippy/clippy_lints/src/lib.register_internal.rs", + "src/tools/clippy/clippy_lints/src/lib.register_lints.rs", + "src/tools/clippy/clippy_lints/src/lib.register_nursery.rs", + "src/tools/clippy/clippy_lints/src/lib.register_pedantic.rs", + "src/tools/clippy/clippy_lints/src/lib.register_perf.rs", + "src/tools/clippy/clippy_lints/src/lib.register_restriction.rs", + "src/tools/clippy/clippy_lints/src/lib.register_style.rs", + "src/tools/clippy/clippy_lints/src/lib.register_suspicious.rs", + + // Not actually test cases + "src/test/ui/lint/expansion-time-include.rs", + "src/test/ui/macros/auxiliary/macro-comma-support.rs", + "src/test/ui/macros/auxiliary/macro-include-items-expr.rs", + "src/test/ui/macros/include-single-expr-helper.rs", + "src/test/ui/macros/include-single-expr-helper-1.rs", + "src/test/ui/parser/issues/auxiliary/issue-21146-inc.rs", +]; + +#[rustfmt::skip] +static EXCLUDE_DIRS: &[&str] = &[ + // Inputs that intentionally do not parse + "src/tools/rust-analyzer/crates/parser/test_data/parser/err", + "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/err", + + // Inputs that lex but do not necessarily parse + "src/tools/rust-analyzer/crates/parser/test_data/lexer", + + // Inputs that used to crash rust-analyzer, but aren't necessarily supposed to parse + "src/tools/rust-analyzer/crates/syntax/test_data/parser/fuzz-failures", + "src/tools/rust-analyzer/crates/syntax/test_data/reparse/fuzz-failures", +]; + +pub fn base_dir_filter(entry: &DirEntry) -> bool { + let path = entry.path(); + + let mut path_string = path.to_string_lossy(); + if cfg!(windows) { + path_string = path_string.replace('\\', "/").into(); + } + let path_string = if path_string == "tests/rust" { + return true; + } else if let Some(path) = path_string.strip_prefix("tests/rust/") { + path + } else { + panic!("unexpected path in Rust dist: {}", path_string); + }; + + if path.is_dir() { + return !EXCLUDE_DIRS.contains(&path_string); + } + + if path.extension().map_or(true, |e| e != "rs") { + return false; + } + + if path_string.starts_with("src/test/ui") || path_string.starts_with("src/test/rustdoc-ui") { + let stderr_path = path.with_extension("stderr"); + if stderr_path.exists() { + // Expected to fail in some way + return false; + } + } + + !EXCLUDE_FILES.contains(&path_string) +} + +#[allow(dead_code)] +pub fn edition(path: &Path) -> &'static str { + if path.ends_with("dyn-2015-no-warnings-without-lints.rs") { + "2015" + } else { + "2018" + } +} + +pub fn clone_rust() { + let needs_clone = match fs::read_to_string("tests/rust/COMMIT") { + Err(_) => true, + Ok(contents) => contents.trim() != REVISION, + }; + if needs_clone { + download_and_unpack().unwrap(); + } + let mut missing = String::new(); + let test_src = Path::new("tests/rust"); + for exclude in EXCLUDE_FILES { + if !test_src.join(exclude).is_file() { + missing += "\ntests/rust/"; + missing += exclude; + } + } + for exclude in EXCLUDE_DIRS { + if !test_src.join(exclude).is_dir() { + missing += "\ntests/rust/"; + missing += exclude; + missing += "/"; + } + } + if !missing.is_empty() { + panic!("excluded test file does not exist:{}\n", missing); + } +} + +fn download_and_unpack() -> Result<()> { + let url = format!( + "https://github.com/rust-lang/rust/archive/{}.tar.gz", + REVISION + ); + let response = reqwest::blocking::get(url)?.error_for_status()?; + let progress = Progress::new(response); + let decoder = GzDecoder::new(progress); + let mut archive = Archive::new(decoder); + let prefix = format!("rust-{}", REVISION); + + let tests_rust = Path::new("tests/rust"); + if tests_rust.exists() { + fs::remove_dir_all(tests_rust)?; + } + + for entry in archive.entries()? { + let mut entry = entry?; + let path = entry.path()?; + if path == Path::new("pax_global_header") { + continue; + } + let relative = path.strip_prefix(&prefix)?; + let out = tests_rust.join(relative); + entry.unpack(&out)?; + } + + fs::write("tests/rust/COMMIT", REVISION)?; + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/repo/progress.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/repo/progress.rs new file mode 100644 index 0000000000000000000000000000000000000000..28c8a44b1298a832f359340ca81fbd7d8763b766 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/repo/progress.rs @@ -0,0 +1,37 @@ +use std::io::{Read, Result}; +use std::time::{Duration, Instant}; + +pub struct Progress { + bytes: usize, + tick: Instant, + stream: R, +} + +impl Progress { + pub fn new(stream: R) -> Self { + Progress { + bytes: 0, + tick: Instant::now() + Duration::from_millis(2000), + stream, + } + } +} + +impl Read for Progress { + fn read(&mut self, buf: &mut [u8]) -> Result { + let num = self.stream.read(buf)?; + self.bytes += num; + let now = Instant::now(); + if now > self.tick { + self.tick = now + Duration::from_millis(500); + errorf!("downloading... {} bytes\n", self.bytes); + } + Ok(num) + } +} + +impl Drop for Progress { + fn drop(&mut self) { + errorf!("done ({} bytes)\n", self.bytes); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/test_stmt.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/test_stmt.rs new file mode 100644 index 0000000000000000000000000000000000000000..f444e5b49e153d650dde52a7b042c469af8bb388 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/test_stmt.rs @@ -0,0 +1,93 @@ +#![allow(clippy::assertions_on_result_states, clippy::non_ascii_literal)] + +#[macro_use] +mod macros; + +use proc_macro2::{Delimiter, Group, Ident, Span, TokenStream, TokenTree}; +use quote::quote; +use std::iter::FromIterator; +use syn::Stmt; + +#[test] +fn test_raw_operator() { + let stmt = syn::parse_str::("let _ = &raw const x;").unwrap(); + + snapshot!(stmt, @r###" + Local(Local { + pat: Pat::Wild, + init: Some(Verbatim(`& raw const x`)), + }) + "###); +} + +#[test] +fn test_raw_variable() { + let stmt = syn::parse_str::("let _ = &raw;").unwrap(); + + snapshot!(stmt, @r###" + Local(Local { + pat: Pat::Wild, + init: Some(Expr::Reference { + expr: Expr::Path { + path: Path { + segments: [ + PathSegment { + ident: "raw", + arguments: None, + }, + ], + }, + }, + }), + }) + "###); +} + +#[test] +fn test_raw_invalid() { + assert!(syn::parse_str::("let _ = &raw x;").is_err()); +} + +#[test] +fn test_none_group() { + // <Ø async fn f() {} Ø> + let tokens = TokenStream::from_iter(vec![TokenTree::Group(Group::new( + Delimiter::None, + TokenStream::from_iter(vec![ + TokenTree::Ident(Ident::new("async", Span::call_site())), + TokenTree::Ident(Ident::new("fn", Span::call_site())), + TokenTree::Ident(Ident::new("f", Span::call_site())), + TokenTree::Group(Group::new(Delimiter::Parenthesis, TokenStream::new())), + TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())), + ]), + ))]); + + snapshot!(tokens as Stmt, @r###" + Item(Item::Fn { + vis: Inherited, + sig: Signature { + asyncness: Some, + ident: "f", + generics: Generics, + output: Default, + }, + block: Block, + }) + "###); +} + +#[test] +fn test_let_dot_dot() { + let tokens = quote! { + let .. = 10; + }; + + snapshot!(tokens as Stmt, @r###" + Local(Local { + pat: Pat::Rest, + init: Some(Expr::Lit { + lit: 10, + }), + }) + "###); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/test_token_trees.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/test_token_trees.rs new file mode 100644 index 0000000000000000000000000000000000000000..5b00448af84f0f066fc8ec7dfa4d8d19726ff388 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/test_token_trees.rs @@ -0,0 +1,30 @@ +#[macro_use] +mod macros; + +use proc_macro2::TokenStream; +use quote::quote; +use syn::Lit; + +#[test] +fn test_struct() { + let input = " + #[derive(Debug, Clone)] + pub struct Item { + pub ident: Ident, + pub attrs: Vec, + } + "; + + snapshot!(input as TokenStream, @r###" + TokenStream( + `# [derive (Debug , Clone)] pub struct Item { pub ident : Ident , pub attrs : Vec < Attribute >, }`, + ) + "###); +} + +#[test] +fn test_literal_mangling() { + let code = "0_4"; + let parsed: Lit = syn::parse_str(code).unwrap(); + assert_eq!(code, quote!(#parsed).to_string()); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/test_ty.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/test_ty.rs new file mode 100644 index 0000000000000000000000000000000000000000..335cafa2acf9171b097880d640dc37b51bbb8920 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/test_ty.rs @@ -0,0 +1,352 @@ +#[macro_use] +mod macros; + +use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree}; +use quote::quote; +use std::iter::FromIterator; +use syn::Type; + +#[test] +fn test_mut_self() { + syn::parse_str::("fn(mut self)").unwrap(); + syn::parse_str::("fn(mut self,)").unwrap(); + syn::parse_str::("fn(mut self: ())").unwrap(); + syn::parse_str::("fn(mut self: ...)").unwrap_err(); + syn::parse_str::("fn(mut self: mut self)").unwrap_err(); + syn::parse_str::("fn(mut self::T)").unwrap_err(); +} + +#[test] +fn test_macro_variable_type() { + // mimics the token stream corresponding to `$ty` + let tokens = TokenStream::from_iter(vec![ + TokenTree::Group(Group::new(Delimiter::None, quote! { ty })), + TokenTree::Punct(Punct::new('<', Spacing::Alone)), + TokenTree::Ident(Ident::new("T", Span::call_site())), + TokenTree::Punct(Punct::new('>', Spacing::Alone)), + ]); + + snapshot!(tokens as Type, @r###" + Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "ty", + arguments: PathArguments::AngleBracketed { + args: [ + Type(Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "T", + arguments: None, + }, + ], + }, + }), + ], + }, + }, + ], + }, + } + "###); + + // mimics the token stream corresponding to `$ty::` + let tokens = TokenStream::from_iter(vec![ + TokenTree::Group(Group::new(Delimiter::None, quote! { ty })), + TokenTree::Punct(Punct::new(':', Spacing::Joint)), + TokenTree::Punct(Punct::new(':', Spacing::Alone)), + TokenTree::Punct(Punct::new('<', Spacing::Alone)), + TokenTree::Ident(Ident::new("T", Span::call_site())), + TokenTree::Punct(Punct::new('>', Spacing::Alone)), + ]); + + snapshot!(tokens as Type, @r###" + Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "ty", + arguments: PathArguments::AngleBracketed { + colon2_token: Some, + args: [ + Type(Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "T", + arguments: None, + }, + ], + }, + }), + ], + }, + }, + ], + }, + } + "###); +} + +#[test] +fn test_group_angle_brackets() { + // mimics the token stream corresponding to `Option<$ty>` + let tokens = TokenStream::from_iter(vec![ + TokenTree::Ident(Ident::new("Option", Span::call_site())), + TokenTree::Punct(Punct::new('<', Spacing::Alone)), + TokenTree::Group(Group::new(Delimiter::None, quote! { Vec })), + TokenTree::Punct(Punct::new('>', Spacing::Alone)), + ]); + + snapshot!(tokens as Type, @r###" + Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "Option", + arguments: PathArguments::AngleBracketed { + args: [ + Type(Type::Group { + elem: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "Vec", + arguments: PathArguments::AngleBracketed { + args: [ + Type(Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "u8", + arguments: None, + }, + ], + }, + }), + ], + }, + }, + ], + }, + }, + }), + ], + }, + }, + ], + }, + } + "###); +} + +#[test] +fn test_group_colons() { + // mimics the token stream corresponding to `$ty::Item` + let tokens = TokenStream::from_iter(vec![ + TokenTree::Group(Group::new(Delimiter::None, quote! { Vec })), + TokenTree::Punct(Punct::new(':', Spacing::Joint)), + TokenTree::Punct(Punct::new(':', Spacing::Alone)), + TokenTree::Ident(Ident::new("Item", Span::call_site())), + ]); + + snapshot!(tokens as Type, @r###" + Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "Vec", + arguments: PathArguments::AngleBracketed { + args: [ + Type(Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "u8", + arguments: None, + }, + ], + }, + }), + ], + }, + }, + PathSegment { + ident: "Item", + arguments: None, + }, + ], + }, + } + "###); + + let tokens = TokenStream::from_iter(vec![ + TokenTree::Group(Group::new(Delimiter::None, quote! { [T] })), + TokenTree::Punct(Punct::new(':', Spacing::Joint)), + TokenTree::Punct(Punct::new(':', Spacing::Alone)), + TokenTree::Ident(Ident::new("Element", Span::call_site())), + ]); + + snapshot!(tokens as Type, @r###" + Type::Path { + qself: Some(QSelf { + ty: Type::Slice { + elem: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "T", + arguments: None, + }, + ], + }, + }, + }, + position: 0, + }), + path: Path { + leading_colon: Some, + segments: [ + PathSegment { + ident: "Element", + arguments: None, + }, + ], + }, + } + "###); +} + +#[test] +fn test_trait_object() { + let tokens = quote!(dyn for<'a> Trait<'a> + 'static); + snapshot!(tokens as Type, @r###" + Type::TraitObject { + dyn_token: Some, + bounds: [ + Trait(TraitBound { + modifier: None, + lifetimes: Some(BoundLifetimes { + lifetimes: [ + LifetimeDef { + lifetime: Lifetime { + ident: "a", + }, + }, + ], + }), + path: Path { + segments: [ + PathSegment { + ident: "Trait", + arguments: PathArguments::AngleBracketed { + args: [ + Lifetime(Lifetime { + ident: "a", + }), + ], + }, + }, + ], + }, + }), + Lifetime(Lifetime { + ident: "static", + }), + ], + } + "###); + + let tokens = quote!(dyn 'a + Trait); + snapshot!(tokens as Type, @r###" + Type::TraitObject { + dyn_token: Some, + bounds: [ + Lifetime(Lifetime { + ident: "a", + }), + Trait(TraitBound { + modifier: None, + path: Path { + segments: [ + PathSegment { + ident: "Trait", + arguments: None, + }, + ], + }, + }), + ], + } + "###); + + // None of the following are valid Rust types. + syn::parse_str::("for<'a> dyn Trait<'a>").unwrap_err(); + syn::parse_str::("dyn for<'a> 'a + Trait").unwrap_err(); +} + +#[test] +fn test_trailing_plus() { + #[rustfmt::skip] + let tokens = quote!(impl Trait +); + snapshot!(tokens as Type, @r###" + Type::ImplTrait { + bounds: [ + Trait(TraitBound { + modifier: None, + path: Path { + segments: [ + PathSegment { + ident: "Trait", + arguments: None, + }, + ], + }, + }), + ], + } + "###); + + #[rustfmt::skip] + let tokens = quote!(dyn Trait +); + snapshot!(tokens as Type, @r###" + Type::TraitObject { + dyn_token: Some, + bounds: [ + Trait(TraitBound { + modifier: None, + path: Path { + segments: [ + PathSegment { + ident: "Trait", + arguments: None, + }, + ], + }, + }), + ], + } + "###); + + #[rustfmt::skip] + let tokens = quote!(Trait +); + snapshot!(tokens as Type, @r###" + Type::TraitObject { + bounds: [ + Trait(TraitBound { + modifier: None, + path: Path { + segments: [ + PathSegment { + ident: "Trait", + arguments: None, + }, + ], + }, + }), + ], + } + "###); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/test_visibility.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/test_visibility.rs new file mode 100644 index 0000000000000000000000000000000000000000..7b2c00ba34d8d846bdb138894c7dbdef99e03f84 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/test_visibility.rs @@ -0,0 +1,148 @@ +#[macro_use] +mod macros; + +use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree}; +use std::iter::FromIterator; +use syn::parse::{Parse, ParseStream}; +use syn::{DeriveInput, Result, Visibility}; + +#[derive(Debug)] +struct VisRest { + vis: Visibility, + rest: TokenStream, +} + +impl Parse for VisRest { + fn parse(input: ParseStream) -> Result { + Ok(VisRest { + vis: input.parse()?, + rest: input.parse()?, + }) + } +} + +macro_rules! assert_vis_parse { + ($input:expr, Ok($p:pat)) => { + assert_vis_parse!($input, Ok($p) + ""); + }; + + ($input:expr, Ok($p:pat) + $rest:expr) => { + let expected = $rest.parse::().unwrap(); + let parse: VisRest = syn::parse_str($input).unwrap(); + + match parse.vis { + $p => {} + _ => panic!("Expected {}, got {:?}", stringify!($p), parse.vis), + } + + // NOTE: Round-trips through `to_string` to avoid potential whitespace + // diffs. + assert_eq!(parse.rest.to_string(), expected.to_string()); + }; + + ($input:expr, Err) => { + syn::parse2::($input.parse().unwrap()).unwrap_err(); + }; +} + +#[test] +fn test_pub() { + assert_vis_parse!("pub", Ok(Visibility::Public(_))); +} + +#[test] +fn test_crate() { + assert_vis_parse!("crate", Ok(Visibility::Crate(_))); +} + +#[test] +fn test_inherited() { + assert_vis_parse!("", Ok(Visibility::Inherited)); +} + +#[test] +fn test_in() { + assert_vis_parse!("pub(in foo::bar)", Ok(Visibility::Restricted(_))); +} + +#[test] +fn test_pub_crate() { + assert_vis_parse!("pub(crate)", Ok(Visibility::Restricted(_))); +} + +#[test] +fn test_pub_self() { + assert_vis_parse!("pub(self)", Ok(Visibility::Restricted(_))); +} + +#[test] +fn test_pub_super() { + assert_vis_parse!("pub(super)", Ok(Visibility::Restricted(_))); +} + +#[test] +fn test_missing_in() { + assert_vis_parse!("pub(foo::bar)", Ok(Visibility::Public(_)) + "(foo::bar)"); +} + +#[test] +fn test_missing_in_path() { + assert_vis_parse!("pub(in)", Err); +} + +#[test] +fn test_crate_path() { + assert_vis_parse!( + "pub(crate::A, crate::B)", + Ok(Visibility::Public(_)) + "(crate::A, crate::B)" + ); +} + +#[test] +fn test_junk_after_in() { + assert_vis_parse!("pub(in some::path @@garbage)", Err); +} + +#[test] +fn test_empty_group_vis() { + // mimics `struct S { $vis $field: () }` where $vis is empty + let tokens = TokenStream::from_iter(vec![ + TokenTree::Ident(Ident::new("struct", Span::call_site())), + TokenTree::Ident(Ident::new("S", Span::call_site())), + TokenTree::Group(Group::new( + Delimiter::Brace, + TokenStream::from_iter(vec![ + TokenTree::Group(Group::new(Delimiter::None, TokenStream::new())), + TokenTree::Group(Group::new( + Delimiter::None, + TokenStream::from_iter(vec![TokenTree::Ident(Ident::new( + "f", + Span::call_site(), + ))]), + )), + TokenTree::Punct(Punct::new(':', Spacing::Alone)), + TokenTree::Group(Group::new(Delimiter::Parenthesis, TokenStream::new())), + ]), + )), + ]); + + snapshot!(tokens as DeriveInput, @r###" + DeriveInput { + vis: Inherited, + ident: "S", + generics: Generics, + data: Data::Struct { + fields: Fields::Named { + named: [ + Field { + vis: Inherited, + ident: Some("f"), + colon_token: Some, + ty: Type::Tuple, + }, + ], + }, + }, + } + "###); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/zzz_stable.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/zzz_stable.rs new file mode 100644 index 0000000000000000000000000000000000000000..a1a670d9edeea1659ae390ca842691df0bd77a1c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/tests/zzz_stable.rs @@ -0,0 +1,33 @@ +#![cfg(syn_disable_nightly_tests)] + +use std::io::{self, Write}; +use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor}; + +const MSG: &str = "\ +‖ +‖ WARNING: +‖ This is not a nightly compiler so not all tests were able to +‖ run. Syn includes tests that compare Syn's parser against the +‖ compiler's parser, which requires access to unstable librustc +‖ data structures and a nightly compiler. +‖ +"; + +#[test] +fn notice() -> io::Result<()> { + let header = "WARNING"; + let index_of_header = MSG.find(header).unwrap(); + let before = &MSG[..index_of_header]; + let after = &MSG[index_of_header + header.len()..]; + + let mut stderr = StandardStream::stderr(ColorChoice::Auto); + stderr.set_color(ColorSpec::new().set_fg(Some(Color::Yellow)))?; + write!(&mut stderr, "{}", before)?; + stderr.set_color(ColorSpec::new().set_bold(true).set_fg(Some(Color::Yellow)))?; + write!(&mut stderr, "{}", header)?; + stderr.set_color(ColorSpec::new().set_fg(Some(Color::Yellow)))?; + write!(&mut stderr, "{}", after)?; + stderr.reset()?; + + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/src/token.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/src/token.rs new file mode 100644 index 0000000000000000000000000000000000000000..8d63a4111b364e8a510f02620c6ab1d9fa1b9db8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/src/token.rs @@ -0,0 +1,1094 @@ +//! Tokens representing Rust punctuation, keywords, and delimiters. +//! +//! The type names in this module can be difficult to keep straight, so we +//! prefer to use the [`Token!`] macro instead. This is a type-macro that +//! expands to the token type of the given token. +//! +//! [`Token!`]: crate::Token +//! +//! # Example +//! +//! The [`ItemStatic`] syntax tree node is defined like this. +//! +//! [`ItemStatic`]: crate::ItemStatic +//! +//! ``` +//! # use syn::{Attribute, Expr, Ident, Token, Type, Visibility}; +//! # +//! pub struct ItemStatic { +//! pub attrs: Vec, +//! pub vis: Visibility, +//! pub static_token: Token![static], +//! pub mutability: Option, +//! pub ident: Ident, +//! pub colon_token: Token![:], +//! pub ty: Box, +//! pub eq_token: Token![=], +//! pub expr: Box, +//! pub semi_token: Token![;], +//! } +//! ``` +//! +//! # Parsing +//! +//! Keywords and punctuation can be parsed through the [`ParseStream::parse`] +//! method. Delimiter tokens are parsed using the [`parenthesized!`], +//! [`bracketed!`] and [`braced!`] macros. +//! +//! [`ParseStream::parse`]: crate::parse::ParseBuffer::parse() +//! [`parenthesized!`]: crate::parenthesized! +//! [`bracketed!`]: crate::bracketed! +//! [`braced!`]: crate::braced! +//! +//! ``` +//! use syn::{Attribute, Result}; +//! use syn::parse::{Parse, ParseStream}; +//! # +//! # enum ItemStatic {} +//! +//! // Parse the ItemStatic struct shown above. +//! impl Parse for ItemStatic { +//! fn parse(input: ParseStream) -> Result { +//! # use syn::ItemStatic; +//! # fn parse(input: ParseStream) -> Result { +//! Ok(ItemStatic { +//! attrs: input.call(Attribute::parse_outer)?, +//! vis: input.parse()?, +//! static_token: input.parse()?, +//! mutability: input.parse()?, +//! ident: input.parse()?, +//! colon_token: input.parse()?, +//! ty: input.parse()?, +//! eq_token: input.parse()?, +//! expr: input.parse()?, +//! semi_token: input.parse()?, +//! }) +//! # } +//! # unimplemented!() +//! } +//! } +//! ``` +//! +//! # Other operations +//! +//! Every keyword and punctuation token supports the following operations. +//! +//! - [Peeking] — `input.peek(Token![...])` +//! +//! - [Parsing] — `input.parse::()?` +//! +//! - [Printing] — `quote!( ... #the_token ... )` +//! +//! - Construction from a [`Span`] — `let the_token = Token![...](sp)` +//! +//! - Field access to its span — `let sp = the_token.span` +//! +//! [Peeking]: crate::parse::ParseBuffer::peek() +//! [Parsing]: crate::parse::ParseBuffer::parse() +//! [Printing]: https://docs.rs/quote/1.0/quote/trait.ToTokens.html +//! [`Span`]: https://docs.rs/proc-macro2/1.0/proc_macro2/struct.Span.html + +#[cfg(feature = "parsing")] +pub(crate) use self::private::CustomToken; +use self::private::WithSpan; +#[cfg(feature = "parsing")] +use crate::buffer::Cursor; +#[cfg(feature = "parsing")] +use crate::error::Result; +#[cfg(feature = "parsing")] +use crate::lifetime::Lifetime; +#[cfg(feature = "parsing")] +use crate::parse::{Parse, ParseStream}; +use crate::span::IntoSpans; +#[cfg(feature = "extra-traits")] +use core::cmp; +#[cfg(feature = "extra-traits")] +use core::fmt::{self, Debug}; +#[cfg(feature = "extra-traits")] +use core::hash::{Hash, Hasher}; +use core::ops::{Deref, DerefMut}; +use proc_macro2::extra::DelimSpan; +use proc_macro2::Span; +#[cfg(feature = "printing")] +use proc_macro2::TokenStream; +#[cfg(any(feature = "parsing", feature = "printing"))] +use proc_macro2::{Delimiter, Ident}; +#[cfg(feature = "parsing")] +use proc_macro2::{Literal, Punct, TokenTree}; +#[cfg(feature = "printing")] +use quote::{ToTokens, TokenStreamExt as _}; + +/// Marker trait for types that represent single tokens. +/// +/// This trait is sealed and cannot be implemented for types outside of Syn. +#[cfg(feature = "parsing")] +pub trait Token: private::Sealed { + // Not public API. + #[doc(hidden)] + fn peek(cursor: Cursor) -> bool; + + // Not public API. + #[doc(hidden)] + fn display() -> &'static str; +} + +pub(crate) mod private { + #[cfg(feature = "parsing")] + use crate::buffer::Cursor; + use proc_macro2::Span; + + #[cfg(feature = "parsing")] + pub trait Sealed {} + + /// Support writing `token.span` rather than `token.spans[0]` on tokens that + /// hold a single span. + #[repr(transparent)] + #[allow(unknown_lints, repr_transparent_non_zst_fields)] // False positive: https://github.com/rust-lang/rust/issues/115922 + pub struct WithSpan { + pub span: Span, + } + + // Not public API. + #[doc(hidden)] + #[cfg(feature = "parsing")] + pub trait CustomToken { + fn peek(cursor: Cursor) -> bool; + fn display() -> &'static str; + } +} + +#[cfg(feature = "parsing")] +impl private::Sealed for Ident {} + +macro_rules! impl_low_level_token { + ($display:literal $($path:ident)::+ $get:ident) => { + #[cfg(feature = "parsing")] + impl Token for $($path)::+ { + fn peek(cursor: Cursor) -> bool { + cursor.$get().is_some() + } + + fn display() -> &'static str { + $display + } + } + + #[cfg(feature = "parsing")] + impl private::Sealed for $($path)::+ {} + }; +} + +impl_low_level_token!("punctuation token" Punct punct); +impl_low_level_token!("literal" Literal literal); +impl_low_level_token!("token" TokenTree token_tree); +impl_low_level_token!("group token" proc_macro2::Group any_group); +impl_low_level_token!("lifetime" Lifetime lifetime); + +#[cfg(feature = "parsing")] +impl private::Sealed for T {} + +#[cfg(feature = "parsing")] +impl Token for T { + fn peek(cursor: Cursor) -> bool { + ::peek(cursor) + } + + fn display() -> &'static str { + ::display() + } +} + +macro_rules! define_keywords { + ($($token:literal pub struct $name:ident)*) => { + $( + #[doc = concat!('`', $token, '`')] + /// + /// Don't try to remember the name of this type — use the + /// [`Token!`] macro instead. + /// + /// [`Token!`]: crate::token + pub struct $name { + pub span: Span, + } + + #[doc(hidden)] + #[allow(non_snake_case)] + pub fn $name>(span: S) -> $name { + $name { + span: span.into_spans(), + } + } + + impl core::default::Default for $name { + fn default() -> Self { + $name { + span: Span::call_site(), + } + } + } + + #[cfg(feature = "clone-impls")] + #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))] + impl Copy for $name {} + + #[cfg(feature = "clone-impls")] + #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))] + impl Clone for $name { + fn clone(&self) -> Self { + *self + } + } + + #[cfg(feature = "extra-traits")] + #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] + impl Debug for $name { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.write_str(stringify!($name)) + } + } + + #[cfg(feature = "extra-traits")] + #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] + impl cmp::Eq for $name {} + + #[cfg(feature = "extra-traits")] + #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] + impl PartialEq for $name { + fn eq(&self, _other: &$name) -> bool { + true + } + } + + #[cfg(feature = "extra-traits")] + #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] + impl Hash for $name { + fn hash(&self, _state: &mut H) {} + } + + #[cfg(feature = "printing")] + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for $name { + fn to_tokens(&self, tokens: &mut TokenStream) { + printing::keyword($token, self.span, tokens); + } + } + + #[cfg(feature = "parsing")] + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for $name { + fn parse(input: ParseStream) -> Result { + Ok($name { + span: parsing::keyword(input, $token)?, + }) + } + } + + #[cfg(feature = "parsing")] + impl Token for $name { + fn peek(cursor: Cursor) -> bool { + parsing::peek_keyword(cursor, $token) + } + + fn display() -> &'static str { + concat!("`", $token, "`") + } + } + + #[cfg(feature = "parsing")] + impl private::Sealed for $name {} + )* + }; +} + +macro_rules! impl_deref_if_len_is_1 { + ($name:ident/1) => { + impl Deref for $name { + type Target = WithSpan; + + fn deref(&self) -> &Self::Target { + unsafe { &*(self as *const Self).cast::() } + } + } + + impl DerefMut for $name { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { &mut *(self as *mut Self).cast::() } + } + } + }; + + ($name:ident/$len:literal) => {}; +} + +macro_rules! define_punctuation_structs { + ($($token:literal pub struct $name:ident/$len:tt #[doc = $usage:literal])*) => { + $( + #[cfg_attr(not(doc), repr(transparent))] + #[allow(unknown_lints, repr_transparent_non_zst_fields)] // False positive: https://github.com/rust-lang/rust/issues/115922 + #[doc = concat!('`', $token, '`')] + /// + /// Usage: + #[doc = concat!($usage, '.')] + /// + /// Don't try to remember the name of this type — use the + /// [`Token!`] macro instead. + /// + /// [`Token!`]: crate::token + pub struct $name { + pub spans: [Span; $len], + } + + #[doc(hidden)] + #[allow(non_snake_case)] + pub fn $name>(spans: S) -> $name { + $name { + spans: spans.into_spans(), + } + } + + impl core::default::Default for $name { + fn default() -> Self { + $name { + spans: [Span::call_site(); $len], + } + } + } + + #[cfg(feature = "clone-impls")] + #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))] + impl Copy for $name {} + + #[cfg(feature = "clone-impls")] + #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))] + impl Clone for $name { + fn clone(&self) -> Self { + *self + } + } + + #[cfg(feature = "extra-traits")] + #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] + impl Debug for $name { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.write_str(stringify!($name)) + } + } + + #[cfg(feature = "extra-traits")] + #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] + impl cmp::Eq for $name {} + + #[cfg(feature = "extra-traits")] + #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] + impl PartialEq for $name { + fn eq(&self, _other: &$name) -> bool { + true + } + } + + #[cfg(feature = "extra-traits")] + #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] + impl Hash for $name { + fn hash(&self, _state: &mut H) {} + } + + impl_deref_if_len_is_1!($name/$len); + )* + }; +} + +macro_rules! define_punctuation { + ($($token:literal pub struct $name:ident/$len:tt #[doc = $usage:literal])*) => { + $( + define_punctuation_structs! { + $token pub struct $name/$len #[doc = $usage] + } + + #[cfg(feature = "printing")] + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for $name { + fn to_tokens(&self, tokens: &mut TokenStream) { + printing::punct($token, &self.spans, tokens); + } + } + + #[cfg(feature = "parsing")] + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for $name { + fn parse(input: ParseStream) -> Result { + Ok($name { + spans: parsing::punct(input, $token)?, + }) + } + } + + #[cfg(feature = "parsing")] + impl Token for $name { + fn peek(cursor: Cursor) -> bool { + parsing::peek_punct(cursor, $token) + } + + fn display() -> &'static str { + concat!("`", $token, "`") + } + } + + #[cfg(feature = "parsing")] + impl private::Sealed for $name {} + )* + }; +} + +macro_rules! define_delimiters { + ($($delim:ident pub struct $name:ident #[$doc:meta])*) => { + $( + #[$doc] + pub struct $name { + pub span: DelimSpan, + } + + #[doc(hidden)] + #[allow(non_snake_case)] + pub fn $name>(span: S) -> $name { + $name { + span: span.into_spans(), + } + } + + impl core::default::Default for $name { + fn default() -> Self { + $name(Span::call_site()) + } + } + + #[cfg(feature = "clone-impls")] + #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))] + impl Copy for $name {} + + #[cfg(feature = "clone-impls")] + #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))] + impl Clone for $name { + fn clone(&self) -> Self { + *self + } + } + + #[cfg(feature = "extra-traits")] + #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] + impl Debug for $name { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.write_str(stringify!($name)) + } + } + + #[cfg(feature = "extra-traits")] + #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] + impl cmp::Eq for $name {} + + #[cfg(feature = "extra-traits")] + #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] + impl PartialEq for $name { + fn eq(&self, _other: &$name) -> bool { + true + } + } + + #[cfg(feature = "extra-traits")] + #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] + impl Hash for $name { + fn hash(&self, _state: &mut H) {} + } + + impl $name { + #[cfg(feature = "printing")] + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + pub fn surround(&self, tokens: &mut TokenStream, f: F) + where + F: FnOnce(&mut TokenStream), + { + let mut inner = TokenStream::new(); + f(&mut inner); + printing::delim(Delimiter::$delim, self.span.join(), tokens, inner); + } + } + + #[cfg(feature = "parsing")] + impl private::Sealed for $name {} + )* + }; +} + +define_punctuation_structs! { + "_" pub struct Underscore/1 /// wildcard patterns, inferred types, unnamed items in constants, extern crates, use declarations, and destructuring assignment +} + +#[cfg(feature = "printing")] +#[cfg_attr(docsrs, doc(cfg(feature = "printing")))] +impl ToTokens for Underscore { + fn to_tokens(&self, tokens: &mut TokenStream) { + tokens.append(Ident::new("_", self.span)); + } +} + +#[cfg(feature = "parsing")] +#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] +impl Parse for Underscore { + fn parse(input: ParseStream) -> Result { + input.step(|cursor| { + if let Some((ident, rest)) = cursor.ident() { + if ident == "_" { + return Ok((Underscore(ident.span()), rest)); + } + } + if let Some((punct, rest)) = cursor.punct() { + if punct.as_char() == '_' { + return Ok((Underscore(punct.span()), rest)); + } + } + Err(cursor.error("expected `_`")) + }) + } +} + +#[cfg(feature = "parsing")] +impl Token for Underscore { + fn peek(cursor: Cursor) -> bool { + if let Some((ident, _rest)) = cursor.ident() { + return ident == "_"; + } + if let Some((punct, _rest)) = cursor.punct() { + return punct.as_char() == '_'; + } + false + } + + fn display() -> &'static str { + "`_`" + } +} + +#[cfg(feature = "parsing")] +impl private::Sealed for Underscore {} + +/// None-delimited group +pub struct Group { + pub span: Span, +} + +#[doc(hidden)] +#[allow(non_snake_case)] +pub fn Group>(span: S) -> Group { + Group { + span: span.into_spans(), + } +} + +impl core::default::Default for Group { + fn default() -> Self { + Group { + span: Span::call_site(), + } + } +} + +#[cfg(feature = "clone-impls")] +#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))] +impl Copy for Group {} + +#[cfg(feature = "clone-impls")] +#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))] +impl Clone for Group { + fn clone(&self) -> Self { + *self + } +} + +#[cfg(feature = "extra-traits")] +#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] +impl Debug for Group { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.write_str("Group") + } +} + +#[cfg(feature = "extra-traits")] +#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] +impl cmp::Eq for Group {} + +#[cfg(feature = "extra-traits")] +#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] +impl PartialEq for Group { + fn eq(&self, _other: &Group) -> bool { + true + } +} + +#[cfg(feature = "extra-traits")] +#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] +impl Hash for Group { + fn hash(&self, _state: &mut H) {} +} + +impl Group { + #[cfg(feature = "printing")] + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + pub fn surround(&self, tokens: &mut TokenStream, f: F) + where + F: FnOnce(&mut TokenStream), + { + let mut inner = TokenStream::new(); + f(&mut inner); + printing::delim(Delimiter::None, self.span, tokens, inner); + } +} + +#[cfg(feature = "parsing")] +impl private::Sealed for Group {} + +#[cfg(feature = "parsing")] +impl Token for Paren { + fn peek(cursor: Cursor) -> bool { + cursor.group(Delimiter::Parenthesis).is_some() + } + + fn display() -> &'static str { + "parentheses" + } +} + +#[cfg(feature = "parsing")] +impl Token for Brace { + fn peek(cursor: Cursor) -> bool { + cursor.group(Delimiter::Brace).is_some() + } + + fn display() -> &'static str { + "curly braces" + } +} + +#[cfg(feature = "parsing")] +impl Token for Bracket { + fn peek(cursor: Cursor) -> bool { + cursor.group(Delimiter::Bracket).is_some() + } + + fn display() -> &'static str { + "square brackets" + } +} + +#[cfg(feature = "parsing")] +impl Token for Group { + fn peek(cursor: Cursor) -> bool { + cursor.group(Delimiter::None).is_some() + } + + fn display() -> &'static str { + "invisible group" + } +} + +define_keywords! { + "abstract" pub struct Abstract + "as" pub struct As + "async" pub struct Async + "auto" pub struct Auto + "await" pub struct Await + "become" pub struct Become + "box" pub struct Box + "break" pub struct Break + "const" pub struct Const + "continue" pub struct Continue + "crate" pub struct Crate + "default" pub struct Default + "do" pub struct Do + "dyn" pub struct Dyn + "else" pub struct Else + "enum" pub struct Enum + "extern" pub struct Extern + "final" pub struct Final + "fn" pub struct Fn + "for" pub struct For + "if" pub struct If + "impl" pub struct Impl + "in" pub struct In + "let" pub struct Let + "loop" pub struct Loop + "macro" pub struct Macro + "match" pub struct Match + "mod" pub struct Mod + "move" pub struct Move + "mut" pub struct Mut + "override" pub struct Override + "priv" pub struct Priv + "pub" pub struct Pub + "raw" pub struct Raw + "ref" pub struct Ref + "return" pub struct Return + "Self" pub struct SelfType + "self" pub struct SelfValue + "static" pub struct Static + "struct" pub struct Struct + "super" pub struct Super + "trait" pub struct Trait + "try" pub struct Try + "type" pub struct Type + "typeof" pub struct Typeof + "union" pub struct Union + "unsafe" pub struct Unsafe + "unsized" pub struct Unsized + "use" pub struct Use + "virtual" pub struct Virtual + "where" pub struct Where + "while" pub struct While + "yield" pub struct Yield +} + +define_punctuation! { + "&" pub struct And/1 /// bitwise and logical AND, borrow, references, reference patterns + "&&" pub struct AndAnd/2 /// lazy AND, borrow, references, reference patterns + "&=" pub struct AndEq/2 /// bitwise AND assignment + "@" pub struct At/1 /// subpattern binding + "^" pub struct Caret/1 /// bitwise and logical XOR + "^=" pub struct CaretEq/2 /// bitwise XOR assignment + ":" pub struct Colon/1 /// various separators + "," pub struct Comma/1 /// various separators + "$" pub struct Dollar/1 /// macros + "." pub struct Dot/1 /// field access, tuple index + ".." pub struct DotDot/2 /// range, struct expressions, patterns, range patterns + "..." pub struct DotDotDot/3 /// variadic functions, range patterns + "..=" pub struct DotDotEq/3 /// inclusive range, range patterns + "=" pub struct Eq/1 /// assignment, attributes, various type definitions + "==" pub struct EqEq/2 /// equal + "=>" pub struct FatArrow/2 /// match arms, macros + ">=" pub struct Ge/2 /// greater than or equal to, generics + ">" pub struct Gt/1 /// greater than, generics, paths + "<-" pub struct LArrow/2 /// unused + "<=" pub struct Le/2 /// less than or equal to + "<" pub struct Lt/1 /// less than, generics, paths + "-" pub struct Minus/1 /// subtraction, negation + "-=" pub struct MinusEq/2 /// subtraction assignment + "!=" pub struct Ne/2 /// not equal + "!" pub struct Not/1 /// bitwise and logical NOT, macro calls, inner attributes, never type, negative impls + "|" pub struct Or/1 /// bitwise and logical OR, closures, patterns in match, if let, and while let + "|=" pub struct OrEq/2 /// bitwise OR assignment + "||" pub struct OrOr/2 /// lazy OR, closures + "::" pub struct PathSep/2 /// path separator + "%" pub struct Percent/1 /// remainder + "%=" pub struct PercentEq/2 /// remainder assignment + "+" pub struct Plus/1 /// addition, trait bounds, macro Kleene matcher + "+=" pub struct PlusEq/2 /// addition assignment + "#" pub struct Pound/1 /// attributes + "?" pub struct Question/1 /// question mark operator, questionably sized, macro Kleene matcher + "->" pub struct RArrow/2 /// function return type, closure return type, function pointer type + ";" pub struct Semi/1 /// terminator for various items and statements, array types + "<<" pub struct Shl/2 /// shift left, nested generics + "<<=" pub struct ShlEq/3 /// shift left assignment + ">>" pub struct Shr/2 /// shift right, nested generics + ">>=" pub struct ShrEq/3 /// shift right assignment, nested generics + "/" pub struct Slash/1 /// division + "/=" pub struct SlashEq/2 /// division assignment + "*" pub struct Star/1 /// multiplication, dereference, raw pointers, macro Kleene matcher, use wildcards + "*=" pub struct StarEq/2 /// multiplication assignment + "~" pub struct Tilde/1 /// unused since before Rust 1.0 +} + +define_delimiters! { + Brace pub struct Brace /// `{`…`}` + Bracket pub struct Bracket /// `[`…`]` + Parenthesis pub struct Paren /// `(`…`)` +} + +/// A type-macro that expands to the name of the Rust type representation of a +/// given token. +/// +/// As a type, `Token!` is commonly used in the type of struct fields, the type +/// of a `let` statement, or in turbofish for a `parse` function. +/// +/// ``` +/// use syn::{Ident, Token}; +/// use syn::parse::{Parse, ParseStream, Result}; +/// +/// // `struct Foo;` +/// pub struct UnitStruct { +/// struct_token: Token![struct], +/// ident: Ident, +/// semi_token: Token![;], +/// } +/// +/// impl Parse for UnitStruct { +/// fn parse(input: ParseStream) -> Result { +/// let struct_token: Token![struct] = input.parse()?; +/// let ident: Ident = input.parse()?; +/// let semi_token = input.parse::()?; +/// Ok(UnitStruct { struct_token, ident, semi_token }) +/// } +/// } +/// ``` +/// +/// As an expression, `Token!` is used for peeking tokens or instantiating +/// tokens from a span. +/// +/// ``` +/// # use syn::{Ident, Token}; +/// # use syn::parse::{Parse, ParseStream, Result}; +/// # +/// # struct UnitStruct { +/// # struct_token: Token![struct], +/// # ident: Ident, +/// # semi_token: Token![;], +/// # } +/// # +/// # impl Parse for UnitStruct { +/// # fn parse(input: ParseStream) -> Result { +/// # unimplemented!() +/// # } +/// # } +/// # +/// fn make_unit_struct(name: Ident) -> UnitStruct { +/// let span = name.span(); +/// UnitStruct { +/// struct_token: Token![struct](span), +/// ident: name, +/// semi_token: Token![;](span), +/// } +/// } +/// +/// # fn parse(input: ParseStream) -> Result<()> { +/// if input.peek(Token![struct]) { +/// let unit_struct: UnitStruct = input.parse()?; +/// /* ... */ +/// } +/// # Ok(()) +/// # } +/// ``` +/// +/// See the [token module] documentation for details and examples. +/// +/// [token module]: crate::token +#[macro_export] +macro_rules! Token { + [abstract] => { $crate::token::Abstract }; + [as] => { $crate::token::As }; + [async] => { $crate::token::Async }; + [auto] => { $crate::token::Auto }; + [await] => { $crate::token::Await }; + [become] => { $crate::token::Become }; + [box] => { $crate::token::Box }; + [break] => { $crate::token::Break }; + [const] => { $crate::token::Const }; + [continue] => { $crate::token::Continue }; + [crate] => { $crate::token::Crate }; + [default] => { $crate::token::Default }; + [do] => { $crate::token::Do }; + [dyn] => { $crate::token::Dyn }; + [else] => { $crate::token::Else }; + [enum] => { $crate::token::Enum }; + [extern] => { $crate::token::Extern }; + [final] => { $crate::token::Final }; + [fn] => { $crate::token::Fn }; + [for] => { $crate::token::For }; + [if] => { $crate::token::If }; + [impl] => { $crate::token::Impl }; + [in] => { $crate::token::In }; + [let] => { $crate::token::Let }; + [loop] => { $crate::token::Loop }; + [macro] => { $crate::token::Macro }; + [match] => { $crate::token::Match }; + [mod] => { $crate::token::Mod }; + [move] => { $crate::token::Move }; + [mut] => { $crate::token::Mut }; + [override] => { $crate::token::Override }; + [priv] => { $crate::token::Priv }; + [pub] => { $crate::token::Pub }; + [raw] => { $crate::token::Raw }; + [ref] => { $crate::token::Ref }; + [return] => { $crate::token::Return }; + [Self] => { $crate::token::SelfType }; + [self] => { $crate::token::SelfValue }; + [static] => { $crate::token::Static }; + [struct] => { $crate::token::Struct }; + [super] => { $crate::token::Super }; + [trait] => { $crate::token::Trait }; + [try] => { $crate::token::Try }; + [type] => { $crate::token::Type }; + [typeof] => { $crate::token::Typeof }; + [union] => { $crate::token::Union }; + [unsafe] => { $crate::token::Unsafe }; + [unsized] => { $crate::token::Unsized }; + [use] => { $crate::token::Use }; + [virtual] => { $crate::token::Virtual }; + [where] => { $crate::token::Where }; + [while] => { $crate::token::While }; + [yield] => { $crate::token::Yield }; + [&] => { $crate::token::And }; + [&&] => { $crate::token::AndAnd }; + [&=] => { $crate::token::AndEq }; + [@] => { $crate::token::At }; + [^] => { $crate::token::Caret }; + [^=] => { $crate::token::CaretEq }; + [:] => { $crate::token::Colon }; + [,] => { $crate::token::Comma }; + [$] => { $crate::token::Dollar }; + [.] => { $crate::token::Dot }; + [..] => { $crate::token::DotDot }; + [...] => { $crate::token::DotDotDot }; + [..=] => { $crate::token::DotDotEq }; + [=] => { $crate::token::Eq }; + [==] => { $crate::token::EqEq }; + [=>] => { $crate::token::FatArrow }; + [>=] => { $crate::token::Ge }; + [>] => { $crate::token::Gt }; + [<-] => { $crate::token::LArrow }; + [<=] => { $crate::token::Le }; + [<] => { $crate::token::Lt }; + [-] => { $crate::token::Minus }; + [-=] => { $crate::token::MinusEq }; + [!=] => { $crate::token::Ne }; + [!] => { $crate::token::Not }; + [|] => { $crate::token::Or }; + [|=] => { $crate::token::OrEq }; + [||] => { $crate::token::OrOr }; + [::] => { $crate::token::PathSep }; + [%] => { $crate::token::Percent }; + [%=] => { $crate::token::PercentEq }; + [+] => { $crate::token::Plus }; + [+=] => { $crate::token::PlusEq }; + [#] => { $crate::token::Pound }; + [?] => { $crate::token::Question }; + [->] => { $crate::token::RArrow }; + [;] => { $crate::token::Semi }; + [<<] => { $crate::token::Shl }; + [<<=] => { $crate::token::ShlEq }; + [>>] => { $crate::token::Shr }; + [>>=] => { $crate::token::ShrEq }; + [/] => { $crate::token::Slash }; + [/=] => { $crate::token::SlashEq }; + [*] => { $crate::token::Star }; + [*=] => { $crate::token::StarEq }; + [~] => { $crate::token::Tilde }; + [_] => { $crate::token::Underscore }; +} + +// Not public API. +#[doc(hidden)] +#[cfg(feature = "parsing")] +pub(crate) mod parsing { + use crate::buffer::Cursor; + use crate::error::{Error, Result}; + use crate::parse::ParseStream; + use alloc::format; + use proc_macro2::{Spacing, Span}; + + pub(crate) fn keyword(input: ParseStream, token: &str) -> Result { + input.step(|cursor| { + if let Some((ident, rest)) = cursor.ident() { + if ident == token { + return Ok((ident.span(), rest)); + } + } + Err(cursor.error(format!("expected `{}`", token))) + }) + } + + pub(crate) fn peek_keyword(cursor: Cursor, token: &str) -> bool { + if let Some((ident, _rest)) = cursor.ident() { + ident == token + } else { + false + } + } + + #[doc(hidden)] + pub fn punct(input: ParseStream, token: &str) -> Result<[Span; N]> { + let mut spans = [input.span(); N]; + punct_helper(input, token, &mut spans)?; + Ok(spans) + } + + fn punct_helper(input: ParseStream, token: &str, spans: &mut [Span]) -> Result<()> { + input.step(|cursor| { + let mut cursor = *cursor; + assert_eq!(token.len(), spans.len()); + + for (i, ch) in token.chars().enumerate() { + match cursor.punct() { + Some((punct, rest)) => { + spans[i] = punct.span(); + if punct.as_char() != ch { + break; + } else if i == token.len() - 1 { + return Ok(((), rest)); + } else if punct.spacing() != Spacing::Joint { + break; + } + cursor = rest; + } + None => break, + } + } + + Err(Error::new(spans[0], format!("expected `{}`", token))) + }) + } + + #[doc(hidden)] + pub fn peek_punct(mut cursor: Cursor, token: &str) -> bool { + for (i, ch) in token.chars().enumerate() { + match cursor.punct() { + Some((punct, rest)) => { + if punct.as_char() != ch { + break; + } else if i == token.len() - 1 { + return true; + } else if punct.spacing() != Spacing::Joint { + break; + } + cursor = rest; + } + None => break, + } + } + false + } +} + +// Not public API. +#[doc(hidden)] +#[cfg(feature = "printing")] +pub(crate) mod printing { + use crate::ext::PunctExt as _; + use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream}; + use quote::TokenStreamExt as _; + + #[doc(hidden)] + pub fn punct(s: &str, spans: &[Span], tokens: &mut TokenStream) { + assert_eq!(s.len(), spans.len()); + + let mut chars = s.chars(); + let mut spans = spans.iter(); + let ch = chars.next_back().unwrap(); + let span = spans.next_back().unwrap(); + for (ch, span) in chars.zip(spans) { + tokens.append(Punct::new_spanned(ch, Spacing::Joint, *span)); + } + + tokens.append(Punct::new_spanned(ch, Spacing::Alone, *span)); + } + + pub(crate) fn keyword(s: &str, span: Span, tokens: &mut TokenStream) { + tokens.append(Ident::new(s, span)); + } + + pub(crate) fn delim( + delim: Delimiter, + span: Span, + tokens: &mut TokenStream, + inner: TokenStream, + ) { + let mut g = Group::new(delim, inner); + g.set_span(span); + tokens.append(g); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/src/ty.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/src/ty.rs new file mode 100644 index 0000000000000000000000000000000000000000..aae7371e592792b783d05a954738365f840f638d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/src/ty.rs @@ -0,0 +1,1275 @@ +use crate::attr::Attribute; +use crate::expr::Expr; +use crate::generics::{BoundLifetimes, TypeParamBound}; +use crate::ident::Ident; +use crate::lifetime::Lifetime; +use crate::lit::LitStr; +use crate::mac::Macro; +use crate::path::{Path, QSelf}; +use crate::punctuated::Punctuated; +use crate::token; +use alloc::boxed::Box; +use alloc::vec::Vec; +use proc_macro2::TokenStream; + +ast_enum_of_structs! { + /// The possible types that a Rust value could have. + /// + /// # Syntax tree enum + /// + /// This type is a [syntax tree enum]. + /// + /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + #[non_exhaustive] + pub enum Type { + /// A fixed size array type: `[T; n]`. + Array(TypeArray), + + /// A bare function type: `fn(usize) -> bool`. + BareFn(TypeBareFn), + + /// A type contained within invisible delimiters. + Group(TypeGroup), + + /// An `impl Bound1 + Bound2 + Bound3` type where `Bound` is a trait or + /// a lifetime. + ImplTrait(TypeImplTrait), + + /// Indication that a type should be inferred by the compiler: `_`. + Infer(TypeInfer), + + /// A macro in the type position. + Macro(TypeMacro), + + /// The never type: `!`. + Never(TypeNever), + + /// A parenthesized type equivalent to the inner type. + Paren(TypeParen), + + /// A path like `core::slice::Iter`, optionally qualified with a + /// self-type as in ` as SomeTrait>::Associated`. + Path(TypePath), + + /// A raw pointer type: `*const T` or `*mut T`. + Ptr(TypePtr), + + /// A reference type: `&'a T` or `&'a mut T`. + Reference(TypeReference), + + /// A dynamically sized slice type: `[T]`. + Slice(TypeSlice), + + /// A trait object type `dyn Bound1 + Bound2 + Bound3` where `Bound` is a + /// trait or a lifetime. + TraitObject(TypeTraitObject), + + /// A tuple type: `(A, B, C, String)`. + Tuple(TypeTuple), + + /// Tokens in type position not interpreted by Syn. + Verbatim(TokenStream), + + // For testing exhaustiveness in downstream code, use the following idiom: + // + // match ty { + // #![cfg_attr(test, deny(non_exhaustive_omitted_patterns))] + // + // Type::Array(ty) => {...} + // Type::BareFn(ty) => {...} + // ... + // Type::Verbatim(ty) => {...} + // + // _ => { /* 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. + } +} + +ast_struct! { + /// A fixed size array type: `[T; n]`. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypeArray { + pub bracket_token: token::Bracket, + pub elem: Box, + pub semi_token: Token![;], + pub len: Expr, + } +} + +ast_struct! { + /// A bare function type: `fn(usize) -> bool`. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypeBareFn { + pub lifetimes: Option, + pub unsafety: Option, + pub abi: Option, + pub fn_token: Token![fn], + pub paren_token: token::Paren, + pub inputs: Punctuated, + pub variadic: Option, + pub output: ReturnType, + } +} + +ast_struct! { + /// A type contained within invisible delimiters. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypeGroup { + pub group_token: token::Group, + pub elem: Box, + } +} + +ast_struct! { + /// An `impl Bound1 + Bound2 + Bound3` type where `Bound` is a trait or + /// a lifetime. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypeImplTrait { + pub impl_token: Token![impl], + pub bounds: Punctuated, + } +} + +ast_struct! { + /// Indication that a type should be inferred by the compiler: `_`. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypeInfer { + pub underscore_token: Token![_], + } +} + +ast_struct! { + /// A macro in the type position. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypeMacro { + pub mac: Macro, + } +} + +ast_struct! { + /// The never type: `!`. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypeNever { + pub bang_token: Token![!], + } +} + +ast_struct! { + /// A parenthesized type equivalent to the inner type. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypeParen { + pub paren_token: token::Paren, + pub elem: Box, + } +} + +ast_struct! { + /// A path like `core::slice::Iter`, optionally qualified with a + /// self-type as in ` as SomeTrait>::Associated`. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypePath { + pub qself: Option, + pub path: Path, + } +} + +ast_struct! { + /// A raw pointer type: `*const T` or `*mut T`. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypePtr { + pub star_token: Token![*], + pub const_token: Option, + pub mutability: Option, + pub elem: Box, + } +} + +ast_struct! { + /// A reference type: `&'a T` or `&'a mut T`. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypeReference { + pub and_token: Token![&], + pub lifetime: Option, + pub mutability: Option, + pub elem: Box, + } +} + +ast_struct! { + /// A dynamically sized slice type: `[T]`. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypeSlice { + pub bracket_token: token::Bracket, + pub elem: Box, + } +} + +ast_struct! { + /// A trait object type `dyn Bound1 + Bound2 + Bound3` where `Bound` is a + /// trait or a lifetime. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypeTraitObject { + pub dyn_token: Option, + pub bounds: Punctuated, + } +} + +ast_struct! { + /// A tuple type: `(A, B, C, String)`. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct TypeTuple { + pub paren_token: token::Paren, + pub elems: Punctuated, + } +} + +ast_struct! { + /// The binary interface of a function: `extern "C"`. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct Abi { + pub extern_token: Token![extern], + pub name: Option, + } +} + +ast_struct! { + /// An argument in a function type: the `usize` in `fn(usize) -> bool`. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct BareFnArg { + pub attrs: Vec, + pub name: Option<(Ident, Token![:])>, + pub ty: Type, + } +} + +ast_struct! { + /// The variadic argument of a function pointer like `fn(usize, ...)`. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct BareVariadic { + pub attrs: Vec, + pub name: Option<(Ident, Token![:])>, + pub dots: Token![...], + pub comma: Option, + } +} + +ast_enum! { + /// Return type of a function signature. + #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] + pub enum ReturnType { + /// Return type is not specified. + /// + /// Functions default to `()` and closures default to type inference. + Default, + /// A particular type is returned. + Type(Token![->], Box), + } +} + +#[cfg(feature = "parsing")] +pub(crate) mod parsing { + use crate::attr::Attribute; + use crate::error::{self, Result}; + use crate::ext::IdentExt as _; + use crate::generics::{BoundLifetimes, TraitBound, TraitBoundModifier, TypeParamBound}; + use crate::ident::Ident; + use crate::lifetime::Lifetime; + use crate::mac::{self, Macro}; + use crate::parse::{Parse, ParseStream}; + use crate::path; + use crate::path::{Path, PathArguments, QSelf}; + use crate::punctuated::Punctuated; + use crate::token; + use crate::ty::{ + Abi, BareFnArg, BareVariadic, ReturnType, Type, TypeArray, TypeBareFn, TypeGroup, + TypeImplTrait, TypeInfer, TypeMacro, TypeNever, TypeParen, TypePath, TypePtr, + TypeReference, TypeSlice, TypeTraitObject, TypeTuple, + }; + use crate::verbatim; + use alloc::boxed::Box; + use alloc::vec::Vec; + use proc_macro2::Span; + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for Type { + fn parse(input: ParseStream) -> Result { + let allow_plus = true; + let allow_group_generic = true; + ambig_ty(input, allow_plus, allow_group_generic) + } + } + + impl Type { + /// In some positions, types may not contain the `+` character, to + /// disambiguate them. For example in the expression `1 as T`, T may not + /// contain a `+` character. + /// + /// This parser does not allow a `+`, while the default parser does. + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + pub fn without_plus(input: ParseStream) -> Result { + let allow_plus = false; + let allow_group_generic = true; + ambig_ty(input, allow_plus, allow_group_generic) + } + } + + pub(crate) fn ambig_ty( + input: ParseStream, + allow_plus: bool, + allow_group_generic: bool, + ) -> Result { + let begin = input.fork(); + + if input.peek(token::Group) { + let mut group: TypeGroup = input.parse()?; + if input.peek(Token![::]) && input.peek3(Ident::peek_any) { + if let Type::Path(mut ty) = *group.elem { + Path::parse_rest(input, &mut ty.path, false)?; + return Ok(Type::Path(ty)); + } else { + return Ok(Type::Path(TypePath { + qself: Some(QSelf { + lt_token: Token![<](group.group_token.span), + position: 0, + as_token: None, + gt_token: Token![>](group.group_token.span), + ty: group.elem, + }), + path: Path::parse_helper(input, false)?, + })); + } + } else if input.peek(Token![<]) && allow_group_generic + || input.peek(Token![::]) && input.peek3(Token![<]) + { + if let Type::Path(mut ty) = *group.elem { + let arguments = &mut ty.path.segments.last_mut().unwrap().arguments; + if arguments.is_none() { + *arguments = PathArguments::AngleBracketed(input.parse()?); + Path::parse_rest(input, &mut ty.path, false)?; + return Ok(Type::Path(ty)); + } else { + *group.elem = Type::Path(ty); + } + } + } + return Ok(Type::Group(group)); + } + + let mut lifetimes = None::; + let mut lookahead = input.lookahead1(); + if lookahead.peek(Token![for]) { + lifetimes = input.parse()?; + lookahead = input.lookahead1(); + if !lookahead.peek(Ident) + && !lookahead.peek(Token![fn]) + && !lookahead.peek(Token![unsafe]) + && !lookahead.peek(Token![extern]) + && !lookahead.peek(Token![super]) + && !lookahead.peek(Token![self]) + && !lookahead.peek(Token![Self]) + && !lookahead.peek(Token![crate]) + || input.peek(Token![dyn]) + { + return Err(lookahead.error()); + } + } + + if lookahead.peek(token::Paren) { + let content; + let paren_token = parenthesized!(content in input); + if content.is_empty() { + return Ok(Type::Tuple(TypeTuple { + paren_token, + elems: Punctuated::new(), + })); + } + if content.peek(Lifetime) { + return Ok(Type::Paren(TypeParen { + paren_token, + elem: Box::new(Type::TraitObject(content.parse()?)), + })); + } + if content.peek(Token![?]) { + return Ok(Type::TraitObject(TypeTraitObject { + dyn_token: None, + bounds: { + let mut bounds = Punctuated::new(); + bounds.push_value(TypeParamBound::Trait(TraitBound { + paren_token: Some(paren_token), + ..content.parse()? + })); + while let Some(plus) = input.parse()? { + bounds.push_punct(plus); + bounds.push_value({ + let allow_precise_capture = false; + let allow_const = false; + TypeParamBound::parse_single( + input, + allow_precise_capture, + allow_const, + )? + }); + } + bounds + }, + })); + } + let mut first: Type = content.parse()?; + if content.peek(Token![,]) { + return Ok(Type::Tuple(TypeTuple { + paren_token, + elems: { + let mut elems = Punctuated::new(); + elems.push_value(first); + elems.push_punct(content.parse()?); + while !content.is_empty() { + elems.push_value(content.parse()?); + if content.is_empty() { + break; + } + elems.push_punct(content.parse()?); + } + elems + }, + })); + } + if allow_plus && input.peek(Token![+]) { + loop { + let first = match first { + Type::Path(TypePath { qself: None, path }) => { + TypeParamBound::Trait(TraitBound { + paren_token: Some(paren_token), + modifier: TraitBoundModifier::None, + lifetimes: None, + path, + }) + } + Type::TraitObject(TypeTraitObject { + dyn_token: None, + bounds, + }) => { + if bounds.len() > 1 || bounds.trailing_punct() { + first = Type::TraitObject(TypeTraitObject { + dyn_token: None, + bounds, + }); + break; + } + match bounds.into_iter().next().unwrap() { + TypeParamBound::Trait(trait_bound) => { + TypeParamBound::Trait(TraitBound { + paren_token: Some(paren_token), + ..trait_bound + }) + } + other @ (TypeParamBound::Lifetime(_) + | TypeParamBound::PreciseCapture(_) + | TypeParamBound::Verbatim(_)) => other, + } + } + _ => break, + }; + return Ok(Type::TraitObject(TypeTraitObject { + dyn_token: None, + bounds: { + let mut bounds = Punctuated::new(); + bounds.push_value(first); + while let Some(plus) = input.parse()? { + bounds.push_punct(plus); + bounds.push_value({ + let allow_precise_capture = false; + let allow_const = false; + TypeParamBound::parse_single( + input, + allow_precise_capture, + allow_const, + )? + }); + } + bounds + }, + })); + } + } + Ok(Type::Paren(TypeParen { + paren_token, + elem: Box::new(first), + })) + } else if lookahead.peek(Token![fn]) + || lookahead.peek(Token![unsafe]) + || lookahead.peek(Token![extern]) + { + let mut bare_fn: TypeBareFn = input.parse()?; + bare_fn.lifetimes = lifetimes; + Ok(Type::BareFn(bare_fn)) + } else if lookahead.peek(Ident) + || input.peek(Token![super]) + || input.peek(Token![self]) + || input.peek(Token![Self]) + || input.peek(Token![crate]) + || lookahead.peek(Token![::]) + || lookahead.peek(Token![<]) + { + let ty: TypePath = input.parse()?; + if ty.qself.is_some() { + return Ok(Type::Path(ty)); + } + + if input.peek(Token![!]) && !input.peek(Token![!=]) && ty.path.is_mod_style() { + let bang_token: Token![!] = input.parse()?; + let (delimiter, tokens) = mac::parse_delimiter(input)?; + return Ok(Type::Macro(TypeMacro { + mac: Macro { + path: ty.path, + bang_token, + delimiter, + tokens, + }, + })); + } + + if lifetimes.is_some() || allow_plus && input.peek(Token![+]) { + let mut bounds = Punctuated::new(); + bounds.push_value(TypeParamBound::Trait(TraitBound { + paren_token: None, + modifier: TraitBoundModifier::None, + lifetimes, + path: ty.path, + })); + if allow_plus { + while input.peek(Token![+]) { + bounds.push_punct(input.parse()?); + if !(input.peek(Ident::peek_any) + || input.peek(Token![::]) + || input.peek(Token![?]) + || input.peek(Lifetime) + || input.peek(token::Paren)) + { + break; + } + bounds.push_value({ + let allow_precise_capture = false; + let allow_const = false; + TypeParamBound::parse_single(input, allow_precise_capture, allow_const)? + }); + } + } + return Ok(Type::TraitObject(TypeTraitObject { + dyn_token: None, + bounds, + })); + } + + Ok(Type::Path(ty)) + } else if lookahead.peek(Token![dyn]) { + let dyn_token: Token![dyn] = input.parse()?; + let dyn_span = dyn_token.span; + let star_token: Option = input.parse()?; + let bounds = TypeTraitObject::parse_bounds(dyn_span, input, allow_plus)?; + Ok(if star_token.is_some() { + Type::Verbatim(verbatim::between(&begin, input)) + } else { + Type::TraitObject(TypeTraitObject { + dyn_token: Some(dyn_token), + bounds, + }) + }) + } else if lookahead.peek(token::Bracket) { + let content; + let bracket_token = bracketed!(content in input); + let elem: Type = content.parse()?; + if content.peek(Token![;]) { + Ok(Type::Array(TypeArray { + bracket_token, + elem: Box::new(elem), + semi_token: content.parse()?, + len: content.parse()?, + })) + } else { + Ok(Type::Slice(TypeSlice { + bracket_token, + elem: Box::new(elem), + })) + } + } else if lookahead.peek(Token![*]) { + input.parse().map(Type::Ptr) + } else if lookahead.peek(Token![&]) { + input.parse().map(Type::Reference) + } else if lookahead.peek(Token![!]) && !input.peek(Token![=]) { + input.parse().map(Type::Never) + } else if lookahead.peek(Token![impl]) { + TypeImplTrait::parse(input, allow_plus).map(Type::ImplTrait) + } else if lookahead.peek(Token![_]) { + input.parse().map(Type::Infer) + } else if lookahead.peek(Lifetime) { + input.parse().map(Type::TraitObject) + } else { + Err(lookahead.error()) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypeSlice { + fn parse(input: ParseStream) -> Result { + let content; + Ok(TypeSlice { + bracket_token: bracketed!(content in input), + elem: content.parse()?, + }) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypeArray { + fn parse(input: ParseStream) -> Result { + let content; + Ok(TypeArray { + bracket_token: bracketed!(content in input), + elem: content.parse()?, + semi_token: content.parse()?, + len: content.parse()?, + }) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypePtr { + fn parse(input: ParseStream) -> Result { + let star_token: Token![*] = input.parse()?; + + let lookahead = input.lookahead1(); + let (const_token, mutability) = if lookahead.peek(Token![const]) { + (Some(input.parse()?), None) + } else if lookahead.peek(Token![mut]) { + (None, Some(input.parse()?)) + } else { + return Err(lookahead.error()); + }; + + Ok(TypePtr { + star_token, + const_token, + mutability, + elem: Box::new(input.call(Type::without_plus)?), + }) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypeReference { + fn parse(input: ParseStream) -> Result { + Ok(TypeReference { + and_token: input.parse()?, + lifetime: input.parse()?, + mutability: input.parse()?, + // & binds tighter than +, so we don't allow + here. + elem: Box::new(input.call(Type::without_plus)?), + }) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypeBareFn { + fn parse(input: ParseStream) -> Result { + let args; + let mut variadic = None; + + Ok(TypeBareFn { + lifetimes: input.parse()?, + unsafety: input.parse()?, + abi: input.parse()?, + fn_token: input.parse()?, + paren_token: parenthesized!(args in input), + inputs: { + let mut inputs = Punctuated::new(); + + while !args.is_empty() { + let attrs = args.call(Attribute::parse_outer)?; + + if inputs.empty_or_trailing() + && (args.peek(Token![...]) + || (args.peek(Ident) || args.peek(Token![_])) + && args.peek2(Token![:]) + && args.peek3(Token![...])) + { + variadic = Some(parse_bare_variadic(&args, attrs)?); + break; + } + + let allow_self = inputs.is_empty(); + let arg = parse_bare_fn_arg(&args, allow_self)?; + inputs.push_value(BareFnArg { attrs, ..arg }); + if args.is_empty() { + break; + } + + let comma = args.parse()?; + inputs.push_punct(comma); + } + + inputs + }, + variadic, + output: input.call(ReturnType::without_plus)?, + }) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypeNever { + fn parse(input: ParseStream) -> Result { + Ok(TypeNever { + bang_token: input.parse()?, + }) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypeInfer { + fn parse(input: ParseStream) -> Result { + Ok(TypeInfer { + underscore_token: input.parse()?, + }) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypeTuple { + fn parse(input: ParseStream) -> Result { + let content; + let paren_token = parenthesized!(content in input); + + if content.is_empty() { + return Ok(TypeTuple { + paren_token, + elems: Punctuated::new(), + }); + } + + let first: Type = content.parse()?; + Ok(TypeTuple { + paren_token, + elems: { + let mut elems = Punctuated::new(); + elems.push_value(first); + elems.push_punct(content.parse()?); + while !content.is_empty() { + elems.push_value(content.parse()?); + if content.is_empty() { + break; + } + elems.push_punct(content.parse()?); + } + elems + }, + }) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypeMacro { + fn parse(input: ParseStream) -> Result { + Ok(TypeMacro { + mac: input.parse()?, + }) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypePath { + fn parse(input: ParseStream) -> Result { + let expr_style = false; + let (qself, path) = path::parsing::qpath(input, expr_style)?; + Ok(TypePath { qself, path }) + } + } + + impl ReturnType { + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + pub fn without_plus(input: ParseStream) -> Result { + let allow_plus = false; + Self::parse(input, allow_plus) + } + + pub(crate) fn parse(input: ParseStream, allow_plus: bool) -> Result { + if input.peek(Token![->]) { + let arrow = input.parse()?; + let allow_group_generic = true; + let ty = ambig_ty(input, allow_plus, allow_group_generic)?; + Ok(ReturnType::Type(arrow, Box::new(ty))) + } else { + Ok(ReturnType::Default) + } + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for ReturnType { + fn parse(input: ParseStream) -> Result { + let allow_plus = true; + Self::parse(input, allow_plus) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypeTraitObject { + fn parse(input: ParseStream) -> Result { + let allow_plus = true; + Self::parse(input, allow_plus) + } + } + + impl TypeTraitObject { + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + pub fn without_plus(input: ParseStream) -> Result { + let allow_plus = false; + Self::parse(input, allow_plus) + } + + // Only allow multiple trait references if allow_plus is true. + pub(crate) fn parse(input: ParseStream, allow_plus: bool) -> Result { + let dyn_token: Option = input.parse()?; + let dyn_span = match &dyn_token { + Some(token) => token.span, + None => input.span(), + }; + let bounds = Self::parse_bounds(dyn_span, input, allow_plus)?; + Ok(TypeTraitObject { dyn_token, bounds }) + } + + fn parse_bounds( + dyn_span: Span, + input: ParseStream, + allow_plus: bool, + ) -> Result> { + let allow_precise_capture = false; + let allow_const = false; + let bounds = TypeParamBound::parse_multiple( + input, + allow_plus, + allow_precise_capture, + allow_const, + )?; + let mut last_lifetime_span = None; + let mut at_least_one_trait = false; + for bound in &bounds { + match bound { + TypeParamBound::Trait(_) => { + at_least_one_trait = true; + break; + } + TypeParamBound::Lifetime(lifetime) => { + last_lifetime_span = Some(lifetime.ident.span()); + } + TypeParamBound::PreciseCapture(_) | TypeParamBound::Verbatim(_) => { + unreachable!() + } + } + } + // Just lifetimes like `'a + 'b` is not a TraitObject. + if !at_least_one_trait { + let msg = "at least one trait is required for an object type"; + return Err(error::new2(dyn_span, last_lifetime_span.unwrap(), msg)); + } + Ok(bounds) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypeImplTrait { + fn parse(input: ParseStream) -> Result { + let allow_plus = true; + Self::parse(input, allow_plus) + } + } + + impl TypeImplTrait { + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + pub fn without_plus(input: ParseStream) -> Result { + let allow_plus = false; + Self::parse(input, allow_plus) + } + + pub(crate) fn parse(input: ParseStream, allow_plus: bool) -> Result { + let impl_token: Token![impl] = input.parse()?; + let allow_precise_capture = true; + let allow_const = true; + let bounds = TypeParamBound::parse_multiple( + input, + allow_plus, + allow_precise_capture, + allow_const, + )?; + let mut last_nontrait_span = None; + let mut at_least_one_trait = false; + for bound in &bounds { + match bound { + TypeParamBound::Trait(_) => { + at_least_one_trait = true; + break; + } + TypeParamBound::Lifetime(lifetime) => { + last_nontrait_span = Some(lifetime.ident.span()); + } + TypeParamBound::PreciseCapture(precise_capture) => { + #[cfg(feature = "full")] + { + last_nontrait_span = Some(precise_capture.gt_token.span); + } + #[cfg(not(feature = "full"))] + { + _ = precise_capture; + unreachable!(); + } + } + TypeParamBound::Verbatim(_) => { + // `[const] Trait` + at_least_one_trait = true; + break; + } + } + } + if !at_least_one_trait { + let msg = "at least one trait must be specified"; + return Err(error::new2( + impl_token.span, + last_nontrait_span.unwrap(), + msg, + )); + } + Ok(TypeImplTrait { impl_token, bounds }) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypeGroup { + fn parse(input: ParseStream) -> Result { + let group = crate::group::parse_group(input)?; + Ok(TypeGroup { + group_token: group.token, + elem: group.content.parse()?, + }) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for TypeParen { + fn parse(input: ParseStream) -> Result { + let allow_plus = false; + Self::parse(input, allow_plus) + } + } + + impl TypeParen { + fn parse(input: ParseStream, allow_plus: bool) -> Result { + let content; + Ok(TypeParen { + paren_token: parenthesized!(content in input), + elem: Box::new({ + let allow_group_generic = true; + ambig_ty(&content, allow_plus, allow_group_generic)? + }), + }) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for BareFnArg { + fn parse(input: ParseStream) -> Result { + let allow_self = false; + parse_bare_fn_arg(input, allow_self) + } + } + + fn parse_bare_fn_arg(input: ParseStream, allow_self: bool) -> Result { + let attrs = input.call(Attribute::parse_outer)?; + + let begin = input.fork(); + + let has_mut_self = allow_self && input.peek(Token![mut]) && input.peek2(Token![self]); + if has_mut_self { + input.parse::()?; + } + + let mut has_self = false; + let mut name = if (input.peek(Ident) || input.peek(Token![_]) || { + has_self = allow_self && input.peek(Token![self]); + has_self + }) && input.peek2(Token![:]) + && !input.peek2(Token![::]) + { + let name = input.call(Ident::parse_any)?; + let colon: Token![:] = input.parse()?; + Some((name, colon)) + } else { + has_self = false; + None + }; + + let ty = if allow_self && !has_self && input.peek(Token![mut]) && input.peek2(Token![self]) + { + input.parse::()?; + input.parse::()?; + None + } else if has_mut_self && name.is_none() { + input.parse::()?; + None + } else { + Some(input.parse()?) + }; + + let ty = match ty { + Some(ty) if !has_mut_self => ty, + _ => { + name = None; + Type::Verbatim(verbatim::between(&begin, input)) + } + }; + + Ok(BareFnArg { attrs, name, ty }) + } + + fn parse_bare_variadic(input: ParseStream, attrs: Vec) -> Result { + Ok(BareVariadic { + attrs, + name: if input.peek(Ident) || input.peek(Token![_]) { + let name = input.call(Ident::parse_any)?; + let colon: Token![:] = input.parse()?; + Some((name, colon)) + } else { + None + }, + dots: input.parse()?, + comma: input.parse()?, + }) + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for Abi { + fn parse(input: ParseStream) -> Result { + Ok(Abi { + extern_token: input.parse()?, + name: input.parse()?, + }) + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] + impl Parse for Option { + fn parse(input: ParseStream) -> Result { + if input.peek(Token![extern]) { + input.parse().map(Some) + } else { + Ok(None) + } + } + } +} + +#[cfg(feature = "printing")] +mod printing { + use crate::attr::FilterAttrs; + use crate::path; + use crate::path::printing::PathStyle; + use crate::print::TokensOrDefault; + use crate::ty::{ + Abi, BareFnArg, BareVariadic, ReturnType, TypeArray, TypeBareFn, TypeGroup, TypeImplTrait, + TypeInfer, TypeMacro, TypeNever, TypeParen, TypePath, TypePtr, TypeReference, TypeSlice, + TypeTraitObject, TypeTuple, + }; + use proc_macro2::TokenStream; + use quote::{ToTokens, TokenStreamExt as _}; + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypeSlice { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.bracket_token.surround(tokens, |tokens| { + self.elem.to_tokens(tokens); + }); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypeArray { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.bracket_token.surround(tokens, |tokens| { + self.elem.to_tokens(tokens); + self.semi_token.to_tokens(tokens); + self.len.to_tokens(tokens); + }); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypePtr { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.star_token.to_tokens(tokens); + match &self.mutability { + Some(tok) => tok.to_tokens(tokens), + None => { + TokensOrDefault(&self.const_token).to_tokens(tokens); + } + } + self.elem.to_tokens(tokens); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypeReference { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.and_token.to_tokens(tokens); + self.lifetime.to_tokens(tokens); + self.mutability.to_tokens(tokens); + self.elem.to_tokens(tokens); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypeBareFn { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.lifetimes.to_tokens(tokens); + self.unsafety.to_tokens(tokens); + self.abi.to_tokens(tokens); + self.fn_token.to_tokens(tokens); + self.paren_token.surround(tokens, |tokens| { + self.inputs.to_tokens(tokens); + if let Some(variadic) = &self.variadic { + if !self.inputs.empty_or_trailing() { + let span = variadic.dots.spans[0]; + Token![,](span).to_tokens(tokens); + } + variadic.to_tokens(tokens); + } + }); + self.output.to_tokens(tokens); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypeNever { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.bang_token.to_tokens(tokens); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypeTuple { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.paren_token.surround(tokens, |tokens| { + self.elems.to_tokens(tokens); + // If we only have one argument, we need a trailing comma to + // distinguish TypeTuple from TypeParen. + if self.elems.len() == 1 && !self.elems.trailing_punct() { + ::default().to_tokens(tokens); + } + }); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypePath { + fn to_tokens(&self, tokens: &mut TokenStream) { + path::printing::print_qpath(tokens, &self.qself, &self.path, PathStyle::AsWritten); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypeTraitObject { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.dyn_token.to_tokens(tokens); + self.bounds.to_tokens(tokens); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypeImplTrait { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.impl_token.to_tokens(tokens); + self.bounds.to_tokens(tokens); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypeGroup { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.group_token.surround(tokens, |tokens| { + self.elem.to_tokens(tokens); + }); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypeParen { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.paren_token.surround(tokens, |tokens| { + self.elem.to_tokens(tokens); + }); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypeInfer { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.underscore_token.to_tokens(tokens); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for TypeMacro { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.mac.to_tokens(tokens); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for ReturnType { + fn to_tokens(&self, tokens: &mut TokenStream) { + match self { + ReturnType::Default => {} + ReturnType::Type(arrow, ty) => { + arrow.to_tokens(tokens); + ty.to_tokens(tokens); + } + } + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for BareFnArg { + fn to_tokens(&self, tokens: &mut TokenStream) { + tokens.append_all(self.attrs.outer()); + if let Some((name, colon)) = &self.name { + name.to_tokens(tokens); + colon.to_tokens(tokens); + } + self.ty.to_tokens(tokens); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for BareVariadic { + fn to_tokens(&self, tokens: &mut TokenStream) { + tokens.append_all(self.attrs.outer()); + if let Some((name, colon)) = &self.name { + name.to_tokens(tokens); + colon.to_tokens(tokens); + } + self.dots.to_tokens(tokens); + self.comma.to_tokens(tokens); + } + } + + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] + impl ToTokens for Abi { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.extern_token.to_tokens(tokens); + self.name.to_tokens(tokens); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/src/verbatim.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/src/verbatim.rs new file mode 100644 index 0000000000000000000000000000000000000000..c05a0c61d1d083eb89779f36f212749763b608fd --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/src/verbatim.rs @@ -0,0 +1,33 @@ +use crate::ext::TokenStreamExt as _; +use crate::parse::ParseStream; +use core::cmp::Ordering; +use proc_macro2::{Delimiter, TokenStream}; + +pub(crate) fn between<'a>(begin: ParseStream<'a>, end: ParseStream<'a>) -> TokenStream { + let end = end.cursor(); + let mut cursor = begin.cursor(); + assert!(crate::buffer::same_buffer(end, cursor)); + + let mut tokens = TokenStream::new(); + while cursor != end { + let (tt, next) = cursor.token_tree().unwrap(); + + if crate::buffer::cmp_assuming_same_buffer(end, next) == Ordering::Less { + // A syntax node can cross the boundary of a None-delimited group + // due to such groups being transparent to the parser in most cases. + // Any time this occurs the group is known to be semantically + // irrelevant. https://github.com/dtolnay/syn/issues/1235 + if let Some((inside, _span, after)) = cursor.group(Delimiter::None) { + assert!(next == after); + cursor = inside; + continue; + } else { + panic!("verbatim end must not be inside a delimited group"); + } + } + + tokens.append(tt); + cursor = next; + } + tokens +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/src/whitespace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/src/whitespace.rs new file mode 100644 index 0000000000000000000000000000000000000000..a50b5069a68b929f87e6f806550584775b633b3c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/src/whitespace.rs @@ -0,0 +1,65 @@ +pub(crate) fn skip(mut s: &str) -> &str { + 'skip: while !s.is_empty() { + let byte = s.as_bytes()[0]; + if byte == b'/' { + if s.starts_with("//") + && (!s.starts_with("///") || s.starts_with("////")) + && !s.starts_with("//!") + { + if let Some(i) = s.find('\n') { + s = &s[i + 1..]; + continue; + } else { + return ""; + } + } else if s.starts_with("/**/") { + s = &s[4..]; + continue; + } else if s.starts_with("/*") + && (!s.starts_with("/**") || s.starts_with("/***")) + && !s.starts_with("/*!") + { + let mut depth = 0; + let bytes = s.as_bytes(); + let mut i = 0; + let upper = bytes.len() - 1; + while i < upper { + if bytes[i] == b'/' && bytes[i + 1] == b'*' { + depth += 1; + i += 1; // eat '*' + } else if bytes[i] == b'*' && bytes[i + 1] == b'/' { + depth -= 1; + if depth == 0 { + s = &s[i + 2..]; + continue 'skip; + } + i += 1; // eat '/' + } + i += 1; + } + return s; + } + } + match byte { + b' ' | 0x09..=0x0D => { + s = &s[1..]; + continue; + } + b if b <= 0x7F => {} + _ => { + let ch = s.chars().next().unwrap(); + if is_whitespace(ch) { + s = &s[ch.len_utf8()..]; + continue; + } + } + } + return s; + } + s +} + +fn is_whitespace(ch: char) -> bool { + // Rust treats left-to-right mark and right-to-left mark as whitespace + ch.is_whitespace() || ch == '\u{200e}' || ch == '\u{200f}' +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/regression.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/regression.rs new file mode 100644 index 0000000000000000000000000000000000000000..5c7fcddc8da9a6cdf72abfb71d575da8ee907316 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/regression.rs @@ -0,0 +1,5 @@ +#![allow(clippy::let_underscore_untyped, clippy::uninlined_format_args)] + +mod regression { + automod::dir!("tests/regression"); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_asyncness.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_asyncness.rs new file mode 100644 index 0000000000000000000000000000000000000000..c7aee3285bb29a2e919f29cbda23c8077dfc67ff --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_asyncness.rs @@ -0,0 +1,49 @@ +#![allow( + clippy::elidable_lifetime_names, + clippy::needless_lifetimes, + clippy::uninlined_format_args +)] + +#[macro_use] +mod snapshot; + +mod debug; + +use syn::{Expr, Item}; + +#[test] +fn test_async_fn() { + let input = "async fn process() {}"; + + snapshot!(input as Item, @r#" + Item::Fn { + vis: Visibility::Inherited, + sig: Signature { + asyncness: Some, + ident: "process", + generics: Generics, + output: ReturnType::Default, + }, + block: Block { + stmts: [], + }, + } + "#); +} + +#[test] +fn test_async_closure() { + let input = "async || {}"; + + snapshot!(input as Expr, @r#" + Expr::Closure { + asyncness: Some, + output: ReturnType::Default, + body: Expr::Block { + block: Block { + stmts: [], + }, + }, + } + "#); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_attribute.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_attribute.rs new file mode 100644 index 0000000000000000000000000000000000000000..81c485e6b28fc72f2b210582262772e40127b040 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_attribute.rs @@ -0,0 +1,231 @@ +#![allow( + clippy::elidable_lifetime_names, + clippy::needless_lifetimes, + clippy::uninlined_format_args +)] + +#[macro_use] +mod snapshot; + +mod debug; + +use syn::parse::Parser; +use syn::{Attribute, Meta}; + +#[test] +fn test_meta_item_word() { + let meta = test("#[foo]"); + + snapshot!(meta, @r#" + Meta::Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + } + "#); +} + +#[test] +fn test_meta_item_name_value() { + let meta = test("#[foo = 5]"); + + snapshot!(meta, @r#" + Meta::NameValue { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + value: Expr::Lit { + lit: 5, + }, + } + "#); +} + +#[test] +fn test_meta_item_bool_value() { + let meta = test("#[foo = true]"); + + snapshot!(meta, @r#" + Meta::NameValue { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + value: Expr::Lit { + lit: Lit::Bool { + value: true, + }, + }, + } + "#); + + let meta = test("#[foo = false]"); + + snapshot!(meta, @r#" + Meta::NameValue { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + value: Expr::Lit { + lit: Lit::Bool { + value: false, + }, + }, + } + "#); +} + +#[test] +fn test_meta_item_list_lit() { + let meta = test("#[foo(5)]"); + + snapshot!(meta, @r#" + Meta::List { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(`5`), + } + "#); +} + +#[test] +fn test_meta_item_list_word() { + let meta = test("#[foo(bar)]"); + + snapshot!(meta, @r#" + Meta::List { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(`bar`), + } + "#); +} + +#[test] +fn test_meta_item_list_name_value() { + let meta = test("#[foo(bar = 5)]"); + + snapshot!(meta, @r#" + Meta::List { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(`bar = 5`), + } + "#); +} + +#[test] +fn test_meta_item_list_bool_value() { + let meta = test("#[foo(bar = true)]"); + + snapshot!(meta, @r#" + Meta::List { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(`bar = true`), + } + "#); +} + +#[test] +fn test_meta_item_multiple() { + let meta = test("#[foo(word, name = 5, list(name2 = 6), word2)]"); + + snapshot!(meta, @r#" + Meta::List { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(`word , name = 5 , list (name2 = 6) , word2`), + } + "#); +} + +#[test] +fn test_bool_lit() { + let meta = test("#[foo(true)]"); + + snapshot!(meta, @r#" + Meta::List { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(`true`), + } + "#); +} + +#[test] +fn test_negative_lit() { + let meta = test("#[form(min = -1, max = 200)]"); + + snapshot!(meta, @r#" + Meta::List { + path: Path { + segments: [ + PathSegment { + ident: "form", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(`min = - 1 , max = 200`), + } + "#); +} + +fn test(input: &str) -> Meta { + let attrs = Attribute::parse_outer.parse_str(input).unwrap(); + + assert_eq!(attrs.len(), 1); + let attr = attrs.into_iter().next().unwrap(); + + attr.meta +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_derive_input.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_derive_input.rs new file mode 100644 index 0000000000000000000000000000000000000000..790e2792adb3a77d6608f8229c80aa1181deed18 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_derive_input.rs @@ -0,0 +1,785 @@ +#![allow( + clippy::assertions_on_result_states, + clippy::elidable_lifetime_names, + clippy::manual_let_else, + clippy::needless_lifetimes, + clippy::too_many_lines, + clippy::uninlined_format_args +)] + +#[macro_use] +mod snapshot; + +mod debug; + +use quote::quote; +use syn::{Data, DeriveInput}; + +#[test] +fn test_unit() { + let input = quote! { + struct Unit; + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + vis: Visibility::Inherited, + ident: "Unit", + generics: Generics, + data: Data::Struct { + fields: Fields::Unit, + semi_token: Some, + }, + } + "#); +} + +#[test] +fn test_struct() { + let input = quote! { + #[derive(Debug, Clone)] + pub struct Item { + pub ident: Ident, + pub attrs: Vec + } + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + attrs: [ + Attribute { + style: AttrStyle::Outer, + meta: Meta::List { + path: Path { + segments: [ + PathSegment { + ident: "derive", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(`Debug , Clone`), + }, + }, + ], + vis: Visibility::Public, + ident: "Item", + generics: Generics, + data: Data::Struct { + fields: Fields::Named { + named: [ + Field { + vis: Visibility::Public, + ident: Some("ident"), + colon_token: Some, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "Ident", + }, + ], + }, + }, + }, + Token![,], + Field { + vis: Visibility::Public, + ident: Some("attrs"), + colon_token: Some, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "Vec", + arguments: PathArguments::AngleBracketed { + args: [ + GenericArgument::Type(Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "Attribute", + }, + ], + }, + }), + ], + }, + }, + ], + }, + }, + }, + ], + }, + }, + } + "#); + + snapshot!(&input.attrs[0].meta, @r#" + Meta::List { + path: Path { + segments: [ + PathSegment { + ident: "derive", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(`Debug , Clone`), + } + "#); +} + +#[test] +fn test_union() { + let input = quote! { + union MaybeUninit { + uninit: (), + value: T + } + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + vis: Visibility::Inherited, + ident: "MaybeUninit", + generics: Generics { + lt_token: Some, + params: [ + GenericParam::Type(TypeParam { + ident: "T", + }), + ], + gt_token: Some, + }, + data: Data::Union { + fields: FieldsNamed { + named: [ + Field { + vis: Visibility::Inherited, + ident: Some("uninit"), + colon_token: Some, + ty: Type::Tuple, + }, + Token![,], + Field { + vis: Visibility::Inherited, + ident: Some("value"), + colon_token: Some, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "T", + }, + ], + }, + }, + }, + ], + }, + }, + } + "#); +} + +#[test] +#[cfg(feature = "full")] +fn test_enum() { + let input = quote! { + /// See the std::result module documentation for details. + #[must_use] + pub enum Result { + Ok(T), + Err(E), + Surprise = 0isize, + + // Smuggling data into a proc_macro_derive, + // in the style of https://github.com/dtolnay/proc-macro-hack + ProcMacroHack = (0, "data").0 + } + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + attrs: [ + Attribute { + style: AttrStyle::Outer, + meta: Meta::NameValue { + path: Path { + segments: [ + PathSegment { + ident: "doc", + }, + ], + }, + value: Expr::Lit { + lit: " See the std::result module documentation for details.", + }, + }, + }, + Attribute { + style: AttrStyle::Outer, + meta: Meta::Path { + segments: [ + PathSegment { + ident: "must_use", + }, + ], + }, + }, + ], + vis: Visibility::Public, + ident: "Result", + generics: Generics { + lt_token: Some, + params: [ + GenericParam::Type(TypeParam { + ident: "T", + }), + Token![,], + GenericParam::Type(TypeParam { + ident: "E", + }), + ], + gt_token: Some, + }, + data: Data::Enum { + variants: [ + Variant { + ident: "Ok", + fields: Fields::Unnamed { + unnamed: [ + Field { + vis: Visibility::Inherited, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "T", + }, + ], + }, + }, + }, + ], + }, + }, + Token![,], + Variant { + ident: "Err", + fields: Fields::Unnamed { + unnamed: [ + Field { + vis: Visibility::Inherited, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "E", + }, + ], + }, + }, + }, + ], + }, + }, + Token![,], + Variant { + ident: "Surprise", + fields: Fields::Unit, + discriminant: Some(Expr::Lit { + lit: 0isize, + }), + }, + Token![,], + Variant { + ident: "ProcMacroHack", + fields: Fields::Unit, + discriminant: Some(Expr::Field { + base: Expr::Tuple { + elems: [ + Expr::Lit { + lit: 0, + }, + Token![,], + Expr::Lit { + lit: "data", + }, + ], + }, + member: Member::Unnamed(Index { + index: 0, + }), + }), + }, + ], + }, + } + "#); + + let meta_items: Vec<_> = input.attrs.into_iter().map(|attr| attr.meta).collect(); + + snapshot!(meta_items, @r#" + [ + Meta::NameValue { + path: Path { + segments: [ + PathSegment { + ident: "doc", + }, + ], + }, + value: Expr::Lit { + lit: " See the std::result module documentation for details.", + }, + }, + Meta::Path { + segments: [ + PathSegment { + ident: "must_use", + }, + ], + }, + ] + "#); +} + +#[test] +fn test_attr_with_non_mod_style_path() { + let input = quote! { + #[inert ] + struct S; + }; + + syn::parse2::(input).unwrap_err(); +} + +#[test] +fn test_attr_with_mod_style_path_with_self() { + let input = quote! { + #[foo::self] + struct S; + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + attrs: [ + Attribute { + style: AttrStyle::Outer, + meta: Meta::Path { + segments: [ + PathSegment { + ident: "foo", + }, + Token![::], + PathSegment { + ident: "self", + }, + ], + }, + }, + ], + vis: Visibility::Inherited, + ident: "S", + generics: Generics, + data: Data::Struct { + fields: Fields::Unit, + semi_token: Some, + }, + } + "#); + + snapshot!(&input.attrs[0].meta, @r#" + Meta::Path { + segments: [ + PathSegment { + ident: "foo", + }, + Token![::], + PathSegment { + ident: "self", + }, + ], + } + "#); +} + +#[test] +fn test_pub_restricted() { + // Taken from tests/rust/src/test/ui/resolve/auxiliary/privacy-struct-ctor.rs + let input = quote! { + pub(in m) struct Z(pub(in m::n) u8); + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + vis: Visibility::Restricted { + in_token: Some, + path: Path { + segments: [ + PathSegment { + ident: "m", + }, + ], + }, + }, + ident: "Z", + generics: Generics, + data: Data::Struct { + fields: Fields::Unnamed { + unnamed: [ + Field { + vis: Visibility::Restricted { + in_token: Some, + path: Path { + segments: [ + PathSegment { + ident: "m", + }, + Token![::], + PathSegment { + ident: "n", + }, + ], + }, + }, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "u8", + }, + ], + }, + }, + }, + ], + }, + semi_token: Some, + }, + } + "#); +} + +#[test] +fn test_pub_restricted_crate() { + let input = quote! { + pub(crate) struct S; + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + vis: Visibility::Restricted { + path: Path { + segments: [ + PathSegment { + ident: "crate", + }, + ], + }, + }, + ident: "S", + generics: Generics, + data: Data::Struct { + fields: Fields::Unit, + semi_token: Some, + }, + } + "#); +} + +#[test] +fn test_pub_restricted_super() { + let input = quote! { + pub(super) struct S; + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + vis: Visibility::Restricted { + path: Path { + segments: [ + PathSegment { + ident: "super", + }, + ], + }, + }, + ident: "S", + generics: Generics, + data: Data::Struct { + fields: Fields::Unit, + semi_token: Some, + }, + } + "#); +} + +#[test] +fn test_pub_restricted_in_super() { + let input = quote! { + pub(in super) struct S; + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + vis: Visibility::Restricted { + in_token: Some, + path: Path { + segments: [ + PathSegment { + ident: "super", + }, + ], + }, + }, + ident: "S", + generics: Generics, + data: Data::Struct { + fields: Fields::Unit, + semi_token: Some, + }, + } + "#); +} + +#[test] +fn test_fields_on_unit_struct() { + let input = quote! { + struct S; + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + vis: Visibility::Inherited, + ident: "S", + generics: Generics, + data: Data::Struct { + fields: Fields::Unit, + semi_token: Some, + }, + } + "#); + + let data = match input.data { + Data::Struct(data) => data, + _ => panic!("expected a struct"), + }; + + assert_eq!(0, data.fields.iter().count()); +} + +#[test] +fn test_fields_on_named_struct() { + let input = quote! { + struct S { + foo: i32, + pub bar: String, + } + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + vis: Visibility::Inherited, + ident: "S", + generics: Generics, + data: Data::Struct { + fields: Fields::Named { + named: [ + Field { + vis: Visibility::Inherited, + ident: Some("foo"), + colon_token: Some, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "i32", + }, + ], + }, + }, + }, + Token![,], + Field { + vis: Visibility::Public, + ident: Some("bar"), + colon_token: Some, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "String", + }, + ], + }, + }, + }, + Token![,], + ], + }, + }, + } + "#); + + let data = match input.data { + Data::Struct(data) => data, + _ => panic!("expected a struct"), + }; + + snapshot!(data.fields.into_iter().collect::>(), @r#" + [ + Field { + vis: Visibility::Inherited, + ident: Some("foo"), + colon_token: Some, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "i32", + }, + ], + }, + }, + }, + Field { + vis: Visibility::Public, + ident: Some("bar"), + colon_token: Some, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "String", + }, + ], + }, + }, + }, + ] + "#); +} + +#[test] +fn test_fields_on_tuple_struct() { + let input = quote! { + struct S(i32, pub String); + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + vis: Visibility::Inherited, + ident: "S", + generics: Generics, + data: Data::Struct { + fields: Fields::Unnamed { + unnamed: [ + Field { + vis: Visibility::Inherited, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "i32", + }, + ], + }, + }, + }, + Token![,], + Field { + vis: Visibility::Public, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "String", + }, + ], + }, + }, + }, + ], + }, + semi_token: Some, + }, + } + "#); + + let data = match input.data { + Data::Struct(data) => data, + _ => panic!("expected a struct"), + }; + + snapshot!(data.fields.iter().collect::>(), @r#" + [ + Field { + vis: Visibility::Inherited, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "i32", + }, + ], + }, + }, + }, + Field { + vis: Visibility::Public, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "String", + }, + ], + }, + }, + }, + ] + "#); +} + +#[test] +fn test_ambiguous_crate() { + let input = quote! { + // The field type is `(crate::X)` not `crate (::X)`. + struct S(crate::X); + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + vis: Visibility::Inherited, + ident: "S", + generics: Generics, + data: Data::Struct { + fields: Fields::Unnamed { + unnamed: [ + Field { + vis: Visibility::Inherited, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "crate", + }, + Token![::], + PathSegment { + ident: "X", + }, + ], + }, + }, + }, + ], + }, + semi_token: Some, + }, + } + "#); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_expr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_expr.rs new file mode 100644 index 0000000000000000000000000000000000000000..e21373cf96d84cb78a8125997edc4e4f2cafdc64 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_expr.rs @@ -0,0 +1,1702 @@ +#![cfg(not(miri))] +#![recursion_limit = "1024"] +#![feature(rustc_private)] +#![allow( + clippy::elidable_lifetime_names, + clippy::match_like_matches_macro, + clippy::needless_lifetimes, + clippy::single_element_loop, + clippy::too_many_lines, + clippy::uninlined_format_args, + clippy::unreadable_literal +)] + +#[macro_use] +mod macros; +#[macro_use] +mod snapshot; + +mod common; +mod debug; + +use crate::common::visit::{AsIfPrinted, FlattenParens}; +use proc_macro2::{Delimiter, Group, Ident, Span, TokenStream}; +use quote::{quote, ToTokens as _}; +use std::process::ExitCode; +use syn::punctuated::Punctuated; +use syn::visit_mut::VisitMut as _; +use syn::{ + parse_quote, token, AngleBracketedGenericArguments, Arm, BinOp, Block, Expr, ExprArray, + ExprAssign, ExprAsync, ExprAwait, ExprBinary, ExprBlock, ExprBreak, ExprCall, ExprCast, + ExprClosure, ExprConst, ExprContinue, ExprField, ExprForLoop, ExprIf, ExprIndex, ExprLet, + ExprLit, ExprLoop, ExprMacro, ExprMatch, ExprMethodCall, ExprPath, ExprRange, ExprRawAddr, + ExprReference, ExprReturn, ExprStruct, ExprTry, ExprTryBlock, ExprTuple, ExprUnary, ExprUnsafe, + ExprWhile, ExprYield, GenericArgument, Label, Lifetime, Lit, LitInt, Macro, MacroDelimiter, + Member, Pat, PatWild, Path, PathArguments, PathSegment, PointerMutability, QSelf, RangeLimits, + ReturnType, Stmt, Token, Type, TypePath, UnOp, +}; + +#[test] +fn test_expr_parse() { + let tokens = quote!(..100u32); + snapshot!(tokens as Expr, @r#" + Expr::Range { + limits: RangeLimits::HalfOpen, + end: Some(Expr::Lit { + lit: 100u32, + }), + } + "#); + + let tokens = quote!(..100u32); + snapshot!(tokens as ExprRange, @r#" + ExprRange { + limits: RangeLimits::HalfOpen, + end: Some(Expr::Lit { + lit: 100u32, + }), + } + "#); +} + +#[test] +fn test_await() { + // Must not parse as Expr::Field. + let tokens = quote!(fut.await); + + snapshot!(tokens as Expr, @r#" + Expr::Await { + base: Expr::Path { + path: Path { + segments: [ + PathSegment { + ident: "fut", + }, + ], + }, + }, + } + "#); +} + +#[rustfmt::skip] +#[test] +fn test_tuple_multi_index() { + let expected = snapshot!("tuple.0.0" as Expr, @r#" + Expr::Field { + base: Expr::Field { + base: Expr::Path { + path: Path { + segments: [ + PathSegment { + ident: "tuple", + }, + ], + }, + }, + member: Member::Unnamed(Index { + index: 0, + }), + }, + member: Member::Unnamed(Index { + index: 0, + }), + } + "#); + + for &input in &[ + "tuple .0.0", + "tuple. 0.0", + "tuple.0 .0", + "tuple.0. 0", + "tuple . 0 . 0", + ] { + assert_eq!(expected, syn::parse_str(input).unwrap()); + } + + for tokens in [ + quote!(tuple.0.0), + quote!(tuple .0.0), + quote!(tuple. 0.0), + quote!(tuple.0 .0), + quote!(tuple.0. 0), + quote!(tuple . 0 . 0), + ] { + assert_eq!(expected, syn::parse2(tokens).unwrap()); + } +} + +#[test] +fn test_macro_variable_func() { + // mimics the token stream corresponding to `$fn()` + let path = Group::new(Delimiter::None, quote!(f)); + let tokens = quote!(#path()); + + snapshot!(tokens as Expr, @r#" + Expr::Call { + func: Expr::Group { + expr: Expr::Path { + path: Path { + segments: [ + PathSegment { + ident: "f", + }, + ], + }, + }, + }, + } + "#); + + let path = Group::new(Delimiter::None, quote! { #[inside] f }); + let tokens = quote!(#[outside] #path()); + + snapshot!(tokens as Expr, @r#" + Expr::Call { + attrs: [ + Attribute { + style: AttrStyle::Outer, + meta: Meta::Path { + segments: [ + PathSegment { + ident: "outside", + }, + ], + }, + }, + ], + func: Expr::Group { + expr: Expr::Path { + attrs: [ + Attribute { + style: AttrStyle::Outer, + meta: Meta::Path { + segments: [ + PathSegment { + ident: "inside", + }, + ], + }, + }, + ], + path: Path { + segments: [ + PathSegment { + ident: "f", + }, + ], + }, + }, + }, + } + "#); +} + +#[test] +fn test_macro_variable_macro() { + // mimics the token stream corresponding to `$macro!()` + let mac = Group::new(Delimiter::None, quote!(m)); + let tokens = quote!(#mac!()); + + snapshot!(tokens as Expr, @r#" + Expr::Macro { + mac: Macro { + path: Path { + segments: [ + PathSegment { + ident: "m", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(``), + }, + } + "#); +} + +#[test] +fn test_macro_variable_struct() { + // mimics the token stream corresponding to `$struct {}` + let s = Group::new(Delimiter::None, quote! { S }); + let tokens = quote!(#s {}); + + snapshot!(tokens as Expr, @r#" + Expr::Struct { + path: Path { + segments: [ + PathSegment { + ident: "S", + }, + ], + }, + } + "#); +} + +#[test] +fn test_macro_variable_unary() { + // mimics the token stream corresponding to `$expr.method()` where expr is `&self` + let inner = Group::new(Delimiter::None, quote!(&self)); + let tokens = quote!(#inner.method()); + snapshot!(tokens as Expr, @r#" + Expr::MethodCall { + receiver: Expr::Group { + expr: Expr::Reference { + expr: Expr::Path { + path: Path { + segments: [ + PathSegment { + ident: "self", + }, + ], + }, + }, + }, + }, + method: "method", + } + "#); +} + +#[test] +fn test_macro_variable_match_arm() { + // mimics the token stream corresponding to `match v { _ => $expr }` + let expr = Group::new(Delimiter::None, quote! { #[a] () }); + let tokens = quote!(match v { _ => #expr }); + snapshot!(tokens as Expr, @r#" + Expr::Match { + expr: Expr::Path { + path: Path { + segments: [ + PathSegment { + ident: "v", + }, + ], + }, + }, + arms: [ + Arm { + pat: Pat::Wild, + body: Expr::Group { + expr: Expr::Tuple { + attrs: [ + Attribute { + style: AttrStyle::Outer, + meta: Meta::Path { + segments: [ + PathSegment { + ident: "a", + }, + ], + }, + }, + ], + }, + }, + }, + ], + } + "#); + + let expr = Group::new(Delimiter::None, quote!(loop {} + 1)); + let tokens = quote!(match v { _ => #expr }); + snapshot!(tokens as Expr, @r#" + Expr::Match { + expr: Expr::Path { + path: Path { + segments: [ + PathSegment { + ident: "v", + }, + ], + }, + }, + arms: [ + Arm { + pat: Pat::Wild, + body: Expr::Group { + expr: Expr::Binary { + left: Expr::Loop { + body: Block { + stmts: [], + }, + }, + op: BinOp::Add, + right: Expr::Lit { + lit: 1, + }, + }, + }, + }, + ], + } + "#); +} + +// https://github.com/dtolnay/syn/issues/1019 +#[test] +fn test_closure_vs_rangefull() { + #[rustfmt::skip] // rustfmt bug: https://github.com/rust-lang/rustfmt/issues/4808 + let tokens = quote!(|| .. .method()); + snapshot!(tokens as Expr, @r#" + Expr::MethodCall { + receiver: Expr::Closure { + output: ReturnType::Default, + body: Expr::Range { + limits: RangeLimits::HalfOpen, + }, + }, + method: "method", + } + "#); +} + +#[test] +fn test_postfix_operator_after_cast() { + syn::parse_str::("|| &x as T[0]").unwrap_err(); + syn::parse_str::("|| () as ()()").unwrap_err(); +} + +#[test] +fn test_range_kinds() { + syn::parse_str::("..").unwrap(); + syn::parse_str::("..hi").unwrap(); + syn::parse_str::("lo..").unwrap(); + syn::parse_str::("lo..hi").unwrap(); + + syn::parse_str::("..=").unwrap_err(); + syn::parse_str::("..=hi").unwrap(); + syn::parse_str::("lo..=").unwrap_err(); + syn::parse_str::("lo..=hi").unwrap(); + + syn::parse_str::("...").unwrap_err(); + syn::parse_str::("...hi").unwrap_err(); + syn::parse_str::("lo...").unwrap_err(); + syn::parse_str::("lo...hi").unwrap_err(); +} + +#[test] +fn test_range_precedence() { + snapshot!(".. .." as Expr, @r#" + Expr::Range { + limits: RangeLimits::HalfOpen, + end: Some(Expr::Range { + limits: RangeLimits::HalfOpen, + }), + } + "#); + + snapshot!(".. .. ()" as Expr, @r#" + Expr::Range { + limits: RangeLimits::HalfOpen, + end: Some(Expr::Range { + limits: RangeLimits::HalfOpen, + end: Some(Expr::Tuple), + }), + } + "#); + + snapshot!("() .. .." as Expr, @r#" + Expr::Range { + start: Some(Expr::Tuple), + limits: RangeLimits::HalfOpen, + end: Some(Expr::Range { + limits: RangeLimits::HalfOpen, + }), + } + "#); + + snapshot!("() = .. + ()" as Expr, @r" + Expr::Binary { + left: Expr::Assign { + left: Expr::Tuple, + right: Expr::Range { + limits: RangeLimits::HalfOpen, + }, + }, + op: BinOp::Add, + right: Expr::Tuple, + } + "); + + // A range with a lower bound cannot be the upper bound of another range, + // and a range with an upper bound cannot be the lower bound of another + // range. + syn::parse_str::(".. x ..").unwrap_err(); + syn::parse_str::("x .. x ..").unwrap_err(); +} + +#[test] +fn test_range_attrs() { + // Attributes are not allowed on range expressions starting with `..` + syn::parse_str::("#[allow()] ..").unwrap_err(); + syn::parse_str::("#[allow()] .. hi").unwrap_err(); + + snapshot!("#[allow()] lo .. hi" as Expr, @r#" + Expr::Range { + start: Some(Expr::Path { + attrs: [ + Attribute { + style: AttrStyle::Outer, + meta: Meta::List { + path: Path { + segments: [ + PathSegment { + ident: "allow", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(``), + }, + }, + ], + path: Path { + segments: [ + PathSegment { + ident: "lo", + }, + ], + }, + }), + limits: RangeLimits::HalfOpen, + end: Some(Expr::Path { + path: Path { + segments: [ + PathSegment { + ident: "hi", + }, + ], + }, + }), + } + "#); +} + +#[test] +fn test_ranges_bailout() { + syn::parse_str::(".. ?").unwrap_err(); + syn::parse_str::(".. .field").unwrap_err(); + + snapshot!("return .. ?" as Expr, @r" + Expr::Try { + expr: Expr::Return { + expr: Some(Expr::Range { + limits: RangeLimits::HalfOpen, + }), + }, + } + "); + + snapshot!("break .. ?" as Expr, @r" + Expr::Try { + expr: Expr::Break { + expr: Some(Expr::Range { + limits: RangeLimits::HalfOpen, + }), + }, + } + "); + + snapshot!("|| .. ?" as Expr, @r" + Expr::Try { + expr: Expr::Closure { + output: ReturnType::Default, + body: Expr::Range { + limits: RangeLimits::HalfOpen, + }, + }, + } + "); + + snapshot!("return .. .field" as Expr, @r#" + Expr::Field { + base: Expr::Return { + expr: Some(Expr::Range { + limits: RangeLimits::HalfOpen, + }), + }, + member: Member::Named("field"), + } + "#); + + snapshot!("break .. .field" as Expr, @r#" + Expr::Field { + base: Expr::Break { + expr: Some(Expr::Range { + limits: RangeLimits::HalfOpen, + }), + }, + member: Member::Named("field"), + } + "#); + + snapshot!("|| .. .field" as Expr, @r#" + Expr::Field { + base: Expr::Closure { + output: ReturnType::Default, + body: Expr::Range { + limits: RangeLimits::HalfOpen, + }, + }, + member: Member::Named("field"), + } + "#); + + snapshot!("return .. = ()" as Expr, @r" + Expr::Assign { + left: Expr::Return { + expr: Some(Expr::Range { + limits: RangeLimits::HalfOpen, + }), + }, + right: Expr::Tuple, + } + "); + + snapshot!("return .. += ()" as Expr, @r" + Expr::Binary { + left: Expr::Return { + expr: Some(Expr::Range { + limits: RangeLimits::HalfOpen, + }), + }, + op: BinOp::AddAssign, + right: Expr::Tuple, + } + "); +} + +#[test] +fn test_ambiguous_label() { + for stmt in [ + quote! { + return 'label: loop { break 'label 42; }; + }, + quote! { + break ('label: loop { break 'label 42; }); + }, + quote! { + break 1 + 'label: loop { break 'label 42; }; + }, + quote! { + break 'outer 'inner: loop { break 'inner 42; }; + }, + ] { + syn::parse2::(stmt).unwrap(); + } + + for stmt in [ + // Parentheses required. See https://github.com/rust-lang/rust/pull/87026. + quote! { + break 'label: loop { break 'label 42; }; + }, + ] { + syn::parse2::(stmt).unwrap_err(); + } +} + +#[test] +fn test_extended_interpolated_path() { + let path = Group::new(Delimiter::None, quote!(a::b)); + + let tokens = quote!(if #path {}); + snapshot!(tokens as Expr, @r#" + Expr::If { + cond: Expr::Group { + expr: Expr::Path { + path: Path { + segments: [ + PathSegment { + ident: "a", + }, + Token![::], + PathSegment { + ident: "b", + }, + ], + }, + }, + }, + then_branch: Block { + stmts: [], + }, + } + "#); + + let tokens = quote!(#path {}); + snapshot!(tokens as Expr, @r#" + Expr::Struct { + path: Path { + segments: [ + PathSegment { + ident: "a", + }, + Token![::], + PathSegment { + ident: "b", + }, + ], + }, + } + "#); + + let tokens = quote!(#path :: c); + snapshot!(tokens as Expr, @r#" + Expr::Path { + path: Path { + segments: [ + PathSegment { + ident: "a", + }, + Token![::], + PathSegment { + ident: "b", + }, + Token![::], + PathSegment { + ident: "c", + }, + ], + }, + } + "#); + + let nested = Group::new(Delimiter::None, quote!(a::b || true)); + let tokens = quote!(if #nested && false {}); + snapshot!(tokens as Expr, @r#" + Expr::If { + cond: Expr::Binary { + left: Expr::Group { + expr: Expr::Binary { + left: Expr::Path { + path: Path { + segments: [ + PathSegment { + ident: "a", + }, + Token![::], + PathSegment { + ident: "b", + }, + ], + }, + }, + op: BinOp::Or, + right: Expr::Lit { + lit: Lit::Bool { + value: true, + }, + }, + }, + }, + op: BinOp::And, + right: Expr::Lit { + lit: Lit::Bool { + value: false, + }, + }, + }, + then_branch: Block { + stmts: [], + }, + } + "#); +} + +#[test] +fn test_tuple_comma() { + let mut expr = ExprTuple { + attrs: Vec::new(), + paren_token: token::Paren::default(), + elems: Punctuated::new(), + }; + snapshot!(expr.to_token_stream() as Expr, @"Expr::Tuple"); + + expr.elems.push_value(parse_quote!(continue)); + // Must not parse to Expr::Paren + snapshot!(expr.to_token_stream() as Expr, @r#" + Expr::Tuple { + elems: [ + Expr::Continue, + Token![,], + ], + } + "#); + + expr.elems.push_punct(::default()); + snapshot!(expr.to_token_stream() as Expr, @r#" + Expr::Tuple { + elems: [ + Expr::Continue, + Token![,], + ], + } + "#); + + expr.elems.push_value(parse_quote!(continue)); + snapshot!(expr.to_token_stream() as Expr, @r#" + Expr::Tuple { + elems: [ + Expr::Continue, + Token![,], + Expr::Continue, + ], + } + "#); + + expr.elems.push_punct(::default()); + snapshot!(expr.to_token_stream() as Expr, @r#" + Expr::Tuple { + elems: [ + Expr::Continue, + Token![,], + Expr::Continue, + Token![,], + ], + } + "#); +} + +#[test] +fn test_binop_associativity() { + // Left to right. + snapshot!("() + () + ()" as Expr, @r#" + Expr::Binary { + left: Expr::Binary { + left: Expr::Tuple, + op: BinOp::Add, + right: Expr::Tuple, + }, + op: BinOp::Add, + right: Expr::Tuple, + } + "#); + + // Right to left. + snapshot!("() += () += ()" as Expr, @r#" + Expr::Binary { + left: Expr::Tuple, + op: BinOp::AddAssign, + right: Expr::Binary { + left: Expr::Tuple, + op: BinOp::AddAssign, + right: Expr::Tuple, + }, + } + "#); + + // Parenthesization is required. + syn::parse_str::("() == () == ()").unwrap_err(); +} + +#[test] +fn test_assign_range_precedence() { + // Range has higher precedence as the right-hand of an assignment, but + // ambiguous precedence as the left-hand of an assignment. + snapshot!("() = () .. ()" as Expr, @r#" + Expr::Assign { + left: Expr::Tuple, + right: Expr::Range { + start: Some(Expr::Tuple), + limits: RangeLimits::HalfOpen, + end: Some(Expr::Tuple), + }, + } + "#); + + snapshot!("() += () .. ()" as Expr, @r#" + Expr::Binary { + left: Expr::Tuple, + op: BinOp::AddAssign, + right: Expr::Range { + start: Some(Expr::Tuple), + limits: RangeLimits::HalfOpen, + end: Some(Expr::Tuple), + }, + } + "#); + + syn::parse_str::("() .. () = ()").unwrap_err(); + syn::parse_str::("() .. () += ()").unwrap_err(); +} + +#[test] +fn test_chained_comparison() { + // https://github.com/dtolnay/syn/issues/1738 + let _ = syn::parse_str::("a = a < a <"); + let _ = syn::parse_str::("a = a .. a .."); + let _ = syn::parse_str::("a = a .. a +="); + + let err = syn::parse_str::("a < a < a").unwrap_err(); + assert_eq!("comparison operators cannot be chained", err.to_string()); + + let err = syn::parse_str::("a .. a .. a").unwrap_err(); + assert_eq!("unexpected token", err.to_string()); + + let err = syn::parse_str::("a .. a += a").unwrap_err(); + assert_eq!("unexpected token", err.to_string()); +} + +#[test] +fn test_fixup() { + for tokens in [ + quote! { 2 * (1 + 1) }, + quote! { 0 + (0 + 0) }, + quote! { (a = b) = c }, + quote! { (x as i32) < 0 }, + quote! { 1 + (x as i32) < 0 }, + quote! { (1 + 1).abs() }, + quote! { (lo..hi)[..] }, + quote! { (a..b)..(c..d) }, + quote! { (x > ..) > x }, + quote! { (&mut fut).await }, + quote! { &mut (x as i32) }, + quote! { -(x as i32) }, + quote! { if (S {}) == 1 {} }, + quote! { { (m! {}) - 1 } }, + quote! { match m { _ => ({}) - 1 } }, + quote! { if let _ = (a && b) && c {} }, + quote! { if let _ = (S {}) {} }, + quote! { if (S {}) == 0 && let Some(_) = x {} }, + quote! { break ('a: loop { break 'a 1 } + 1) }, + quote! { a + (|| b) + c }, + quote! { if let _ = ((break) - 1 || true) {} }, + quote! { if let _ = (break + 1 || true) {} }, + quote! { if break (break) {} }, + quote! { if break break {} {} }, + quote! { if return (..) {} }, + quote! { if return .. {} {} }, + quote! { if || (Struct {}) {} }, + quote! { if || (Struct {}).await {} }, + quote! { if break || Struct {}.await {} }, + quote! { if break 'outer 'block: {} {} }, + quote! { if ..'block: {} {} }, + quote! { if break ({}).await {} }, + quote! { (break)() }, + quote! { (..) = () }, + quote! { (..) += () }, + quote! { (1 < 2) == (3 < 4) }, + quote! { { (let _ = ()) } }, + quote! { (#[attr] thing).field }, + quote! { #[attr] (1 + 1) }, + quote! { #[attr] (x = 1) }, + quote! { #[attr] (x += 1) }, + quote! { #[attr] (1 as T) }, + quote! { (return #[attr] (x + ..)).field }, + quote! { (self.f)() }, + quote! { (return)..=return }, + quote! { 1 + (return)..=1 + return }, + quote! { .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. }, + ] { + let original: Expr = syn::parse2(tokens).unwrap(); + + let mut flat = original.clone(); + FlattenParens::combine_attrs().visit_expr_mut(&mut flat); + let reconstructed: Expr = match syn::parse2(flat.to_token_stream()) { + Ok(reconstructed) => reconstructed, + Err(err) => panic!("failed to parse `{}`: {}", flat.to_token_stream(), err), + }; + + assert!( + original == reconstructed, + "original: {}\n{:#?}\nreconstructed: {}\n{:#?}", + original.to_token_stream(), + crate::debug::Lite(&original), + reconstructed.to_token_stream(), + crate::debug::Lite(&reconstructed), + ); + } +} + +#[test] +fn test_permutations() -> ExitCode { + fn iter(depth: usize, f: &mut dyn FnMut(Expr)) { + let span = Span::call_site(); + + // Expr::Path + f(Expr::Path(ExprPath { + // `x` + attrs: Vec::new(), + qself: None, + path: Path::from(Ident::new("x", span)), + })); + if false { + f(Expr::Path(ExprPath { + // `x::` + attrs: Vec::new(), + qself: None, + path: Path { + leading_colon: None, + segments: Punctuated::from_iter([PathSegment { + ident: Ident::new("x", span), + arguments: PathArguments::AngleBracketed(AngleBracketedGenericArguments { + colon2_token: Some(Token![::](span)), + lt_token: Token![<](span), + args: Punctuated::from_iter([GenericArgument::Type(Type::Path( + TypePath { + qself: None, + path: Path::from(Ident::new("T", span)), + }, + ))]), + gt_token: Token![>](span), + }), + }]), + }, + })); + f(Expr::Path(ExprPath { + // `::CONST` + attrs: Vec::new(), + qself: Some(QSelf { + lt_token: Token![<](span), + ty: Box::new(Type::Path(TypePath { + qself: None, + path: Path::from(Ident::new("T", span)), + })), + position: 1, + as_token: Some(Token![as](span)), + gt_token: Token![>](span), + }), + path: Path { + leading_colon: None, + segments: Punctuated::from_iter([ + PathSegment::from(Ident::new("Trait", span)), + PathSegment::from(Ident::new("CONST", span)), + ]), + }, + })); + } + + let Some(depth) = depth.checked_sub(1) else { + return; + }; + + // Expr::Assign + iter(depth, &mut |expr| { + iter(0, &mut |simple| { + f(Expr::Assign(ExprAssign { + // `x = $expr` + attrs: Vec::new(), + left: Box::new(simple.clone()), + eq_token: Token![=](span), + right: Box::new(expr.clone()), + })); + f(Expr::Assign(ExprAssign { + // `$expr = x` + attrs: Vec::new(), + left: Box::new(expr.clone()), + eq_token: Token![=](span), + right: Box::new(simple), + })); + }); + }); + + // Expr::Binary + iter(depth, &mut |expr| { + iter(0, &mut |simple| { + for op in [ + BinOp::Add(Token![+](span)), + //BinOp::Sub(Token![-](span)), + //BinOp::Mul(Token![*](span)), + //BinOp::Div(Token![/](span)), + //BinOp::Rem(Token![%](span)), + //BinOp::And(Token![&&](span)), + //BinOp::Or(Token![||](span)), + //BinOp::BitXor(Token![^](span)), + //BinOp::BitAnd(Token![&](span)), + //BinOp::BitOr(Token![|](span)), + //BinOp::Shl(Token![<<](span)), + //BinOp::Shr(Token![>>](span)), + //BinOp::Eq(Token![==](span)), + BinOp::Lt(Token![<](span)), + //BinOp::Le(Token![<=](span)), + //BinOp::Ne(Token![!=](span)), + //BinOp::Ge(Token![>=](span)), + //BinOp::Gt(Token![>](span)), + BinOp::ShlAssign(Token![<<=](span)), + ] { + f(Expr::Binary(ExprBinary { + // `x + $expr` + attrs: Vec::new(), + left: Box::new(simple.clone()), + op, + right: Box::new(expr.clone()), + })); + f(Expr::Binary(ExprBinary { + // `$expr + x` + attrs: Vec::new(), + left: Box::new(expr.clone()), + op, + right: Box::new(simple.clone()), + })); + } + }); + }); + + // Expr::Block + f(Expr::Block(ExprBlock { + // `{}` + attrs: Vec::new(), + label: None, + block: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })); + + // Expr::Break + f(Expr::Break(ExprBreak { + // `break` + attrs: Vec::new(), + break_token: Token![break](span), + label: None, + expr: None, + })); + iter(depth, &mut |expr| { + f(Expr::Break(ExprBreak { + // `break $expr` + attrs: Vec::new(), + break_token: Token![break](span), + label: None, + expr: Some(Box::new(expr)), + })); + }); + + // Expr::Call + iter(depth, &mut |expr| { + f(Expr::Call(ExprCall { + // `$expr()` + attrs: Vec::new(), + func: Box::new(expr), + paren_token: token::Paren(span), + args: Punctuated::new(), + })); + }); + + // Expr::Cast + iter(depth, &mut |expr| { + f(Expr::Cast(ExprCast { + // `$expr as T` + attrs: Vec::new(), + expr: Box::new(expr), + as_token: Token![as](span), + ty: Box::new(Type::Path(TypePath { + qself: None, + path: Path::from(Ident::new("T", span)), + })), + })); + }); + + // Expr::Closure + iter(depth, &mut |expr| { + f(Expr::Closure(ExprClosure { + // `|| $expr` + attrs: Vec::new(), + lifetimes: None, + constness: None, + movability: None, + asyncness: None, + capture: None, + or1_token: Token![|](span), + inputs: Punctuated::new(), + or2_token: Token![|](span), + output: ReturnType::Default, + body: Box::new(expr), + })); + }); + + // Expr::Field + iter(depth, &mut |expr| { + f(Expr::Field(ExprField { + // `$expr.field` + attrs: Vec::new(), + base: Box::new(expr), + dot_token: Token![.](span), + member: Member::Named(Ident::new("field", span)), + })); + }); + + // Expr::If + iter(depth, &mut |expr| { + f(Expr::If(ExprIf { + // `if $expr {}` + attrs: Vec::new(), + if_token: Token![if](span), + cond: Box::new(expr), + then_branch: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + else_branch: None, + })); + }); + + // Expr::Let + iter(depth, &mut |expr| { + f(Expr::Let(ExprLet { + attrs: Vec::new(), + let_token: Token![let](span), + pat: Box::new(Pat::Wild(PatWild { + attrs: Vec::new(), + underscore_token: Token![_](span), + })), + eq_token: Token![=](span), + expr: Box::new(expr), + })); + }); + + // Expr::Range + f(Expr::Range(ExprRange { + // `..` + attrs: Vec::new(), + start: None, + limits: RangeLimits::HalfOpen(Token![..](span)), + end: None, + })); + iter(depth, &mut |expr| { + f(Expr::Range(ExprRange { + // `..$expr` + attrs: Vec::new(), + start: None, + limits: RangeLimits::HalfOpen(Token![..](span)), + end: Some(Box::new(expr.clone())), + })); + f(Expr::Range(ExprRange { + // `$expr..` + attrs: Vec::new(), + start: Some(Box::new(expr)), + limits: RangeLimits::HalfOpen(Token![..](span)), + end: None, + })); + }); + + // Expr::Reference + iter(depth, &mut |expr| { + f(Expr::Reference(ExprReference { + // `&$expr` + attrs: Vec::new(), + and_token: Token![&](span), + mutability: None, + expr: Box::new(expr), + })); + }); + + // Expr::Return + f(Expr::Return(ExprReturn { + // `return` + attrs: Vec::new(), + return_token: Token![return](span), + expr: None, + })); + iter(depth, &mut |expr| { + f(Expr::Return(ExprReturn { + // `return $expr` + attrs: Vec::new(), + return_token: Token![return](span), + expr: Some(Box::new(expr)), + })); + }); + + // Expr::Try + iter(depth, &mut |expr| { + f(Expr::Try(ExprTry { + // `$expr?` + attrs: Vec::new(), + expr: Box::new(expr), + question_token: Token![?](span), + })); + }); + + // Expr::Unary + iter(depth, &mut |expr| { + for op in [ + UnOp::Deref(Token![*](span)), + //UnOp::Not(Token![!](span)), + //UnOp::Neg(Token![-](span)), + ] { + f(Expr::Unary(ExprUnary { + // `*$expr` + attrs: Vec::new(), + op, + expr: Box::new(expr.clone()), + })); + } + }); + + if false { + // Expr::Array + f(Expr::Array(ExprArray { + // `[]` + attrs: Vec::new(), + bracket_token: token::Bracket(span), + elems: Punctuated::new(), + })); + + // Expr::Async + f(Expr::Async(ExprAsync { + // `async {}` + attrs: Vec::new(), + async_token: Token![async](span), + capture: None, + block: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })); + + // Expr::Await + iter(depth, &mut |expr| { + f(Expr::Await(ExprAwait { + // `$expr.await` + attrs: Vec::new(), + base: Box::new(expr), + dot_token: Token![.](span), + await_token: Token![await](span), + })); + }); + + // Expr::Block + f(Expr::Block(ExprBlock { + // `'a: {}` + attrs: Vec::new(), + label: Some(Label { + name: Lifetime::new("'a", span), + colon_token: Token![:](span), + }), + block: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })); + iter(depth, &mut |expr| { + f(Expr::Block(ExprBlock { + // `{ $expr }` + attrs: Vec::new(), + label: None, + block: Block { + brace_token: token::Brace(span), + stmts: Vec::from([Stmt::Expr(expr.clone(), None)]), + }, + })); + f(Expr::Block(ExprBlock { + // `{ $expr; }` + attrs: Vec::new(), + label: None, + block: Block { + brace_token: token::Brace(span), + stmts: Vec::from([Stmt::Expr(expr, Some(Token![;](span)))]), + }, + })); + }); + + // Expr::Break + f(Expr::Break(ExprBreak { + // `break 'a` + attrs: Vec::new(), + break_token: Token![break](span), + label: Some(Lifetime::new("'a", span)), + expr: None, + })); + iter(depth, &mut |expr| { + f(Expr::Break(ExprBreak { + // `break 'a $expr` + attrs: Vec::new(), + break_token: Token![break](span), + label: Some(Lifetime::new("'a", span)), + expr: Some(Box::new(expr)), + })); + }); + + // Expr::Closure + f(Expr::Closure(ExprClosure { + // `|| -> T {}` + attrs: Vec::new(), + lifetimes: None, + constness: None, + movability: None, + asyncness: None, + capture: None, + or1_token: Token![|](span), + inputs: Punctuated::new(), + or2_token: Token![|](span), + output: ReturnType::Type( + Token![->](span), + Box::new(Type::Path(TypePath { + qself: None, + path: Path::from(Ident::new("T", span)), + })), + ), + body: Box::new(Expr::Block(ExprBlock { + attrs: Vec::new(), + label: None, + block: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })), + })); + + // Expr::Const + f(Expr::Const(ExprConst { + // `const {}` + attrs: Vec::new(), + const_token: Token![const](span), + block: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })); + + // Expr::Continue + f(Expr::Continue(ExprContinue { + // `continue` + attrs: Vec::new(), + continue_token: Token![continue](span), + label: None, + })); + f(Expr::Continue(ExprContinue { + // `continue 'a` + attrs: Vec::new(), + continue_token: Token![continue](span), + label: Some(Lifetime::new("'a", span)), + })); + + // Expr::ForLoop + iter(depth, &mut |expr| { + f(Expr::ForLoop(ExprForLoop { + // `for _ in $expr {}` + attrs: Vec::new(), + label: None, + for_token: Token![for](span), + pat: Box::new(Pat::Wild(PatWild { + attrs: Vec::new(), + underscore_token: Token![_](span), + })), + in_token: Token![in](span), + expr: Box::new(expr.clone()), + body: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })); + f(Expr::ForLoop(ExprForLoop { + // `'a: for _ in $expr {}` + attrs: Vec::new(), + label: Some(Label { + name: Lifetime::new("'a", span), + colon_token: Token![:](span), + }), + for_token: Token![for](span), + pat: Box::new(Pat::Wild(PatWild { + attrs: Vec::new(), + underscore_token: Token![_](span), + })), + in_token: Token![in](span), + expr: Box::new(expr), + body: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })); + }); + + // Expr::Index + iter(depth, &mut |expr| { + f(Expr::Index(ExprIndex { + // `$expr[0]` + attrs: Vec::new(), + expr: Box::new(expr), + bracket_token: token::Bracket(span), + index: Box::new(Expr::Lit(ExprLit { + attrs: Vec::new(), + lit: Lit::Int(LitInt::new("0", span)), + })), + })); + }); + + // Expr::Loop + f(Expr::Loop(ExprLoop { + // `loop {}` + attrs: Vec::new(), + label: None, + loop_token: Token![loop](span), + body: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })); + f(Expr::Loop(ExprLoop { + // `'a: loop {}` + attrs: Vec::new(), + label: Some(Label { + name: Lifetime::new("'a", span), + colon_token: Token![:](span), + }), + loop_token: Token![loop](span), + body: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })); + + // Expr::Macro + f(Expr::Macro(ExprMacro { + // `m!()` + attrs: Vec::new(), + mac: Macro { + path: Path::from(Ident::new("m", span)), + bang_token: Token![!](span), + delimiter: MacroDelimiter::Paren(token::Paren(span)), + tokens: TokenStream::new(), + }, + })); + f(Expr::Macro(ExprMacro { + // `m! {}` + attrs: Vec::new(), + mac: Macro { + path: Path::from(Ident::new("m", span)), + bang_token: Token![!](span), + delimiter: MacroDelimiter::Brace(token::Brace(span)), + tokens: TokenStream::new(), + }, + })); + + // Expr::Match + iter(depth, &mut |expr| { + f(Expr::Match(ExprMatch { + // `match $expr {}` + attrs: Vec::new(), + match_token: Token![match](span), + expr: Box::new(expr.clone()), + brace_token: token::Brace(span), + arms: Vec::new(), + })); + f(Expr::Match(ExprMatch { + // `match x { _ => $expr }` + attrs: Vec::new(), + match_token: Token![match](span), + expr: Box::new(Expr::Path(ExprPath { + attrs: Vec::new(), + qself: None, + path: Path::from(Ident::new("x", span)), + })), + brace_token: token::Brace(span), + arms: Vec::from([Arm { + attrs: Vec::new(), + pat: Pat::Wild(PatWild { + attrs: Vec::new(), + underscore_token: Token![_](span), + }), + guard: None, + fat_arrow_token: Token![=>](span), + body: Box::new(expr.clone()), + comma: None, + }]), + })); + f(Expr::Match(ExprMatch { + // `match x { _ if $expr => {} }` + attrs: Vec::new(), + match_token: Token![match](span), + expr: Box::new(Expr::Path(ExprPath { + attrs: Vec::new(), + qself: None, + path: Path::from(Ident::new("x", span)), + })), + brace_token: token::Brace(span), + arms: Vec::from([Arm { + attrs: Vec::new(), + pat: Pat::Wild(PatWild { + attrs: Vec::new(), + underscore_token: Token![_](span), + }), + guard: Some((Token![if](span), Box::new(expr))), + fat_arrow_token: Token![=>](span), + body: Box::new(Expr::Block(ExprBlock { + attrs: Vec::new(), + label: None, + block: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })), + comma: None, + }]), + })); + }); + + // Expr::MethodCall + iter(depth, &mut |expr| { + f(Expr::MethodCall(ExprMethodCall { + // `$expr.method()` + attrs: Vec::new(), + receiver: Box::new(expr.clone()), + dot_token: Token![.](span), + method: Ident::new("method", span), + turbofish: None, + paren_token: token::Paren(span), + args: Punctuated::new(), + })); + f(Expr::MethodCall(ExprMethodCall { + // `$expr.method::()` + attrs: Vec::new(), + receiver: Box::new(expr), + dot_token: Token![.](span), + method: Ident::new("method", span), + turbofish: Some(AngleBracketedGenericArguments { + colon2_token: Some(Token![::](span)), + lt_token: Token![<](span), + args: Punctuated::from_iter([GenericArgument::Type(Type::Path( + TypePath { + qself: None, + path: Path::from(Ident::new("T", span)), + }, + ))]), + gt_token: Token![>](span), + }), + paren_token: token::Paren(span), + args: Punctuated::new(), + })); + }); + + // Expr::RawAddr + iter(depth, &mut |expr| { + f(Expr::RawAddr(ExprRawAddr { + // `&raw const $expr` + attrs: Vec::new(), + and_token: Token![&](span), + raw: Token![raw](span), + mutability: PointerMutability::Const(Token![const](span)), + expr: Box::new(expr), + })); + }); + + // Expr::Struct + f(Expr::Struct(ExprStruct { + // `Struct {}` + attrs: Vec::new(), + qself: None, + path: Path::from(Ident::new("Struct", span)), + brace_token: token::Brace(span), + fields: Punctuated::new(), + dot2_token: None, + rest: None, + })); + + // Expr::TryBlock + f(Expr::TryBlock(ExprTryBlock { + // `try {}` + attrs: Vec::new(), + try_token: Token![try](span), + block: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })); + + // Expr::Unsafe + f(Expr::Unsafe(ExprUnsafe { + // `unsafe {}` + attrs: Vec::new(), + unsafe_token: Token![unsafe](span), + block: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })); + + // Expr::While + iter(depth, &mut |expr| { + f(Expr::While(ExprWhile { + // `while $expr {}` + attrs: Vec::new(), + label: None, + while_token: Token![while](span), + cond: Box::new(expr.clone()), + body: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })); + f(Expr::While(ExprWhile { + // `'a: while $expr {}` + attrs: Vec::new(), + label: Some(Label { + name: Lifetime::new("'a", span), + colon_token: Token![:](span), + }), + while_token: Token![while](span), + cond: Box::new(expr), + body: Block { + brace_token: token::Brace(span), + stmts: Vec::new(), + }, + })); + }); + + // Expr::Yield + f(Expr::Yield(ExprYield { + // `yield` + attrs: Vec::new(), + yield_token: Token![yield](span), + expr: None, + })); + iter(depth, &mut |expr| { + f(Expr::Yield(ExprYield { + // `yield $expr` + attrs: Vec::new(), + yield_token: Token![yield](span), + expr: Some(Box::new(expr)), + })); + }); + } + } + + let mut failures = 0; + macro_rules! fail { + ($($message:tt)*) => {{ + eprintln!($($message)*); + failures += 1; + return; + }}; + } + let mut assert = |mut original: Expr| { + let tokens = original.to_token_stream(); + let Ok(mut parsed) = syn::parse2::(tokens.clone()) else { + fail!( + "failed to parse: {}\n{:#?}", + tokens, + crate::debug::Lite(&original), + ); + }; + AsIfPrinted.visit_expr_mut(&mut original); + FlattenParens::combine_attrs().visit_expr_mut(&mut parsed); + if original != parsed { + fail!( + "before: {}\n{:#?}\nafter: {}\n{:#?}", + tokens, + crate::debug::Lite(&original), + parsed.to_token_stream(), + crate::debug::Lite(&parsed), + ); + } + let mut tokens_no_paren = tokens.clone(); + FlattenParens::visit_token_stream_mut(&mut tokens_no_paren); + if tokens.to_string() != tokens_no_paren.to_string() { + if let Ok(mut parsed2) = syn::parse2::(tokens_no_paren) { + FlattenParens::combine_attrs().visit_expr_mut(&mut parsed2); + if original == parsed2 { + fail!("redundant parens: {}", tokens); + } + } + } + }; + + iter(4, &mut assert); + if failures > 0 { + eprintln!("FAILURES: {failures}"); + ExitCode::FAILURE + } else { + ExitCode::SUCCESS + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_generics.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_generics.rs new file mode 100644 index 0000000000000000000000000000000000000000..61bc8dea1cec9864287fe3d357d72a780dde4e06 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_generics.rs @@ -0,0 +1,356 @@ +#![allow( + clippy::elidable_lifetime_names, + clippy::manual_let_else, + clippy::needless_lifetimes, + clippy::too_many_lines, + clippy::uninlined_format_args +)] + +#[macro_use] +mod snapshot; + +mod debug; + +use quote::quote; +use syn::{ + parse_quote, DeriveInput, GenericParam, Generics, ItemFn, Lifetime, LifetimeParam, + TypeParamBound, WhereClause, WherePredicate, +}; + +#[test] +fn test_split_for_impl() { + let input = quote! { + struct S<'a, 'b: 'a, #[may_dangle] T: 'a = ()> where T: Debug; + }; + + snapshot!(input as DeriveInput, @r#" + DeriveInput { + vis: Visibility::Inherited, + ident: "S", + generics: Generics { + lt_token: Some, + params: [ + GenericParam::Lifetime(LifetimeParam { + lifetime: Lifetime { + ident: "a", + }, + }), + Token![,], + GenericParam::Lifetime(LifetimeParam { + lifetime: Lifetime { + ident: "b", + }, + colon_token: Some, + bounds: [ + Lifetime { + ident: "a", + }, + ], + }), + Token![,], + GenericParam::Type(TypeParam { + attrs: [ + Attribute { + style: AttrStyle::Outer, + meta: Meta::Path { + segments: [ + PathSegment { + ident: "may_dangle", + }, + ], + }, + }, + ], + ident: "T", + colon_token: Some, + bounds: [ + TypeParamBound::Lifetime { + ident: "a", + }, + ], + eq_token: Some, + default: Some(Type::Tuple), + }), + ], + gt_token: Some, + where_clause: Some(WhereClause { + predicates: [ + WherePredicate::Type(PredicateType { + bounded_ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "T", + }, + ], + }, + }, + bounds: [ + TypeParamBound::Trait(TraitBound { + path: Path { + segments: [ + PathSegment { + ident: "Debug", + }, + ], + }, + }), + ], + }), + ], + }), + }, + data: Data::Struct { + fields: Fields::Unit, + semi_token: Some, + }, + } + "#); + + let generics = input.generics; + let (impl_generics, ty_generics, where_clause) = generics.split_for_impl(); + + let generated = quote! { + impl #impl_generics MyTrait for Test #ty_generics #where_clause {} + }; + let expected = quote! { + impl<'a, 'b: 'a, #[may_dangle] T: 'a> MyTrait + for Test<'a, 'b, T> + where + T: Debug + {} + }; + assert_eq!(generated.to_string(), expected.to_string()); + + let turbofish = ty_generics.as_turbofish(); + let generated = quote! { + Test #turbofish + }; + let expected = quote! { + Test::<'a, 'b, T> + }; + assert_eq!(generated.to_string(), expected.to_string()); +} + +#[test] +fn test_type_param_bound() { + let tokens = quote!('a); + snapshot!(tokens as TypeParamBound, @r#" + TypeParamBound::Lifetime { + ident: "a", + } + "#); + + let tokens = quote!('_); + snapshot!(tokens as TypeParamBound, @r#" + TypeParamBound::Lifetime { + ident: "_", + } + "#); + + let tokens = quote!(Debug); + snapshot!(tokens as TypeParamBound, @r#" + TypeParamBound::Trait(TraitBound { + path: Path { + segments: [ + PathSegment { + ident: "Debug", + }, + ], + }, + }) + "#); + + let tokens = quote!(?Sized); + snapshot!(tokens as TypeParamBound, @r#" + TypeParamBound::Trait(TraitBound { + modifier: TraitBoundModifier::Maybe, + path: Path { + segments: [ + PathSegment { + ident: "Sized", + }, + ], + }, + }) + "#); + + let tokens = quote!(for<'a> Trait); + snapshot!(tokens as TypeParamBound, @r#" + TypeParamBound::Trait(TraitBound { + lifetimes: Some(BoundLifetimes { + lifetimes: [ + GenericParam::Lifetime(LifetimeParam { + lifetime: Lifetime { + ident: "a", + }, + }), + ], + }), + path: Path { + segments: [ + PathSegment { + ident: "Trait", + }, + ], + }, + }) + "#); + + let tokens = quote!(for<> ?Trait); + let err = syn::parse2::(tokens).unwrap_err(); + assert_eq!( + "`for<...>` binder not allowed with `?` trait polarity modifier", + err.to_string(), + ); + + let tokens = quote!(?for<> Trait); + let err = syn::parse2::(tokens).unwrap_err(); + assert_eq!( + "`for<...>` binder not allowed with `?` trait polarity modifier", + err.to_string(), + ); +} + +#[test] +fn test_fn_precedence_in_where_clause() { + // This should parse as two separate bounds, `FnOnce() -> i32` and `Send` - not + // `FnOnce() -> (i32 + Send)`. + let input = quote! { + fn f() + where + G: FnOnce() -> i32 + Send, + { + } + }; + + snapshot!(input as ItemFn, @r#" + ItemFn { + vis: Visibility::Inherited, + sig: Signature { + ident: "f", + generics: Generics { + lt_token: Some, + params: [ + GenericParam::Type(TypeParam { + ident: "G", + }), + ], + gt_token: Some, + where_clause: Some(WhereClause { + predicates: [ + WherePredicate::Type(PredicateType { + bounded_ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "G", + }, + ], + }, + }, + bounds: [ + TypeParamBound::Trait(TraitBound { + path: Path { + segments: [ + PathSegment { + ident: "FnOnce", + arguments: PathArguments::Parenthesized { + output: ReturnType::Type( + Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "i32", + }, + ], + }, + }, + ), + }, + }, + ], + }, + }), + Token![+], + TypeParamBound::Trait(TraitBound { + path: Path { + segments: [ + PathSegment { + ident: "Send", + }, + ], + }, + }), + ], + }), + Token![,], + ], + }), + }, + output: ReturnType::Default, + }, + block: Block { + stmts: [], + }, + } + "#); + + let where_clause = input.sig.generics.where_clause.as_ref().unwrap(); + assert_eq!(where_clause.predicates.len(), 1); + + let predicate = match &where_clause.predicates[0] { + WherePredicate::Type(pred) => pred, + _ => panic!("wrong predicate kind"), + }; + + assert_eq!(predicate.bounds.len(), 2, "{:#?}", predicate.bounds); + + let first_bound = &predicate.bounds[0]; + assert_eq!(quote!(#first_bound).to_string(), "FnOnce () -> i32"); + + let second_bound = &predicate.bounds[1]; + assert_eq!(quote!(#second_bound).to_string(), "Send"); +} + +#[test] +fn test_where_clause_at_end_of_input() { + let input = quote! { + where + }; + + snapshot!(input as WhereClause, @"WhereClause"); + + assert_eq!(input.predicates.len(), 0); +} + +// Regression test for https://github.com/dtolnay/syn/issues/1718 +#[test] +#[allow(clippy::map_unwrap_or)] +fn no_opaque_drop() { + let mut generics = Generics::default(); + + let _ = generics + .lifetimes() + .next() + .map(|param| param.lifetime.clone()) + .unwrap_or_else(|| { + let lifetime: Lifetime = parse_quote!('a); + generics.params.insert( + 0, + GenericParam::Lifetime(LifetimeParam::new(lifetime.clone())), + ); + lifetime + }); +} + +#[test] +fn type_param_with_colon_and_no_bounds() { + let tokens = quote!(T:); + snapshot!(tokens as GenericParam, @r#" + GenericParam::Type(TypeParam { + ident: "T", + colon_token: Some, + }) + "#); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_grouping.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_grouping.rs new file mode 100644 index 0000000000000000000000000000000000000000..b466c7e7217e09cf84a966d2c217f79795e7ee13 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_grouping.rs @@ -0,0 +1,59 @@ +#![allow( + clippy::elidable_lifetime_names, + clippy::needless_lifetimes, + clippy::uninlined_format_args +)] + +#[macro_use] +mod snapshot; + +mod debug; + +use proc_macro2::{Delimiter, Group, Literal, Punct, Spacing, TokenStream, TokenTree}; +use syn::Expr; + +#[test] +fn test_grouping() { + let tokens: TokenStream = TokenStream::from_iter([ + TokenTree::Literal(Literal::i32_suffixed(1)), + TokenTree::Punct(Punct::new('+', Spacing::Alone)), + TokenTree::Group(Group::new( + Delimiter::None, + TokenStream::from_iter([ + TokenTree::Literal(Literal::i32_suffixed(2)), + TokenTree::Punct(Punct::new('+', Spacing::Alone)), + TokenTree::Literal(Literal::i32_suffixed(3)), + ]), + )), + TokenTree::Punct(Punct::new('*', Spacing::Alone)), + TokenTree::Literal(Literal::i32_suffixed(4)), + ]); + + assert_eq!(tokens.to_string(), "1i32 + 2i32 + 3i32 * 4i32"); + + snapshot!(tokens as Expr, @r#" + Expr::Binary { + left: Expr::Lit { + lit: 1i32, + }, + op: BinOp::Add, + right: Expr::Binary { + left: Expr::Group { + expr: Expr::Binary { + left: Expr::Lit { + lit: 2i32, + }, + op: BinOp::Add, + right: Expr::Lit { + lit: 3i32, + }, + }, + }, + op: BinOp::Mul, + right: Expr::Lit { + lit: 4i32, + }, + }, + } + "#); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_ident.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_ident.rs new file mode 100644 index 0000000000000000000000000000000000000000..10df0ad56c2ad69d7a5e0b1a579773c53d4f34a2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_ident.rs @@ -0,0 +1,87 @@ +use proc_macro2::{Ident, Span, TokenStream}; +use std::str::FromStr; +use syn::Result; + +#[track_caller] +fn parse(s: &str) -> Result { + syn::parse2(TokenStream::from_str(s).unwrap()) +} + +#[track_caller] +fn new(s: &str) -> Ident { + Ident::new(s, Span::call_site()) +} + +#[test] +fn ident_parse() { + parse("String").unwrap(); +} + +#[test] +fn ident_parse_keyword() { + parse("abstract").unwrap_err(); +} + +#[test] +fn ident_parse_empty() { + parse("").unwrap_err(); +} + +#[test] +fn ident_parse_lifetime() { + parse("'static").unwrap_err(); +} + +#[test] +fn ident_parse_underscore() { + parse("_").unwrap_err(); +} + +#[test] +fn ident_parse_number() { + parse("255").unwrap_err(); +} + +#[test] +fn ident_parse_invalid() { + parse("a#").unwrap_err(); +} + +#[test] +fn ident_new() { + new("String"); +} + +#[test] +fn ident_new_keyword() { + new("abstract"); +} + +#[test] +#[should_panic(expected = "use Option")] +fn ident_new_empty() { + new(""); +} + +#[test] +#[should_panic(expected = "not a valid Ident")] +fn ident_new_lifetime() { + new("'static"); +} + +#[test] +fn ident_new_underscore() { + new("_"); +} + +#[test] +#[should_panic(expected = "use Literal instead")] +fn ident_new_number() { + new("255"); +} + +#[test] +#[should_panic(expected = "\"a#\" is not a valid Ident")] +fn ident_new_invalid() { + new("a#"); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_item.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_item.rs new file mode 100644 index 0000000000000000000000000000000000000000..d9a7b5b6b08b6073c6d6936ecb6b72a09ea220e7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_item.rs @@ -0,0 +1,316 @@ +#![allow( + clippy::elidable_lifetime_names, + clippy::needless_lifetimes, + clippy::uninlined_format_args +)] + +#[macro_use] +mod snapshot; + +mod debug; + +use proc_macro2::{Delimiter, Group, Ident, Span, TokenStream, TokenTree}; +use quote::quote; +use syn::{Item, ItemTrait}; + +#[test] +fn test_macro_variable_attr() { + // mimics the token stream corresponding to `$attr fn f() {}` + let tokens = TokenStream::from_iter([ + TokenTree::Group(Group::new(Delimiter::None, quote! { #[test] })), + TokenTree::Ident(Ident::new("fn", Span::call_site())), + TokenTree::Ident(Ident::new("f", Span::call_site())), + TokenTree::Group(Group::new(Delimiter::Parenthesis, TokenStream::new())), + TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())), + ]); + + snapshot!(tokens as Item, @r#" + Item::Fn { + attrs: [ + Attribute { + style: AttrStyle::Outer, + meta: Meta::Path { + segments: [ + PathSegment { + ident: "test", + }, + ], + }, + }, + ], + vis: Visibility::Inherited, + sig: Signature { + ident: "f", + generics: Generics, + output: ReturnType::Default, + }, + block: Block { + stmts: [], + }, + } + "#); +} + +#[test] +fn test_negative_impl() { + #[cfg(any())] + impl ! {} + let tokens = quote! { + impl ! {} + }; + snapshot!(tokens as Item, @r#" + Item::Impl { + generics: Generics, + self_ty: Type::Never, + } + "#); + + let tokens = quote! { + impl !Trait {} + }; + let err = syn::parse2::(tokens).unwrap_err(); + assert_eq!(err.to_string(), "inherent impls cannot be negative"); + + #[cfg(any())] + impl !Trait for T {} + let tokens = quote! { + impl !Trait for T {} + }; + snapshot!(tokens as Item, @r#" + Item::Impl { + generics: Generics, + trait_: Some(( + Some, + Path { + segments: [ + PathSegment { + ident: "Trait", + }, + ], + }, + )), + self_ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "T", + }, + ], + }, + }, + } + "#); +} + +#[test] +fn test_macro_variable_impl() { + // mimics the token stream corresponding to `impl $trait for $ty {}` + let tokens = TokenStream::from_iter([ + TokenTree::Ident(Ident::new("impl", Span::call_site())), + TokenTree::Group(Group::new(Delimiter::None, quote!(Trait))), + TokenTree::Ident(Ident::new("for", Span::call_site())), + TokenTree::Group(Group::new(Delimiter::None, quote!(Type))), + TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())), + ]); + + snapshot!(tokens as Item, @r#" + Item::Impl { + generics: Generics, + trait_: Some(( + None, + Path { + segments: [ + PathSegment { + ident: "Trait", + }, + ], + }, + )), + self_ty: Type::Group { + elem: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "Type", + }, + ], + }, + }, + }, + } + "#); +} + +#[test] +fn test_supertraits() { + // Rustc parses all of the following. + + #[rustfmt::skip] + let tokens = quote!(trait Trait where {}); + snapshot!(tokens as ItemTrait, @r#" + ItemTrait { + vis: Visibility::Inherited, + ident: "Trait", + generics: Generics { + where_clause: Some(WhereClause), + }, + } + "#); + + #[rustfmt::skip] + let tokens = quote!(trait Trait: where {}); + snapshot!(tokens as ItemTrait, @r#" + ItemTrait { + vis: Visibility::Inherited, + ident: "Trait", + generics: Generics { + where_clause: Some(WhereClause), + }, + colon_token: Some, + } + "#); + + #[rustfmt::skip] + let tokens = quote!(trait Trait: Sized where {}); + snapshot!(tokens as ItemTrait, @r#" + ItemTrait { + vis: Visibility::Inherited, + ident: "Trait", + generics: Generics { + where_clause: Some(WhereClause), + }, + colon_token: Some, + supertraits: [ + TypeParamBound::Trait(TraitBound { + path: Path { + segments: [ + PathSegment { + ident: "Sized", + }, + ], + }, + }), + ], + } + "#); + + #[rustfmt::skip] + let tokens = quote!(trait Trait: Sized + where {}); + snapshot!(tokens as ItemTrait, @r#" + ItemTrait { + vis: Visibility::Inherited, + ident: "Trait", + generics: Generics { + where_clause: Some(WhereClause), + }, + colon_token: Some, + supertraits: [ + TypeParamBound::Trait(TraitBound { + path: Path { + segments: [ + PathSegment { + ident: "Sized", + }, + ], + }, + }), + Token![+], + ], + } + "#); +} + +#[test] +fn test_type_empty_bounds() { + #[rustfmt::skip] + let tokens = quote! { + trait Foo { + type Bar: ; + } + }; + + snapshot!(tokens as ItemTrait, @r#" + ItemTrait { + vis: Visibility::Inherited, + ident: "Foo", + generics: Generics, + items: [ + TraitItem::Type { + ident: "Bar", + generics: Generics, + colon_token: Some, + }, + ], + } + "#); +} + +#[test] +fn test_impl_visibility() { + let tokens = quote! { + pub default unsafe impl union {} + }; + + snapshot!(tokens as Item, @"Item::Verbatim(`pub default unsafe impl union { }`)"); +} + +#[test] +fn test_impl_type_parameter_defaults() { + #[cfg(any())] + impl () {} + let tokens = quote! { + impl () {} + }; + snapshot!(tokens as Item, @r#" + Item::Impl { + generics: Generics { + lt_token: Some, + params: [ + GenericParam::Type(TypeParam { + ident: "T", + eq_token: Some, + default: Some(Type::Tuple), + }), + ], + gt_token: Some, + }, + self_ty: Type::Tuple, + } + "#); +} + +#[test] +fn test_impl_trait_trailing_plus() { + let tokens = quote! { + fn f() -> impl Sized + {} + }; + + snapshot!(tokens as Item, @r#" + Item::Fn { + vis: Visibility::Inherited, + sig: Signature { + ident: "f", + generics: Generics, + output: ReturnType::Type( + Type::ImplTrait { + bounds: [ + TypeParamBound::Trait(TraitBound { + path: Path { + segments: [ + PathSegment { + ident: "Sized", + }, + ], + }, + }), + Token![+], + ], + }, + ), + }, + block: Block { + stmts: [], + }, + } + "#); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_lit.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_lit.rs new file mode 100644 index 0000000000000000000000000000000000000000..f2367b44165dafc986ae180573669254886fc484 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_lit.rs @@ -0,0 +1,335 @@ +#![allow( + clippy::elidable_lifetime_names, + clippy::float_cmp, + clippy::needless_lifetimes, + clippy::needless_raw_string_hashes, + clippy::non_ascii_literal, + clippy::single_match_else, + clippy::uninlined_format_args +)] + +#[macro_use] +mod snapshot; + +mod debug; + +use proc_macro2::{Delimiter, Group, Literal, Span, TokenStream, TokenTree}; +use quote::ToTokens; +use std::ffi::CStr; +use std::str::FromStr; +use syn::{Lit, LitFloat, LitInt, LitStr}; + +#[track_caller] +fn lit(s: &str) -> Lit { + let mut tokens = TokenStream::from_str(s).unwrap().into_iter(); + match tokens.next().unwrap() { + TokenTree::Literal(lit) => { + assert!(tokens.next().is_none()); + Lit::new(lit) + } + wrong => panic!("{:?}", wrong), + } +} + +#[test] +fn strings() { + #[track_caller] + fn test_string(s: &str, value: &str) { + let s = s.trim(); + match lit(s) { + Lit::Str(lit) => { + assert_eq!(lit.value(), value); + let again = lit.into_token_stream().to_string(); + if again != s { + test_string(&again, value); + } + } + wrong => panic!("{:?}", wrong), + } + } + + test_string(r#" "" "#, ""); + test_string(r#" "a" "#, "a"); + test_string(r#" "\n" "#, "\n"); + test_string(r#" "\r" "#, "\r"); + test_string(r#" "\t" "#, "\t"); + test_string(r#" "🐕" "#, "🐕"); // NOTE: This is an emoji + test_string(r#" "\"" "#, "\""); + test_string(r#" "'" "#, "'"); + test_string(r#" "\u{1F415}" "#, "\u{1F415}"); + test_string(r#" "\u{1_2__3_}" "#, "\u{123}"); + test_string( + "\"contains\nnewlines\\\nescaped newlines\"", + "contains\nnewlinesescaped newlines", + ); + test_string( + "\"escaped newline\\\n \x0C unsupported whitespace\"", + "escaped newline\x0C unsupported whitespace", + ); + test_string("r\"raw\nstring\\\nhere\"", "raw\nstring\\\nhere"); + test_string("\"...\"q", "..."); + test_string("r\"...\"q", "..."); + test_string("r##\"...\"##q", "..."); +} + +#[test] +fn byte_strings() { + #[track_caller] + fn test_byte_string(s: &str, value: &[u8]) { + let s = s.trim(); + match lit(s) { + Lit::ByteStr(lit) => { + assert_eq!(lit.value(), value); + let again = lit.into_token_stream().to_string(); + if again != s { + test_byte_string(&again, value); + } + } + wrong => panic!("{:?}", wrong), + } + } + + test_byte_string(r#" b"" "#, b""); + test_byte_string(r#" b"a" "#, b"a"); + test_byte_string(r#" b"\n" "#, b"\n"); + test_byte_string(r#" b"\r" "#, b"\r"); + test_byte_string(r#" b"\t" "#, b"\t"); + test_byte_string(r#" b"\"" "#, b"\""); + test_byte_string(r#" b"'" "#, b"'"); + test_byte_string( + "b\"contains\nnewlines\\\nescaped newlines\"", + b"contains\nnewlinesescaped newlines", + ); + test_byte_string("br\"raw\nstring\\\nhere\"", b"raw\nstring\\\nhere"); + test_byte_string("b\"...\"q", b"..."); + test_byte_string("br\"...\"q", b"..."); + test_byte_string("br##\"...\"##q", b"..."); +} + +#[test] +fn c_strings() { + #[track_caller] + fn test_c_string(s: &str, value: &CStr) { + let s = s.trim(); + match lit(s) { + Lit::CStr(lit) => { + assert_eq!(*lit.value(), *value); + let again = lit.into_token_stream().to_string(); + if again != s { + test_c_string(&again, value); + } + } + wrong => panic!("{:?}", wrong), + } + } + + test_c_string(r#" c"" "#, c""); + test_c_string(r#" c"a" "#, c"a"); + test_c_string(r#" c"\n" "#, c"\n"); + test_c_string(r#" c"\r" "#, c"\r"); + test_c_string(r#" c"\t" "#, c"\t"); + test_c_string(r#" c"\\" "#, c"\\"); + test_c_string(r#" c"\'" "#, c"'"); + test_c_string(r#" c"\"" "#, c"\""); + test_c_string( + "c\"contains\nnewlines\\\nescaped newlines\"", + c"contains\nnewlinesescaped newlines", + ); + test_c_string("cr\"raw\nstring\\\nhere\"", c"raw\nstring\\\nhere"); + test_c_string("c\"...\"q", c"..."); + test_c_string("cr\"...\"", c"..."); + test_c_string("cr##\"...\"##", c"..."); + test_c_string( + r#" c"hello\x80我叫\u{1F980}" "#, // from the RFC + c"hello\x80我叫\u{1F980}", + ); +} + +#[test] +fn bytes() { + #[track_caller] + fn test_byte(s: &str, value: u8) { + let s = s.trim(); + match lit(s) { + Lit::Byte(lit) => { + assert_eq!(lit.value(), value); + let again = lit.into_token_stream().to_string(); + assert_eq!(again, s); + } + wrong => panic!("{:?}", wrong), + } + } + + test_byte(r#" b'a' "#, b'a'); + test_byte(r#" b'\n' "#, b'\n'); + test_byte(r#" b'\r' "#, b'\r'); + test_byte(r#" b'\t' "#, b'\t'); + test_byte(r#" b'\'' "#, b'\''); + test_byte(r#" b'"' "#, b'"'); + test_byte(r#" b'a'q "#, b'a'); +} + +#[test] +fn chars() { + #[track_caller] + fn test_char(s: &str, value: char) { + let s = s.trim(); + match lit(s) { + Lit::Char(lit) => { + assert_eq!(lit.value(), value); + let again = lit.into_token_stream().to_string(); + if again != s { + test_char(&again, value); + } + } + wrong => panic!("{:?}", wrong), + } + } + + test_char(r#" 'a' "#, 'a'); + test_char(r#" '\n' "#, '\n'); + test_char(r#" '\r' "#, '\r'); + test_char(r#" '\t' "#, '\t'); + test_char(r#" '🐕' "#, '🐕'); // NOTE: This is an emoji + test_char(r#" '\'' "#, '\''); + test_char(r#" '"' "#, '"'); + test_char(r#" '\u{1F415}' "#, '\u{1F415}'); + test_char(r#" 'a'q "#, 'a'); +} + +#[test] +fn ints() { + #[track_caller] + fn test_int(s: &str, value: u64, suffix: &str) { + match lit(s) { + Lit::Int(lit) => { + assert_eq!(lit.base10_digits().parse::().unwrap(), value); + assert_eq!(lit.suffix(), suffix); + let again = lit.into_token_stream().to_string(); + if again != s { + test_int(&again, value, suffix); + } + } + wrong => panic!("{:?}", wrong), + } + } + + test_int("5", 5, ""); + test_int("5u32", 5, "u32"); + test_int("0E", 0, "E"); + test_int("0ECMA", 0, "ECMA"); + test_int("0o0A", 0, "A"); + test_int("5_0", 50, ""); + test_int("5_____0_____", 50, ""); + test_int("0x7f", 127, ""); + test_int("0x7F", 127, ""); + test_int("0b1001", 9, ""); + test_int("0o73", 59, ""); + test_int("0x7Fu8", 127, "u8"); + test_int("0b1001i8", 9, "i8"); + test_int("0o73u32", 59, "u32"); + test_int("0x__7___f_", 127, ""); + test_int("0x__7___F_", 127, ""); + test_int("0b_1_0__01", 9, ""); + test_int("0o_7__3", 59, ""); + test_int("0x_7F__u8", 127, "u8"); + test_int("0b__10__0_1i8", 9, "i8"); + test_int("0o__7__________________3u32", 59, "u32"); + test_int("0e1\u{5c5}", 0, "e1\u{5c5}"); +} + +#[test] +fn floats() { + #[track_caller] + fn test_float(s: &str, value: f64, suffix: &str) { + match lit(s) { + Lit::Float(lit) => { + assert_eq!(lit.base10_digits().parse::().unwrap(), value); + assert_eq!(lit.suffix(), suffix); + let again = lit.into_token_stream().to_string(); + if again != s { + test_float(&again, value, suffix); + } + } + wrong => panic!("{:?}", wrong), + } + } + + test_float("5.5", 5.5, ""); + test_float("5.5E12", 5.5e12, ""); + test_float("5.5e12", 5.5e12, ""); + test_float("1.0__3e-12", 1.03e-12, ""); + test_float("1.03e+12", 1.03e12, ""); + test_float("9e99e99", 9e99, "e99"); + test_float("1e_0", 1.0, ""); + test_float("0.0ECMA", 0.0, "ECMA"); +} + +#[test] +fn negative() { + let span = Span::call_site(); + assert_eq!("-1", LitInt::new("-1", span).to_string()); + assert_eq!("-1i8", LitInt::new("-1i8", span).to_string()); + assert_eq!("-1i16", LitInt::new("-1i16", span).to_string()); + assert_eq!("-1i32", LitInt::new("-1i32", span).to_string()); + assert_eq!("-1i64", LitInt::new("-1i64", span).to_string()); + assert_eq!("-1.5", LitFloat::new("-1.5", span).to_string()); + assert_eq!("-1.5f32", LitFloat::new("-1.5f32", span).to_string()); + assert_eq!("-1.5f64", LitFloat::new("-1.5f64", span).to_string()); +} + +#[test] +fn suffix() { + #[track_caller] + fn get_suffix(token: &str) -> String { + let lit = syn::parse_str::(token).unwrap(); + match lit { + Lit::Str(lit) => lit.suffix().to_owned(), + Lit::ByteStr(lit) => lit.suffix().to_owned(), + Lit::CStr(lit) => lit.suffix().to_owned(), + Lit::Byte(lit) => lit.suffix().to_owned(), + Lit::Char(lit) => lit.suffix().to_owned(), + Lit::Int(lit) => lit.suffix().to_owned(), + Lit::Float(lit) => lit.suffix().to_owned(), + _ => unimplemented!(), + } + } + + assert_eq!(get_suffix("\"\"s"), "s"); + assert_eq!(get_suffix("r\"\"r"), "r"); + assert_eq!(get_suffix("r#\"\"#r"), "r"); + assert_eq!(get_suffix("b\"\"b"), "b"); + assert_eq!(get_suffix("br\"\"br"), "br"); + assert_eq!(get_suffix("br#\"\"#br"), "br"); + assert_eq!(get_suffix("c\"\"c"), "c"); + assert_eq!(get_suffix("cr\"\"cr"), "cr"); + assert_eq!(get_suffix("cr#\"\"#cr"), "cr"); + assert_eq!(get_suffix("'c'c"), "c"); + assert_eq!(get_suffix("b'b'b"), "b"); + assert_eq!(get_suffix("1i32"), "i32"); + assert_eq!(get_suffix("1_i32"), "i32"); + assert_eq!(get_suffix("1.0f32"), "f32"); + assert_eq!(get_suffix("1.0_f32"), "f32"); +} + +#[test] +fn test_deep_group_empty() { + let tokens = TokenStream::from_iter([TokenTree::Group(Group::new( + Delimiter::None, + TokenStream::from_iter([TokenTree::Group(Group::new( + Delimiter::None, + TokenStream::from_iter([TokenTree::Literal(Literal::string("hi"))]), + ))]), + ))]); + + snapshot!(tokens as Lit, @r#""hi""# ); +} + +#[test] +fn test_error() { + let err = syn::parse_str::("...").unwrap_err(); + assert_eq!("expected string literal", err.to_string()); + + let err = syn::parse_str::("5").unwrap_err(); + assert_eq!("expected string literal", err.to_string()); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_meta.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_meta.rs new file mode 100644 index 0000000000000000000000000000000000000000..4e1f9caf38e0c1822153880f463357b3caf73aa2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_meta.rs @@ -0,0 +1,180 @@ +#![allow( + clippy::elidable_lifetime_names, + clippy::needless_lifetimes, + clippy::shadow_unrelated, + clippy::too_many_lines, + clippy::uninlined_format_args +)] + +#[macro_use] +mod snapshot; + +mod debug; + +use quote::quote; +use syn::parse::{ParseStream, Parser as _, Result}; +use syn::{Meta, MetaList, MetaNameValue, Token}; + +#[test] +fn test_parse_meta_item_word() { + let input = "hello"; + + snapshot!(input as Meta, @r#" + Meta::Path { + segments: [ + PathSegment { + ident: "hello", + }, + ], + } + "#); +} + +#[test] +fn test_parse_meta_name_value() { + let input = "foo = 5"; + let (inner, meta) = (input, input); + + snapshot!(inner as MetaNameValue, @r#" + MetaNameValue { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + value: Expr::Lit { + lit: 5, + }, + } + "#); + + snapshot!(meta as Meta, @r#" + Meta::NameValue { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + value: Expr::Lit { + lit: 5, + }, + } + "#); + + assert_eq!(meta, Meta::NameValue(inner)); +} + +#[test] +fn test_parse_meta_item_list_lit() { + let input = "foo(5)"; + let (inner, meta) = (input, input); + + snapshot!(inner as MetaList, @r#" + MetaList { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(`5`), + } + "#); + + snapshot!(meta as Meta, @r#" + Meta::List { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(`5`), + } + "#); + + assert_eq!(meta, Meta::List(inner)); +} + +#[test] +fn test_parse_meta_item_multiple() { + let input = "foo(word, name = 5, list(name2 = 6), word2)"; + let (inner, meta) = (input, input); + + snapshot!(inner as MetaList, @r#" + MetaList { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(`word , name = 5 , list (name2 = 6) , word2`), + } + "#); + + snapshot!(meta as Meta, @r#" + Meta::List { + path: Path { + segments: [ + PathSegment { + ident: "foo", + }, + ], + }, + delimiter: MacroDelimiter::Paren, + tokens: TokenStream(`word , name = 5 , list (name2 = 6) , word2`), + } + "#); + + assert_eq!(meta, Meta::List(inner)); +} + +#[test] +fn test_parse_path() { + let input = "::serde::Serialize"; + snapshot!(input as Meta, @r#" + Meta::Path { + leading_colon: Some, + segments: [ + PathSegment { + ident: "serde", + }, + Token![::], + PathSegment { + ident: "Serialize", + }, + ], + } + "#); +} + +#[test] +fn test_fat_arrow_after_meta() { + fn parse(input: ParseStream) -> Result<()> { + while !input.is_empty() { + let _: Meta = input.parse()?; + let _: Token![=>] = input.parse()?; + let brace; + syn::braced!(brace in input); + } + Ok(()) + } + + let input = quote! { + target_os = "linux" => {} + windows => {} + }; + + parse.parse2(input).unwrap(); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_parse_buffer.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_parse_buffer.rs new file mode 100644 index 0000000000000000000000000000000000000000..f756578b93a985f441643db8a419b3549b43e841 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_parse_buffer.rs @@ -0,0 +1,104 @@ +#![allow(clippy::non_ascii_literal)] + +use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, TokenStream, TokenTree}; +use std::panic; +use syn::parse::discouraged::Speculative as _; +use syn::parse::{Parse, ParseStream, Parser, Result}; +use syn::{parenthesized, Token}; + +#[test] +#[should_panic(expected = "fork was not derived from the advancing parse stream")] +fn smuggled_speculative_cursor_between_sources() { + struct BreakRules; + impl Parse for BreakRules { + fn parse(input1: ParseStream) -> Result { + let nested = |input2: ParseStream| { + input1.advance_to(input2); + Ok(Self) + }; + nested.parse_str("") + } + } + + syn::parse_str::("").unwrap(); +} + +#[test] +#[should_panic(expected = "fork was not derived from the advancing parse stream")] +fn smuggled_speculative_cursor_between_brackets() { + struct BreakRules; + impl Parse for BreakRules { + fn parse(input: ParseStream) -> Result { + let a; + let b; + parenthesized!(a in input); + parenthesized!(b in input); + a.advance_to(&b); + Ok(Self) + } + } + + syn::parse_str::("()()").unwrap(); +} + +#[test] +#[should_panic(expected = "fork was not derived from the advancing parse stream")] +fn smuggled_speculative_cursor_into_brackets() { + struct BreakRules; + impl Parse for BreakRules { + fn parse(input: ParseStream) -> Result { + let a; + parenthesized!(a in input); + input.advance_to(&a); + Ok(Self) + } + } + + syn::parse_str::("()").unwrap(); +} + +#[test] +fn trailing_empty_none_group() { + fn parse(input: ParseStream) -> Result<()> { + input.parse::()?; + + let content; + parenthesized!(content in input); + content.parse::()?; + + Ok(()) + } + + // `+ ( + «∅ ∅» ) «∅ «∅ ∅» ∅»` + let tokens = TokenStream::from_iter([ + TokenTree::Punct(Punct::new('+', Spacing::Alone)), + TokenTree::Group(Group::new( + Delimiter::Parenthesis, + TokenStream::from_iter([ + TokenTree::Punct(Punct::new('+', Spacing::Alone)), + TokenTree::Group(Group::new(Delimiter::None, TokenStream::new())), + ]), + )), + TokenTree::Group(Group::new(Delimiter::None, TokenStream::new())), + TokenTree::Group(Group::new( + Delimiter::None, + TokenStream::from_iter([TokenTree::Group(Group::new( + Delimiter::None, + TokenStream::new(), + ))]), + )), + ]); + + parse.parse2(tokens).unwrap(); +} + +#[test] +#[cfg_attr(miri, ignore)] // https://github.com/rust-lang/miri/issues/4793 +fn test_unwind_safe() { + fn parse(input: ParseStream) -> Result { + let thread_result = panic::catch_unwind(|| input.parse()); + thread_result.unwrap() + } + + parse.parse_str("throw").unwrap(); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_parse_quote.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_parse_quote.rs new file mode 100644 index 0000000000000000000000000000000000000000..600870bab58a4349ef6dcfa23d042657495dbfc0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_parse_quote.rs @@ -0,0 +1,172 @@ +#![allow( + clippy::elidable_lifetime_names, + clippy::needless_lifetimes, + clippy::uninlined_format_args +)] + +#[macro_use] +mod snapshot; + +mod debug; + +use syn::punctuated::Punctuated; +use syn::{parse_quote, Attribute, Field, Lit, Pat, Stmt, Token}; + +#[test] +fn test_attribute() { + let attr: Attribute = parse_quote!(#[test]); + snapshot!(attr, @r#" + Attribute { + style: AttrStyle::Outer, + meta: Meta::Path { + segments: [ + PathSegment { + ident: "test", + }, + ], + }, + } + "#); + + let attr: Attribute = parse_quote!(#![no_std]); + snapshot!(attr, @r#" + Attribute { + style: AttrStyle::Inner, + meta: Meta::Path { + segments: [ + PathSegment { + ident: "no_std", + }, + ], + }, + } + "#); +} + +#[test] +fn test_field() { + let field: Field = parse_quote!(pub enabled: bool); + snapshot!(field, @r#" + Field { + vis: Visibility::Public, + ident: Some("enabled"), + colon_token: Some, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "bool", + }, + ], + }, + }, + } + "#); + + let field: Field = parse_quote!(primitive::bool); + snapshot!(field, @r#" + Field { + vis: Visibility::Inherited, + ty: Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "primitive", + }, + Token![::], + PathSegment { + ident: "bool", + }, + ], + }, + }, + } + "#); +} + +#[test] +fn test_pat() { + let pat: Pat = parse_quote!(Some(false) | None); + snapshot!(&pat, @r#" + Pat::Or { + cases: [ + Pat::TupleStruct { + path: Path { + segments: [ + PathSegment { + ident: "Some", + }, + ], + }, + elems: [ + Pat::Lit(ExprLit { + lit: Lit::Bool { + value: false, + }, + }), + ], + }, + Token![|], + Pat::Ident { + ident: "None", + }, + ], + } + "#); + + let boxed_pat: Box = parse_quote!(Some(false) | None); + assert_eq!(*boxed_pat, pat); +} + +#[test] +fn test_punctuated() { + let punctuated: Punctuated = parse_quote!(true | true); + snapshot!(punctuated, @r#" + [ + Lit::Bool { + value: true, + }, + Token![|], + Lit::Bool { + value: true, + }, + ] + "#); + + let punctuated: Punctuated = parse_quote!(true | true |); + snapshot!(punctuated, @r#" + [ + Lit::Bool { + value: true, + }, + Token![|], + Lit::Bool { + value: true, + }, + Token![|], + ] + "#); +} + +#[test] +fn test_vec_stmt() { + let stmts: Vec = parse_quote! { + let _; + true + }; + snapshot!(stmts, @r#" + [ + Stmt::Local { + pat: Pat::Wild, + }, + Stmt::Expr( + Expr::Lit { + lit: Lit::Bool { + value: true, + }, + }, + None, + ), + ] + "#); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_parse_stream.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_parse_stream.rs new file mode 100644 index 0000000000000000000000000000000000000000..a650fc85346c251c69df036fa51131f8ba44a093 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_parse_stream.rs @@ -0,0 +1,187 @@ +#![allow(clippy::items_after_statements, clippy::let_underscore_untyped)] + +use proc_macro2::{Delimiter, Group, Punct, Spacing, Span, TokenStream, TokenTree}; +use quote::quote; +use syn::ext::IdentExt as _; +use syn::parse::discouraged::AnyDelimiter; +use syn::parse::{ParseStream, Parser as _, Result}; +use syn::{parenthesized, token, Ident, Lifetime, Token}; + +#[test] +fn test_peek_punct() { + let tokens = quote!(+= + =); + + fn assert(input: ParseStream) -> Result<()> { + assert!(input.peek(Token![+])); + assert!(input.peek(Token![+=])); + + let _: Token![+] = input.parse()?; + + assert!(input.peek(Token![=])); + assert!(!input.peek(Token![==])); + assert!(!input.peek(Token![+])); + + let _: Token![=] = input.parse()?; + + assert!(input.peek(Token![+])); + assert!(!input.peek(Token![+=])); + + let _: Token![+] = input.parse()?; + let _: Token![=] = input.parse()?; + Ok(()) + } + + assert.parse2(tokens).unwrap(); +} + +#[test] +fn test_peek_lifetime() { + // 'static ; + let tokens = TokenStream::from_iter([ + TokenTree::Punct(Punct::new('\'', Spacing::Joint)), + TokenTree::Ident(Ident::new("static", Span::call_site())), + TokenTree::Punct(Punct::new(';', Spacing::Alone)), + ]); + + fn assert(input: ParseStream) -> Result<()> { + assert!(input.peek(Lifetime)); + assert!(input.peek2(Token![;])); + assert!(!input.peek2(Token![static])); + + let _: Lifetime = input.parse()?; + + assert!(input.peek(Token![;])); + + let _: Token![;] = input.parse()?; + Ok(()) + } + + assert.parse2(tokens).unwrap(); +} + +#[test] +fn test_peek_not_lifetime() { + // ' static + let tokens = TokenStream::from_iter([ + TokenTree::Punct(Punct::new('\'', Spacing::Alone)), + TokenTree::Ident(Ident::new("static", Span::call_site())), + ]); + + fn assert(input: ParseStream) -> Result<()> { + assert!(!input.peek(Lifetime)); + assert!(input.parse::>()?.is_none()); + + let _: TokenTree = input.parse()?; + + assert!(input.peek(Token![static])); + + let _: Token![static] = input.parse()?; + Ok(()) + } + + assert.parse2(tokens).unwrap(); +} + +#[test] +fn test_peek_ident() { + let tokens = quote!(static var); + + fn assert(input: ParseStream) -> Result<()> { + assert!(!input.peek(Ident)); + assert!(input.peek(Ident::peek_any)); + assert!(input.peek(Token![static])); + + let _: Token![static] = input.parse()?; + + assert!(input.peek(Ident)); + assert!(input.peek(Ident::peek_any)); + + let _: Ident = input.parse()?; + Ok(()) + } + + assert.parse2(tokens).unwrap(); +} + +#[test] +fn test_peek_groups() { + // pub ( :: ) «∅ ! = ∅» static + let tokens = TokenStream::from_iter([ + TokenTree::Ident(Ident::new("pub", Span::call_site())), + TokenTree::Group(Group::new( + Delimiter::Parenthesis, + TokenStream::from_iter([ + TokenTree::Punct(Punct::new(':', Spacing::Joint)), + TokenTree::Punct(Punct::new(':', Spacing::Alone)), + ]), + )), + TokenTree::Group(Group::new( + Delimiter::None, + TokenStream::from_iter([ + TokenTree::Punct(Punct::new('!', Spacing::Alone)), + TokenTree::Punct(Punct::new('=', Spacing::Alone)), + ]), + )), + TokenTree::Ident(Ident::new("static", Span::call_site())), + ]); + + fn assert(input: ParseStream) -> Result<()> { + assert!(input.peek2(token::Paren)); + assert!(input.peek3(token::Group)); + assert!(input.peek3(Token![!])); + + let _: Token![pub] = input.parse()?; + + assert!(input.peek(token::Paren)); + assert!(!input.peek(Token![::])); + assert!(!input.peek2(Token![::])); + assert!(input.peek2(Token![!])); + assert!(input.peek2(token::Group)); + assert!(input.peek3(Token![=])); + assert!(!input.peek3(Token![static])); + + let content; + parenthesized!(content in input); + + assert!(content.peek(Token![::])); + assert!(content.peek2(Token![:])); + assert!(!content.peek3(token::Group)); + assert!(!content.peek3(Token![!])); + + assert!(input.peek(token::Group)); + assert!(input.peek(Token![!])); + + let _: Token![::] = content.parse()?; + + assert!(input.peek(token::Group)); + assert!(input.peek(Token![!])); + assert!(input.peek2(Token![=])); + assert!(input.peek3(Token![static])); + assert!(!input.peek2(Token![static])); + + let implicit = input.fork(); + let explicit = input.fork(); + + let _: Token![!] = implicit.parse()?; + assert!(implicit.peek(Token![=])); + assert!(implicit.peek2(Token![static])); + let _: Token![=] = implicit.parse()?; + assert!(implicit.peek(Token![static])); + + let (delimiter, _span, grouped) = explicit.parse_any_delimiter()?; + assert_eq!(delimiter, Delimiter::None); + assert!(grouped.peek(Token![!])); + assert!(grouped.peek2(Token![=])); + assert!(!grouped.peek3(Token![static])); + let _: Token![!] = grouped.parse()?; + assert!(grouped.peek(Token![=])); + assert!(!grouped.peek2(Token![static])); + let _: Token![=] = grouped.parse()?; + assert!(!grouped.peek(Token![static])); + + let _: TokenStream = input.parse()?; + Ok(()) + } + + assert.parse2(tokens).unwrap(); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_pat.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_pat.rs new file mode 100644 index 0000000000000000000000000000000000000000..f778928bc99341f8b9be94ebb07909a0dd8b7ec8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_pat.rs @@ -0,0 +1,158 @@ +#![allow( + clippy::elidable_lifetime_names, + clippy::needless_lifetimes, + clippy::uninlined_format_args +)] + +#[macro_use] +mod snapshot; + +mod debug; + +use proc_macro2::{Delimiter, Group, TokenStream, TokenTree}; +use quote::{quote, ToTokens as _}; +use syn::parse::Parser; +use syn::punctuated::Punctuated; +use syn::{parse_quote, token, Item, Pat, PatTuple, Stmt, Token}; + +#[test] +fn test_pat_ident() { + match Pat::parse_single.parse2(quote!(self)).unwrap() { + Pat::Ident(_) => (), + value => panic!("expected PatIdent, got {:?}", value), + } +} + +#[test] +fn test_pat_path() { + match Pat::parse_single.parse2(quote!(self::CONST)).unwrap() { + Pat::Path(_) => (), + value => panic!("expected PatPath, got {:?}", value), + } +} + +#[test] +fn test_leading_vert() { + // https://github.com/rust-lang/rust/blob/1.43.0/src/test/ui/or-patterns/remove-leading-vert.rs + + syn::parse_str::("fn f() {}").unwrap(); + syn::parse_str::("fn fun1(| A: E) {}").unwrap_err(); + syn::parse_str::("fn fun2(|| A: E) {}").unwrap_err(); + + syn::parse_str::("let | () = ();").unwrap_err(); + syn::parse_str::("let (| A): E;").unwrap(); + syn::parse_str::("let (|| A): (E);").unwrap_err(); + syn::parse_str::("let (| A,): (E,);").unwrap(); + syn::parse_str::("let [| A]: [E; 1];").unwrap(); + syn::parse_str::("let [|| A]: [E; 1];").unwrap_err(); + syn::parse_str::("let TS(| A): TS;").unwrap(); + syn::parse_str::("let TS(|| A): TS;").unwrap_err(); + syn::parse_str::("let NS { f: | A }: NS;").unwrap(); + syn::parse_str::("let NS { f: || A }: NS;").unwrap_err(); +} + +#[test] +fn test_group() { + let group = Group::new(Delimiter::None, quote!(Some(_))); + let tokens = TokenStream::from_iter([TokenTree::Group(group)]); + let pat = Pat::parse_single.parse2(tokens).unwrap(); + + snapshot!(pat, @r#" + Pat::TupleStruct { + path: Path { + segments: [ + PathSegment { + ident: "Some", + }, + ], + }, + elems: [ + Pat::Wild, + ], + } + "#); +} + +#[test] +fn test_ranges() { + Pat::parse_single.parse_str("..").unwrap(); + Pat::parse_single.parse_str("..hi").unwrap(); + Pat::parse_single.parse_str("lo..").unwrap(); + Pat::parse_single.parse_str("lo..hi").unwrap(); + + Pat::parse_single.parse_str("..=").unwrap_err(); + Pat::parse_single.parse_str("..=hi").unwrap(); + Pat::parse_single.parse_str("lo..=").unwrap_err(); + Pat::parse_single.parse_str("lo..=hi").unwrap(); + + Pat::parse_single.parse_str("...").unwrap_err(); + Pat::parse_single.parse_str("...hi").unwrap_err(); + Pat::parse_single.parse_str("lo...").unwrap_err(); + Pat::parse_single.parse_str("lo...hi").unwrap(); + + Pat::parse_single.parse_str("[lo..]").unwrap_err(); + Pat::parse_single.parse_str("[..=hi]").unwrap_err(); + Pat::parse_single.parse_str("[(lo..)]").unwrap(); + Pat::parse_single.parse_str("[(..=hi)]").unwrap(); + Pat::parse_single.parse_str("[lo..=hi]").unwrap(); + + Pat::parse_single.parse_str("[_, lo.., _]").unwrap_err(); + Pat::parse_single.parse_str("[_, ..=hi, _]").unwrap_err(); + Pat::parse_single.parse_str("[_, (lo..), _]").unwrap(); + Pat::parse_single.parse_str("[_, (..=hi), _]").unwrap(); + Pat::parse_single.parse_str("[_, lo..=hi, _]").unwrap(); +} + +#[test] +fn test_tuple_comma() { + let mut expr = PatTuple { + attrs: Vec::new(), + paren_token: token::Paren::default(), + elems: Punctuated::new(), + }; + snapshot!(expr.to_token_stream() as Pat, @"Pat::Tuple"); + + expr.elems.push_value(parse_quote!(_)); + // Must not parse to Pat::Paren + snapshot!(expr.to_token_stream() as Pat, @r#" + Pat::Tuple { + elems: [ + Pat::Wild, + Token![,], + ], + } + "#); + + expr.elems.push_punct(::default()); + snapshot!(expr.to_token_stream() as Pat, @r#" + Pat::Tuple { + elems: [ + Pat::Wild, + Token![,], + ], + } + "#); + + expr.elems.push_value(parse_quote!(_)); + snapshot!(expr.to_token_stream() as Pat, @r#" + Pat::Tuple { + elems: [ + Pat::Wild, + Token![,], + Pat::Wild, + ], + } + "#); + + expr.elems.push_punct(::default()); + snapshot!(expr.to_token_stream() as Pat, @r#" + Pat::Tuple { + elems: [ + Pat::Wild, + Token![,], + Pat::Wild, + Token![,], + ], + } + "#); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_path.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_path.rs new file mode 100644 index 0000000000000000000000000000000000000000..7f9e515d26963e3d5518584ecb7222a8e6ddc6c9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_path.rs @@ -0,0 +1,116 @@ +#![allow( + clippy::elidable_lifetime_names, + clippy::needless_lifetimes, + clippy::uninlined_format_args +)] + +#[macro_use] +mod snapshot; + +mod debug; + +use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree}; +use quote::{quote, ToTokens}; +use syn::{parse_quote, Expr, Type, TypePath}; + +#[test] +fn parse_interpolated_leading_component() { + // mimics the token stream corresponding to `$mod::rest` + let tokens = TokenStream::from_iter([ + TokenTree::Group(Group::new(Delimiter::None, quote! { first })), + TokenTree::Punct(Punct::new(':', Spacing::Joint)), + TokenTree::Punct(Punct::new(':', Spacing::Alone)), + TokenTree::Ident(Ident::new("rest", Span::call_site())), + ]); + + snapshot!(tokens.clone() as Expr, @r#" + Expr::Path { + path: Path { + segments: [ + PathSegment { + ident: "first", + }, + Token![::], + PathSegment { + ident: "rest", + }, + ], + }, + } + "#); + + snapshot!(tokens as Type, @r#" + Type::Path { + path: Path { + segments: [ + PathSegment { + ident: "first", + }, + Token![::], + PathSegment { + ident: "rest", + }, + ], + }, + } + "#); +} + +#[test] +fn print_incomplete_qpath() { + // qpath with `as` token + let mut ty: TypePath = parse_quote!(::Q); + snapshot!(ty.to_token_stream(), @"TokenStream(`< Self as A > :: Q`)"); + assert!(ty.path.segments.pop().is_some()); + snapshot!(ty.to_token_stream(), @"TokenStream(`< Self as A > ::`)"); + assert!(ty.path.segments.pop().is_some()); + snapshot!(ty.to_token_stream(), @"TokenStream(`< Self >`)"); + assert!(ty.path.segments.pop().is_none()); + + // qpath without `as` token + let mut ty: TypePath = parse_quote!(::A::B); + snapshot!(ty.to_token_stream(), @"TokenStream(`< Self > :: A :: B`)"); + assert!(ty.path.segments.pop().is_some()); + snapshot!(ty.to_token_stream(), @"TokenStream(`< Self > :: A ::`)"); + assert!(ty.path.segments.pop().is_some()); + snapshot!(ty.to_token_stream(), @"TokenStream(`< Self > ::`)"); + assert!(ty.path.segments.pop().is_none()); + + // normal path + let mut ty: TypePath = parse_quote!(Self::A::B); + snapshot!(ty.to_token_stream(), @"TokenStream(`Self :: A :: B`)"); + assert!(ty.path.segments.pop().is_some()); + snapshot!(ty.to_token_stream(), @"TokenStream(`Self :: A ::`)"); + assert!(ty.path.segments.pop().is_some()); + snapshot!(ty.to_token_stream(), @"TokenStream(`Self ::`)"); + assert!(ty.path.segments.pop().is_some()); + snapshot!(ty.to_token_stream(), @"TokenStream(``)"); + assert!(ty.path.segments.pop().is_none()); +} + +#[test] +fn parse_parenthesized_path_arguments_with_disambiguator() { + #[rustfmt::skip] + let tokens = quote!(dyn FnOnce::() -> !); + snapshot!(tokens as Type, @r#" + Type::TraitObject { + dyn_token: Some, + bounds: [ + TypeParamBound::Trait(TraitBound { + path: Path { + segments: [ + PathSegment { + ident: "FnOnce", + arguments: PathArguments::Parenthesized { + output: ReturnType::Type( + Type::Never, + ), + }, + }, + ], + }, + }), + ], + } + "#); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_precedence.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_precedence.rs new file mode 100644 index 0000000000000000000000000000000000000000..4950eecb60aa4fe79f94b91031c860b60af7d237 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_precedence.rs @@ -0,0 +1,556 @@ +// This test does the following for every file in the rust-lang/rust repo: +// +// 1. Parse the file using syn into a syn::File. +// 2. Extract every syn::Expr from the file. +// 3. Print each expr to a string of source code. +// 4. Parse the source code using librustc_parse into a rustc_ast::Expr. +// 5. For both the syn::Expr and rustc_ast::Expr, crawl the syntax tree to +// insert parentheses surrounding every subexpression. +// 6. Serialize the fully parenthesized syn::Expr to a string of source code. +// 7. Parse the fully parenthesized source code using librustc_parse. +// 8. Compare the rustc_ast::Expr resulting from parenthesizing using rustc data +// structures vs syn data structures, ignoring spans. If they agree, rustc's +// parser and syn's parser have identical handling of expression precedence. + +#![cfg(not(syn_disable_nightly_tests))] +#![cfg(not(miri))] +#![recursion_limit = "1024"] +#![feature(rustc_private)] +#![allow( + clippy::blocks_in_conditions, + clippy::doc_markdown, + clippy::elidable_lifetime_names, + clippy::explicit_deref_methods, + clippy::let_underscore_untyped, + clippy::manual_assert, + clippy::manual_let_else, + clippy::match_like_matches_macro, + clippy::match_wildcard_for_single_variants, + clippy::needless_lifetimes, + clippy::too_many_lines, + clippy::uninlined_format_args, + clippy::unnecessary_box_returns +)] + +extern crate rustc_ast; +extern crate rustc_ast_pretty; +extern crate rustc_data_structures; +extern crate rustc_driver; +extern crate rustc_span; + +use crate::common::eq::SpanlessEq; +use crate::common::parse; +use quote::ToTokens; +use rustc_ast::ast; +use rustc_ast_pretty::pprust; +use rustc_span::edition::Edition; +use std::fs; +use std::mem; +use std::path::Path; +use std::process; +use std::sync::atomic::{AtomicUsize, Ordering}; +use syn::parse::Parser as _; + +#[macro_use] +mod macros; + +mod common; +mod repo; + +#[path = "../src/scan_expr.rs"] +mod scan_expr; + +#[test] +fn test_rustc_precedence() { + repo::rayon_init(); + repo::clone_rust(); + let abort_after = repo::abort_after(); + if abort_after == 0 { + panic!("skipping all precedence tests"); + } + + let passed = AtomicUsize::new(0); + let failed = AtomicUsize::new(0); + + repo::for_each_rust_file(|path| { + let content = fs::read_to_string(path).unwrap(); + + let (l_passed, l_failed) = match syn::parse_file(&content) { + Ok(file) => { + let edition = repo::edition(path).parse().unwrap(); + let exprs = collect_exprs(file); + let (l_passed, l_failed) = test_expressions(path, edition, exprs); + errorf!( + "=== {}: {} passed | {} failed\n", + path.display(), + l_passed, + l_failed, + ); + (l_passed, l_failed) + } + Err(msg) => { + errorf!("\nFAIL {} - syn failed to parse: {}\n", path.display(), msg); + (0, 1) + } + }; + + passed.fetch_add(l_passed, Ordering::Relaxed); + let prev_failed = failed.fetch_add(l_failed, Ordering::Relaxed); + + if prev_failed + l_failed >= abort_after { + process::exit(1); + } + }); + + let passed = passed.into_inner(); + let failed = failed.into_inner(); + + errorf!("\n===== Precedence Test Results =====\n"); + errorf!("{} passed | {} failed\n", passed, failed); + + if failed > 0 { + panic!("{} failures", failed); + } +} + +fn test_expressions(path: &Path, edition: Edition, exprs: Vec) -> (usize, usize) { + let mut passed = 0; + let mut failed = 0; + + rustc_span::create_session_if_not_set_then(edition, |_| { + for expr in exprs { + let expr_tokens = expr.to_token_stream(); + let source_code = expr_tokens.to_string(); + let librustc_ast = if let Some(e) = librustc_parse_and_rewrite(&source_code) { + e + } else { + failed += 1; + errorf!( + "\nFAIL {} - librustc failed to parse original\n", + path.display(), + ); + continue; + }; + + let syn_parenthesized_code = + syn_parenthesize(expr.clone()).to_token_stream().to_string(); + let syn_ast = if let Some(e) = parse::librustc_expr(&syn_parenthesized_code) { + e + } else { + failed += 1; + errorf!( + "\nFAIL {} - librustc failed to parse parenthesized\n", + path.display(), + ); + continue; + }; + + if !SpanlessEq::eq(&syn_ast, &librustc_ast) { + failed += 1; + let syn_pretty = pprust::expr_to_string(&syn_ast); + let librustc_pretty = pprust::expr_to_string(&librustc_ast); + errorf!( + "\nFAIL {}\n{}\nsyn != rustc\n{}\n", + path.display(), + syn_pretty, + librustc_pretty, + ); + continue; + } + + let expr_invisible = make_parens_invisible(expr); + let Ok(reparsed_expr_invisible) = syn::parse2(expr_invisible.to_token_stream()) else { + failed += 1; + errorf!( + "\nFAIL {} - syn failed to parse invisible delimiters\n{}\n", + path.display(), + source_code, + ); + continue; + }; + if expr_invisible != reparsed_expr_invisible { + failed += 1; + errorf!( + "\nFAIL {} - mismatch after parsing invisible delimiters\n{}\n", + path.display(), + source_code, + ); + continue; + } + + if scan_expr::scan_expr.parse2(expr_tokens).is_err() { + failed += 1; + errorf!( + "\nFAIL {} - failed to scan expr\n{}\n", + path.display(), + source_code, + ); + continue; + } + + passed += 1; + } + }); + + (passed, failed) +} + +fn librustc_parse_and_rewrite(input: &str) -> Option> { + parse::librustc_expr(input).map(librustc_parenthesize) +} + +fn librustc_parenthesize(mut librustc_expr: Box) -> Box { + use rustc_ast::ast::{ + AssocItem, AssocItemKind, Attribute, BinOpKind, Block, BoundConstness, Expr, ExprField, + ExprKind, GenericArg, GenericBound, Local, LocalKind, Pat, PolyTraitRef, Stmt, StmtKind, + StructExpr, StructRest, TraitBoundModifiers, Ty, + }; + use rustc_ast::mut_visit::{walk_flat_map_assoc_item, MutVisitor}; + use rustc_ast::visit::{AssocCtxt, BoundKind}; + use rustc_data_structures::flat_map_in_place::FlatMapInPlace; + use rustc_data_structures::smallvec::SmallVec; + use rustc_data_structures::thin_vec::ThinVec; + use rustc_span::DUMMY_SP; + use std::ops::DerefMut; + + struct FullyParenthesize; + + fn contains_let_chain(expr: &Expr) -> bool { + match &expr.kind { + ExprKind::Let(..) => true, + ExprKind::Binary(binop, left, right) => { + binop.node == BinOpKind::And + && (contains_let_chain(left) || contains_let_chain(right)) + } + _ => false, + } + } + + fn flat_map_field(mut f: ExprField, vis: &mut T) -> Vec { + if f.is_shorthand { + noop_visit_expr(&mut f.expr, vis); + } else { + vis.visit_expr(&mut f.expr); + } + vec![f] + } + + fn flat_map_stmt(stmt: Stmt, vis: &mut T) -> Vec { + let kind = match stmt.kind { + // Don't wrap toplevel expressions in statements. + StmtKind::Expr(mut e) => { + noop_visit_expr(&mut e, vis); + StmtKind::Expr(e) + } + StmtKind::Semi(mut e) => { + noop_visit_expr(&mut e, vis); + StmtKind::Semi(e) + } + s => s, + }; + + vec![Stmt { kind, ..stmt }] + } + + fn noop_visit_expr(e: &mut Expr, vis: &mut T) { + match &mut e.kind { + ExprKind::Become(..) => {} + ExprKind::Struct(expr) => { + let StructExpr { + qself, + path, + fields, + rest, + } = expr.deref_mut(); + if let Some(qself) = qself { + vis.visit_qself(qself); + } + vis.visit_path(path); + fields.flat_map_in_place(|field| flat_map_field(field, vis)); + if let StructRest::Base(rest) = rest { + vis.visit_expr(rest); + } + } + _ => rustc_ast::mut_visit::walk_expr(vis, e), + } + } + + impl MutVisitor for FullyParenthesize { + fn visit_expr(&mut self, e: &mut Expr) { + noop_visit_expr(e, self); + match e.kind { + ExprKind::Block(..) | ExprKind::If(..) | ExprKind::Let(..) => {} + ExprKind::Binary(..) if contains_let_chain(e) => {} + _ => { + let inner = mem::replace(e, Expr::dummy()); + *e = Expr { + id: ast::DUMMY_NODE_ID, + kind: ExprKind::Paren(Box::new(inner)), + span: DUMMY_SP, + attrs: ThinVec::new(), + tokens: None, + }; + } + } + } + + fn visit_generic_arg(&mut self, arg: &mut GenericArg) { + match arg { + GenericArg::Lifetime(_lifetime) => {} + GenericArg::Type(arg) => self.visit_ty(arg), + // Don't wrap unbraced const generic arg as that's invalid syntax. + GenericArg::Const(anon_const) => { + if let ExprKind::Block(..) = &mut anon_const.value.kind { + noop_visit_expr(&mut anon_const.value, self); + } + } + } + } + + fn visit_param_bound(&mut self, bound: &mut GenericBound, _ctxt: BoundKind) { + match bound { + GenericBound::Trait(PolyTraitRef { + modifiers: + TraitBoundModifiers { + constness: BoundConstness::Maybe(_), + .. + }, + .. + }) + | GenericBound::Outlives(..) + | GenericBound::Use(..) => {} + GenericBound::Trait(ty) => self.visit_poly_trait_ref(ty), + } + } + + fn visit_block(&mut self, block: &mut Block) { + self.visit_id(&mut block.id); + block + .stmts + .flat_map_in_place(|stmt| flat_map_stmt(stmt, self)); + self.visit_span(&mut block.span); + } + + fn visit_local(&mut self, local: &mut Local) { + match &mut local.kind { + LocalKind::Decl => {} + LocalKind::Init(init) => { + self.visit_expr(init); + } + LocalKind::InitElse(init, els) => { + self.visit_expr(init); + self.visit_block(els); + } + } + } + + fn flat_map_assoc_item( + &mut self, + item: Box, + ctxt: AssocCtxt, + ) -> SmallVec<[Box; 1]> { + match &item.kind { + AssocItemKind::Const(const_item) + if !const_item.generics.params.is_empty() + || !const_item.generics.where_clause.predicates.is_empty() => + { + SmallVec::from([item]) + } + _ => walk_flat_map_assoc_item(self, item, ctxt), + } + } + + // We don't want to look at expressions that might appear in patterns or + // types yet. We'll look into comparing those in the future. For now + // focus on expressions appearing in other places. + fn visit_pat(&mut self, pat: &mut Pat) { + let _ = pat; + } + + fn visit_ty(&mut self, ty: &mut Ty) { + let _ = ty; + } + + fn visit_attribute(&mut self, attr: &mut Attribute) { + let _ = attr; + } + } + + let mut folder = FullyParenthesize; + folder.visit_expr(&mut librustc_expr); + librustc_expr +} + +fn syn_parenthesize(syn_expr: syn::Expr) -> syn::Expr { + use syn::fold::{fold_expr, fold_generic_argument, Fold}; + use syn::{ + token, BinOp, Expr, ExprParen, GenericArgument, Lit, MetaNameValue, Pat, Stmt, Type, + }; + + struct FullyParenthesize; + + fn parenthesize(expr: Expr) -> Expr { + Expr::Paren(ExprParen { + attrs: Vec::new(), + expr: Box::new(expr), + paren_token: token::Paren::default(), + }) + } + + fn needs_paren(expr: &Expr) -> bool { + match expr { + Expr::Group(_) => unreachable!(), + Expr::If(_) | Expr::Unsafe(_) | Expr::Block(_) | Expr::Let(_) => false, + Expr::Binary(_) => !contains_let_chain(expr), + _ => true, + } + } + + fn contains_let_chain(expr: &Expr) -> bool { + match expr { + Expr::Let(_) => true, + Expr::Binary(expr) => { + matches!(expr.op, BinOp::And(_)) + && (contains_let_chain(&expr.left) || contains_let_chain(&expr.right)) + } + _ => false, + } + } + + impl Fold for FullyParenthesize { + fn fold_expr(&mut self, expr: Expr) -> Expr { + let needs_paren = needs_paren(&expr); + let folded = fold_expr(self, expr); + if needs_paren { + parenthesize(folded) + } else { + folded + } + } + + fn fold_generic_argument(&mut self, arg: GenericArgument) -> GenericArgument { + match arg { + GenericArgument::Const(arg) => GenericArgument::Const(match arg { + Expr::Block(_) => fold_expr(self, arg), + // Don't wrap unbraced const generic arg as that's invalid syntax. + _ => arg, + }), + _ => fold_generic_argument(self, arg), + } + } + + fn fold_stmt(&mut self, stmt: Stmt) -> Stmt { + match stmt { + // Don't wrap toplevel expressions in statements. + Stmt::Expr(Expr::Verbatim(_), Some(_)) => stmt, + Stmt::Expr(e, semi) => Stmt::Expr(fold_expr(self, e), semi), + s => s, + } + } + + fn fold_meta_name_value(&mut self, meta: MetaNameValue) -> MetaNameValue { + // Don't turn #[p = "..."] into #[p = ("...")]. + meta + } + + // We don't want to look at expressions that might appear in patterns or + // types yet. We'll look into comparing those in the future. For now + // focus on expressions appearing in other places. + fn fold_pat(&mut self, pat: Pat) -> Pat { + pat + } + + fn fold_type(&mut self, ty: Type) -> Type { + ty + } + + fn fold_lit(&mut self, lit: Lit) -> Lit { + if let Lit::Verbatim(lit) = &lit { + panic!("unexpected verbatim literal: {lit}"); + } + lit + } + } + + let mut folder = FullyParenthesize; + folder.fold_expr(syn_expr) +} + +fn make_parens_invisible(expr: syn::Expr) -> syn::Expr { + use syn::fold::{fold_expr, fold_stmt, Fold}; + use syn::{token, Expr, ExprGroup, ExprParen, Stmt}; + + struct MakeParensInvisible; + + impl Fold for MakeParensInvisible { + fn fold_expr(&mut self, mut expr: Expr) -> Expr { + if let Expr::Paren(paren) = expr { + expr = Expr::Group(ExprGroup { + attrs: paren.attrs, + group_token: token::Group(paren.paren_token.span.join()), + expr: paren.expr, + }); + } + fold_expr(self, expr) + } + + fn fold_stmt(&mut self, stmt: Stmt) -> Stmt { + if let Stmt::Expr(expr @ (Expr::Binary(_) | Expr::Call(_) | Expr::Cast(_)), None) = stmt + { + Stmt::Expr( + Expr::Paren(ExprParen { + attrs: Vec::new(), + paren_token: token::Paren::default(), + expr: Box::new(fold_expr(self, expr)), + }), + None, + ) + } else { + fold_stmt(self, stmt) + } + } + } + + let mut folder = MakeParensInvisible; + folder.fold_expr(expr) +} + +/// Walk through a crate collecting all expressions we can find in it. +fn collect_exprs(file: syn::File) -> Vec { + use syn::fold::Fold; + use syn::punctuated::Punctuated; + use syn::{token, ConstParam, Expr, ExprTuple, Pat, Path}; + + struct CollectExprs(Vec); + impl Fold for CollectExprs { + fn fold_expr(&mut self, expr: Expr) -> Expr { + match expr { + Expr::Verbatim(_) => {} + _ => self.0.push(expr), + } + + Expr::Tuple(ExprTuple { + attrs: vec![], + elems: Punctuated::new(), + paren_token: token::Paren::default(), + }) + } + + fn fold_pat(&mut self, pat: Pat) -> Pat { + pat + } + + fn fold_path(&mut self, path: Path) -> Path { + // Skip traversing into const generic path arguments + path + } + + fn fold_const_param(&mut self, const_param: ConstParam) -> ConstParam { + const_param + } + } + + let mut folder = CollectExprs(vec![]); + folder.fold_file(file); + folder.0 +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_punctuated.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_punctuated.rs new file mode 100644 index 0000000000000000000000000000000000000000..14ea96c7717221f068aafe68b92b4a28b14c8313 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.114/tests/test_punctuated.rs @@ -0,0 +1,92 @@ +#![allow( + clippy::elidable_lifetime_names, + clippy::needless_lifetimes, + clippy::uninlined_format_args +)] + +use syn::punctuated::{Pair, Punctuated}; +use syn::Token; + +macro_rules! punctuated { + ($($e:expr,)+) => {{ + let mut seq = ::syn::punctuated::Punctuated::new(); + $( + seq.push($e); + )+ + seq + }}; + + ($($e:expr),+) => { + punctuated!($($e,)+) + }; +} + +macro_rules! check_exact_size_iterator { + ($iter:expr) => {{ + let iter = $iter; + let size_hint = iter.size_hint(); + let len = iter.len(); + let count = iter.count(); + assert_eq!(len, count); + assert_eq!(size_hint, (count, Some(count))); + }}; +} + +#[test] +fn pairs() { + let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); + + check_exact_size_iterator!(p.pairs()); + check_exact_size_iterator!(p.pairs_mut()); + check_exact_size_iterator!(p.into_pairs()); + + let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); + + assert_eq!(p.pairs().next_back().map(Pair::into_value), Some(&4)); + assert_eq!( + p.pairs_mut().next_back().map(Pair::into_value), + Some(&mut 4) + ); + assert_eq!(p.into_pairs().next_back().map(Pair::into_value), Some(4)); +} + +#[test] +fn iter() { + let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); + + check_exact_size_iterator!(p.iter()); + check_exact_size_iterator!(p.iter_mut()); + check_exact_size_iterator!(p.into_iter()); + + let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); + + assert_eq!(p.iter().next_back(), Some(&4)); + assert_eq!(p.iter_mut().next_back(), Some(&mut 4)); + assert_eq!(p.into_iter().next_back(), Some(4)); +} + +#[test] +fn may_dangle() { + let p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); + for element in &p { + if *element == 2 { + drop(p); + break; + } + } + + let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); + for element in &mut p { + if *element == 2 { + drop(p); + break; + } + } +} + +#[test] +#[should_panic = "index out of bounds: the len is 0 but the index is 0"] +fn index_out_of_bounds() { + let p = Punctuated::::new(); + let _ = p[0].clone(); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/identity.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/identity.rs new file mode 100644 index 0000000000000000000000000000000000000000..5233a1d8156fffee06c710a325f2c097d3d81f6f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/identity.rs @@ -0,0 +1,37 @@ +use super::Layer; +use std::fmt; + +/// A no-op middleware. +/// +/// When wrapping a [`Service`], the [`Identity`] layer returns the provided +/// service without modifying it. +/// +/// [`Service`]: https://docs.rs/tower-service/latest/tower_service/trait.Service.html +#[derive(Default, Clone)] +pub struct Identity { + _p: (), +} + +impl Identity { + /// Create a new [`Identity`] value + pub const fn new() -> Identity { + Identity { _p: () } + } +} + +/// Decorates a [`Service`], transforming either the request or the response. +/// +/// [`Service`]: https://docs.rs/tower-service/latest/tower_service/trait.Service.html +impl Layer for Identity { + type Service = S; + + fn layer(&self, inner: S) -> Self::Service { + inner + } +} + +impl fmt::Debug for Identity { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("Identity").finish() + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/layer_fn.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/layer_fn.rs new file mode 100644 index 0000000000000000000000000000000000000000..06f6e0e350dcbbc62e3b855a408de50b8e77b6f0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/layer_fn.rs @@ -0,0 +1,114 @@ +use super::Layer; +use std::fmt; + +/// Returns a new [`LayerFn`] that implements [`Layer`] by calling the +/// given function. +/// +/// The [`Layer::layer`] method takes a type implementing [`Service`] and +/// returns a different type implementing [`Service`]. In many cases, this can +/// be implemented by a function or a closure. The [`LayerFn`] helper allows +/// writing simple [`Layer`] implementations without needing the boilerplate of +/// a new struct implementing [`Layer`]. +/// +/// # Example +/// ```rust +/// # use tower::Service; +/// # use std::task::{Poll, Context}; +/// # use tower_layer::{Layer, layer_fn}; +/// # use std::fmt; +/// # use std::convert::Infallible; +/// # +/// // A middleware that logs requests before forwarding them to another service +/// pub struct LogService { +/// target: &'static str, +/// service: S, +/// } +/// +/// impl Service for LogService +/// where +/// S: Service, +/// Request: fmt::Debug, +/// { +/// type Response = S::Response; +/// type Error = S::Error; +/// type Future = S::Future; +/// +/// fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll> { +/// self.service.poll_ready(cx) +/// } +/// +/// fn call(&mut self, request: Request) -> Self::Future { +/// // Log the request +/// println!("request = {:?}, target = {:?}", request, self.target); +/// +/// self.service.call(request) +/// } +/// } +/// +/// // A `Layer` that wraps services in `LogService` +/// let log_layer = layer_fn(|service| { +/// LogService { +/// service, +/// target: "tower-docs", +/// } +/// }); +/// +/// // An example service. This one uppercases strings +/// let uppercase_service = tower::service_fn(|request: String| async move { +/// Ok::<_, Infallible>(request.to_uppercase()) +/// }); +/// +/// // Wrap our service in a `LogService` so requests are logged. +/// let wrapped_service = log_layer.layer(uppercase_service); +/// ``` +/// +/// [`Service`]: https://docs.rs/tower-service/latest/tower_service/trait.Service.html +/// [`Layer::layer`]: crate::Layer::layer +pub fn layer_fn(f: T) -> LayerFn { + LayerFn { f } +} + +/// A `Layer` implemented by a closure. See the docs for [`layer_fn`] for more details. +#[derive(Clone, Copy)] +pub struct LayerFn { + f: F, +} + +impl Layer for LayerFn +where + F: Fn(S) -> Out, +{ + type Service = Out; + + fn layer(&self, inner: S) -> Self::Service { + (self.f)(inner) + } +} + +impl fmt::Debug for LayerFn { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("LayerFn") + .field("f", &format_args!("{}", std::any::type_name::())) + .finish() + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[allow(dead_code)] + #[test] + fn layer_fn_has_useful_debug_impl() { + struct WrappedService { + inner: S, + } + let layer = layer_fn(|svc| WrappedService { inner: svc }); + let _svc = layer.layer("foo"); + + assert_eq!( + "LayerFn { f: tower_layer::layer_fn::tests::layer_fn_has_useful_debug_impl::{{closure}} }".to_string(), + format!("{:?}", layer), + ); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/lib.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/lib.rs new file mode 100644 index 0000000000000000000000000000000000000000..4823fcc16b302ea696a2656a09ffdcd8abdc86cc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/lib.rs @@ -0,0 +1,112 @@ +#![warn( + missing_debug_implementations, + missing_docs, + rust_2018_idioms, + unreachable_pub +)] +#![forbid(unsafe_code)] +// `rustdoc::broken_intra_doc_links` is checked on CI + +//! Layer traits and extensions. +//! +//! A layer decorates an service and provides additional functionality. It +//! allows other services to be composed with the service that implements layer. +//! +//! A middleware implements the [`Layer`] and [`Service`] trait. +//! +//! [`Service`]: https://docs.rs/tower/*/tower/trait.Service.html + +mod identity; +mod layer_fn; +mod stack; +mod tuple; + +pub use self::{ + identity::Identity, + layer_fn::{layer_fn, LayerFn}, + stack::Stack, +}; + +/// Decorates a [`Service`], transforming either the request or the response. +/// +/// Often, many of the pieces needed for writing network applications can be +/// reused across multiple services. The `Layer` trait can be used to write +/// reusable components that can be applied to very different kinds of services; +/// for example, it can be applied to services operating on different protocols, +/// and to both the client and server side of a network transaction. +/// +/// # Log +/// +/// Take request logging as an example: +/// +/// ```rust +/// # use tower_service::Service; +/// # use std::task::{Poll, Context}; +/// # use tower_layer::Layer; +/// # use std::fmt; +/// +/// pub struct LogLayer { +/// target: &'static str, +/// } +/// +/// impl Layer for LogLayer { +/// type Service = LogService; +/// +/// fn layer(&self, service: S) -> Self::Service { +/// LogService { +/// target: self.target, +/// service +/// } +/// } +/// } +/// +/// // This service implements the Log behavior +/// pub struct LogService { +/// target: &'static str, +/// service: S, +/// } +/// +/// impl Service for LogService +/// where +/// S: Service, +/// Request: fmt::Debug, +/// { +/// type Response = S::Response; +/// type Error = S::Error; +/// type Future = S::Future; +/// +/// fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll> { +/// self.service.poll_ready(cx) +/// } +/// +/// fn call(&mut self, request: Request) -> Self::Future { +/// // Insert log statement here or other functionality +/// println!("request = {:?}, target = {:?}", request, self.target); +/// self.service.call(request) +/// } +/// } +/// ``` +/// +/// The above log implementation is decoupled from the underlying protocol and +/// is also decoupled from client or server concerns. In other words, the same +/// log middleware could be used in either a client or a server. +/// +/// [`Service`]: https://docs.rs/tower/*/tower/trait.Service.html +pub trait Layer { + /// The wrapped service + type Service; + /// Wrap the given service with the middleware, returning a new service + /// that has been decorated with the middleware. + fn layer(&self, inner: S) -> Self::Service; +} + +impl<'a, T, S> Layer for &'a T +where + T: ?Sized + Layer, +{ + type Service = T::Service; + + fn layer(&self, inner: S) -> Self::Service { + (**self).layer(inner) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/stack.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/stack.rs new file mode 100644 index 0000000000000000000000000000000000000000..cb6bac7b74f57ffd417e870e9e59ccf3c1a8ce97 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/stack.rs @@ -0,0 +1,62 @@ +use super::Layer; +use std::fmt; + +/// Two middlewares chained together. +#[derive(Clone)] +pub struct Stack { + inner: Inner, + outer: Outer, +} + +impl Stack { + /// Create a new `Stack`. + pub const fn new(inner: Inner, outer: Outer) -> Self { + Stack { inner, outer } + } +} + +impl Layer for Stack +where + Inner: Layer, + Outer: Layer, +{ + type Service = Outer::Service; + + fn layer(&self, service: S) -> Self::Service { + let inner = self.inner.layer(service); + + self.outer.layer(inner) + } +} + +impl fmt::Debug for Stack +where + Inner: fmt::Debug, + Outer: fmt::Debug, +{ + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + // The generated output of nested `Stack`s is very noisy and makes + // it harder to understand what is in a `ServiceBuilder`. + // + // Instead, this output is designed assuming that a `Stack` is + // usually quite nested, and inside a `ServiceBuilder`. Therefore, + // this skips using `f.debug_struct()`, since each one would force + // a new layer of indentation. + // + // - In compact mode, a nested stack ends up just looking like a flat + // list of layers. + // + // - In pretty mode, while a newline is inserted between each layer, + // the `DebugStruct` used in the `ServiceBuilder` will inject padding + // to that each line is at the same indentation level. + // + // Also, the order of [outer, inner] is important, since it reflects + // the order that the layers were added to the stack. + if f.alternate() { + // pretty + write!(f, "{:#?},\n{:#?}", self.outer, self.inner) + } else { + write!(f, "{:?}, {:?}", self.outer, self.inner) + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/tuple.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/tuple.rs new file mode 100644 index 0000000000000000000000000000000000000000..14b973abea086c0543b934795a9987764c2d0de0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/tuple.rs @@ -0,0 +1,330 @@ +use crate::Layer; + +impl Layer for () { + type Service = S; + + fn layer(&self, service: S) -> Self::Service { + service + } +} + +impl Layer for (L1,) +where + L1: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1,) = self; + l1.layer(service) + } +} + +impl Layer for (L1, L2) +where + L1: Layer, + L2: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2) = self; + l1.layer(l2.layer(service)) + } +} + +impl Layer for (L1, L2, L3) +where + L1: Layer, + L2: Layer, + L3: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3) = self; + l1.layer((l2, l3).layer(service)) + } +} + +impl Layer for (L1, L2, L3, L4) +where + L1: Layer, + L2: Layer, + L3: Layer, + L4: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3, l4) = self; + l1.layer((l2, l3, l4).layer(service)) + } +} + +impl Layer for (L1, L2, L3, L4, L5) +where + L1: Layer, + L2: Layer, + L3: Layer, + L4: Layer, + L5: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3, l4, l5) = self; + l1.layer((l2, l3, l4, l5).layer(service)) + } +} + +impl Layer for (L1, L2, L3, L4, L5, L6) +where + L1: Layer, + L2: Layer, + L3: Layer, + L4: Layer, + L5: Layer, + L6: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3, l4, l5, l6) = self; + l1.layer((l2, l3, l4, l5, l6).layer(service)) + } +} + +impl Layer for (L1, L2, L3, L4, L5, L6, L7) +where + L1: Layer, + L2: Layer, + L3: Layer, + L4: Layer, + L5: Layer, + L6: Layer, + L7: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3, l4, l5, l6, l7) = self; + l1.layer((l2, l3, l4, l5, l6, l7).layer(service)) + } +} + +impl Layer for (L1, L2, L3, L4, L5, L6, L7, L8) +where + L1: Layer, + L2: Layer, + L3: Layer, + L4: Layer, + L5: Layer, + L6: Layer, + L7: Layer, + L8: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3, l4, l5, l6, l7, l8) = self; + l1.layer((l2, l3, l4, l5, l6, l7, l8).layer(service)) + } +} + +impl Layer for (L1, L2, L3, L4, L5, L6, L7, L8, L9) +where + L1: Layer, + L2: Layer, + L3: Layer, + L4: Layer, + L5: Layer, + L6: Layer, + L7: Layer, + L8: Layer, + L9: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3, l4, l5, l6, l7, l8, l9) = self; + l1.layer((l2, l3, l4, l5, l6, l7, l8, l9).layer(service)) + } +} + +impl Layer + for (L1, L2, L3, L4, L5, L6, L7, L8, L9, L10) +where + L1: Layer, + L2: Layer, + L3: Layer, + L4: Layer, + L5: Layer, + L6: Layer, + L7: Layer, + L8: Layer, + L9: Layer, + L10: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3, l4, l5, l6, l7, l8, l9, l10) = self; + l1.layer((l2, l3, l4, l5, l6, l7, l8, l9, l10).layer(service)) + } +} + +impl Layer + for (L1, L2, L3, L4, L5, L6, L7, L8, L9, L10, L11) +where + L1: Layer, + L2: Layer, + L3: Layer, + L4: Layer, + L5: Layer, + L6: Layer, + L7: Layer, + L8: Layer, + L9: Layer, + L10: Layer, + L11: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11) = self; + l1.layer((l2, l3, l4, l5, l6, l7, l8, l9, l10, l11).layer(service)) + } +} + +impl Layer + for (L1, L2, L3, L4, L5, L6, L7, L8, L9, L10, L11, L12) +where + L1: Layer, + L2: Layer, + L3: Layer, + L4: Layer, + L5: Layer, + L6: Layer, + L7: Layer, + L8: Layer, + L9: Layer, + L10: Layer, + L11: Layer, + L12: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12) = self; + l1.layer((l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12).layer(service)) + } +} + +impl Layer + for (L1, L2, L3, L4, L5, L6, L7, L8, L9, L10, L11, L12, L13) +where + L1: Layer, + L2: Layer, + L3: Layer, + L4: Layer, + L5: Layer, + L6: Layer, + L7: Layer, + L8: Layer, + L9: Layer, + L10: Layer, + L11: Layer, + L12: Layer, + L13: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13) = self; + l1.layer((l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13).layer(service)) + } +} + +impl Layer + for (L1, L2, L3, L4, L5, L6, L7, L8, L9, L10, L11, L12, L13, L14) +where + L1: Layer, + L2: Layer, + L3: Layer, + L4: Layer, + L5: Layer, + L6: Layer, + L7: Layer, + L8: Layer, + L9: Layer, + L10: Layer, + L11: Layer, + L12: Layer, + L13: Layer, + L14: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14) = self; + l1.layer((l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14).layer(service)) + } +} + +#[rustfmt::skip] +impl Layer + for (L1, L2, L3, L4, L5, L6, L7, L8, L9, L10, L11, L12, L13, L14, L15) +where + L1: Layer, + L2: Layer, + L3: Layer, + L4: Layer, + L5: Layer, + L6: Layer, + L7: Layer, + L8: Layer, + L9: Layer, + L10: Layer, + L11: Layer, + L12: Layer, + L13: Layer, + L14: Layer, + L15: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15) = self; + l1.layer((l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15).layer(service)) + } +} + +#[rustfmt::skip] +impl Layer + for (L1, L2, L3, L4, L5, L6, L7, L8, L9, L10, L11, L12, L13, L14, L15, L16) +where + L1: Layer, + L2: Layer, + L3: Layer, + L4: Layer, + L5: Layer, + L6: Layer, + L7: Layer, + L8: Layer, + L9: Layer, + L10: Layer, + L11: Layer, + L12: Layer, + L13: Layer, + L14: Layer, + L15: Layer, + L16: Layer, +{ + type Service = L1::Service; + + fn layer(&self, service: S) -> Self::Service { + let (l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16) = self; + l1.layer((l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16).layer(service)) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/array.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/array.rs new file mode 100644 index 0000000000000000000000000000000000000000..29dbd881961851523ee515114140b446385dfa0d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/array.rs @@ -0,0 +1,396 @@ +//! A type-level array of type-level numbers. +//! +//! It is not very featureful right now, and should be considered a work in progress. + +use core::ops::{Add, Div, Mul, Sub}; + +use super::*; + +/// The terminating type for type arrays. +#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Copy, Hash, Debug)] +#[cfg_attr(feature = "scale_info", derive(scale_info::TypeInfo))] +pub struct ATerm; + +impl TypeArray for ATerm {} + +/// `TArr` is a type that acts as an array of types. It is defined similarly to `UInt`, only its +/// values can be more than bits, and it is designed to act as an array. So you can only add two if +/// they have the same number of elements, for example. +/// +/// This array is only really designed to contain `Integer` types. If you use it with others, you +/// may find it lacking functionality. +#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Copy, Hash, Debug)] +#[cfg_attr(feature = "scale_info", derive(scale_info::TypeInfo))] +pub struct TArr { + first: V, + rest: A, +} + +impl TypeArray for TArr {} + +/// Create a new type-level array. Only usable on Rust 1.13.0 or newer. +/// +/// There's not a whole lot you can do with it right now. +/// +/// # Example +/// ```rust +/// #[macro_use] +/// extern crate typenum; +/// use typenum::consts::*; +/// +/// type Array = tarr![P3, N4, Z0, P38]; +/// # fn main() { let _: Array; } +#[macro_export] +macro_rules! tarr { + () => ( $crate::ATerm ); + ($n:ty) => ( $crate::TArr<$n, $crate::ATerm> ); + ($n:ty,) => ( $crate::TArr<$n, $crate::ATerm> ); + ($n:ty, $($tail:ty),+) => ( $crate::TArr<$n, tarr![$($tail),+]> ); + ($n:ty, $($tail:ty),+,) => ( $crate::TArr<$n, tarr![$($tail),+]> ); + ($n:ty | $rest:ty) => ( $crate::TArr<$n, $rest> ); + ($n:ty, $($tail:ty),+ | $rest:ty) => ( $crate::TArr<$n, tarr![$($tail),+ | $rest]> ); +} + +// --------------------------------------------------------------------------------------- +// Length + +/// Length of `ATerm` by itself is 0 +impl Len for ATerm { + type Output = U0; + #[inline] + fn len(&self) -> Self::Output { + UTerm + } +} + +/// Size of a `TypeArray` +impl Len for TArr +where + A: Len, + Length: Add, + Sum, B1>: Unsigned, +{ + type Output = Add1>; + #[inline] + fn len(&self) -> Self::Output { + self.rest.len() + B1 + } +} + +// --------------------------------------------------------------------------------------- +// FoldAdd + +/// Hide our `Null` type +const _: () = { + /// A type which contributes nothing when adding (i.e. a zero) + pub struct Null; + impl Add for Null { + type Output = T; + fn add(self, rhs: T) -> Self::Output { + rhs + } + } + + impl FoldAdd for ATerm { + type Output = Null; + } +}; + +impl FoldAdd for TArr +where + A: FoldAdd, + FoldSum: Add, +{ + type Output = Sum, V>; +} + +// --------------------------------------------------------------------------------------- +// FoldMul + +/// Hide our `Null` type +const _: () = { + /// A type which contributes nothing when multiplying (i.e. a one) + pub struct Null; + impl Mul for Null { + type Output = T; + fn mul(self, rhs: T) -> Self::Output { + rhs + } + } + + impl FoldMul for ATerm { + type Output = Null; + } +}; + +impl FoldMul for TArr +where + A: FoldMul, + FoldProd: Mul, +{ + type Output = Prod, V>; +} + +// --------------------------------------------------------------------------------------- +// Add arrays +// Note that two arrays are only addable if they are the same length. + +impl Add for ATerm { + type Output = ATerm; + #[inline] + fn add(self, _: ATerm) -> Self::Output { + ATerm + } +} + +impl Add> for TArr +where + Al: Add, + Vl: Add, +{ + type Output = TArr, Sum>; + #[inline] + fn add(self, rhs: TArr) -> Self::Output { + TArr { + first: self.first + rhs.first, + rest: self.rest + rhs.rest, + } + } +} + +// --------------------------------------------------------------------------------------- +// Subtract arrays +// Note that two arrays are only subtractable if they are the same length. + +impl Sub for ATerm { + type Output = ATerm; + #[inline] + fn sub(self, _: ATerm) -> Self::Output { + ATerm + } +} + +impl Sub> for TArr +where + Vl: Sub, + Al: Sub, +{ + type Output = TArr, Diff>; + #[inline] + fn sub(self, rhs: TArr) -> Self::Output { + TArr { + first: self.first - rhs.first, + rest: self.rest - rhs.rest, + } + } +} + +// --------------------------------------------------------------------------------------- +// Multiply an array by a scalar + +impl Mul for ATerm { + type Output = ATerm; + #[inline] + fn mul(self, _: Rhs) -> Self::Output { + ATerm + } +} + +impl Mul for TArr +where + V: Mul, + A: Mul, + Rhs: Copy, +{ + type Output = TArr, Prod>; + #[inline] + fn mul(self, rhs: Rhs) -> Self::Output { + TArr { + first: self.first * rhs, + rest: self.rest * rhs, + } + } +} + +impl Mul for Z0 { + type Output = ATerm; + #[inline] + fn mul(self, _: ATerm) -> Self::Output { + ATerm + } +} + +impl Mul for PInt +where + U: Unsigned + NonZero, +{ + type Output = ATerm; + #[inline] + fn mul(self, _: ATerm) -> Self::Output { + ATerm + } +} + +impl Mul for NInt +where + U: Unsigned + NonZero, +{ + type Output = ATerm; + #[inline] + fn mul(self, _: ATerm) -> Self::Output { + ATerm + } +} + +impl Mul> for Z0 +where + Z0: Mul, +{ + type Output = TArr>; + #[inline] + fn mul(self, rhs: TArr) -> Self::Output { + TArr { + first: Z0, + rest: self * rhs.rest, + } + } +} + +impl Mul> for PInt +where + U: Unsigned + NonZero, + PInt: Mul + Mul, +{ + type Output = TArr, V>, Prod, A>>; + #[inline] + fn mul(self, rhs: TArr) -> Self::Output { + TArr { + first: self * rhs.first, + rest: self * rhs.rest, + } + } +} + +impl Mul> for NInt +where + U: Unsigned + NonZero, + NInt: Mul + Mul, +{ + type Output = TArr, V>, Prod, A>>; + #[inline] + fn mul(self, rhs: TArr) -> Self::Output { + TArr { + first: self * rhs.first, + rest: self * rhs.rest, + } + } +} + +// --------------------------------------------------------------------------------------- +// Divide an array by a scalar + +impl Div for ATerm { + type Output = ATerm; + #[inline] + fn div(self, _: Rhs) -> Self::Output { + ATerm + } +} + +impl Div for TArr +where + V: Div, + A: Div, + Rhs: Copy, +{ + type Output = TArr, Quot>; + #[inline] + fn div(self, rhs: Rhs) -> Self::Output { + TArr { + first: self.first / rhs, + rest: self.rest / rhs, + } + } +} + +// --------------------------------------------------------------------------------------- +// Partial Divide an array by a scalar + +impl PartialDiv for ATerm { + type Output = ATerm; + #[inline] + fn partial_div(self, _: Rhs) -> Self::Output { + ATerm + } +} + +impl PartialDiv for TArr +where + V: PartialDiv, + A: PartialDiv, + Rhs: Copy, +{ + type Output = TArr, PartialQuot>; + #[inline] + fn partial_div(self, rhs: Rhs) -> Self::Output { + TArr { + first: self.first.partial_div(rhs), + rest: self.rest.partial_div(rhs), + } + } +} + +// --------------------------------------------------------------------------------------- +// Modulo an array by a scalar +use core::ops::Rem; + +impl Rem for ATerm { + type Output = ATerm; + #[inline] + fn rem(self, _: Rhs) -> Self::Output { + ATerm + } +} + +impl Rem for TArr +where + V: Rem, + A: Rem, + Rhs: Copy, +{ + type Output = TArr, Mod>; + #[inline] + fn rem(self, rhs: Rhs) -> Self::Output { + TArr { + first: self.first % rhs, + rest: self.rest % rhs, + } + } +} + +// --------------------------------------------------------------------------------------- +// Negate an array +use core::ops::Neg; + +impl Neg for ATerm { + type Output = ATerm; + #[inline] + fn neg(self) -> Self::Output { + ATerm + } +} + +impl Neg for TArr +where + V: Neg, + A: Neg, +{ + type Output = TArr, Negate>; + #[inline] + fn neg(self) -> Self::Output { + TArr { + first: -self.first, + rest: -self.rest, + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/bit.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/bit.rs new file mode 100644 index 0000000000000000000000000000000000000000..4e3f3e87efce39d76699b18474dd0e0b9a7a851c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/bit.rs @@ -0,0 +1,347 @@ +//! Type-level bits. +//! +//! These are rather simple and are used as the building blocks of the +//! other number types in this crate. +//! +//! +//! **Type operators** implemented: +//! +//! - From `core::ops`: `BitAnd`, `BitOr`, `BitXor`, and `Not`. +//! - From `typenum`: `Same` and `Cmp`. + +use crate::{private::InternalMarker, Cmp, Equal, Greater, Less, NonZero, PowerOfTwo, Zero}; +use core::ops::{BitAnd, BitOr, BitXor, Not}; + +pub use crate::marker_traits::Bit; + +/// The type-level bit 0. +#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Copy, Hash, Debug, Default)] +#[cfg_attr(feature = "scale_info", derive(scale_info::TypeInfo))] +pub struct B0; + +impl B0 { + /// Instantiates a singleton representing this bit. + #[inline] + pub fn new() -> B0 { + B0 + } +} + +/// The type-level bit 1. +#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Copy, Hash, Debug, Default)] +#[cfg_attr(feature = "scale_info", derive(scale_info::TypeInfo))] +pub struct B1; + +impl B1 { + /// Instantiates a singleton representing this bit. + #[inline] + pub fn new() -> B1 { + B1 + } +} + +impl Bit for B0 { + const U8: u8 = 0; + const BOOL: bool = false; + + #[inline] + fn new() -> Self { + Self + } + #[inline] + fn to_u8() -> u8 { + 0 + } + #[inline] + fn to_bool() -> bool { + false + } +} + +impl Bit for B1 { + const U8: u8 = 1; + const BOOL: bool = true; + + #[inline] + fn new() -> Self { + Self + } + #[inline] + fn to_u8() -> u8 { + 1 + } + #[inline] + fn to_bool() -> bool { + true + } +} + +impl Zero for B0 {} +impl NonZero for B1 {} +impl PowerOfTwo for B1 {} + +/// Not of 0 (!0 = 1) +impl Not for B0 { + type Output = B1; + #[inline] + fn not(self) -> Self::Output { + B1 + } +} +/// Not of 1 (!1 = 0) +impl Not for B1 { + type Output = B0; + #[inline] + fn not(self) -> Self::Output { + B0 + } +} + +/// And with 0 ( 0 & B = 0) +impl BitAnd for B0 { + type Output = B0; + #[inline] + fn bitand(self, _: Rhs) -> Self::Output { + B0 + } +} + +/// And with 1 ( 1 & 0 = 0) +impl BitAnd for B1 { + type Output = B0; + #[inline] + fn bitand(self, _: B0) -> Self::Output { + B0 + } +} + +/// And with 1 ( 1 & 1 = 1) +impl BitAnd for B1 { + type Output = B1; + #[inline] + fn bitand(self, _: B1) -> Self::Output { + B1 + } +} + +/// Or with 0 ( 0 | 0 = 0) +impl BitOr for B0 { + type Output = B0; + #[inline] + fn bitor(self, _: B0) -> Self::Output { + B0 + } +} + +/// Or with 0 ( 0 | 1 = 1) +impl BitOr for B0 { + type Output = B1; + #[inline] + fn bitor(self, _: B1) -> Self::Output { + B1 + } +} + +/// Or with 1 ( 1 | B = 1) +impl BitOr for B1 { + type Output = B1; + #[inline] + fn bitor(self, _: Rhs) -> Self::Output { + B1 + } +} + +/// Xor between 0 and 0 ( 0 ^ 0 = 0) +impl BitXor for B0 { + type Output = B0; + #[inline] + fn bitxor(self, _: B0) -> Self::Output { + B0 + } +} +/// Xor between 1 and 0 ( 1 ^ 0 = 1) +impl BitXor for B1 { + type Output = B1; + #[inline] + fn bitxor(self, _: B0) -> Self::Output { + B1 + } +} +/// Xor between 0 and 1 ( 0 ^ 1 = 1) +impl BitXor for B0 { + type Output = B1; + #[inline] + fn bitxor(self, _: B1) -> Self::Output { + B1 + } +} +/// Xor between 1 and 1 ( 1 ^ 1 = 0) +impl BitXor for B1 { + type Output = B0; + #[inline] + fn bitxor(self, _: B1) -> Self::Output { + B0 + } +} + +#[cfg(test)] +mod bit_op_tests { + use core::ops::{BitAnd, BitOr, BitXor, Not}; + + use crate::{B0, B1}; + + // macro for testing operation results. Uses `Same` to ensure the types are equal and + // not just the values they evaluate to. + macro_rules! test_bit_op { + ($op:ident $Lhs:ident = $Answer:ident) => {{ + type Test = <<$Lhs as $op>::Output as $crate::Same<$Answer>>::Output; + assert_eq!( + <$Answer as $crate::Bit>::to_u8(), + ::to_u8() + ); + }}; + ($Lhs:ident $op:ident $Rhs:ident = $Answer:ident) => {{ + type Test = <<$Lhs as $op<$Rhs>>::Output as $crate::Same<$Answer>>::Output; + assert_eq!( + <$Answer as $crate::Bit>::to_u8(), + ::to_u8() + ); + }}; + } + + #[test] + fn bit_operations() { + test_bit_op!(Not B0 = B1); + test_bit_op!(Not B1 = B0); + + test_bit_op!(B0 BitAnd B0 = B0); + test_bit_op!(B0 BitAnd B1 = B0); + test_bit_op!(B1 BitAnd B0 = B0); + test_bit_op!(B1 BitAnd B1 = B1); + + test_bit_op!(B0 BitOr B0 = B0); + test_bit_op!(B0 BitOr B1 = B1); + test_bit_op!(B1 BitOr B0 = B1); + test_bit_op!(B1 BitOr B1 = B1); + + test_bit_op!(B0 BitXor B0 = B0); + test_bit_op!(B0 BitXor B1 = B1); + test_bit_op!(B1 BitXor B0 = B1); + test_bit_op!(B1 BitXor B1 = B0); + } +} + +impl Cmp for B0 { + type Output = Equal; + + #[inline] + fn compare(&self, _: &B0) -> Self::Output { + Equal + } +} + +impl Cmp for B0 { + type Output = Less; + + #[inline] + fn compare(&self, _: &B1) -> Self::Output { + Less + } +} + +impl Cmp for B1 { + type Output = Greater; + + #[inline] + fn compare(&self, _: &B0) -> Self::Output { + Greater + } +} + +impl Cmp for B1 { + type Output = Equal; + + #[inline] + fn compare(&self, _: &B1) -> Self::Output { + Equal + } +} + +use crate::Min; +impl Min for B0 { + type Output = B0; + #[inline] + fn min(self, _: B0) -> B0 { + self + } +} +impl Min for B0 { + type Output = B0; + #[inline] + fn min(self, _: B1) -> B0 { + self + } +} +impl Min for B1 { + type Output = B0; + #[inline] + fn min(self, rhs: B0) -> B0 { + rhs + } +} +impl Min for B1 { + type Output = B1; + #[inline] + fn min(self, _: B1) -> B1 { + self + } +} + +use crate::Max; +impl Max for B0 { + type Output = B0; + #[inline] + fn max(self, _: B0) -> B0 { + self + } +} +impl Max for B0 { + type Output = B1; + #[inline] + fn max(self, rhs: B1) -> B1 { + rhs + } +} +impl Max for B1 { + type Output = B1; + #[inline] + fn max(self, _: B0) -> B1 { + self + } +} +impl Max for B1 { + type Output = B1; + #[inline] + fn max(self, _: B1) -> B1 { + self + } +} + +#[cfg(test)] +mod bit_creation_tests { + #[test] + fn bit_creation() { + { + use crate::{B0, B1}; + let _: B0 = B0::new(); + let _: B1 = B1::new(); + } + + { + use crate::{Bit, B0, B1}; + + let _: B0 = ::new(); + let _: B1 = ::new(); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/gen.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/gen.rs new file mode 100644 index 0000000000000000000000000000000000000000..86ab77c93950941fa6c3fcc47b90e26477d4a382 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/gen.rs @@ -0,0 +1,4 @@ +pub mod consts; +#[cfg(feature = "const-generics")] +pub mod generic_const_mappings; +pub mod op; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/gen/consts.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/gen/consts.rs new file mode 100644 index 0000000000000000000000000000000000000000..af0bf7d622387bbde70d74d87c3586948d2ae222 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/gen/consts.rs @@ -0,0 +1,6567 @@ +// THIS IS GENERATED CODE +#![allow(missing_docs)] +use crate::int::{NInt, PInt}; +/** +Type aliases for many constants. + +This file is generated by typenum's build script. + +For unsigned integers, the format is `U` followed by the number. We define aliases for + +- Numbers 0 through 1024 +- Powers of 2 below `u64::MAX` +- Powers of 2 minus 1 below `u64::MAX` +- Powers of 10 below `u64::MAX` + +These alias definitions look like this: + +```rust +use typenum::{B0, B1, UInt, UTerm}; + +# #[allow(dead_code)] +type U6 = UInt, B1>, B0>; +``` + +For positive signed integers, the format is `P` followed by the number and for negative +signed integers it is `N` followed by the number. For the signed integer zero, we use +`Z0`. We define aliases for + +- Numbers -1024 through 1024 +- Powers of 2 between `i64::MIN` and `i64::MAX` +- Powers of 2 minus 1 between `i64::MIN` and `i64::MAX` +- Powers of 10 between `i64::MIN` and `i64::MAX` + +These alias definitions look like this: + +```rust +use typenum::{B0, B1, UInt, UTerm, PInt, NInt}; + +# #[allow(dead_code)] +type P6 = PInt, B1>, B0>>; +# #[allow(dead_code)] +type N6 = NInt, B1>, B0>>; +``` + +# Example +```rust +# #[allow(unused_imports)] +use typenum::{U0, U1, U2, U3, U4, U5, U6}; +# #[allow(unused_imports)] +use typenum::{N3, N2, N1, Z0, P1, P2, P3}; +# #[allow(unused_imports)] +use typenum::{U774, N17, N10000, P1024, P4096}; +``` + +We also define the aliases `False` and `True` for `B0` and `B1`, respectively. +*/ +use crate::uint::{UInt, UTerm}; + +pub use crate::bit::{B0, B1}; +pub use crate::int::Z0; + +pub type True = B1; +pub type False = B0; +pub type U0 = UTerm; +pub type U1 = UInt; +pub type P1 = PInt; +pub type N1 = NInt; +pub type U2 = UInt, B0>; +pub type P2 = PInt; +pub type N2 = NInt; +pub type U3 = UInt, B1>; +pub type P3 = PInt; +pub type N3 = NInt; +pub type U4 = UInt, B0>, B0>; +pub type P4 = PInt; +pub type N4 = NInt; +pub type U5 = UInt, B0>, B1>; +pub type P5 = PInt; +pub type N5 = NInt; +pub type U6 = UInt, B1>, B0>; +pub type P6 = PInt; +pub type N6 = NInt; +pub type U7 = UInt, B1>, B1>; +pub type P7 = PInt; +pub type N7 = NInt; +pub type U8 = UInt, B0>, B0>, B0>; +pub type P8 = PInt; +pub type N8 = NInt; +pub type U9 = UInt, B0>, B0>, B1>; +pub type P9 = PInt; +pub type N9 = NInt; +pub type U10 = UInt, B0>, B1>, B0>; +pub type P10 = PInt; +pub type N10 = NInt; +pub type U11 = UInt, B0>, B1>, B1>; +pub type P11 = PInt; +pub type N11 = NInt; +pub type U12 = UInt, B1>, B0>, B0>; +pub type P12 = PInt; +pub type N12 = NInt; +pub type U13 = UInt, B1>, B0>, B1>; +pub type P13 = PInt; +pub type N13 = NInt; +pub type U14 = UInt, B1>, B1>, B0>; +pub type P14 = PInt; +pub type N14 = NInt; +pub type U15 = UInt, B1>, B1>, B1>; +pub type P15 = PInt; +pub type N15 = NInt; +pub type U16 = UInt, B0>, B0>, B0>, B0>; +pub type P16 = PInt; +pub type N16 = NInt; +pub type U17 = UInt, B0>, B0>, B0>, B1>; +pub type P17 = PInt; +pub type N17 = NInt; +pub type U18 = UInt, B0>, B0>, B1>, B0>; +pub type P18 = PInt; +pub type N18 = NInt; +pub type U19 = UInt, B0>, B0>, B1>, B1>; +pub type P19 = PInt; +pub type N19 = NInt; +pub type U20 = UInt, B0>, B1>, B0>, B0>; +pub type P20 = PInt; +pub type N20 = NInt; +pub type U21 = UInt, B0>, B1>, B0>, B1>; +pub type P21 = PInt; +pub type N21 = NInt; +pub type U22 = UInt, B0>, B1>, B1>, B0>; +pub type P22 = PInt; +pub type N22 = NInt; +pub type U23 = UInt, B0>, B1>, B1>, B1>; +pub type P23 = PInt; +pub type N23 = NInt; +pub type U24 = UInt, B1>, B0>, B0>, B0>; +pub type P24 = PInt; +pub type N24 = NInt; +pub type U25 = UInt, B1>, B0>, B0>, B1>; +pub type P25 = PInt; +pub type N25 = NInt; +pub type U26 = UInt, B1>, B0>, B1>, B0>; +pub type P26 = PInt; +pub type N26 = NInt; +pub type U27 = UInt, B1>, B0>, B1>, B1>; +pub type P27 = PInt; +pub type N27 = NInt; +pub type U28 = UInt, B1>, B1>, B0>, B0>; +pub type P28 = PInt; +pub type N28 = NInt; +pub type U29 = UInt, B1>, B1>, B0>, B1>; +pub type P29 = PInt; +pub type N29 = NInt; +pub type U30 = UInt, B1>, B1>, B1>, B0>; +pub type P30 = PInt; +pub type N30 = NInt; +pub type U31 = UInt, B1>, B1>, B1>, B1>; +pub type P31 = PInt; +pub type N31 = NInt; +pub type U32 = UInt, B0>, B0>, B0>, B0>, B0>; +pub type P32 = PInt; +pub type N32 = NInt; +pub type U33 = UInt, B0>, B0>, B0>, B0>, B1>; +pub type P33 = PInt; +pub type N33 = NInt; +pub type U34 = UInt, B0>, B0>, B0>, B1>, B0>; +pub type P34 = PInt; +pub type N34 = NInt; +pub type U35 = UInt, B0>, B0>, B0>, B1>, B1>; +pub type P35 = PInt; +pub type N35 = NInt; +pub type U36 = UInt, B0>, B0>, B1>, B0>, B0>; +pub type P36 = PInt; +pub type N36 = NInt; +pub type U37 = UInt, B0>, B0>, B1>, B0>, B1>; +pub type P37 = PInt; +pub type N37 = NInt; +pub type U38 = UInt, B0>, B0>, B1>, B1>, B0>; +pub type P38 = PInt; +pub type N38 = NInt; +pub type U39 = UInt, B0>, B0>, B1>, B1>, B1>; +pub type P39 = PInt; +pub type N39 = NInt; +pub type U40 = UInt, B0>, B1>, B0>, B0>, B0>; +pub type P40 = PInt; +pub type N40 = NInt; +pub type U41 = UInt, B0>, B1>, B0>, B0>, B1>; +pub type P41 = PInt; +pub type N41 = NInt; +pub type U42 = UInt, B0>, B1>, B0>, B1>, B0>; +pub type P42 = PInt; +pub type N42 = NInt; +pub type U43 = UInt, B0>, B1>, B0>, B1>, B1>; +pub type P43 = PInt; +pub type N43 = NInt; +pub type U44 = UInt, B0>, B1>, B1>, B0>, B0>; +pub type P44 = PInt; +pub type N44 = NInt; +pub type U45 = UInt, B0>, B1>, B1>, B0>, B1>; +pub type P45 = PInt; +pub type N45 = NInt; +pub type U46 = UInt, B0>, B1>, B1>, B1>, B0>; +pub type P46 = PInt; +pub type N46 = NInt; +pub type U47 = UInt, B0>, B1>, B1>, B1>, B1>; +pub type P47 = PInt; +pub type N47 = NInt; +pub type U48 = UInt, B1>, B0>, B0>, B0>, B0>; +pub type P48 = PInt; +pub type N48 = NInt; +pub type U49 = UInt, B1>, B0>, B0>, B0>, B1>; +pub type P49 = PInt; +pub type N49 = NInt; +pub type U50 = UInt, B1>, B0>, B0>, B1>, B0>; +pub type P50 = PInt; +pub type N50 = NInt; +pub type U51 = UInt, B1>, B0>, B0>, B1>, B1>; +pub type P51 = PInt; +pub type N51 = NInt; +pub type U52 = UInt, B1>, B0>, B1>, B0>, B0>; +pub type P52 = PInt; +pub type N52 = NInt; +pub type U53 = UInt, B1>, B0>, B1>, B0>, B1>; +pub type P53 = PInt; +pub type N53 = NInt; +pub type U54 = UInt, B1>, B0>, B1>, B1>, B0>; +pub type P54 = PInt; +pub type N54 = NInt; +pub type U55 = UInt, B1>, B0>, B1>, B1>, B1>; +pub type P55 = PInt; +pub type N55 = NInt; +pub type U56 = UInt, B1>, B1>, B0>, B0>, B0>; +pub type P56 = PInt; +pub type N56 = NInt; +pub type U57 = UInt, B1>, B1>, B0>, B0>, B1>; +pub type P57 = PInt; +pub type N57 = NInt; +pub type U58 = UInt, B1>, B1>, B0>, B1>, B0>; +pub type P58 = PInt; +pub type N58 = NInt; +pub type U59 = UInt, B1>, B1>, B0>, B1>, B1>; +pub type P59 = PInt; +pub type N59 = NInt; +pub type U60 = UInt, B1>, B1>, B1>, B0>, B0>; +pub type P60 = PInt; +pub type N60 = NInt; +pub type U61 = UInt, B1>, B1>, B1>, B0>, B1>; +pub type P61 = PInt; +pub type N61 = NInt; +pub type U62 = UInt, B1>, B1>, B1>, B1>, B0>; +pub type P62 = PInt; +pub type N62 = NInt; +pub type U63 = UInt, B1>, B1>, B1>, B1>, B1>; +pub type P63 = PInt; +pub type N63 = NInt; +pub type U64 = UInt, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P64 = PInt; +pub type N64 = NInt; +pub type U65 = UInt, B0>, B0>, B0>, B0>, B0>, B1>; +pub type P65 = PInt; +pub type N65 = NInt; +pub type U66 = UInt, B0>, B0>, B0>, B0>, B1>, B0>; +pub type P66 = PInt; +pub type N66 = NInt; +pub type U67 = UInt, B0>, B0>, B0>, B0>, B1>, B1>; +pub type P67 = PInt; +pub type N67 = NInt; +pub type U68 = UInt, B0>, B0>, B0>, B1>, B0>, B0>; +pub type P68 = PInt; +pub type N68 = NInt; +pub type U69 = UInt, B0>, B0>, B0>, B1>, B0>, B1>; +pub type P69 = PInt; +pub type N69 = NInt; +pub type U70 = UInt, B0>, B0>, B0>, B1>, B1>, B0>; +pub type P70 = PInt; +pub type N70 = NInt; +pub type U71 = UInt, B0>, B0>, B0>, B1>, B1>, B1>; +pub type P71 = PInt; +pub type N71 = NInt; +pub type U72 = UInt, B0>, B0>, B1>, B0>, B0>, B0>; +pub type P72 = PInt; +pub type N72 = NInt; +pub type U73 = UInt, B0>, B0>, B1>, B0>, B0>, B1>; +pub type P73 = PInt; +pub type N73 = NInt; +pub type U74 = UInt, B0>, B0>, B1>, B0>, B1>, B0>; +pub type P74 = PInt; +pub type N74 = NInt; +pub type U75 = UInt, B0>, B0>, B1>, B0>, B1>, B1>; +pub type P75 = PInt; +pub type N75 = NInt; +pub type U76 = UInt, B0>, B0>, B1>, B1>, B0>, B0>; +pub type P76 = PInt; +pub type N76 = NInt; +pub type U77 = UInt, B0>, B0>, B1>, B1>, B0>, B1>; +pub type P77 = PInt; +pub type N77 = NInt; +pub type U78 = UInt, B0>, B0>, B1>, B1>, B1>, B0>; +pub type P78 = PInt; +pub type N78 = NInt; +pub type U79 = UInt, B0>, B0>, B1>, B1>, B1>, B1>; +pub type P79 = PInt; +pub type N79 = NInt; +pub type U80 = UInt, B0>, B1>, B0>, B0>, B0>, B0>; +pub type P80 = PInt; +pub type N80 = NInt; +pub type U81 = UInt, B0>, B1>, B0>, B0>, B0>, B1>; +pub type P81 = PInt; +pub type N81 = NInt; +pub type U82 = UInt, B0>, B1>, B0>, B0>, B1>, B0>; +pub type P82 = PInt; +pub type N82 = NInt; +pub type U83 = UInt, B0>, B1>, B0>, B0>, B1>, B1>; +pub type P83 = PInt; +pub type N83 = NInt; +pub type U84 = UInt, B0>, B1>, B0>, B1>, B0>, B0>; +pub type P84 = PInt; +pub type N84 = NInt; +pub type U85 = UInt, B0>, B1>, B0>, B1>, B0>, B1>; +pub type P85 = PInt; +pub type N85 = NInt; +pub type U86 = UInt, B0>, B1>, B0>, B1>, B1>, B0>; +pub type P86 = PInt; +pub type N86 = NInt; +pub type U87 = UInt, B0>, B1>, B0>, B1>, B1>, B1>; +pub type P87 = PInt; +pub type N87 = NInt; +pub type U88 = UInt, B0>, B1>, B1>, B0>, B0>, B0>; +pub type P88 = PInt; +pub type N88 = NInt; +pub type U89 = UInt, B0>, B1>, B1>, B0>, B0>, B1>; +pub type P89 = PInt; +pub type N89 = NInt; +pub type U90 = UInt, B0>, B1>, B1>, B0>, B1>, B0>; +pub type P90 = PInt; +pub type N90 = NInt; +pub type U91 = UInt, B0>, B1>, B1>, B0>, B1>, B1>; +pub type P91 = PInt; +pub type N91 = NInt; +pub type U92 = UInt, B0>, B1>, B1>, B1>, B0>, B0>; +pub type P92 = PInt; +pub type N92 = NInt; +pub type U93 = UInt, B0>, B1>, B1>, B1>, B0>, B1>; +pub type P93 = PInt; +pub type N93 = NInt; +pub type U94 = UInt, B0>, B1>, B1>, B1>, B1>, B0>; +pub type P94 = PInt; +pub type N94 = NInt; +pub type U95 = UInt, B0>, B1>, B1>, B1>, B1>, B1>; +pub type P95 = PInt; +pub type N95 = NInt; +pub type U96 = UInt, B1>, B0>, B0>, B0>, B0>, B0>; +pub type P96 = PInt; +pub type N96 = NInt; +pub type U97 = UInt, B1>, B0>, B0>, B0>, B0>, B1>; +pub type P97 = PInt; +pub type N97 = NInt; +pub type U98 = UInt, B1>, B0>, B0>, B0>, B1>, B0>; +pub type P98 = PInt; +pub type N98 = NInt; +pub type U99 = UInt, B1>, B0>, B0>, B0>, B1>, B1>; +pub type P99 = PInt; +pub type N99 = NInt; +pub type U100 = UInt, B1>, B0>, B0>, B1>, B0>, B0>; +pub type P100 = PInt; +pub type N100 = NInt; +pub type U101 = UInt, B1>, B0>, B0>, B1>, B0>, B1>; +pub type P101 = PInt; +pub type N101 = NInt; +pub type U102 = UInt, B1>, B0>, B0>, B1>, B1>, B0>; +pub type P102 = PInt; +pub type N102 = NInt; +pub type U103 = UInt, B1>, B0>, B0>, B1>, B1>, B1>; +pub type P103 = PInt; +pub type N103 = NInt; +pub type U104 = UInt, B1>, B0>, B1>, B0>, B0>, B0>; +pub type P104 = PInt; +pub type N104 = NInt; +pub type U105 = UInt, B1>, B0>, B1>, B0>, B0>, B1>; +pub type P105 = PInt; +pub type N105 = NInt; +pub type U106 = UInt, B1>, B0>, B1>, B0>, B1>, B0>; +pub type P106 = PInt; +pub type N106 = NInt; +pub type U107 = UInt, B1>, B0>, B1>, B0>, B1>, B1>; +pub type P107 = PInt; +pub type N107 = NInt; +pub type U108 = UInt, B1>, B0>, B1>, B1>, B0>, B0>; +pub type P108 = PInt; +pub type N108 = NInt; +pub type U109 = UInt, B1>, B0>, B1>, B1>, B0>, B1>; +pub type P109 = PInt; +pub type N109 = NInt; +pub type U110 = UInt, B1>, B0>, B1>, B1>, B1>, B0>; +pub type P110 = PInt; +pub type N110 = NInt; +pub type U111 = UInt, B1>, B0>, B1>, B1>, B1>, B1>; +pub type P111 = PInt; +pub type N111 = NInt; +pub type U112 = UInt, B1>, B1>, B0>, B0>, B0>, B0>; +pub type P112 = PInt; +pub type N112 = NInt; +pub type U113 = UInt, B1>, B1>, B0>, B0>, B0>, B1>; +pub type P113 = PInt; +pub type N113 = NInt; +pub type U114 = UInt, B1>, B1>, B0>, B0>, B1>, B0>; +pub type P114 = PInt; +pub type N114 = NInt; +pub type U115 = UInt, B1>, B1>, B0>, B0>, B1>, B1>; +pub type P115 = PInt; +pub type N115 = NInt; +pub type U116 = UInt, B1>, B1>, B0>, B1>, B0>, B0>; +pub type P116 = PInt; +pub type N116 = NInt; +pub type U117 = UInt, B1>, B1>, B0>, B1>, B0>, B1>; +pub type P117 = PInt; +pub type N117 = NInt; +pub type U118 = UInt, B1>, B1>, B0>, B1>, B1>, B0>; +pub type P118 = PInt; +pub type N118 = NInt; +pub type U119 = UInt, B1>, B1>, B0>, B1>, B1>, B1>; +pub type P119 = PInt; +pub type N119 = NInt; +pub type U120 = UInt, B1>, B1>, B1>, B0>, B0>, B0>; +pub type P120 = PInt; +pub type N120 = NInt; +pub type U121 = UInt, B1>, B1>, B1>, B0>, B0>, B1>; +pub type P121 = PInt; +pub type N121 = NInt; +pub type U122 = UInt, B1>, B1>, B1>, B0>, B1>, B0>; +pub type P122 = PInt; +pub type N122 = NInt; +pub type U123 = UInt, B1>, B1>, B1>, B0>, B1>, B1>; +pub type P123 = PInt; +pub type N123 = NInt; +pub type U124 = UInt, B1>, B1>, B1>, B1>, B0>, B0>; +pub type P124 = PInt; +pub type N124 = NInt; +pub type U125 = UInt, B1>, B1>, B1>, B1>, B0>, B1>; +pub type P125 = PInt; +pub type N125 = NInt; +pub type U126 = UInt, B1>, B1>, B1>, B1>, B1>, B0>; +pub type P126 = PInt; +pub type N126 = NInt; +pub type U127 = UInt, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P127 = PInt; +pub type N127 = NInt; +pub type U128 = + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P128 = PInt; +pub type N128 = NInt; +pub type U129 = + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B1>; +pub type P129 = PInt; +pub type N129 = NInt; +pub type U130 = + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B0>; +pub type P130 = PInt; +pub type N130 = NInt; +pub type U131 = + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B1>; +pub type P131 = PInt; +pub type N131 = NInt; +pub type U132 = + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B0>; +pub type P132 = PInt; +pub type N132 = NInt; +pub type U133 = + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B1>; +pub type P133 = PInt; +pub type N133 = NInt; +pub type U134 = + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B0>; +pub type P134 = PInt; +pub type N134 = NInt; +pub type U135 = + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B1>; +pub type P135 = PInt; +pub type N135 = NInt; +pub type U136 = + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B0>; +pub type P136 = PInt; +pub type N136 = NInt; +pub type U137 = + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B1>; +pub type P137 = PInt; +pub type N137 = NInt; +pub type U138 = + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B0>; +pub type P138 = PInt; +pub type N138 = NInt; +pub type U139 = + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B1>; +pub type P139 = PInt; +pub type N139 = NInt; +pub type U140 = + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B0>; +pub type P140 = PInt; +pub type N140 = NInt; +pub type U141 = + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B1>; +pub type P141 = PInt; +pub type N141 = NInt; +pub type U142 = + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B0>; +pub type P142 = PInt; +pub type N142 = NInt; +pub type U143 = + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B1>; +pub type P143 = PInt; +pub type N143 = NInt; +pub type U144 = + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B0>; +pub type P144 = PInt; +pub type N144 = NInt; +pub type U145 = + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B1>; +pub type P145 = PInt; +pub type N145 = NInt; +pub type U146 = + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B0>; +pub type P146 = PInt; +pub type N146 = NInt; +pub type U147 = + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B1>; +pub type P147 = PInt; +pub type N147 = NInt; +pub type U148 = + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B0>; +pub type P148 = PInt; +pub type N148 = NInt; +pub type U149 = + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B1>; +pub type P149 = PInt; +pub type N149 = NInt; +pub type U150 = + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B0>; +pub type P150 = PInt; +pub type N150 = NInt; +pub type U151 = + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B1>; +pub type P151 = PInt; +pub type N151 = NInt; +pub type U152 = + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B0>; +pub type P152 = PInt; +pub type N152 = NInt; +pub type U153 = + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B1>; +pub type P153 = PInt; +pub type N153 = NInt; +pub type U154 = + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B0>; +pub type P154 = PInt; +pub type N154 = NInt; +pub type U155 = + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B1>; +pub type P155 = PInt; +pub type N155 = NInt; +pub type U156 = + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B0>; +pub type P156 = PInt; +pub type N156 = NInt; +pub type U157 = + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B1>; +pub type P157 = PInt; +pub type N157 = NInt; +pub type U158 = + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B0>; +pub type P158 = PInt; +pub type N158 = NInt; +pub type U159 = + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B1>; +pub type P159 = PInt; +pub type N159 = NInt; +pub type U160 = + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B0>; +pub type P160 = PInt; +pub type N160 = NInt; +pub type U161 = + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B1>; +pub type P161 = PInt; +pub type N161 = NInt; +pub type U162 = + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B0>; +pub type P162 = PInt; +pub type N162 = NInt; +pub type U163 = + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B1>; +pub type P163 = PInt; +pub type N163 = NInt; +pub type U164 = + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B0>; +pub type P164 = PInt; +pub type N164 = NInt; +pub type U165 = + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B1>; +pub type P165 = PInt; +pub type N165 = NInt; +pub type U166 = + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B0>; +pub type P166 = PInt; +pub type N166 = NInt; +pub type U167 = + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B1>; +pub type P167 = PInt; +pub type N167 = NInt; +pub type U168 = + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B0>; +pub type P168 = PInt; +pub type N168 = NInt; +pub type U169 = + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B1>; +pub type P169 = PInt; +pub type N169 = NInt; +pub type U170 = + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B0>; +pub type P170 = PInt; +pub type N170 = NInt; +pub type U171 = + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B1>; +pub type P171 = PInt; +pub type N171 = NInt; +pub type U172 = + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B0>; +pub type P172 = PInt; +pub type N172 = NInt; +pub type U173 = + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B1>; +pub type P173 = PInt; +pub type N173 = NInt; +pub type U174 = + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B0>; +pub type P174 = PInt; +pub type N174 = NInt; +pub type U175 = + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B1>; +pub type P175 = PInt; +pub type N175 = NInt; +pub type U176 = + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B0>; +pub type P176 = PInt; +pub type N176 = NInt; +pub type U177 = + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B1>; +pub type P177 = PInt; +pub type N177 = NInt; +pub type U178 = + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B0>; +pub type P178 = PInt; +pub type N178 = NInt; +pub type U179 = + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B1>; +pub type P179 = PInt; +pub type N179 = NInt; +pub type U180 = + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B0>; +pub type P180 = PInt; +pub type N180 = NInt; +pub type U181 = + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B1>; +pub type P181 = PInt; +pub type N181 = NInt; +pub type U182 = + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B0>; +pub type P182 = PInt; +pub type N182 = NInt; +pub type U183 = + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B1>; +pub type P183 = PInt; +pub type N183 = NInt; +pub type U184 = + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B0>; +pub type P184 = PInt; +pub type N184 = NInt; +pub type U185 = + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B1>; +pub type P185 = PInt; +pub type N185 = NInt; +pub type U186 = + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B0>; +pub type P186 = PInt; +pub type N186 = NInt; +pub type U187 = + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B1>; +pub type P187 = PInt; +pub type N187 = NInt; +pub type U188 = + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B0>; +pub type P188 = PInt; +pub type N188 = NInt; +pub type U189 = + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B1>; +pub type P189 = PInt; +pub type N189 = NInt; +pub type U190 = + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B0>; +pub type P190 = PInt; +pub type N190 = NInt; +pub type U191 = + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P191 = PInt; +pub type N191 = NInt; +pub type U192 = + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P192 = PInt; +pub type N192 = NInt; +pub type U193 = + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B1>; +pub type P193 = PInt; +pub type N193 = NInt; +pub type U194 = + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B0>; +pub type P194 = PInt; +pub type N194 = NInt; +pub type U195 = + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B1>; +pub type P195 = PInt; +pub type N195 = NInt; +pub type U196 = + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B0>; +pub type P196 = PInt; +pub type N196 = NInt; +pub type U197 = + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B1>; +pub type P197 = PInt; +pub type N197 = NInt; +pub type U198 = + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B0>; +pub type P198 = PInt; +pub type N198 = NInt; +pub type U199 = + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B1>; +pub type P199 = PInt; +pub type N199 = NInt; +pub type U200 = + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B0>; +pub type P200 = PInt; +pub type N200 = NInt; +pub type U201 = + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B1>; +pub type P201 = PInt; +pub type N201 = NInt; +pub type U202 = + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B0>; +pub type P202 = PInt; +pub type N202 = NInt; +pub type U203 = + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B1>; +pub type P203 = PInt; +pub type N203 = NInt; +pub type U204 = + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B0>; +pub type P204 = PInt; +pub type N204 = NInt; +pub type U205 = + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B1>; +pub type P205 = PInt; +pub type N205 = NInt; +pub type U206 = + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B0>; +pub type P206 = PInt; +pub type N206 = NInt; +pub type U207 = + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B1>; +pub type P207 = PInt; +pub type N207 = NInt; +pub type U208 = + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B0>; +pub type P208 = PInt; +pub type N208 = NInt; +pub type U209 = + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B1>; +pub type P209 = PInt; +pub type N209 = NInt; +pub type U210 = + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B0>; +pub type P210 = PInt; +pub type N210 = NInt; +pub type U211 = + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B1>; +pub type P211 = PInt; +pub type N211 = NInt; +pub type U212 = + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B0>; +pub type P212 = PInt; +pub type N212 = NInt; +pub type U213 = + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B1>; +pub type P213 = PInt; +pub type N213 = NInt; +pub type U214 = + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B0>; +pub type P214 = PInt; +pub type N214 = NInt; +pub type U215 = + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B1>; +pub type P215 = PInt; +pub type N215 = NInt; +pub type U216 = + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B0>; +pub type P216 = PInt; +pub type N216 = NInt; +pub type U217 = + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B1>; +pub type P217 = PInt; +pub type N217 = NInt; +pub type U218 = + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B0>; +pub type P218 = PInt; +pub type N218 = NInt; +pub type U219 = + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B1>; +pub type P219 = PInt; +pub type N219 = NInt; +pub type U220 = + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B0>; +pub type P220 = PInt; +pub type N220 = NInt; +pub type U221 = + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B1>; +pub type P221 = PInt; +pub type N221 = NInt; +pub type U222 = + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B0>; +pub type P222 = PInt; +pub type N222 = NInt; +pub type U223 = + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B1>; +pub type P223 = PInt; +pub type N223 = NInt; +pub type U224 = + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B0>; +pub type P224 = PInt; +pub type N224 = NInt; +pub type U225 = + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B1>; +pub type P225 = PInt; +pub type N225 = NInt; +pub type U226 = + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B0>; +pub type P226 = PInt; +pub type N226 = NInt; +pub type U227 = + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B1>; +pub type P227 = PInt; +pub type N227 = NInt; +pub type U228 = + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B0>; +pub type P228 = PInt; +pub type N228 = NInt; +pub type U229 = + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B1>; +pub type P229 = PInt; +pub type N229 = NInt; +pub type U230 = + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B0>; +pub type P230 = PInt; +pub type N230 = NInt; +pub type U231 = + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B1>; +pub type P231 = PInt; +pub type N231 = NInt; +pub type U232 = + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B0>; +pub type P232 = PInt; +pub type N232 = NInt; +pub type U233 = + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B1>; +pub type P233 = PInt; +pub type N233 = NInt; +pub type U234 = + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B0>; +pub type P234 = PInt; +pub type N234 = NInt; +pub type U235 = + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B1>; +pub type P235 = PInt; +pub type N235 = NInt; +pub type U236 = + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B0>; +pub type P236 = PInt; +pub type N236 = NInt; +pub type U237 = + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B1>; +pub type P237 = PInt; +pub type N237 = NInt; +pub type U238 = + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B0>; +pub type P238 = PInt; +pub type N238 = NInt; +pub type U239 = + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B1>; +pub type P239 = PInt; +pub type N239 = NInt; +pub type U240 = + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B0>; +pub type P240 = PInt; +pub type N240 = NInt; +pub type U241 = + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B1>; +pub type P241 = PInt; +pub type N241 = NInt; +pub type U242 = + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B0>; +pub type P242 = PInt; +pub type N242 = NInt; +pub type U243 = + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B1>; +pub type P243 = PInt; +pub type N243 = NInt; +pub type U244 = + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B0>; +pub type P244 = PInt; +pub type N244 = NInt; +pub type U245 = + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B1>; +pub type P245 = PInt; +pub type N245 = NInt; +pub type U246 = + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B0>; +pub type P246 = PInt; +pub type N246 = NInt; +pub type U247 = + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B1>; +pub type P247 = PInt; +pub type N247 = NInt; +pub type U248 = + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B0>; +pub type P248 = PInt; +pub type N248 = NInt; +pub type U249 = + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B1>; +pub type P249 = PInt; +pub type N249 = NInt; +pub type U250 = + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B0>; +pub type P250 = PInt; +pub type N250 = NInt; +pub type U251 = + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B1>; +pub type P251 = PInt; +pub type N251 = NInt; +pub type U252 = + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B0>; +pub type P252 = PInt; +pub type N252 = NInt; +pub type U253 = + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B1>; +pub type P253 = PInt; +pub type N253 = NInt; +pub type U254 = + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B0>; +pub type P254 = PInt; +pub type N254 = NInt; +pub type U255 = + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P255 = PInt; +pub type N255 = NInt; +pub type U256 = + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P256 = PInt; +pub type N256 = NInt; +pub type U257 = + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B1>; +pub type P257 = PInt; +pub type N257 = NInt; +pub type U258 = + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B1>, B0>; +pub type P258 = PInt; +pub type N258 = NInt; +pub type U259 = + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B1>, B1>; +pub type P259 = PInt; +pub type N259 = NInt; +pub type U260 = + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B0>, B0>; +pub type P260 = PInt; +pub type N260 = NInt; +pub type U261 = + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B0>, B1>; +pub type P261 = PInt; +pub type N261 = NInt; +pub type U262 = + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B1>, B0>; +pub type P262 = PInt; +pub type N262 = NInt; +pub type U263 = + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B1>, B1>; +pub type P263 = PInt; +pub type N263 = NInt; +pub type U264 = + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B0>, B0>; +pub type P264 = PInt; +pub type N264 = NInt; +pub type U265 = + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B0>, B1>; +pub type P265 = PInt; +pub type N265 = NInt; +pub type U266 = + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B1>, B0>; +pub type P266 = PInt; +pub type N266 = NInt; +pub type U267 = + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B1>, B1>; +pub type P267 = PInt; +pub type N267 = NInt; +pub type U268 = + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B0>, B0>; +pub type P268 = PInt; +pub type N268 = NInt; +pub type U269 = + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B0>, B1>; +pub type P269 = PInt; +pub type N269 = NInt; +pub type U270 = + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B1>, B0>; +pub type P270 = PInt; +pub type N270 = NInt; +pub type U271 = + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B1>, B1>; +pub type P271 = PInt; +pub type N271 = NInt; +pub type U272 = + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B0>; +pub type P272 = PInt; +pub type N272 = NInt; +pub type U273 = + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B1>; +pub type P273 = PInt; +pub type N273 = NInt; +pub type U274 = + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B1>, B0>; +pub type P274 = PInt; +pub type N274 = NInt; +pub type U275 = + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B1>, B1>; +pub type P275 = PInt; +pub type N275 = NInt; +pub type U276 = + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B0>, B0>; +pub type P276 = PInt; +pub type N276 = NInt; +pub type U277 = + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B0>, B1>; +pub type P277 = PInt; +pub type N277 = NInt; +pub type U278 = + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B1>, B0>; +pub type P278 = PInt; +pub type N278 = NInt; +pub type U279 = + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B1>, B1>; +pub type P279 = PInt; +pub type N279 = NInt; +pub type U280 = + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B0>, B0>; +pub type P280 = PInt; +pub type N280 = NInt; +pub type U281 = + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B0>, B1>; +pub type P281 = PInt; +pub type N281 = NInt; +pub type U282 = + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B1>, B0>; +pub type P282 = PInt; +pub type N282 = NInt; +pub type U283 = + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B1>, B1>; +pub type P283 = PInt; +pub type N283 = NInt; +pub type U284 = + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B0>, B0>; +pub type P284 = PInt; +pub type N284 = NInt; +pub type U285 = + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B0>, B1>; +pub type P285 = PInt; +pub type N285 = NInt; +pub type U286 = + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B1>, B0>; +pub type P286 = PInt; +pub type N286 = NInt; +pub type U287 = + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B1>, B1>; +pub type P287 = PInt; +pub type N287 = NInt; +pub type U288 = + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>; +pub type P288 = PInt; +pub type N288 = NInt; +pub type U289 = + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B1>; +pub type P289 = PInt; +pub type N289 = NInt; +pub type U290 = + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B1>, B0>; +pub type P290 = PInt; +pub type N290 = NInt; +pub type U291 = + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B1>, B1>; +pub type P291 = PInt; +pub type N291 = NInt; +pub type U292 = + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B0>, B0>; +pub type P292 = PInt; +pub type N292 = NInt; +pub type U293 = + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B0>, B1>; +pub type P293 = PInt; +pub type N293 = NInt; +pub type U294 = + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B1>, B0>; +pub type P294 = PInt; +pub type N294 = NInt; +pub type U295 = + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B1>, B1>; +pub type P295 = PInt; +pub type N295 = NInt; +pub type U296 = + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B0>, B0>; +pub type P296 = PInt; +pub type N296 = NInt; +pub type U297 = + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B0>, B1>; +pub type P297 = PInt; +pub type N297 = NInt; +pub type U298 = + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B1>, B0>; +pub type P298 = PInt; +pub type N298 = NInt; +pub type U299 = + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B1>, B1>; +pub type P299 = PInt; +pub type N299 = NInt; +pub type U300 = + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B0>; +pub type P300 = PInt; +pub type N300 = NInt; +pub type U301 = + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B1>; +pub type P301 = PInt; +pub type N301 = NInt; +pub type U302 = + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B1>, B0>; +pub type P302 = PInt; +pub type N302 = NInt; +pub type U303 = + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B1>, B1>; +pub type P303 = PInt; +pub type N303 = NInt; +pub type U304 = + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B0>, B0>; +pub type P304 = PInt; +pub type N304 = NInt; +pub type U305 = + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B0>, B1>; +pub type P305 = PInt; +pub type N305 = NInt; +pub type U306 = + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B1>, B0>; +pub type P306 = PInt; +pub type N306 = NInt; +pub type U307 = + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B1>, B1>; +pub type P307 = PInt; +pub type N307 = NInt; +pub type U308 = + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B0>, B0>; +pub type P308 = PInt; +pub type N308 = NInt; +pub type U309 = + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B0>, B1>; +pub type P309 = PInt; +pub type N309 = NInt; +pub type U310 = + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B1>, B0>; +pub type P310 = PInt; +pub type N310 = NInt; +pub type U311 = + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B1>, B1>; +pub type P311 = PInt; +pub type N311 = NInt; +pub type U312 = + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B0>, B0>; +pub type P312 = PInt; +pub type N312 = NInt; +pub type U313 = + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B0>, B1>; +pub type P313 = PInt; +pub type N313 = NInt; +pub type U314 = + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B1>, B0>; +pub type P314 = PInt; +pub type N314 = NInt; +pub type U315 = + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B1>, B1>; +pub type P315 = PInt; +pub type N315 = NInt; +pub type U316 = + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B0>, B0>; +pub type P316 = PInt; +pub type N316 = NInt; +pub type U317 = + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B0>, B1>; +pub type P317 = PInt; +pub type N317 = NInt; +pub type U318 = + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B1>, B0>; +pub type P318 = PInt; +pub type N318 = NInt; +pub type U319 = + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P319 = PInt; +pub type N319 = NInt; +pub type U320 = + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P320 = PInt; +pub type N320 = NInt; +pub type U321 = + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B1>; +pub type P321 = PInt; +pub type N321 = NInt; +pub type U322 = + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B1>, B0>; +pub type P322 = PInt; +pub type N322 = NInt; +pub type U323 = + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B1>, B1>; +pub type P323 = PInt; +pub type N323 = NInt; +pub type U324 = + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B0>; +pub type P324 = PInt; +pub type N324 = NInt; +pub type U325 = + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B1>; +pub type P325 = PInt; +pub type N325 = NInt; +pub type U326 = + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B1>, B0>; +pub type P326 = PInt; +pub type N326 = NInt; +pub type U327 = + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B1>, B1>; +pub type P327 = PInt; +pub type N327 = NInt; +pub type U328 = + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B0>, B0>; +pub type P328 = PInt; +pub type N328 = NInt; +pub type U329 = + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B0>, B1>; +pub type P329 = PInt; +pub type N329 = NInt; +pub type U330 = + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B1>, B0>; +pub type P330 = PInt; +pub type N330 = NInt; +pub type U331 = + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B1>, B1>; +pub type P331 = PInt; +pub type N331 = NInt; +pub type U332 = + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B0>, B0>; +pub type P332 = PInt; +pub type N332 = NInt; +pub type U333 = + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B0>, B1>; +pub type P333 = PInt; +pub type N333 = NInt; +pub type U334 = + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B1>, B0>; +pub type P334 = PInt; +pub type N334 = NInt; +pub type U335 = + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B1>, B1>; +pub type P335 = PInt; +pub type N335 = NInt; +pub type U336 = + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B0>, B0>; +pub type P336 = PInt; +pub type N336 = NInt; +pub type U337 = + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B0>, B1>; +pub type P337 = PInt; +pub type N337 = NInt; +pub type U338 = + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B1>, B0>; +pub type P338 = PInt; +pub type N338 = NInt; +pub type U339 = + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B1>, B1>; +pub type P339 = PInt; +pub type N339 = NInt; +pub type U340 = + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B0>, B0>; +pub type P340 = PInt; +pub type N340 = NInt; +pub type U341 = + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B0>, B1>; +pub type P341 = PInt; +pub type N341 = NInt; +pub type U342 = + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B1>, B0>; +pub type P342 = PInt; +pub type N342 = NInt; +pub type U343 = + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B1>, B1>; +pub type P343 = PInt; +pub type N343 = NInt; +pub type U344 = + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B0>, B0>; +pub type P344 = PInt; +pub type N344 = NInt; +pub type U345 = + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B0>, B1>; +pub type P345 = PInt; +pub type N345 = NInt; +pub type U346 = + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B1>, B0>; +pub type P346 = PInt; +pub type N346 = NInt; +pub type U347 = + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B1>, B1>; +pub type P347 = PInt; +pub type N347 = NInt; +pub type U348 = + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B0>, B0>; +pub type P348 = PInt; +pub type N348 = NInt; +pub type U349 = + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B0>, B1>; +pub type P349 = PInt; +pub type N349 = NInt; +pub type U350 = + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B1>, B0>; +pub type P350 = PInt; +pub type N350 = NInt; +pub type U351 = + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B1>, B1>; +pub type P351 = PInt; +pub type N351 = NInt; +pub type U352 = + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B0>, B0>; +pub type P352 = PInt; +pub type N352 = NInt; +pub type U353 = + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B0>, B1>; +pub type P353 = PInt; +pub type N353 = NInt; +pub type U354 = + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B1>, B0>; +pub type P354 = PInt; +pub type N354 = NInt; +pub type U355 = + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B1>, B1>; +pub type P355 = PInt; +pub type N355 = NInt; +pub type U356 = + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B0>, B0>; +pub type P356 = PInt; +pub type N356 = NInt; +pub type U357 = + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B0>, B1>; +pub type P357 = PInt; +pub type N357 = NInt; +pub type U358 = + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B1>, B0>; +pub type P358 = PInt; +pub type N358 = NInt; +pub type U359 = + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B1>, B1>; +pub type P359 = PInt; +pub type N359 = NInt; +pub type U360 = + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B0>, B0>; +pub type P360 = PInt; +pub type N360 = NInt; +pub type U361 = + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B0>, B1>; +pub type P361 = PInt; +pub type N361 = NInt; +pub type U362 = + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B1>, B0>; +pub type P362 = PInt; +pub type N362 = NInt; +pub type U363 = + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B1>, B1>; +pub type P363 = PInt; +pub type N363 = NInt; +pub type U364 = + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B0>, B0>; +pub type P364 = PInt; +pub type N364 = NInt; +pub type U365 = + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B0>, B1>; +pub type P365 = PInt; +pub type N365 = NInt; +pub type U366 = + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B1>, B0>; +pub type P366 = PInt; +pub type N366 = NInt; +pub type U367 = + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B1>, B1>; +pub type P367 = PInt; +pub type N367 = NInt; +pub type U368 = + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B0>, B0>; +pub type P368 = PInt; +pub type N368 = NInt; +pub type U369 = + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B0>, B1>; +pub type P369 = PInt; +pub type N369 = NInt; +pub type U370 = + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B1>, B0>; +pub type P370 = PInt; +pub type N370 = NInt; +pub type U371 = + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B1>, B1>; +pub type P371 = PInt; +pub type N371 = NInt; +pub type U372 = + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B0>, B0>; +pub type P372 = PInt; +pub type N372 = NInt; +pub type U373 = + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B0>, B1>; +pub type P373 = PInt; +pub type N373 = NInt; +pub type U374 = + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B1>, B0>; +pub type P374 = PInt; +pub type N374 = NInt; +pub type U375 = + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B1>, B1>; +pub type P375 = PInt; +pub type N375 = NInt; +pub type U376 = + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B0>, B0>; +pub type P376 = PInt; +pub type N376 = NInt; +pub type U377 = + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B0>, B1>; +pub type P377 = PInt; +pub type N377 = NInt; +pub type U378 = + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B1>, B0>; +pub type P378 = PInt; +pub type N378 = NInt; +pub type U379 = + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B1>, B1>; +pub type P379 = PInt; +pub type N379 = NInt; +pub type U380 = + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B0>, B0>; +pub type P380 = PInt; +pub type N380 = NInt; +pub type U381 = + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B0>, B1>; +pub type P381 = PInt; +pub type N381 = NInt; +pub type U382 = + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B1>, B0>; +pub type P382 = PInt; +pub type N382 = NInt; +pub type U383 = + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P383 = PInt; +pub type N383 = NInt; +pub type U384 = + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P384 = PInt; +pub type N384 = NInt; +pub type U385 = + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B1>; +pub type P385 = PInt; +pub type N385 = NInt; +pub type U386 = + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B1>, B0>; +pub type P386 = PInt; +pub type N386 = NInt; +pub type U387 = + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B1>, B1>; +pub type P387 = PInt; +pub type N387 = NInt; +pub type U388 = + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B0>, B0>; +pub type P388 = PInt; +pub type N388 = NInt; +pub type U389 = + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B0>, B1>; +pub type P389 = PInt; +pub type N389 = NInt; +pub type U390 = + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B1>, B0>; +pub type P390 = PInt; +pub type N390 = NInt; +pub type U391 = + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B1>, B1>; +pub type P391 = PInt; +pub type N391 = NInt; +pub type U392 = + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B0>; +pub type P392 = PInt; +pub type N392 = NInt; +pub type U393 = + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B1>; +pub type P393 = PInt; +pub type N393 = NInt; +pub type U394 = + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B1>, B0>; +pub type P394 = PInt; +pub type N394 = NInt; +pub type U395 = + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B1>, B1>; +pub type P395 = PInt; +pub type N395 = NInt; +pub type U396 = + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B0>; +pub type P396 = PInt; +pub type N396 = NInt; +pub type U397 = + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B1>; +pub type P397 = PInt; +pub type N397 = NInt; +pub type U398 = + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B1>, B0>; +pub type P398 = PInt; +pub type N398 = NInt; +pub type U399 = + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B1>, B1>; +pub type P399 = PInt; +pub type N399 = NInt; +pub type U400 = + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>; +pub type P400 = PInt; +pub type N400 = NInt; +pub type U401 = + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B1>; +pub type P401 = PInt; +pub type N401 = NInt; +pub type U402 = + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B1>, B0>; +pub type P402 = PInt; +pub type N402 = NInt; +pub type U403 = + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B1>, B1>; +pub type P403 = PInt; +pub type N403 = NInt; +pub type U404 = + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B0>, B0>; +pub type P404 = PInt; +pub type N404 = NInt; +pub type U405 = + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B0>, B1>; +pub type P405 = PInt; +pub type N405 = NInt; +pub type U406 = + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B1>, B0>; +pub type P406 = PInt; +pub type N406 = NInt; +pub type U407 = + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B1>, B1>; +pub type P407 = PInt; +pub type N407 = NInt; +pub type U408 = + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B0>, B0>; +pub type P408 = PInt; +pub type N408 = NInt; +pub type U409 = + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B0>, B1>; +pub type P409 = PInt; +pub type N409 = NInt; +pub type U410 = + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B1>, B0>; +pub type P410 = PInt; +pub type N410 = NInt; +pub type U411 = + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B1>, B1>; +pub type P411 = PInt; +pub type N411 = NInt; +pub type U412 = + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B0>, B0>; +pub type P412 = PInt; +pub type N412 = NInt; +pub type U413 = + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B0>, B1>; +pub type P413 = PInt; +pub type N413 = NInt; +pub type U414 = + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B1>, B0>; +pub type P414 = PInt; +pub type N414 = NInt; +pub type U415 = + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B1>, B1>; +pub type P415 = PInt; +pub type N415 = NInt; +pub type U416 = + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B0>; +pub type P416 = PInt; +pub type N416 = NInt; +pub type U417 = + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B1>; +pub type P417 = PInt; +pub type N417 = NInt; +pub type U418 = + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B0>; +pub type P418 = PInt; +pub type N418 = NInt; +pub type U419 = + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B1>; +pub type P419 = PInt; +pub type N419 = NInt; +pub type U420 = + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B0>, B0>; +pub type P420 = PInt; +pub type N420 = NInt; +pub type U421 = + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B0>, B1>; +pub type P421 = PInt; +pub type N421 = NInt; +pub type U422 = + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B1>, B0>; +pub type P422 = PInt; +pub type N422 = NInt; +pub type U423 = + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B1>, B1>; +pub type P423 = PInt; +pub type N423 = NInt; +pub type U424 = + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B0>, B0>; +pub type P424 = PInt; +pub type N424 = NInt; +pub type U425 = + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B0>, B1>; +pub type P425 = PInt; +pub type N425 = NInt; +pub type U426 = + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B1>, B0>; +pub type P426 = PInt; +pub type N426 = NInt; +pub type U427 = + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B1>, B1>; +pub type P427 = PInt; +pub type N427 = NInt; +pub type U428 = + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B0>, B0>; +pub type P428 = PInt; +pub type N428 = NInt; +pub type U429 = + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B0>, B1>; +pub type P429 = PInt; +pub type N429 = NInt; +pub type U430 = + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B1>, B0>; +pub type P430 = PInt; +pub type N430 = NInt; +pub type U431 = + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B1>, B1>; +pub type P431 = PInt; +pub type N431 = NInt; +pub type U432 = + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B0>, B0>; +pub type P432 = PInt; +pub type N432 = NInt; +pub type U433 = + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B0>, B1>; +pub type P433 = PInt; +pub type N433 = NInt; +pub type U434 = + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B1>, B0>; +pub type P434 = PInt; +pub type N434 = NInt; +pub type U435 = + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B1>, B1>; +pub type P435 = PInt; +pub type N435 = NInt; +pub type U436 = + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B0>, B0>; +pub type P436 = PInt; +pub type N436 = NInt; +pub type U437 = + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B0>, B1>; +pub type P437 = PInt; +pub type N437 = NInt; +pub type U438 = + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B1>, B0>; +pub type P438 = PInt; +pub type N438 = NInt; +pub type U439 = + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B1>, B1>; +pub type P439 = PInt; +pub type N439 = NInt; +pub type U440 = + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B0>, B0>; +pub type P440 = PInt; +pub type N440 = NInt; +pub type U441 = + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B0>, B1>; +pub type P441 = PInt; +pub type N441 = NInt; +pub type U442 = + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B1>, B0>; +pub type P442 = PInt; +pub type N442 = NInt; +pub type U443 = + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B1>, B1>; +pub type P443 = PInt; +pub type N443 = NInt; +pub type U444 = + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B0>, B0>; +pub type P444 = PInt; +pub type N444 = NInt; +pub type U445 = + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B0>, B1>; +pub type P445 = PInt; +pub type N445 = NInt; +pub type U446 = + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B1>, B0>; +pub type P446 = PInt; +pub type N446 = NInt; +pub type U447 = + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P447 = PInt; +pub type N447 = NInt; +pub type U448 = + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P448 = PInt; +pub type N448 = NInt; +pub type U449 = + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B0>, B1>; +pub type P449 = PInt; +pub type N449 = NInt; +pub type U450 = + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B1>, B0>; +pub type P450 = PInt; +pub type N450 = NInt; +pub type U451 = + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B1>, B1>; +pub type P451 = PInt; +pub type N451 = NInt; +pub type U452 = + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B0>, B0>; +pub type P452 = PInt; +pub type N452 = NInt; +pub type U453 = + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B0>, B1>; +pub type P453 = PInt; +pub type N453 = NInt; +pub type U454 = + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B1>, B0>; +pub type P454 = PInt; +pub type N454 = NInt; +pub type U455 = + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B1>, B1>; +pub type P455 = PInt; +pub type N455 = NInt; +pub type U456 = + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>; +pub type P456 = PInt; +pub type N456 = NInt; +pub type U457 = + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B1>; +pub type P457 = PInt; +pub type N457 = NInt; +pub type U458 = + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B1>, B0>; +pub type P458 = PInt; +pub type N458 = NInt; +pub type U459 = + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B1>, B1>; +pub type P459 = PInt; +pub type N459 = NInt; +pub type U460 = + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B0>, B0>; +pub type P460 = PInt; +pub type N460 = NInt; +pub type U461 = + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B0>, B1>; +pub type P461 = PInt; +pub type N461 = NInt; +pub type U462 = + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B1>, B0>; +pub type P462 = PInt; +pub type N462 = NInt; +pub type U463 = + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B1>, B1>; +pub type P463 = PInt; +pub type N463 = NInt; +pub type U464 = + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B0>, B0>; +pub type P464 = PInt; +pub type N464 = NInt; +pub type U465 = + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B0>, B1>; +pub type P465 = PInt; +pub type N465 = NInt; +pub type U466 = + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B1>, B0>; +pub type P466 = PInt; +pub type N466 = NInt; +pub type U467 = + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B1>, B1>; +pub type P467 = PInt; +pub type N467 = NInt; +pub type U468 = + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B0>, B0>; +pub type P468 = PInt; +pub type N468 = NInt; +pub type U469 = + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B0>, B1>; +pub type P469 = PInt; +pub type N469 = NInt; +pub type U470 = + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B1>, B0>; +pub type P470 = PInt; +pub type N470 = NInt; +pub type U471 = + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B1>, B1>; +pub type P471 = PInt; +pub type N471 = NInt; +pub type U472 = + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B0>, B0>; +pub type P472 = PInt; +pub type N472 = NInt; +pub type U473 = + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B0>, B1>; +pub type P473 = PInt; +pub type N473 = NInt; +pub type U474 = + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B1>, B0>; +pub type P474 = PInt; +pub type N474 = NInt; +pub type U475 = + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B1>, B1>; +pub type P475 = PInt; +pub type N475 = NInt; +pub type U476 = + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B0>, B0>; +pub type P476 = PInt; +pub type N476 = NInt; +pub type U477 = + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B0>, B1>; +pub type P477 = PInt; +pub type N477 = NInt; +pub type U478 = + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B1>, B0>; +pub type P478 = PInt; +pub type N478 = NInt; +pub type U479 = + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B1>, B1>; +pub type P479 = PInt; +pub type N479 = NInt; +pub type U480 = + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B0>, B0>; +pub type P480 = PInt; +pub type N480 = NInt; +pub type U481 = + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B0>, B1>; +pub type P481 = PInt; +pub type N481 = NInt; +pub type U482 = + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B1>, B0>; +pub type P482 = PInt; +pub type N482 = NInt; +pub type U483 = + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B1>, B1>; +pub type P483 = PInt; +pub type N483 = NInt; +pub type U484 = + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B0>, B0>; +pub type P484 = PInt; +pub type N484 = NInt; +pub type U485 = + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B0>, B1>; +pub type P485 = PInt; +pub type N485 = NInt; +pub type U486 = + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B1>, B0>; +pub type P486 = PInt; +pub type N486 = NInt; +pub type U487 = + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B1>, B1>; +pub type P487 = PInt; +pub type N487 = NInt; +pub type U488 = + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B0>; +pub type P488 = PInt; +pub type N488 = NInt; +pub type U489 = + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B1>; +pub type P489 = PInt; +pub type N489 = NInt; +pub type U490 = + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B1>, B0>; +pub type P490 = PInt; +pub type N490 = NInt; +pub type U491 = + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B1>, B1>; +pub type P491 = PInt; +pub type N491 = NInt; +pub type U492 = + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B0>, B0>; +pub type P492 = PInt; +pub type N492 = NInt; +pub type U493 = + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B0>, B1>; +pub type P493 = PInt; +pub type N493 = NInt; +pub type U494 = + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B1>, B0>; +pub type P494 = PInt; +pub type N494 = NInt; +pub type U495 = + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B1>, B1>; +pub type P495 = PInt; +pub type N495 = NInt; +pub type U496 = + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B0>, B0>; +pub type P496 = PInt; +pub type N496 = NInt; +pub type U497 = + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B0>, B1>; +pub type P497 = PInt; +pub type N497 = NInt; +pub type U498 = + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B1>, B0>; +pub type P498 = PInt; +pub type N498 = NInt; +pub type U499 = + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B1>, B1>; +pub type P499 = PInt; +pub type N499 = NInt; +pub type U500 = + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>; +pub type P500 = PInt; +pub type N500 = NInt; +pub type U501 = + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B1>; +pub type P501 = PInt; +pub type N501 = NInt; +pub type U502 = + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B1>, B0>; +pub type P502 = PInt; +pub type N502 = NInt; +pub type U503 = + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B1>, B1>; +pub type P503 = PInt; +pub type N503 = NInt; +pub type U504 = + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B0>, B0>; +pub type P504 = PInt; +pub type N504 = NInt; +pub type U505 = + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B0>, B1>; +pub type P505 = PInt; +pub type N505 = NInt; +pub type U506 = + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>; +pub type P506 = PInt; +pub type N506 = NInt; +pub type U507 = + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B1>; +pub type P507 = PInt; +pub type N507 = NInt; +pub type U508 = + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B0>, B0>; +pub type P508 = PInt; +pub type N508 = NInt; +pub type U509 = + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B0>, B1>; +pub type P509 = PInt; +pub type N509 = NInt; +pub type U510 = + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B0>; +pub type P510 = PInt; +pub type N510 = NInt; +pub type U511 = + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P511 = PInt; +pub type N511 = NInt; +pub type U512 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P512 = PInt; +pub type N512 = NInt; +pub type U513 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P513 = PInt; +pub type N513 = NInt; +pub type U514 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P514 = PInt; +pub type N514 = NInt; +pub type U515 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P515 = PInt; +pub type N515 = NInt; +pub type U516 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P516 = PInt; +pub type N516 = NInt; +pub type U517 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P517 = PInt; +pub type N517 = NInt; +pub type U518 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P518 = PInt; +pub type N518 = NInt; +pub type U519 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P519 = PInt; +pub type N519 = NInt; +pub type U520 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P520 = PInt; +pub type N520 = NInt; +pub type U521 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P521 = PInt; +pub type N521 = NInt; +pub type U522 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P522 = PInt; +pub type N522 = NInt; +pub type U523 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P523 = PInt; +pub type N523 = NInt; +pub type U524 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P524 = PInt; +pub type N524 = NInt; +pub type U525 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P525 = PInt; +pub type N525 = NInt; +pub type U526 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P526 = PInt; +pub type N526 = NInt; +pub type U527 = UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P527 = PInt; +pub type N527 = NInt; +pub type U528 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P528 = PInt; +pub type N528 = NInt; +pub type U529 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P529 = PInt; +pub type N529 = NInt; +pub type U530 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P530 = PInt; +pub type N530 = NInt; +pub type U531 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P531 = PInt; +pub type N531 = NInt; +pub type U532 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P532 = PInt; +pub type N532 = NInt; +pub type U533 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P533 = PInt; +pub type N533 = NInt; +pub type U534 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P534 = PInt; +pub type N534 = NInt; +pub type U535 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P535 = PInt; +pub type N535 = NInt; +pub type U536 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P536 = PInt; +pub type N536 = NInt; +pub type U537 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P537 = PInt; +pub type N537 = NInt; +pub type U538 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P538 = PInt; +pub type N538 = NInt; +pub type U539 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P539 = PInt; +pub type N539 = NInt; +pub type U540 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P540 = PInt; +pub type N540 = NInt; +pub type U541 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P541 = PInt; +pub type N541 = NInt; +pub type U542 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P542 = PInt; +pub type N542 = NInt; +pub type U543 = UInt< + UInt, B0>, B0>, B0>, B0>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P543 = PInt; +pub type N543 = NInt; +pub type U544 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P544 = PInt; +pub type N544 = NInt; +pub type U545 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P545 = PInt; +pub type N545 = NInt; +pub type U546 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P546 = PInt; +pub type N546 = NInt; +pub type U547 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P547 = PInt; +pub type N547 = NInt; +pub type U548 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P548 = PInt; +pub type N548 = NInt; +pub type U549 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P549 = PInt; +pub type N549 = NInt; +pub type U550 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P550 = PInt; +pub type N550 = NInt; +pub type U551 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P551 = PInt; +pub type N551 = NInt; +pub type U552 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P552 = PInt; +pub type N552 = NInt; +pub type U553 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P553 = PInt; +pub type N553 = NInt; +pub type U554 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P554 = PInt; +pub type N554 = NInt; +pub type U555 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P555 = PInt; +pub type N555 = NInt; +pub type U556 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P556 = PInt; +pub type N556 = NInt; +pub type U557 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P557 = PInt; +pub type N557 = NInt; +pub type U558 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P558 = PInt; +pub type N558 = NInt; +pub type U559 = UInt< + UInt, B0>, B0>, B0>, B1>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P559 = PInt; +pub type N559 = NInt; +pub type U560 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P560 = PInt; +pub type N560 = NInt; +pub type U561 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P561 = PInt; +pub type N561 = NInt; +pub type U562 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P562 = PInt; +pub type N562 = NInt; +pub type U563 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P563 = PInt; +pub type N563 = NInt; +pub type U564 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P564 = PInt; +pub type N564 = NInt; +pub type U565 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P565 = PInt; +pub type N565 = NInt; +pub type U566 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P566 = PInt; +pub type N566 = NInt; +pub type U567 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P567 = PInt; +pub type N567 = NInt; +pub type U568 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P568 = PInt; +pub type N568 = NInt; +pub type U569 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P569 = PInt; +pub type N569 = NInt; +pub type U570 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P570 = PInt; +pub type N570 = NInt; +pub type U571 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P571 = PInt; +pub type N571 = NInt; +pub type U572 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P572 = PInt; +pub type N572 = NInt; +pub type U573 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P573 = PInt; +pub type N573 = NInt; +pub type U574 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P574 = PInt; +pub type N574 = NInt; +pub type U575 = UInt< + UInt, B0>, B0>, B0>, B1>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P575 = PInt; +pub type N575 = NInt; +pub type U576 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P576 = PInt; +pub type N576 = NInt; +pub type U577 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P577 = PInt; +pub type N577 = NInt; +pub type U578 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P578 = PInt; +pub type N578 = NInt; +pub type U579 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P579 = PInt; +pub type N579 = NInt; +pub type U580 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P580 = PInt; +pub type N580 = NInt; +pub type U581 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P581 = PInt; +pub type N581 = NInt; +pub type U582 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P582 = PInt; +pub type N582 = NInt; +pub type U583 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P583 = PInt; +pub type N583 = NInt; +pub type U584 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P584 = PInt; +pub type N584 = NInt; +pub type U585 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P585 = PInt; +pub type N585 = NInt; +pub type U586 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P586 = PInt; +pub type N586 = NInt; +pub type U587 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P587 = PInt; +pub type N587 = NInt; +pub type U588 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P588 = PInt; +pub type N588 = NInt; +pub type U589 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P589 = PInt; +pub type N589 = NInt; +pub type U590 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P590 = PInt; +pub type N590 = NInt; +pub type U591 = UInt< + UInt, B0>, B0>, B1>, B0>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P591 = PInt; +pub type N591 = NInt; +pub type U592 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P592 = PInt; +pub type N592 = NInt; +pub type U593 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P593 = PInt; +pub type N593 = NInt; +pub type U594 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P594 = PInt; +pub type N594 = NInt; +pub type U595 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P595 = PInt; +pub type N595 = NInt; +pub type U596 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P596 = PInt; +pub type N596 = NInt; +pub type U597 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P597 = PInt; +pub type N597 = NInt; +pub type U598 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P598 = PInt; +pub type N598 = NInt; +pub type U599 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P599 = PInt; +pub type N599 = NInt; +pub type U600 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P600 = PInt; +pub type N600 = NInt; +pub type U601 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P601 = PInt; +pub type N601 = NInt; +pub type U602 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P602 = PInt; +pub type N602 = NInt; +pub type U603 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P603 = PInt; +pub type N603 = NInt; +pub type U604 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P604 = PInt; +pub type N604 = NInt; +pub type U605 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P605 = PInt; +pub type N605 = NInt; +pub type U606 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P606 = PInt; +pub type N606 = NInt; +pub type U607 = UInt< + UInt, B0>, B0>, B1>, B0>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P607 = PInt; +pub type N607 = NInt; +pub type U608 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P608 = PInt; +pub type N608 = NInt; +pub type U609 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P609 = PInt; +pub type N609 = NInt; +pub type U610 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P610 = PInt; +pub type N610 = NInt; +pub type U611 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P611 = PInt; +pub type N611 = NInt; +pub type U612 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P612 = PInt; +pub type N612 = NInt; +pub type U613 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P613 = PInt; +pub type N613 = NInt; +pub type U614 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P614 = PInt; +pub type N614 = NInt; +pub type U615 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P615 = PInt; +pub type N615 = NInt; +pub type U616 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P616 = PInt; +pub type N616 = NInt; +pub type U617 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P617 = PInt; +pub type N617 = NInt; +pub type U618 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P618 = PInt; +pub type N618 = NInt; +pub type U619 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P619 = PInt; +pub type N619 = NInt; +pub type U620 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P620 = PInt; +pub type N620 = NInt; +pub type U621 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P621 = PInt; +pub type N621 = NInt; +pub type U622 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P622 = PInt; +pub type N622 = NInt; +pub type U623 = UInt< + UInt, B0>, B0>, B1>, B1>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P623 = PInt; +pub type N623 = NInt; +pub type U624 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P624 = PInt; +pub type N624 = NInt; +pub type U625 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P625 = PInt; +pub type N625 = NInt; +pub type U626 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P626 = PInt; +pub type N626 = NInt; +pub type U627 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P627 = PInt; +pub type N627 = NInt; +pub type U628 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P628 = PInt; +pub type N628 = NInt; +pub type U629 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P629 = PInt; +pub type N629 = NInt; +pub type U630 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P630 = PInt; +pub type N630 = NInt; +pub type U631 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P631 = PInt; +pub type N631 = NInt; +pub type U632 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P632 = PInt; +pub type N632 = NInt; +pub type U633 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P633 = PInt; +pub type N633 = NInt; +pub type U634 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P634 = PInt; +pub type N634 = NInt; +pub type U635 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P635 = PInt; +pub type N635 = NInt; +pub type U636 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P636 = PInt; +pub type N636 = NInt; +pub type U637 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P637 = PInt; +pub type N637 = NInt; +pub type U638 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P638 = PInt; +pub type N638 = NInt; +pub type U639 = UInt< + UInt, B0>, B0>, B1>, B1>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P639 = PInt; +pub type N639 = NInt; +pub type U640 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P640 = PInt; +pub type N640 = NInt; +pub type U641 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P641 = PInt; +pub type N641 = NInt; +pub type U642 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P642 = PInt; +pub type N642 = NInt; +pub type U643 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P643 = PInt; +pub type N643 = NInt; +pub type U644 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P644 = PInt; +pub type N644 = NInt; +pub type U645 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P645 = PInt; +pub type N645 = NInt; +pub type U646 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P646 = PInt; +pub type N646 = NInt; +pub type U647 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P647 = PInt; +pub type N647 = NInt; +pub type U648 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P648 = PInt; +pub type N648 = NInt; +pub type U649 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P649 = PInt; +pub type N649 = NInt; +pub type U650 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P650 = PInt; +pub type N650 = NInt; +pub type U651 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P651 = PInt; +pub type N651 = NInt; +pub type U652 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P652 = PInt; +pub type N652 = NInt; +pub type U653 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P653 = PInt; +pub type N653 = NInt; +pub type U654 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P654 = PInt; +pub type N654 = NInt; +pub type U655 = UInt< + UInt, B0>, B1>, B0>, B0>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P655 = PInt; +pub type N655 = NInt; +pub type U656 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P656 = PInt; +pub type N656 = NInt; +pub type U657 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P657 = PInt; +pub type N657 = NInt; +pub type U658 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P658 = PInt; +pub type N658 = NInt; +pub type U659 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P659 = PInt; +pub type N659 = NInt; +pub type U660 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P660 = PInt; +pub type N660 = NInt; +pub type U661 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P661 = PInt; +pub type N661 = NInt; +pub type U662 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P662 = PInt; +pub type N662 = NInt; +pub type U663 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P663 = PInt; +pub type N663 = NInt; +pub type U664 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P664 = PInt; +pub type N664 = NInt; +pub type U665 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P665 = PInt; +pub type N665 = NInt; +pub type U666 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P666 = PInt; +pub type N666 = NInt; +pub type U667 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P667 = PInt; +pub type N667 = NInt; +pub type U668 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P668 = PInt; +pub type N668 = NInt; +pub type U669 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P669 = PInt; +pub type N669 = NInt; +pub type U670 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P670 = PInt; +pub type N670 = NInt; +pub type U671 = UInt< + UInt, B0>, B1>, B0>, B0>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P671 = PInt; +pub type N671 = NInt; +pub type U672 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P672 = PInt; +pub type N672 = NInt; +pub type U673 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P673 = PInt; +pub type N673 = NInt; +pub type U674 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P674 = PInt; +pub type N674 = NInt; +pub type U675 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P675 = PInt; +pub type N675 = NInt; +pub type U676 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P676 = PInt; +pub type N676 = NInt; +pub type U677 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P677 = PInt; +pub type N677 = NInt; +pub type U678 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P678 = PInt; +pub type N678 = NInt; +pub type U679 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P679 = PInt; +pub type N679 = NInt; +pub type U680 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P680 = PInt; +pub type N680 = NInt; +pub type U681 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P681 = PInt; +pub type N681 = NInt; +pub type U682 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P682 = PInt; +pub type N682 = NInt; +pub type U683 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P683 = PInt; +pub type N683 = NInt; +pub type U684 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P684 = PInt; +pub type N684 = NInt; +pub type U685 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P685 = PInt; +pub type N685 = NInt; +pub type U686 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P686 = PInt; +pub type N686 = NInt; +pub type U687 = UInt< + UInt, B0>, B1>, B0>, B1>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P687 = PInt; +pub type N687 = NInt; +pub type U688 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P688 = PInt; +pub type N688 = NInt; +pub type U689 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P689 = PInt; +pub type N689 = NInt; +pub type U690 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P690 = PInt; +pub type N690 = NInt; +pub type U691 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P691 = PInt; +pub type N691 = NInt; +pub type U692 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P692 = PInt; +pub type N692 = NInt; +pub type U693 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P693 = PInt; +pub type N693 = NInt; +pub type U694 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P694 = PInt; +pub type N694 = NInt; +pub type U695 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P695 = PInt; +pub type N695 = NInt; +pub type U696 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P696 = PInt; +pub type N696 = NInt; +pub type U697 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P697 = PInt; +pub type N697 = NInt; +pub type U698 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P698 = PInt; +pub type N698 = NInt; +pub type U699 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P699 = PInt; +pub type N699 = NInt; +pub type U700 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P700 = PInt; +pub type N700 = NInt; +pub type U701 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P701 = PInt; +pub type N701 = NInt; +pub type U702 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P702 = PInt; +pub type N702 = NInt; +pub type U703 = UInt< + UInt, B0>, B1>, B0>, B1>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P703 = PInt; +pub type N703 = NInt; +pub type U704 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P704 = PInt; +pub type N704 = NInt; +pub type U705 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P705 = PInt; +pub type N705 = NInt; +pub type U706 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P706 = PInt; +pub type N706 = NInt; +pub type U707 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P707 = PInt; +pub type N707 = NInt; +pub type U708 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P708 = PInt; +pub type N708 = NInt; +pub type U709 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P709 = PInt; +pub type N709 = NInt; +pub type U710 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P710 = PInt; +pub type N710 = NInt; +pub type U711 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P711 = PInt; +pub type N711 = NInt; +pub type U712 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P712 = PInt; +pub type N712 = NInt; +pub type U713 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P713 = PInt; +pub type N713 = NInt; +pub type U714 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P714 = PInt; +pub type N714 = NInt; +pub type U715 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P715 = PInt; +pub type N715 = NInt; +pub type U716 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P716 = PInt; +pub type N716 = NInt; +pub type U717 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P717 = PInt; +pub type N717 = NInt; +pub type U718 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P718 = PInt; +pub type N718 = NInt; +pub type U719 = UInt< + UInt, B0>, B1>, B1>, B0>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P719 = PInt; +pub type N719 = NInt; +pub type U720 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P720 = PInt; +pub type N720 = NInt; +pub type U721 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P721 = PInt; +pub type N721 = NInt; +pub type U722 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P722 = PInt; +pub type N722 = NInt; +pub type U723 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P723 = PInt; +pub type N723 = NInt; +pub type U724 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P724 = PInt; +pub type N724 = NInt; +pub type U725 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P725 = PInt; +pub type N725 = NInt; +pub type U726 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P726 = PInt; +pub type N726 = NInt; +pub type U727 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P727 = PInt; +pub type N727 = NInt; +pub type U728 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P728 = PInt; +pub type N728 = NInt; +pub type U729 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P729 = PInt; +pub type N729 = NInt; +pub type U730 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P730 = PInt; +pub type N730 = NInt; +pub type U731 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P731 = PInt; +pub type N731 = NInt; +pub type U732 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P732 = PInt; +pub type N732 = NInt; +pub type U733 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P733 = PInt; +pub type N733 = NInt; +pub type U734 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P734 = PInt; +pub type N734 = NInt; +pub type U735 = UInt< + UInt, B0>, B1>, B1>, B0>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P735 = PInt; +pub type N735 = NInt; +pub type U736 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P736 = PInt; +pub type N736 = NInt; +pub type U737 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P737 = PInt; +pub type N737 = NInt; +pub type U738 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P738 = PInt; +pub type N738 = NInt; +pub type U739 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P739 = PInt; +pub type N739 = NInt; +pub type U740 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P740 = PInt; +pub type N740 = NInt; +pub type U741 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P741 = PInt; +pub type N741 = NInt; +pub type U742 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P742 = PInt; +pub type N742 = NInt; +pub type U743 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P743 = PInt; +pub type N743 = NInt; +pub type U744 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P744 = PInt; +pub type N744 = NInt; +pub type U745 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P745 = PInt; +pub type N745 = NInt; +pub type U746 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P746 = PInt; +pub type N746 = NInt; +pub type U747 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P747 = PInt; +pub type N747 = NInt; +pub type U748 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P748 = PInt; +pub type N748 = NInt; +pub type U749 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P749 = PInt; +pub type N749 = NInt; +pub type U750 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P750 = PInt; +pub type N750 = NInt; +pub type U751 = UInt< + UInt, B0>, B1>, B1>, B1>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P751 = PInt; +pub type N751 = NInt; +pub type U752 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P752 = PInt; +pub type N752 = NInt; +pub type U753 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P753 = PInt; +pub type N753 = NInt; +pub type U754 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P754 = PInt; +pub type N754 = NInt; +pub type U755 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P755 = PInt; +pub type N755 = NInt; +pub type U756 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P756 = PInt; +pub type N756 = NInt; +pub type U757 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P757 = PInt; +pub type N757 = NInt; +pub type U758 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P758 = PInt; +pub type N758 = NInt; +pub type U759 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P759 = PInt; +pub type N759 = NInt; +pub type U760 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P760 = PInt; +pub type N760 = NInt; +pub type U761 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P761 = PInt; +pub type N761 = NInt; +pub type U762 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P762 = PInt; +pub type N762 = NInt; +pub type U763 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P763 = PInt; +pub type N763 = NInt; +pub type U764 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P764 = PInt; +pub type N764 = NInt; +pub type U765 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P765 = PInt; +pub type N765 = NInt; +pub type U766 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P766 = PInt; +pub type N766 = NInt; +pub type U767 = UInt< + UInt, B0>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P767 = PInt; +pub type N767 = NInt; +pub type U768 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P768 = PInt; +pub type N768 = NInt; +pub type U769 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P769 = PInt; +pub type N769 = NInt; +pub type U770 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P770 = PInt; +pub type N770 = NInt; +pub type U771 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P771 = PInt; +pub type N771 = NInt; +pub type U772 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P772 = PInt; +pub type N772 = NInt; +pub type U773 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P773 = PInt; +pub type N773 = NInt; +pub type U774 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P774 = PInt; +pub type N774 = NInt; +pub type U775 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P775 = PInt; +pub type N775 = NInt; +pub type U776 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P776 = PInt; +pub type N776 = NInt; +pub type U777 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P777 = PInt; +pub type N777 = NInt; +pub type U778 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P778 = PInt; +pub type N778 = NInt; +pub type U779 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P779 = PInt; +pub type N779 = NInt; +pub type U780 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P780 = PInt; +pub type N780 = NInt; +pub type U781 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P781 = PInt; +pub type N781 = NInt; +pub type U782 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P782 = PInt; +pub type N782 = NInt; +pub type U783 = UInt< + UInt, B1>, B0>, B0>, B0>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P783 = PInt; +pub type N783 = NInt; +pub type U784 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P784 = PInt; +pub type N784 = NInt; +pub type U785 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P785 = PInt; +pub type N785 = NInt; +pub type U786 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P786 = PInt; +pub type N786 = NInt; +pub type U787 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P787 = PInt; +pub type N787 = NInt; +pub type U788 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P788 = PInt; +pub type N788 = NInt; +pub type U789 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P789 = PInt; +pub type N789 = NInt; +pub type U790 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P790 = PInt; +pub type N790 = NInt; +pub type U791 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P791 = PInt; +pub type N791 = NInt; +pub type U792 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P792 = PInt; +pub type N792 = NInt; +pub type U793 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P793 = PInt; +pub type N793 = NInt; +pub type U794 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P794 = PInt; +pub type N794 = NInt; +pub type U795 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P795 = PInt; +pub type N795 = NInt; +pub type U796 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P796 = PInt; +pub type N796 = NInt; +pub type U797 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P797 = PInt; +pub type N797 = NInt; +pub type U798 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P798 = PInt; +pub type N798 = NInt; +pub type U799 = UInt< + UInt, B1>, B0>, B0>, B0>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P799 = PInt; +pub type N799 = NInt; +pub type U800 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P800 = PInt; +pub type N800 = NInt; +pub type U801 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P801 = PInt; +pub type N801 = NInt; +pub type U802 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P802 = PInt; +pub type N802 = NInt; +pub type U803 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P803 = PInt; +pub type N803 = NInt; +pub type U804 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P804 = PInt; +pub type N804 = NInt; +pub type U805 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P805 = PInt; +pub type N805 = NInt; +pub type U806 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P806 = PInt; +pub type N806 = NInt; +pub type U807 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P807 = PInt; +pub type N807 = NInt; +pub type U808 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P808 = PInt; +pub type N808 = NInt; +pub type U809 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P809 = PInt; +pub type N809 = NInt; +pub type U810 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P810 = PInt; +pub type N810 = NInt; +pub type U811 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P811 = PInt; +pub type N811 = NInt; +pub type U812 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P812 = PInt; +pub type N812 = NInt; +pub type U813 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P813 = PInt; +pub type N813 = NInt; +pub type U814 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P814 = PInt; +pub type N814 = NInt; +pub type U815 = UInt< + UInt, B1>, B0>, B0>, B1>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P815 = PInt; +pub type N815 = NInt; +pub type U816 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P816 = PInt; +pub type N816 = NInt; +pub type U817 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P817 = PInt; +pub type N817 = NInt; +pub type U818 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P818 = PInt; +pub type N818 = NInt; +pub type U819 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P819 = PInt; +pub type N819 = NInt; +pub type U820 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P820 = PInt; +pub type N820 = NInt; +pub type U821 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P821 = PInt; +pub type N821 = NInt; +pub type U822 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P822 = PInt; +pub type N822 = NInt; +pub type U823 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P823 = PInt; +pub type N823 = NInt; +pub type U824 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P824 = PInt; +pub type N824 = NInt; +pub type U825 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P825 = PInt; +pub type N825 = NInt; +pub type U826 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P826 = PInt; +pub type N826 = NInt; +pub type U827 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P827 = PInt; +pub type N827 = NInt; +pub type U828 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P828 = PInt; +pub type N828 = NInt; +pub type U829 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P829 = PInt; +pub type N829 = NInt; +pub type U830 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P830 = PInt; +pub type N830 = NInt; +pub type U831 = UInt< + UInt, B1>, B0>, B0>, B1>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P831 = PInt; +pub type N831 = NInt; +pub type U832 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P832 = PInt; +pub type N832 = NInt; +pub type U833 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P833 = PInt; +pub type N833 = NInt; +pub type U834 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P834 = PInt; +pub type N834 = NInt; +pub type U835 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P835 = PInt; +pub type N835 = NInt; +pub type U836 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P836 = PInt; +pub type N836 = NInt; +pub type U837 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P837 = PInt; +pub type N837 = NInt; +pub type U838 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P838 = PInt; +pub type N838 = NInt; +pub type U839 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P839 = PInt; +pub type N839 = NInt; +pub type U840 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P840 = PInt; +pub type N840 = NInt; +pub type U841 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P841 = PInt; +pub type N841 = NInt; +pub type U842 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P842 = PInt; +pub type N842 = NInt; +pub type U843 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P843 = PInt; +pub type N843 = NInt; +pub type U844 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P844 = PInt; +pub type N844 = NInt; +pub type U845 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P845 = PInt; +pub type N845 = NInt; +pub type U846 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P846 = PInt; +pub type N846 = NInt; +pub type U847 = UInt< + UInt, B1>, B0>, B1>, B0>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P847 = PInt; +pub type N847 = NInt; +pub type U848 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P848 = PInt; +pub type N848 = NInt; +pub type U849 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P849 = PInt; +pub type N849 = NInt; +pub type U850 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P850 = PInt; +pub type N850 = NInt; +pub type U851 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P851 = PInt; +pub type N851 = NInt; +pub type U852 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P852 = PInt; +pub type N852 = NInt; +pub type U853 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P853 = PInt; +pub type N853 = NInt; +pub type U854 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P854 = PInt; +pub type N854 = NInt; +pub type U855 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P855 = PInt; +pub type N855 = NInt; +pub type U856 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P856 = PInt; +pub type N856 = NInt; +pub type U857 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P857 = PInt; +pub type N857 = NInt; +pub type U858 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P858 = PInt; +pub type N858 = NInt; +pub type U859 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P859 = PInt; +pub type N859 = NInt; +pub type U860 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P860 = PInt; +pub type N860 = NInt; +pub type U861 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P861 = PInt; +pub type N861 = NInt; +pub type U862 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P862 = PInt; +pub type N862 = NInt; +pub type U863 = UInt< + UInt, B1>, B0>, B1>, B0>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P863 = PInt; +pub type N863 = NInt; +pub type U864 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P864 = PInt; +pub type N864 = NInt; +pub type U865 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P865 = PInt; +pub type N865 = NInt; +pub type U866 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P866 = PInt; +pub type N866 = NInt; +pub type U867 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P867 = PInt; +pub type N867 = NInt; +pub type U868 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P868 = PInt; +pub type N868 = NInt; +pub type U869 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P869 = PInt; +pub type N869 = NInt; +pub type U870 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P870 = PInt; +pub type N870 = NInt; +pub type U871 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P871 = PInt; +pub type N871 = NInt; +pub type U872 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P872 = PInt; +pub type N872 = NInt; +pub type U873 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P873 = PInt; +pub type N873 = NInt; +pub type U874 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P874 = PInt; +pub type N874 = NInt; +pub type U875 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P875 = PInt; +pub type N875 = NInt; +pub type U876 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P876 = PInt; +pub type N876 = NInt; +pub type U877 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P877 = PInt; +pub type N877 = NInt; +pub type U878 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P878 = PInt; +pub type N878 = NInt; +pub type U879 = UInt< + UInt, B1>, B0>, B1>, B1>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P879 = PInt; +pub type N879 = NInt; +pub type U880 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P880 = PInt; +pub type N880 = NInt; +pub type U881 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P881 = PInt; +pub type N881 = NInt; +pub type U882 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P882 = PInt; +pub type N882 = NInt; +pub type U883 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P883 = PInt; +pub type N883 = NInt; +pub type U884 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P884 = PInt; +pub type N884 = NInt; +pub type U885 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P885 = PInt; +pub type N885 = NInt; +pub type U886 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P886 = PInt; +pub type N886 = NInt; +pub type U887 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P887 = PInt; +pub type N887 = NInt; +pub type U888 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P888 = PInt; +pub type N888 = NInt; +pub type U889 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P889 = PInt; +pub type N889 = NInt; +pub type U890 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P890 = PInt; +pub type N890 = NInt; +pub type U891 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P891 = PInt; +pub type N891 = NInt; +pub type U892 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P892 = PInt; +pub type N892 = NInt; +pub type U893 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P893 = PInt; +pub type N893 = NInt; +pub type U894 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P894 = PInt; +pub type N894 = NInt; +pub type U895 = UInt< + UInt, B1>, B0>, B1>, B1>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P895 = PInt; +pub type N895 = NInt; +pub type U896 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P896 = PInt; +pub type N896 = NInt; +pub type U897 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P897 = PInt; +pub type N897 = NInt; +pub type U898 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P898 = PInt; +pub type N898 = NInt; +pub type U899 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P899 = PInt; +pub type N899 = NInt; +pub type U900 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P900 = PInt; +pub type N900 = NInt; +pub type U901 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P901 = PInt; +pub type N901 = NInt; +pub type U902 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P902 = PInt; +pub type N902 = NInt; +pub type U903 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P903 = PInt; +pub type N903 = NInt; +pub type U904 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P904 = PInt; +pub type N904 = NInt; +pub type U905 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P905 = PInt; +pub type N905 = NInt; +pub type U906 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P906 = PInt; +pub type N906 = NInt; +pub type U907 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P907 = PInt; +pub type N907 = NInt; +pub type U908 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P908 = PInt; +pub type N908 = NInt; +pub type U909 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P909 = PInt; +pub type N909 = NInt; +pub type U910 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P910 = PInt; +pub type N910 = NInt; +pub type U911 = UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P911 = PInt; +pub type N911 = NInt; +pub type U912 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P912 = PInt; +pub type N912 = NInt; +pub type U913 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P913 = PInt; +pub type N913 = NInt; +pub type U914 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P914 = PInt; +pub type N914 = NInt; +pub type U915 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P915 = PInt; +pub type N915 = NInt; +pub type U916 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P916 = PInt; +pub type N916 = NInt; +pub type U917 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P917 = PInt; +pub type N917 = NInt; +pub type U918 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P918 = PInt; +pub type N918 = NInt; +pub type U919 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P919 = PInt; +pub type N919 = NInt; +pub type U920 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P920 = PInt; +pub type N920 = NInt; +pub type U921 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P921 = PInt; +pub type N921 = NInt; +pub type U922 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P922 = PInt; +pub type N922 = NInt; +pub type U923 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P923 = PInt; +pub type N923 = NInt; +pub type U924 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P924 = PInt; +pub type N924 = NInt; +pub type U925 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P925 = PInt; +pub type N925 = NInt; +pub type U926 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P926 = PInt; +pub type N926 = NInt; +pub type U927 = UInt< + UInt, B1>, B1>, B0>, B0>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P927 = PInt; +pub type N927 = NInt; +pub type U928 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P928 = PInt; +pub type N928 = NInt; +pub type U929 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P929 = PInt; +pub type N929 = NInt; +pub type U930 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P930 = PInt; +pub type N930 = NInt; +pub type U931 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P931 = PInt; +pub type N931 = NInt; +pub type U932 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P932 = PInt; +pub type N932 = NInt; +pub type U933 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P933 = PInt; +pub type N933 = NInt; +pub type U934 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P934 = PInt; +pub type N934 = NInt; +pub type U935 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P935 = PInt; +pub type N935 = NInt; +pub type U936 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P936 = PInt; +pub type N936 = NInt; +pub type U937 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P937 = PInt; +pub type N937 = NInt; +pub type U938 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P938 = PInt; +pub type N938 = NInt; +pub type U939 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P939 = PInt; +pub type N939 = NInt; +pub type U940 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P940 = PInt; +pub type N940 = NInt; +pub type U941 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P941 = PInt; +pub type N941 = NInt; +pub type U942 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P942 = PInt; +pub type N942 = NInt; +pub type U943 = UInt< + UInt, B1>, B1>, B0>, B1>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P943 = PInt; +pub type N943 = NInt; +pub type U944 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P944 = PInt; +pub type N944 = NInt; +pub type U945 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P945 = PInt; +pub type N945 = NInt; +pub type U946 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P946 = PInt; +pub type N946 = NInt; +pub type U947 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P947 = PInt; +pub type N947 = NInt; +pub type U948 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P948 = PInt; +pub type N948 = NInt; +pub type U949 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P949 = PInt; +pub type N949 = NInt; +pub type U950 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P950 = PInt; +pub type N950 = NInt; +pub type U951 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P951 = PInt; +pub type N951 = NInt; +pub type U952 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P952 = PInt; +pub type N952 = NInt; +pub type U953 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P953 = PInt; +pub type N953 = NInt; +pub type U954 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P954 = PInt; +pub type N954 = NInt; +pub type U955 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P955 = PInt; +pub type N955 = NInt; +pub type U956 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P956 = PInt; +pub type N956 = NInt; +pub type U957 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P957 = PInt; +pub type N957 = NInt; +pub type U958 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P958 = PInt; +pub type N958 = NInt; +pub type U959 = UInt< + UInt, B1>, B1>, B0>, B1>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P959 = PInt; +pub type N959 = NInt; +pub type U960 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P960 = PInt; +pub type N960 = NInt; +pub type U961 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P961 = PInt; +pub type N961 = NInt; +pub type U962 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P962 = PInt; +pub type N962 = NInt; +pub type U963 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P963 = PInt; +pub type N963 = NInt; +pub type U964 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P964 = PInt; +pub type N964 = NInt; +pub type U965 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P965 = PInt; +pub type N965 = NInt; +pub type U966 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P966 = PInt; +pub type N966 = NInt; +pub type U967 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P967 = PInt; +pub type N967 = NInt; +pub type U968 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P968 = PInt; +pub type N968 = NInt; +pub type U969 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P969 = PInt; +pub type N969 = NInt; +pub type U970 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P970 = PInt; +pub type N970 = NInt; +pub type U971 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P971 = PInt; +pub type N971 = NInt; +pub type U972 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P972 = PInt; +pub type N972 = NInt; +pub type U973 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P973 = PInt; +pub type N973 = NInt; +pub type U974 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P974 = PInt; +pub type N974 = NInt; +pub type U975 = UInt< + UInt, B1>, B1>, B1>, B0>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P975 = PInt; +pub type N975 = NInt; +pub type U976 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P976 = PInt; +pub type N976 = NInt; +pub type U977 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P977 = PInt; +pub type N977 = NInt; +pub type U978 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P978 = PInt; +pub type N978 = NInt; +pub type U979 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P979 = PInt; +pub type N979 = NInt; +pub type U980 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P980 = PInt; +pub type N980 = NInt; +pub type U981 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P981 = PInt; +pub type N981 = NInt; +pub type U982 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P982 = PInt; +pub type N982 = NInt; +pub type U983 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P983 = PInt; +pub type N983 = NInt; +pub type U984 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P984 = PInt; +pub type N984 = NInt; +pub type U985 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P985 = PInt; +pub type N985 = NInt; +pub type U986 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P986 = PInt; +pub type N986 = NInt; +pub type U987 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P987 = PInt; +pub type N987 = NInt; +pub type U988 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P988 = PInt; +pub type N988 = NInt; +pub type U989 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P989 = PInt; +pub type N989 = NInt; +pub type U990 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P990 = PInt; +pub type N990 = NInt; +pub type U991 = UInt< + UInt, B1>, B1>, B1>, B0>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P991 = PInt; +pub type N991 = NInt; +pub type U992 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B0>, B0>, + B0, +>; +pub type P992 = PInt; +pub type N992 = NInt; +pub type U993 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B0>, B0>, + B1, +>; +pub type P993 = PInt; +pub type N993 = NInt; +pub type U994 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B0>, B1>, + B0, +>; +pub type P994 = PInt; +pub type N994 = NInt; +pub type U995 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B0>, B1>, + B1, +>; +pub type P995 = PInt; +pub type N995 = NInt; +pub type U996 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B1>, B0>, + B0, +>; +pub type P996 = PInt; +pub type N996 = NInt; +pub type U997 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B1>, B0>, + B1, +>; +pub type P997 = PInt; +pub type N997 = NInt; +pub type U998 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B1>, B1>, + B0, +>; +pub type P998 = PInt; +pub type N998 = NInt; +pub type U999 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B0>, B1>, B1>, + B1, +>; +pub type P999 = PInt; +pub type N999 = NInt; +pub type U1000 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, + B0, +>; +pub type P1000 = PInt; +pub type N1000 = NInt; +pub type U1001 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, + B1, +>; +pub type P1001 = PInt; +pub type N1001 = NInt; +pub type U1002 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B1>, + B0, +>; +pub type P1002 = PInt; +pub type N1002 = NInt; +pub type U1003 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B1>, + B1, +>; +pub type P1003 = PInt; +pub type N1003 = NInt; +pub type U1004 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B1>, B0>, + B0, +>; +pub type P1004 = PInt; +pub type N1004 = NInt; +pub type U1005 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B1>, B0>, + B1, +>; +pub type P1005 = PInt; +pub type N1005 = NInt; +pub type U1006 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B1>, B1>, + B0, +>; +pub type P1006 = PInt; +pub type N1006 = NInt; +pub type U1007 = UInt< + UInt, B1>, B1>, B1>, B1>, B0>, B1>, B1>, B1>, + B1, +>; +pub type P1007 = PInt; +pub type N1007 = NInt; +pub type U1008 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B0>, B0>, + B0, +>; +pub type P1008 = PInt; +pub type N1008 = NInt; +pub type U1009 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B0>, B0>, + B1, +>; +pub type P1009 = PInt; +pub type N1009 = NInt; +pub type U1010 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B0>, B1>, + B0, +>; +pub type P1010 = PInt; +pub type N1010 = NInt; +pub type U1011 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B0>, B1>, + B1, +>; +pub type P1011 = PInt; +pub type N1011 = NInt; +pub type U1012 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, + B0, +>; +pub type P1012 = PInt; +pub type N1012 = NInt; +pub type U1013 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, + B1, +>; +pub type P1013 = PInt; +pub type N1013 = NInt; +pub type U1014 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B1>, + B0, +>; +pub type P1014 = PInt; +pub type N1014 = NInt; +pub type U1015 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B1>, + B1, +>; +pub type P1015 = PInt; +pub type N1015 = NInt; +pub type U1016 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B0>, B0>, + B0, +>; +pub type P1016 = PInt; +pub type N1016 = NInt; +pub type U1017 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B0>, B0>, + B1, +>; +pub type P1017 = PInt; +pub type N1017 = NInt; +pub type U1018 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B0>, B1>, + B0, +>; +pub type P1018 = PInt; +pub type N1018 = NInt; +pub type U1019 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B0>, B1>, + B1, +>; +pub type P1019 = PInt; +pub type N1019 = NInt; +pub type U1020 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B0>, + B0, +>; +pub type P1020 = PInt; +pub type N1020 = NInt; +pub type U1021 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B0>, + B1, +>; +pub type P1021 = PInt; +pub type N1021 = NInt; +pub type U1022 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, + B0, +>; +pub type P1022 = PInt; +pub type N1022 = NInt; +pub type U1023 = UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, + B1, +>; +pub type P1023 = PInt; +pub type N1023 = NInt; +pub type U1024 = UInt< + UInt< + UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, + B0, + >, + B0, + >, + B0, +>; +pub type P1024 = PInt; +pub type N1024 = NInt; +pub type U3600 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B1>, B1>, B0>, B0>, B0>, B0>, + B1, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P3600 = PInt; +pub type N3600 = NInt; +pub type U2047 = UInt< + UInt< + UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, + B1, + >, + B1, + >, + B1, +>; +pub type P2047 = PInt; +pub type N2047 = NInt; +pub type U2048 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B0>, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P2048 = PInt; +pub type N2048 = NInt; +pub type U4095 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B1>, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, +>; +pub type P4095 = PInt; +pub type N4095 = NInt; +pub type U4096 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B0>, B0>, B0>, B0>, B0>, B0>, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P4096 = PInt; +pub type N4096 = NInt; +pub type U8191 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B1>, B1>, B1>, B1>, B1>, B1>, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, +>; +pub type P8191 = PInt; +pub type N8191 = NInt; +pub type U8192 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B0>, B0>, B0>, B0>, B0>, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P8192 = PInt; +pub type N8192 = NInt; +pub type U16383 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B1>, B1>, B1>, B1>, B1>, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, +>; +pub type P16383 = PInt; +pub type N16383 = NInt; +pub type U16384 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B0>, B0>, B0>, B0>, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P16384 = PInt; +pub type N16384 = NInt; +pub type U32767 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B1>, B1>, B1>, B1>, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, +>; +pub type P32767 = PInt; +pub type N32767 = NInt; +pub type U32768 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B0>, B0>, B0>, B0>, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P32768 = PInt; +pub type N32768 = NInt; +pub type U65535 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B1>, B1>, B1>, B1>, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, +>; +pub type P65535 = PInt; +pub type N65535 = NInt; +pub type U65536 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B0>, B0>, B0>, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P65536 = PInt; +pub type N65536 = NInt; +pub type U131071 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B1>, B1>, B1>, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, +>; +pub type P131071 = PInt; +pub type N131071 = NInt; +pub type U131072 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B0>, B0>, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P131072 = PInt; +pub type N131072 = NInt; +pub type U262143 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B1>, B1>, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, +>; +pub type P262143 = PInt; +pub type N262143 = NInt; +pub type U262144 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B0>, B0>, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P262144 = PInt; +pub type N262144 = NInt; +pub type U524287 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B1>, B1>, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, +>; +pub type P524287 = PInt; +pub type N524287 = NInt; +pub type U524288 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B0>, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P524288 = PInt; +pub type N524288 = NInt; +pub type U1048575 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B1>, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, +>; +pub type P1048575 = PInt; +pub type N1048575 = NInt; +pub type U1048576 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P1048576 = PInt; +pub type N1048576 = NInt; +pub type U2097151 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, +>; +pub type P2097151 = PInt; +pub type N2097151 = NInt; +pub type U2097152 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P2097152 = PInt; +pub type N2097152 = NInt; +pub type U4194303 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, +>; +pub type P4194303 = PInt; +pub type N4194303 = NInt; +pub type U4194304 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UTerm, + B1, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P4194304 = PInt; +pub type N4194304 = NInt; +pub type U8388607 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UTerm, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, + >, + B1, +>; +pub type P8388607 = PInt; +pub type N8388607 = NInt; +pub type U8388608 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P8388608 = PInt; +pub type N8388608 = NInt; +pub type U16777215 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P16777215 = PInt; +pub type N16777215 = NInt; +pub type U16777216 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P16777216 = PInt; +pub type N16777216 = NInt; +pub type U33554431 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P33554431 = PInt; +pub type N33554431 = NInt; +pub type U33554432 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P33554432 = PInt; +pub type N33554432 = NInt; +pub type U67108863 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P67108863 = PInt; +pub type N67108863 = NInt; +pub type U67108864 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P67108864 = PInt; +pub type N67108864 = NInt; +pub type U134217727 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P134217727 = PInt; +pub type N134217727 = NInt; +pub type U134217728 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P134217728 = PInt; +pub type N134217728 = NInt; +pub type U268435455 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P268435455 = PInt; +pub type N268435455 = NInt; +pub type U268435456 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P268435456 = PInt; +pub type N268435456 = NInt; +pub type U536870911 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P536870911 = PInt; +pub type N536870911 = NInt; +pub type U536870912 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P536870912 = PInt; +pub type N536870912 = NInt; +pub type U1073741823 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P1073741823 = PInt; +pub type N1073741823 = NInt; +pub type U1073741824 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P1073741824 = PInt; +pub type N1073741824 = NInt; +pub type U2147483647 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P2147483647 = PInt; +pub type N2147483647 = NInt; +pub type U2147483648 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P2147483648 = PInt; +pub type N2147483648 = NInt; +pub type U4294967295 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P4294967295 = PInt; +pub type N4294967295 = NInt; +pub type U4294967296 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P4294967296 = PInt; +pub type N4294967296 = NInt; +pub type U8589934591 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P8589934591 = PInt; +pub type N8589934591 = NInt; +pub type U8589934592 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P8589934592 = PInt; +pub type N8589934592 = NInt; +pub type U17179869183 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P17179869183 = PInt; +pub type N17179869183 = NInt; +pub type U17179869184 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P17179869184 = PInt; +pub type N17179869184 = NInt; +pub type U34359738367 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P34359738367 = PInt; +pub type N34359738367 = NInt; +pub type U34359738368 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P34359738368 = PInt; +pub type N34359738368 = NInt; +pub type U68719476735 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P68719476735 = PInt; +pub type N68719476735 = NInt; +pub type U68719476736 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P68719476736 = PInt; +pub type N68719476736 = NInt; +pub type U137438953471 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P137438953471 = PInt; +pub type N137438953471 = NInt; +pub type U137438953472 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P137438953472 = PInt; +pub type N137438953472 = NInt; +pub type U274877906943 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P274877906943 = PInt; +pub type N274877906943 = NInt; +pub type U274877906944 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P274877906944 = PInt; +pub type N274877906944 = NInt; +pub type U549755813887 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P549755813887 = PInt; +pub type N549755813887 = NInt; +pub type U549755813888 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P549755813888 = PInt; +pub type N549755813888 = NInt; +pub type U1099511627775 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P1099511627775 = PInt; +pub type N1099511627775 = NInt; +pub type U1099511627776 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P1099511627776 = PInt; +pub type N1099511627776 = NInt; +pub type U2199023255551 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P2199023255551 = PInt; +pub type N2199023255551 = NInt; +pub type U2199023255552 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P2199023255552 = PInt; +pub type N2199023255552 = NInt; +pub type U4398046511103 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P4398046511103 = PInt; +pub type N4398046511103 = NInt; +pub type U4398046511104 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P4398046511104 = PInt; +pub type N4398046511104 = NInt; +pub type U8796093022207 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P8796093022207 = PInt; +pub type N8796093022207 = NInt; +pub type U8796093022208 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P8796093022208 = PInt; +pub type N8796093022208 = NInt; +pub type U17592186044415 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P17592186044415 = PInt; +pub type N17592186044415 = NInt; +pub type U17592186044416 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P17592186044416 = PInt; +pub type N17592186044416 = NInt; +pub type U35184372088831 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P35184372088831 = PInt; +pub type N35184372088831 = NInt; +pub type U35184372088832 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P35184372088832 = PInt; +pub type N35184372088832 = NInt; +pub type U70368744177663 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P70368744177663 = PInt; +pub type N70368744177663 = NInt; +pub type U70368744177664 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P70368744177664 = PInt; +pub type N70368744177664 = NInt; +pub type U140737488355327 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P140737488355327 = PInt; +pub type N140737488355327 = NInt; +pub type U140737488355328 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P140737488355328 = PInt; +pub type N140737488355328 = NInt; +pub type U281474976710655 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P281474976710655 = PInt; +pub type N281474976710655 = NInt; +pub type U281474976710656 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P281474976710656 = PInt; +pub type N281474976710656 = NInt; +pub type U562949953421311 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P562949953421311 = PInt; +pub type N562949953421311 = NInt; +pub type U562949953421312 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P562949953421312 = PInt; +pub type N562949953421312 = NInt; +pub type U1125899906842623 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P1125899906842623 = PInt; +pub type N1125899906842623 = NInt; +pub type U1125899906842624 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P1125899906842624 = PInt; +pub type N1125899906842624 = NInt; +pub type U2251799813685247 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P2251799813685247 = PInt; +pub type N2251799813685247 = NInt; +pub type U2251799813685248 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P2251799813685248 = PInt; +pub type N2251799813685248 = NInt; +pub type U4503599627370495 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P4503599627370495 = PInt; +pub type N4503599627370495 = NInt; +pub type U4503599627370496 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P4503599627370496 = PInt; +pub type N4503599627370496 = NInt; +pub type U9007199254740991 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P9007199254740991 = PInt; +pub type N9007199254740991 = NInt; +pub type U9007199254740992 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P9007199254740992 = PInt; +pub type N9007199254740992 = NInt; +pub type U18014398509481983 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P18014398509481983 = PInt; +pub type N18014398509481983 = NInt; +pub type U18014398509481984 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P18014398509481984 = PInt; +pub type N18014398509481984 = NInt; +pub type U36028797018963967 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P36028797018963967 = PInt; +pub type N36028797018963967 = NInt; +pub type U36028797018963968 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P36028797018963968 = PInt; +pub type N36028797018963968 = NInt; +pub type U72057594037927935 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P72057594037927935 = PInt; +pub type N72057594037927935 = NInt; +pub type U72057594037927936 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P72057594037927936 = PInt; +pub type N72057594037927936 = NInt; +pub type U144115188075855871 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P144115188075855871 = PInt; +pub type N144115188075855871 = NInt; +pub type U144115188075855872 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P144115188075855872 = PInt; +pub type N144115188075855872 = NInt; +pub type U288230376151711743 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P288230376151711743 = PInt; +pub type N288230376151711743 = NInt; +pub type U288230376151711744 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P288230376151711744 = PInt; +pub type N288230376151711744 = NInt; +pub type U576460752303423487 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P576460752303423487 = PInt; +pub type N576460752303423487 = NInt; +pub type U576460752303423488 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P576460752303423488 = PInt; +pub type N576460752303423488 = NInt; +pub type U1152921504606846975 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P1152921504606846975 = PInt; +pub type N1152921504606846975 = NInt; +pub type U1152921504606846976 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P1152921504606846976 = PInt; +pub type N1152921504606846976 = NInt; +pub type U2305843009213693951 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P2305843009213693951 = PInt; +pub type N2305843009213693951 = NInt; +pub type U2305843009213693952 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P2305843009213693952 = PInt; +pub type N2305843009213693952 = NInt; +pub type U4611686018427387903 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P4611686018427387903 = PInt; +pub type N4611686018427387903 = NInt; +pub type U4611686018427387904 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P4611686018427387904 = PInt; +pub type N4611686018427387904 = NInt; +pub type U9223372036854775807 = UInt, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>, B1>; +pub type P9223372036854775807 = PInt; +pub type N9223372036854775807 = NInt; +pub type U9223372036854775808 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type U10000 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B0>, B0>, B1>, B1>, B1>, + B0, + >, + B0, + >, + B0, + >, + B1, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P10000 = PInt; +pub type N10000 = NInt; +pub type U100000 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B1>, B0>, B0>, + B0, + >, + B0, + >, + B1, + >, + B1, + >, + B0, + >, + B1, + >, + B0, + >, + B1, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P100000 = PInt; +pub type N100000 = NInt; +pub type U1000000 = UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt< + UInt, B1>, + B1, + >, + B1, + >, + B0, + >, + B1, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B1, + >, + B0, + >, + B0, + >, + B1, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, + >, + B0, +>; +pub type P1000000 = PInt; +pub type N1000000 = NInt; +pub type U10000000 = UInt, B0>, B0>, B1>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P10000000 = PInt; +pub type N10000000 = NInt; +pub type U100000000 = UInt, B0>, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B1>, B1>, B1>, B1>, B0>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P100000000 = PInt; +pub type N100000000 = NInt; +pub type U1000000000 = UInt, B1>, B1>, B0>, B1>, B1>, B1>, B0>, B0>, B1>, B1>, B0>, B1>, B0>, B1>, B1>, B0>, B0>, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P1000000000 = PInt; +pub type N1000000000 = NInt; +pub type U10000000000 = UInt, B0>, B0>, B1>, B0>, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B1>, B0>, B1>, B1>, B1>, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P10000000000 = PInt; +pub type N10000000000 = NInt; +pub type U100000000000 = UInt, B0>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B1>, B1>, B1>, B0>, B1>, B1>, B0>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P100000000000 = PInt; +pub type N100000000000 = NInt; +pub type U1000000000000 = UInt, B1>, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B1>, B0>, B1>, B0>, B0>, B1>, B0>, B1>, B0>, B0>, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P1000000000000 = PInt; +pub type N1000000000000 = NInt; +pub type U10000000000000 = UInt, B0>, B0>, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B0>, B0>, B0>, B1>, B0>, B0>, B1>, B1>, B1>, B0>, B0>, B1>, B1>, B1>, B0>, B0>, B1>, B0>, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P10000000000000 = PInt; +pub type N10000000000000 = NInt; +pub type U100000000000000 = UInt, B0>, B1>, B1>, B0>, B1>, B0>, B1>, B1>, B1>, B1>, B0>, B0>, B1>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P100000000000000 = PInt; +pub type N100000000000000 = NInt; +pub type U1000000000000000 = UInt, B1>, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B1>, B0>, B1>, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B1>, B0>, B0>, B1>, B0>, B0>, B1>, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P1000000000000000 = PInt; +pub type N1000000000000000 = NInt; +pub type U10000000000000000 = UInt, B0>, B0>, B0>, B1>, B1>, B1>, B0>, B0>, B0>, B0>, B1>, B1>, B0>, B1>, B1>, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B1>, B1>, B0>, B1>, B1>, B1>, B1>, B1>, B1>, B0>, B0>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P10000000000000000 = PInt; +pub type N10000000000000000 = NInt; +pub type U100000000000000000 = UInt, B0>, B1>, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B1>, B0>, B1>, B1>, B1>, B1>, B0>, B0>, B0>, B0>, B1>, B0>, B1>, B1>, B1>, B0>, B1>, B1>, B0>, B0>, B0>, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P100000000000000000 = PInt; +pub type N100000000000000000 = NInt; +pub type U1000000000000000000 = UInt, B1>, B0>, B1>, B1>, B1>, B1>, B0>, B0>, B0>, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B1>, B1>, B0>, B1>, B0>, B1>, B1>, B0>, B0>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B1>, B1>, B1>, B0>, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; +pub type P1000000000000000000 = PInt; +pub type N1000000000000000000 = NInt; +pub type U10000000000000000000 = UInt, B0>, B0>, B0>, B1>, B0>, B1>, B0>, B1>, B1>, B0>, B0>, B0>, B1>, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B0>, B0>, B0>, B0>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/gen/generic_const_mappings.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/gen/generic_const_mappings.rs new file mode 100644 index 0000000000000000000000000000000000000000..d0028e0af487ec5ff6dc7209118d327cfa6eb3dc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/gen/generic_const_mappings.rs @@ -0,0 +1,4758 @@ +// THIS IS GENERATED CODE +//! Module with some `const`-generics-friendly definitions, to help bridge the gap +//! between those and `typenum` types. +//! +//! - It requires the `const-generics` crate feature to be enabled. +//! +//! The main type to use here is [`U`], although [`Const`] and [`ToUInt`] may be needed +//! in a generic context. + +use crate::*; + +/// The main mapping from a generic `const: usize` to a [`UInt`]: [`U`] is expected to work like [`UN`]. +/// +/// - It requires the `const-generics` crate feature to be enabled. +/// +/// [`U`]: `U` +/// [`UN`]: `U42` +/// +/// # Example +/// +/// ```rust +/// use typenum::*; +/// +/// assert_type_eq!(U<42>, U42); +/// ``` +/// +/// This can even be used in a generic `const N: usize` context, provided the +/// genericity is guarded by a `where` clause: +/// +/// ```rust +/// use typenum::*; +/// +/// struct MyStruct; +/// +/// trait MyTrait { type AssocType; } +/// +/// impl MyTrait +/// for MyStruct +/// where +/// Const : ToUInt, +/// { +/// type AssocType = U; +/// } +/// +/// assert_type_eq!( as MyTrait>::AssocType, U42); +/// ``` +pub type U = as ToUInt>::Output; + +/// Used to allow the usage of [`U`] in a generic context. +pub struct Const; + +/// Used to allow the usage of [`U`] in a generic context. +pub trait ToUInt { + /// The [`UN`][`crate::U42`] type corresponding to `Self = Const`. + type Output; +} + +impl ToUInt for Const<0> { + type Output = U0; +} + +impl ToUInt for Const<1> { + type Output = U1; +} + +impl ToUInt for Const<2> { + type Output = U2; +} + +impl ToUInt for Const<3> { + type Output = U3; +} + +impl ToUInt for Const<4> { + type Output = U4; +} + +impl ToUInt for Const<5> { + type Output = U5; +} + +impl ToUInt for Const<6> { + type Output = U6; +} + +impl ToUInt for Const<7> { + type Output = U7; +} + +impl ToUInt for Const<8> { + type Output = U8; +} + +impl ToUInt for Const<9> { + type Output = U9; +} + +impl ToUInt for Const<10> { + type Output = U10; +} + +impl ToUInt for Const<11> { + type Output = U11; +} + +impl ToUInt for Const<12> { + type Output = U12; +} + +impl ToUInt for Const<13> { + type Output = U13; +} + +impl ToUInt for Const<14> { + type Output = U14; +} + +impl ToUInt for Const<15> { + type Output = U15; +} + +impl ToUInt for Const<16> { + type Output = U16; +} + +impl ToUInt for Const<17> { + type Output = U17; +} + +impl ToUInt for Const<18> { + type Output = U18; +} + +impl ToUInt for Const<19> { + type Output = U19; +} + +impl ToUInt for Const<20> { + type Output = U20; +} + +impl ToUInt for Const<21> { + type Output = U21; +} + +impl ToUInt for Const<22> { + type Output = U22; +} + +impl ToUInt for Const<23> { + type Output = U23; +} + +impl ToUInt for Const<24> { + type Output = U24; +} + +impl ToUInt for Const<25> { + type Output = U25; +} + +impl ToUInt for Const<26> { + type Output = U26; +} + +impl ToUInt for Const<27> { + type Output = U27; +} + +impl ToUInt for Const<28> { + type Output = U28; +} + +impl ToUInt for Const<29> { + type Output = U29; +} + +impl ToUInt for Const<30> { + type Output = U30; +} + +impl ToUInt for Const<31> { + type Output = U31; +} + +impl ToUInt for Const<32> { + type Output = U32; +} + +impl ToUInt for Const<33> { + type Output = U33; +} + +impl ToUInt for Const<34> { + type Output = U34; +} + +impl ToUInt for Const<35> { + type Output = U35; +} + +impl ToUInt for Const<36> { + type Output = U36; +} + +impl ToUInt for Const<37> { + type Output = U37; +} + +impl ToUInt for Const<38> { + type Output = U38; +} + +impl ToUInt for Const<39> { + type Output = U39; +} + +impl ToUInt for Const<40> { + type Output = U40; +} + +impl ToUInt for Const<41> { + type Output = U41; +} + +impl ToUInt for Const<42> { + type Output = U42; +} + +impl ToUInt for Const<43> { + type Output = U43; +} + +impl ToUInt for Const<44> { + type Output = U44; +} + +impl ToUInt for Const<45> { + type Output = U45; +} + +impl ToUInt for Const<46> { + type Output = U46; +} + +impl ToUInt for Const<47> { + type Output = U47; +} + +impl ToUInt for Const<48> { + type Output = U48; +} + +impl ToUInt for Const<49> { + type Output = U49; +} + +impl ToUInt for Const<50> { + type Output = U50; +} + +impl ToUInt for Const<51> { + type Output = U51; +} + +impl ToUInt for Const<52> { + type Output = U52; +} + +impl ToUInt for Const<53> { + type Output = U53; +} + +impl ToUInt for Const<54> { + type Output = U54; +} + +impl ToUInt for Const<55> { + type Output = U55; +} + +impl ToUInt for Const<56> { + type Output = U56; +} + +impl ToUInt for Const<57> { + type Output = U57; +} + +impl ToUInt for Const<58> { + type Output = U58; +} + +impl ToUInt for Const<59> { + type Output = U59; +} + +impl ToUInt for Const<60> { + type Output = U60; +} + +impl ToUInt for Const<61> { + type Output = U61; +} + +impl ToUInt for Const<62> { + type Output = U62; +} + +impl ToUInt for Const<63> { + type Output = U63; +} + +impl ToUInt for Const<64> { + type Output = U64; +} + +impl ToUInt for Const<65> { + type Output = U65; +} + +impl ToUInt for Const<66> { + type Output = U66; +} + +impl ToUInt for Const<67> { + type Output = U67; +} + +impl ToUInt for Const<68> { + type Output = U68; +} + +impl ToUInt for Const<69> { + type Output = U69; +} + +impl ToUInt for Const<70> { + type Output = U70; +} + +impl ToUInt for Const<71> { + type Output = U71; +} + +impl ToUInt for Const<72> { + type Output = U72; +} + +impl ToUInt for Const<73> { + type Output = U73; +} + +impl ToUInt for Const<74> { + type Output = U74; +} + +impl ToUInt for Const<75> { + type Output = U75; +} + +impl ToUInt for Const<76> { + type Output = U76; +} + +impl ToUInt for Const<77> { + type Output = U77; +} + +impl ToUInt for Const<78> { + type Output = U78; +} + +impl ToUInt for Const<79> { + type Output = U79; +} + +impl ToUInt for Const<80> { + type Output = U80; +} + +impl ToUInt for Const<81> { + type Output = U81; +} + +impl ToUInt for Const<82> { + type Output = U82; +} + +impl ToUInt for Const<83> { + type Output = U83; +} + +impl ToUInt for Const<84> { + type Output = U84; +} + +impl ToUInt for Const<85> { + type Output = U85; +} + +impl ToUInt for Const<86> { + type Output = U86; +} + +impl ToUInt for Const<87> { + type Output = U87; +} + +impl ToUInt for Const<88> { + type Output = U88; +} + +impl ToUInt for Const<89> { + type Output = U89; +} + +impl ToUInt for Const<90> { + type Output = U90; +} + +impl ToUInt for Const<91> { + type Output = U91; +} + +impl ToUInt for Const<92> { + type Output = U92; +} + +impl ToUInt for Const<93> { + type Output = U93; +} + +impl ToUInt for Const<94> { + type Output = U94; +} + +impl ToUInt for Const<95> { + type Output = U95; +} + +impl ToUInt for Const<96> { + type Output = U96; +} + +impl ToUInt for Const<97> { + type Output = U97; +} + +impl ToUInt for Const<98> { + type Output = U98; +} + +impl ToUInt for Const<99> { + type Output = U99; +} + +impl ToUInt for Const<100> { + type Output = U100; +} + +impl ToUInt for Const<101> { + type Output = U101; +} + +impl ToUInt for Const<102> { + type Output = U102; +} + +impl ToUInt for Const<103> { + type Output = U103; +} + +impl ToUInt for Const<104> { + type Output = U104; +} + +impl ToUInt for Const<105> { + type Output = U105; +} + +impl ToUInt for Const<106> { + type Output = U106; +} + +impl ToUInt for Const<107> { + type Output = U107; +} + +impl ToUInt for Const<108> { + type Output = U108; +} + +impl ToUInt for Const<109> { + type Output = U109; +} + +impl ToUInt for Const<110> { + type Output = U110; +} + +impl ToUInt for Const<111> { + type Output = U111; +} + +impl ToUInt for Const<112> { + type Output = U112; +} + +impl ToUInt for Const<113> { + type Output = U113; +} + +impl ToUInt for Const<114> { + type Output = U114; +} + +impl ToUInt for Const<115> { + type Output = U115; +} + +impl ToUInt for Const<116> { + type Output = U116; +} + +impl ToUInt for Const<117> { + type Output = U117; +} + +impl ToUInt for Const<118> { + type Output = U118; +} + +impl ToUInt for Const<119> { + type Output = U119; +} + +impl ToUInt for Const<120> { + type Output = U120; +} + +impl ToUInt for Const<121> { + type Output = U121; +} + +impl ToUInt for Const<122> { + type Output = U122; +} + +impl ToUInt for Const<123> { + type Output = U123; +} + +impl ToUInt for Const<124> { + type Output = U124; +} + +impl ToUInt for Const<125> { + type Output = U125; +} + +impl ToUInt for Const<126> { + type Output = U126; +} + +impl ToUInt for Const<127> { + type Output = U127; +} + +impl ToUInt for Const<128> { + type Output = U128; +} + +impl ToUInt for Const<129> { + type Output = U129; +} + +impl ToUInt for Const<130> { + type Output = U130; +} + +impl ToUInt for Const<131> { + type Output = U131; +} + +impl ToUInt for Const<132> { + type Output = U132; +} + +impl ToUInt for Const<133> { + type Output = U133; +} + +impl ToUInt for Const<134> { + type Output = U134; +} + +impl ToUInt for Const<135> { + type Output = U135; +} + +impl ToUInt for Const<136> { + type Output = U136; +} + +impl ToUInt for Const<137> { + type Output = U137; +} + +impl ToUInt for Const<138> { + type Output = U138; +} + +impl ToUInt for Const<139> { + type Output = U139; +} + +impl ToUInt for Const<140> { + type Output = U140; +} + +impl ToUInt for Const<141> { + type Output = U141; +} + +impl ToUInt for Const<142> { + type Output = U142; +} + +impl ToUInt for Const<143> { + type Output = U143; +} + +impl ToUInt for Const<144> { + type Output = U144; +} + +impl ToUInt for Const<145> { + type Output = U145; +} + +impl ToUInt for Const<146> { + type Output = U146; +} + +impl ToUInt for Const<147> { + type Output = U147; +} + +impl ToUInt for Const<148> { + type Output = U148; +} + +impl ToUInt for Const<149> { + type Output = U149; +} + +impl ToUInt for Const<150> { + type Output = U150; +} + +impl ToUInt for Const<151> { + type Output = U151; +} + +impl ToUInt for Const<152> { + type Output = U152; +} + +impl ToUInt for Const<153> { + type Output = U153; +} + +impl ToUInt for Const<154> { + type Output = U154; +} + +impl ToUInt for Const<155> { + type Output = U155; +} + +impl ToUInt for Const<156> { + type Output = U156; +} + +impl ToUInt for Const<157> { + type Output = U157; +} + +impl ToUInt for Const<158> { + type Output = U158; +} + +impl ToUInt for Const<159> { + type Output = U159; +} + +impl ToUInt for Const<160> { + type Output = U160; +} + +impl ToUInt for Const<161> { + type Output = U161; +} + +impl ToUInt for Const<162> { + type Output = U162; +} + +impl ToUInt for Const<163> { + type Output = U163; +} + +impl ToUInt for Const<164> { + type Output = U164; +} + +impl ToUInt for Const<165> { + type Output = U165; +} + +impl ToUInt for Const<166> { + type Output = U166; +} + +impl ToUInt for Const<167> { + type Output = U167; +} + +impl ToUInt for Const<168> { + type Output = U168; +} + +impl ToUInt for Const<169> { + type Output = U169; +} + +impl ToUInt for Const<170> { + type Output = U170; +} + +impl ToUInt for Const<171> { + type Output = U171; +} + +impl ToUInt for Const<172> { + type Output = U172; +} + +impl ToUInt for Const<173> { + type Output = U173; +} + +impl ToUInt for Const<174> { + type Output = U174; +} + +impl ToUInt for Const<175> { + type Output = U175; +} + +impl ToUInt for Const<176> { + type Output = U176; +} + +impl ToUInt for Const<177> { + type Output = U177; +} + +impl ToUInt for Const<178> { + type Output = U178; +} + +impl ToUInt for Const<179> { + type Output = U179; +} + +impl ToUInt for Const<180> { + type Output = U180; +} + +impl ToUInt for Const<181> { + type Output = U181; +} + +impl ToUInt for Const<182> { + type Output = U182; +} + +impl ToUInt for Const<183> { + type Output = U183; +} + +impl ToUInt for Const<184> { + type Output = U184; +} + +impl ToUInt for Const<185> { + type Output = U185; +} + +impl ToUInt for Const<186> { + type Output = U186; +} + +impl ToUInt for Const<187> { + type Output = U187; +} + +impl ToUInt for Const<188> { + type Output = U188; +} + +impl ToUInt for Const<189> { + type Output = U189; +} + +impl ToUInt for Const<190> { + type Output = U190; +} + +impl ToUInt for Const<191> { + type Output = U191; +} + +impl ToUInt for Const<192> { + type Output = U192; +} + +impl ToUInt for Const<193> { + type Output = U193; +} + +impl ToUInt for Const<194> { + type Output = U194; +} + +impl ToUInt for Const<195> { + type Output = U195; +} + +impl ToUInt for Const<196> { + type Output = U196; +} + +impl ToUInt for Const<197> { + type Output = U197; +} + +impl ToUInt for Const<198> { + type Output = U198; +} + +impl ToUInt for Const<199> { + type Output = U199; +} + +impl ToUInt for Const<200> { + type Output = U200; +} + +impl ToUInt for Const<201> { + type Output = U201; +} + +impl ToUInt for Const<202> { + type Output = U202; +} + +impl ToUInt for Const<203> { + type Output = U203; +} + +impl ToUInt for Const<204> { + type Output = U204; +} + +impl ToUInt for Const<205> { + type Output = U205; +} + +impl ToUInt for Const<206> { + type Output = U206; +} + +impl ToUInt for Const<207> { + type Output = U207; +} + +impl ToUInt for Const<208> { + type Output = U208; +} + +impl ToUInt for Const<209> { + type Output = U209; +} + +impl ToUInt for Const<210> { + type Output = U210; +} + +impl ToUInt for Const<211> { + type Output = U211; +} + +impl ToUInt for Const<212> { + type Output = U212; +} + +impl ToUInt for Const<213> { + type Output = U213; +} + +impl ToUInt for Const<214> { + type Output = U214; +} + +impl ToUInt for Const<215> { + type Output = U215; +} + +impl ToUInt for Const<216> { + type Output = U216; +} + +impl ToUInt for Const<217> { + type Output = U217; +} + +impl ToUInt for Const<218> { + type Output = U218; +} + +impl ToUInt for Const<219> { + type Output = U219; +} + +impl ToUInt for Const<220> { + type Output = U220; +} + +impl ToUInt for Const<221> { + type Output = U221; +} + +impl ToUInt for Const<222> { + type Output = U222; +} + +impl ToUInt for Const<223> { + type Output = U223; +} + +impl ToUInt for Const<224> { + type Output = U224; +} + +impl ToUInt for Const<225> { + type Output = U225; +} + +impl ToUInt for Const<226> { + type Output = U226; +} + +impl ToUInt for Const<227> { + type Output = U227; +} + +impl ToUInt for Const<228> { + type Output = U228; +} + +impl ToUInt for Const<229> { + type Output = U229; +} + +impl ToUInt for Const<230> { + type Output = U230; +} + +impl ToUInt for Const<231> { + type Output = U231; +} + +impl ToUInt for Const<232> { + type Output = U232; +} + +impl ToUInt for Const<233> { + type Output = U233; +} + +impl ToUInt for Const<234> { + type Output = U234; +} + +impl ToUInt for Const<235> { + type Output = U235; +} + +impl ToUInt for Const<236> { + type Output = U236; +} + +impl ToUInt for Const<237> { + type Output = U237; +} + +impl ToUInt for Const<238> { + type Output = U238; +} + +impl ToUInt for Const<239> { + type Output = U239; +} + +impl ToUInt for Const<240> { + type Output = U240; +} + +impl ToUInt for Const<241> { + type Output = U241; +} + +impl ToUInt for Const<242> { + type Output = U242; +} + +impl ToUInt for Const<243> { + type Output = U243; +} + +impl ToUInt for Const<244> { + type Output = U244; +} + +impl ToUInt for Const<245> { + type Output = U245; +} + +impl ToUInt for Const<246> { + type Output = U246; +} + +impl ToUInt for Const<247> { + type Output = U247; +} + +impl ToUInt for Const<248> { + type Output = U248; +} + +impl ToUInt for Const<249> { + type Output = U249; +} + +impl ToUInt for Const<250> { + type Output = U250; +} + +impl ToUInt for Const<251> { + type Output = U251; +} + +impl ToUInt for Const<252> { + type Output = U252; +} + +impl ToUInt for Const<253> { + type Output = U253; +} + +impl ToUInt for Const<254> { + type Output = U254; +} + +impl ToUInt for Const<255> { + type Output = U255; +} + +impl ToUInt for Const<256> { + type Output = U256; +} + +impl ToUInt for Const<257> { + type Output = U257; +} + +impl ToUInt for Const<258> { + type Output = U258; +} + +impl ToUInt for Const<259> { + type Output = U259; +} + +impl ToUInt for Const<260> { + type Output = U260; +} + +impl ToUInt for Const<261> { + type Output = U261; +} + +impl ToUInt for Const<262> { + type Output = U262; +} + +impl ToUInt for Const<263> { + type Output = U263; +} + +impl ToUInt for Const<264> { + type Output = U264; +} + +impl ToUInt for Const<265> { + type Output = U265; +} + +impl ToUInt for Const<266> { + type Output = U266; +} + +impl ToUInt for Const<267> { + type Output = U267; +} + +impl ToUInt for Const<268> { + type Output = U268; +} + +impl ToUInt for Const<269> { + type Output = U269; +} + +impl ToUInt for Const<270> { + type Output = U270; +} + +impl ToUInt for Const<271> { + type Output = U271; +} + +impl ToUInt for Const<272> { + type Output = U272; +} + +impl ToUInt for Const<273> { + type Output = U273; +} + +impl ToUInt for Const<274> { + type Output = U274; +} + +impl ToUInt for Const<275> { + type Output = U275; +} + +impl ToUInt for Const<276> { + type Output = U276; +} + +impl ToUInt for Const<277> { + type Output = U277; +} + +impl ToUInt for Const<278> { + type Output = U278; +} + +impl ToUInt for Const<279> { + type Output = U279; +} + +impl ToUInt for Const<280> { + type Output = U280; +} + +impl ToUInt for Const<281> { + type Output = U281; +} + +impl ToUInt for Const<282> { + type Output = U282; +} + +impl ToUInt for Const<283> { + type Output = U283; +} + +impl ToUInt for Const<284> { + type Output = U284; +} + +impl ToUInt for Const<285> { + type Output = U285; +} + +impl ToUInt for Const<286> { + type Output = U286; +} + +impl ToUInt for Const<287> { + type Output = U287; +} + +impl ToUInt for Const<288> { + type Output = U288; +} + +impl ToUInt for Const<289> { + type Output = U289; +} + +impl ToUInt for Const<290> { + type Output = U290; +} + +impl ToUInt for Const<291> { + type Output = U291; +} + +impl ToUInt for Const<292> { + type Output = U292; +} + +impl ToUInt for Const<293> { + type Output = U293; +} + +impl ToUInt for Const<294> { + type Output = U294; +} + +impl ToUInt for Const<295> { + type Output = U295; +} + +impl ToUInt for Const<296> { + type Output = U296; +} + +impl ToUInt for Const<297> { + type Output = U297; +} + +impl ToUInt for Const<298> { + type Output = U298; +} + +impl ToUInt for Const<299> { + type Output = U299; +} + +impl ToUInt for Const<300> { + type Output = U300; +} + +impl ToUInt for Const<301> { + type Output = U301; +} + +impl ToUInt for Const<302> { + type Output = U302; +} + +impl ToUInt for Const<303> { + type Output = U303; +} + +impl ToUInt for Const<304> { + type Output = U304; +} + +impl ToUInt for Const<305> { + type Output = U305; +} + +impl ToUInt for Const<306> { + type Output = U306; +} + +impl ToUInt for Const<307> { + type Output = U307; +} + +impl ToUInt for Const<308> { + type Output = U308; +} + +impl ToUInt for Const<309> { + type Output = U309; +} + +impl ToUInt for Const<310> { + type Output = U310; +} + +impl ToUInt for Const<311> { + type Output = U311; +} + +impl ToUInt for Const<312> { + type Output = U312; +} + +impl ToUInt for Const<313> { + type Output = U313; +} + +impl ToUInt for Const<314> { + type Output = U314; +} + +impl ToUInt for Const<315> { + type Output = U315; +} + +impl ToUInt for Const<316> { + type Output = U316; +} + +impl ToUInt for Const<317> { + type Output = U317; +} + +impl ToUInt for Const<318> { + type Output = U318; +} + +impl ToUInt for Const<319> { + type Output = U319; +} + +impl ToUInt for Const<320> { + type Output = U320; +} + +impl ToUInt for Const<321> { + type Output = U321; +} + +impl ToUInt for Const<322> { + type Output = U322; +} + +impl ToUInt for Const<323> { + type Output = U323; +} + +impl ToUInt for Const<324> { + type Output = U324; +} + +impl ToUInt for Const<325> { + type Output = U325; +} + +impl ToUInt for Const<326> { + type Output = U326; +} + +impl ToUInt for Const<327> { + type Output = U327; +} + +impl ToUInt for Const<328> { + type Output = U328; +} + +impl ToUInt for Const<329> { + type Output = U329; +} + +impl ToUInt for Const<330> { + type Output = U330; +} + +impl ToUInt for Const<331> { + type Output = U331; +} + +impl ToUInt for Const<332> { + type Output = U332; +} + +impl ToUInt for Const<333> { + type Output = U333; +} + +impl ToUInt for Const<334> { + type Output = U334; +} + +impl ToUInt for Const<335> { + type Output = U335; +} + +impl ToUInt for Const<336> { + type Output = U336; +} + +impl ToUInt for Const<337> { + type Output = U337; +} + +impl ToUInt for Const<338> { + type Output = U338; +} + +impl ToUInt for Const<339> { + type Output = U339; +} + +impl ToUInt for Const<340> { + type Output = U340; +} + +impl ToUInt for Const<341> { + type Output = U341; +} + +impl ToUInt for Const<342> { + type Output = U342; +} + +impl ToUInt for Const<343> { + type Output = U343; +} + +impl ToUInt for Const<344> { + type Output = U344; +} + +impl ToUInt for Const<345> { + type Output = U345; +} + +impl ToUInt for Const<346> { + type Output = U346; +} + +impl ToUInt for Const<347> { + type Output = U347; +} + +impl ToUInt for Const<348> { + type Output = U348; +} + +impl ToUInt for Const<349> { + type Output = U349; +} + +impl ToUInt for Const<350> { + type Output = U350; +} + +impl ToUInt for Const<351> { + type Output = U351; +} + +impl ToUInt for Const<352> { + type Output = U352; +} + +impl ToUInt for Const<353> { + type Output = U353; +} + +impl ToUInt for Const<354> { + type Output = U354; +} + +impl ToUInt for Const<355> { + type Output = U355; +} + +impl ToUInt for Const<356> { + type Output = U356; +} + +impl ToUInt for Const<357> { + type Output = U357; +} + +impl ToUInt for Const<358> { + type Output = U358; +} + +impl ToUInt for Const<359> { + type Output = U359; +} + +impl ToUInt for Const<360> { + type Output = U360; +} + +impl ToUInt for Const<361> { + type Output = U361; +} + +impl ToUInt for Const<362> { + type Output = U362; +} + +impl ToUInt for Const<363> { + type Output = U363; +} + +impl ToUInt for Const<364> { + type Output = U364; +} + +impl ToUInt for Const<365> { + type Output = U365; +} + +impl ToUInt for Const<366> { + type Output = U366; +} + +impl ToUInt for Const<367> { + type Output = U367; +} + +impl ToUInt for Const<368> { + type Output = U368; +} + +impl ToUInt for Const<369> { + type Output = U369; +} + +impl ToUInt for Const<370> { + type Output = U370; +} + +impl ToUInt for Const<371> { + type Output = U371; +} + +impl ToUInt for Const<372> { + type Output = U372; +} + +impl ToUInt for Const<373> { + type Output = U373; +} + +impl ToUInt for Const<374> { + type Output = U374; +} + +impl ToUInt for Const<375> { + type Output = U375; +} + +impl ToUInt for Const<376> { + type Output = U376; +} + +impl ToUInt for Const<377> { + type Output = U377; +} + +impl ToUInt for Const<378> { + type Output = U378; +} + +impl ToUInt for Const<379> { + type Output = U379; +} + +impl ToUInt for Const<380> { + type Output = U380; +} + +impl ToUInt for Const<381> { + type Output = U381; +} + +impl ToUInt for Const<382> { + type Output = U382; +} + +impl ToUInt for Const<383> { + type Output = U383; +} + +impl ToUInt for Const<384> { + type Output = U384; +} + +impl ToUInt for Const<385> { + type Output = U385; +} + +impl ToUInt for Const<386> { + type Output = U386; +} + +impl ToUInt for Const<387> { + type Output = U387; +} + +impl ToUInt for Const<388> { + type Output = U388; +} + +impl ToUInt for Const<389> { + type Output = U389; +} + +impl ToUInt for Const<390> { + type Output = U390; +} + +impl ToUInt for Const<391> { + type Output = U391; +} + +impl ToUInt for Const<392> { + type Output = U392; +} + +impl ToUInt for Const<393> { + type Output = U393; +} + +impl ToUInt for Const<394> { + type Output = U394; +} + +impl ToUInt for Const<395> { + type Output = U395; +} + +impl ToUInt for Const<396> { + type Output = U396; +} + +impl ToUInt for Const<397> { + type Output = U397; +} + +impl ToUInt for Const<398> { + type Output = U398; +} + +impl ToUInt for Const<399> { + type Output = U399; +} + +impl ToUInt for Const<400> { + type Output = U400; +} + +impl ToUInt for Const<401> { + type Output = U401; +} + +impl ToUInt for Const<402> { + type Output = U402; +} + +impl ToUInt for Const<403> { + type Output = U403; +} + +impl ToUInt for Const<404> { + type Output = U404; +} + +impl ToUInt for Const<405> { + type Output = U405; +} + +impl ToUInt for Const<406> { + type Output = U406; +} + +impl ToUInt for Const<407> { + type Output = U407; +} + +impl ToUInt for Const<408> { + type Output = U408; +} + +impl ToUInt for Const<409> { + type Output = U409; +} + +impl ToUInt for Const<410> { + type Output = U410; +} + +impl ToUInt for Const<411> { + type Output = U411; +} + +impl ToUInt for Const<412> { + type Output = U412; +} + +impl ToUInt for Const<413> { + type Output = U413; +} + +impl ToUInt for Const<414> { + type Output = U414; +} + +impl ToUInt for Const<415> { + type Output = U415; +} + +impl ToUInt for Const<416> { + type Output = U416; +} + +impl ToUInt for Const<417> { + type Output = U417; +} + +impl ToUInt for Const<418> { + type Output = U418; +} + +impl ToUInt for Const<419> { + type Output = U419; +} + +impl ToUInt for Const<420> { + type Output = U420; +} + +impl ToUInt for Const<421> { + type Output = U421; +} + +impl ToUInt for Const<422> { + type Output = U422; +} + +impl ToUInt for Const<423> { + type Output = U423; +} + +impl ToUInt for Const<424> { + type Output = U424; +} + +impl ToUInt for Const<425> { + type Output = U425; +} + +impl ToUInt for Const<426> { + type Output = U426; +} + +impl ToUInt for Const<427> { + type Output = U427; +} + +impl ToUInt for Const<428> { + type Output = U428; +} + +impl ToUInt for Const<429> { + type Output = U429; +} + +impl ToUInt for Const<430> { + type Output = U430; +} + +impl ToUInt for Const<431> { + type Output = U431; +} + +impl ToUInt for Const<432> { + type Output = U432; +} + +impl ToUInt for Const<433> { + type Output = U433; +} + +impl ToUInt for Const<434> { + type Output = U434; +} + +impl ToUInt for Const<435> { + type Output = U435; +} + +impl ToUInt for Const<436> { + type Output = U436; +} + +impl ToUInt for Const<437> { + type Output = U437; +} + +impl ToUInt for Const<438> { + type Output = U438; +} + +impl ToUInt for Const<439> { + type Output = U439; +} + +impl ToUInt for Const<440> { + type Output = U440; +} + +impl ToUInt for Const<441> { + type Output = U441; +} + +impl ToUInt for Const<442> { + type Output = U442; +} + +impl ToUInt for Const<443> { + type Output = U443; +} + +impl ToUInt for Const<444> { + type Output = U444; +} + +impl ToUInt for Const<445> { + type Output = U445; +} + +impl ToUInt for Const<446> { + type Output = U446; +} + +impl ToUInt for Const<447> { + type Output = U447; +} + +impl ToUInt for Const<448> { + type Output = U448; +} + +impl ToUInt for Const<449> { + type Output = U449; +} + +impl ToUInt for Const<450> { + type Output = U450; +} + +impl ToUInt for Const<451> { + type Output = U451; +} + +impl ToUInt for Const<452> { + type Output = U452; +} + +impl ToUInt for Const<453> { + type Output = U453; +} + +impl ToUInt for Const<454> { + type Output = U454; +} + +impl ToUInt for Const<455> { + type Output = U455; +} + +impl ToUInt for Const<456> { + type Output = U456; +} + +impl ToUInt for Const<457> { + type Output = U457; +} + +impl ToUInt for Const<458> { + type Output = U458; +} + +impl ToUInt for Const<459> { + type Output = U459; +} + +impl ToUInt for Const<460> { + type Output = U460; +} + +impl ToUInt for Const<461> { + type Output = U461; +} + +impl ToUInt for Const<462> { + type Output = U462; +} + +impl ToUInt for Const<463> { + type Output = U463; +} + +impl ToUInt for Const<464> { + type Output = U464; +} + +impl ToUInt for Const<465> { + type Output = U465; +} + +impl ToUInt for Const<466> { + type Output = U466; +} + +impl ToUInt for Const<467> { + type Output = U467; +} + +impl ToUInt for Const<468> { + type Output = U468; +} + +impl ToUInt for Const<469> { + type Output = U469; +} + +impl ToUInt for Const<470> { + type Output = U470; +} + +impl ToUInt for Const<471> { + type Output = U471; +} + +impl ToUInt for Const<472> { + type Output = U472; +} + +impl ToUInt for Const<473> { + type Output = U473; +} + +impl ToUInt for Const<474> { + type Output = U474; +} + +impl ToUInt for Const<475> { + type Output = U475; +} + +impl ToUInt for Const<476> { + type Output = U476; +} + +impl ToUInt for Const<477> { + type Output = U477; +} + +impl ToUInt for Const<478> { + type Output = U478; +} + +impl ToUInt for Const<479> { + type Output = U479; +} + +impl ToUInt for Const<480> { + type Output = U480; +} + +impl ToUInt for Const<481> { + type Output = U481; +} + +impl ToUInt for Const<482> { + type Output = U482; +} + +impl ToUInt for Const<483> { + type Output = U483; +} + +impl ToUInt for Const<484> { + type Output = U484; +} + +impl ToUInt for Const<485> { + type Output = U485; +} + +impl ToUInt for Const<486> { + type Output = U486; +} + +impl ToUInt for Const<487> { + type Output = U487; +} + +impl ToUInt for Const<488> { + type Output = U488; +} + +impl ToUInt for Const<489> { + type Output = U489; +} + +impl ToUInt for Const<490> { + type Output = U490; +} + +impl ToUInt for Const<491> { + type Output = U491; +} + +impl ToUInt for Const<492> { + type Output = U492; +} + +impl ToUInt for Const<493> { + type Output = U493; +} + +impl ToUInt for Const<494> { + type Output = U494; +} + +impl ToUInt for Const<495> { + type Output = U495; +} + +impl ToUInt for Const<496> { + type Output = U496; +} + +impl ToUInt for Const<497> { + type Output = U497; +} + +impl ToUInt for Const<498> { + type Output = U498; +} + +impl ToUInt for Const<499> { + type Output = U499; +} + +impl ToUInt for Const<500> { + type Output = U500; +} + +impl ToUInt for Const<501> { + type Output = U501; +} + +impl ToUInt for Const<502> { + type Output = U502; +} + +impl ToUInt for Const<503> { + type Output = U503; +} + +impl ToUInt for Const<504> { + type Output = U504; +} + +impl ToUInt for Const<505> { + type Output = U505; +} + +impl ToUInt for Const<506> { + type Output = U506; +} + +impl ToUInt for Const<507> { + type Output = U507; +} + +impl ToUInt for Const<508> { + type Output = U508; +} + +impl ToUInt for Const<509> { + type Output = U509; +} + +impl ToUInt for Const<510> { + type Output = U510; +} + +impl ToUInt for Const<511> { + type Output = U511; +} + +impl ToUInt for Const<512> { + type Output = U512; +} + +impl ToUInt for Const<513> { + type Output = U513; +} + +impl ToUInt for Const<514> { + type Output = U514; +} + +impl ToUInt for Const<515> { + type Output = U515; +} + +impl ToUInt for Const<516> { + type Output = U516; +} + +impl ToUInt for Const<517> { + type Output = U517; +} + +impl ToUInt for Const<518> { + type Output = U518; +} + +impl ToUInt for Const<519> { + type Output = U519; +} + +impl ToUInt for Const<520> { + type Output = U520; +} + +impl ToUInt for Const<521> { + type Output = U521; +} + +impl ToUInt for Const<522> { + type Output = U522; +} + +impl ToUInt for Const<523> { + type Output = U523; +} + +impl ToUInt for Const<524> { + type Output = U524; +} + +impl ToUInt for Const<525> { + type Output = U525; +} + +impl ToUInt for Const<526> { + type Output = U526; +} + +impl ToUInt for Const<527> { + type Output = U527; +} + +impl ToUInt for Const<528> { + type Output = U528; +} + +impl ToUInt for Const<529> { + type Output = U529; +} + +impl ToUInt for Const<530> { + type Output = U530; +} + +impl ToUInt for Const<531> { + type Output = U531; +} + +impl ToUInt for Const<532> { + type Output = U532; +} + +impl ToUInt for Const<533> { + type Output = U533; +} + +impl ToUInt for Const<534> { + type Output = U534; +} + +impl ToUInt for Const<535> { + type Output = U535; +} + +impl ToUInt for Const<536> { + type Output = U536; +} + +impl ToUInt for Const<537> { + type Output = U537; +} + +impl ToUInt for Const<538> { + type Output = U538; +} + +impl ToUInt for Const<539> { + type Output = U539; +} + +impl ToUInt for Const<540> { + type Output = U540; +} + +impl ToUInt for Const<541> { + type Output = U541; +} + +impl ToUInt for Const<542> { + type Output = U542; +} + +impl ToUInt for Const<543> { + type Output = U543; +} + +impl ToUInt for Const<544> { + type Output = U544; +} + +impl ToUInt for Const<545> { + type Output = U545; +} + +impl ToUInt for Const<546> { + type Output = U546; +} + +impl ToUInt for Const<547> { + type Output = U547; +} + +impl ToUInt for Const<548> { + type Output = U548; +} + +impl ToUInt for Const<549> { + type Output = U549; +} + +impl ToUInt for Const<550> { + type Output = U550; +} + +impl ToUInt for Const<551> { + type Output = U551; +} + +impl ToUInt for Const<552> { + type Output = U552; +} + +impl ToUInt for Const<553> { + type Output = U553; +} + +impl ToUInt for Const<554> { + type Output = U554; +} + +impl ToUInt for Const<555> { + type Output = U555; +} + +impl ToUInt for Const<556> { + type Output = U556; +} + +impl ToUInt for Const<557> { + type Output = U557; +} + +impl ToUInt for Const<558> { + type Output = U558; +} + +impl ToUInt for Const<559> { + type Output = U559; +} + +impl ToUInt for Const<560> { + type Output = U560; +} + +impl ToUInt for Const<561> { + type Output = U561; +} + +impl ToUInt for Const<562> { + type Output = U562; +} + +impl ToUInt for Const<563> { + type Output = U563; +} + +impl ToUInt for Const<564> { + type Output = U564; +} + +impl ToUInt for Const<565> { + type Output = U565; +} + +impl ToUInt for Const<566> { + type Output = U566; +} + +impl ToUInt for Const<567> { + type Output = U567; +} + +impl ToUInt for Const<568> { + type Output = U568; +} + +impl ToUInt for Const<569> { + type Output = U569; +} + +impl ToUInt for Const<570> { + type Output = U570; +} + +impl ToUInt for Const<571> { + type Output = U571; +} + +impl ToUInt for Const<572> { + type Output = U572; +} + +impl ToUInt for Const<573> { + type Output = U573; +} + +impl ToUInt for Const<574> { + type Output = U574; +} + +impl ToUInt for Const<575> { + type Output = U575; +} + +impl ToUInt for Const<576> { + type Output = U576; +} + +impl ToUInt for Const<577> { + type Output = U577; +} + +impl ToUInt for Const<578> { + type Output = U578; +} + +impl ToUInt for Const<579> { + type Output = U579; +} + +impl ToUInt for Const<580> { + type Output = U580; +} + +impl ToUInt for Const<581> { + type Output = U581; +} + +impl ToUInt for Const<582> { + type Output = U582; +} + +impl ToUInt for Const<583> { + type Output = U583; +} + +impl ToUInt for Const<584> { + type Output = U584; +} + +impl ToUInt for Const<585> { + type Output = U585; +} + +impl ToUInt for Const<586> { + type Output = U586; +} + +impl ToUInt for Const<587> { + type Output = U587; +} + +impl ToUInt for Const<588> { + type Output = U588; +} + +impl ToUInt for Const<589> { + type Output = U589; +} + +impl ToUInt for Const<590> { + type Output = U590; +} + +impl ToUInt for Const<591> { + type Output = U591; +} + +impl ToUInt for Const<592> { + type Output = U592; +} + +impl ToUInt for Const<593> { + type Output = U593; +} + +impl ToUInt for Const<594> { + type Output = U594; +} + +impl ToUInt for Const<595> { + type Output = U595; +} + +impl ToUInt for Const<596> { + type Output = U596; +} + +impl ToUInt for Const<597> { + type Output = U597; +} + +impl ToUInt for Const<598> { + type Output = U598; +} + +impl ToUInt for Const<599> { + type Output = U599; +} + +impl ToUInt for Const<600> { + type Output = U600; +} + +impl ToUInt for Const<601> { + type Output = U601; +} + +impl ToUInt for Const<602> { + type Output = U602; +} + +impl ToUInt for Const<603> { + type Output = U603; +} + +impl ToUInt for Const<604> { + type Output = U604; +} + +impl ToUInt for Const<605> { + type Output = U605; +} + +impl ToUInt for Const<606> { + type Output = U606; +} + +impl ToUInt for Const<607> { + type Output = U607; +} + +impl ToUInt for Const<608> { + type Output = U608; +} + +impl ToUInt for Const<609> { + type Output = U609; +} + +impl ToUInt for Const<610> { + type Output = U610; +} + +impl ToUInt for Const<611> { + type Output = U611; +} + +impl ToUInt for Const<612> { + type Output = U612; +} + +impl ToUInt for Const<613> { + type Output = U613; +} + +impl ToUInt for Const<614> { + type Output = U614; +} + +impl ToUInt for Const<615> { + type Output = U615; +} + +impl ToUInt for Const<616> { + type Output = U616; +} + +impl ToUInt for Const<617> { + type Output = U617; +} + +impl ToUInt for Const<618> { + type Output = U618; +} + +impl ToUInt for Const<619> { + type Output = U619; +} + +impl ToUInt for Const<620> { + type Output = U620; +} + +impl ToUInt for Const<621> { + type Output = U621; +} + +impl ToUInt for Const<622> { + type Output = U622; +} + +impl ToUInt for Const<623> { + type Output = U623; +} + +impl ToUInt for Const<624> { + type Output = U624; +} + +impl ToUInt for Const<625> { + type Output = U625; +} + +impl ToUInt for Const<626> { + type Output = U626; +} + +impl ToUInt for Const<627> { + type Output = U627; +} + +impl ToUInt for Const<628> { + type Output = U628; +} + +impl ToUInt for Const<629> { + type Output = U629; +} + +impl ToUInt for Const<630> { + type Output = U630; +} + +impl ToUInt for Const<631> { + type Output = U631; +} + +impl ToUInt for Const<632> { + type Output = U632; +} + +impl ToUInt for Const<633> { + type Output = U633; +} + +impl ToUInt for Const<634> { + type Output = U634; +} + +impl ToUInt for Const<635> { + type Output = U635; +} + +impl ToUInt for Const<636> { + type Output = U636; +} + +impl ToUInt for Const<637> { + type Output = U637; +} + +impl ToUInt for Const<638> { + type Output = U638; +} + +impl ToUInt for Const<639> { + type Output = U639; +} + +impl ToUInt for Const<640> { + type Output = U640; +} + +impl ToUInt for Const<641> { + type Output = U641; +} + +impl ToUInt for Const<642> { + type Output = U642; +} + +impl ToUInt for Const<643> { + type Output = U643; +} + +impl ToUInt for Const<644> { + type Output = U644; +} + +impl ToUInt for Const<645> { + type Output = U645; +} + +impl ToUInt for Const<646> { + type Output = U646; +} + +impl ToUInt for Const<647> { + type Output = U647; +} + +impl ToUInt for Const<648> { + type Output = U648; +} + +impl ToUInt for Const<649> { + type Output = U649; +} + +impl ToUInt for Const<650> { + type Output = U650; +} + +impl ToUInt for Const<651> { + type Output = U651; +} + +impl ToUInt for Const<652> { + type Output = U652; +} + +impl ToUInt for Const<653> { + type Output = U653; +} + +impl ToUInt for Const<654> { + type Output = U654; +} + +impl ToUInt for Const<655> { + type Output = U655; +} + +impl ToUInt for Const<656> { + type Output = U656; +} + +impl ToUInt for Const<657> { + type Output = U657; +} + +impl ToUInt for Const<658> { + type Output = U658; +} + +impl ToUInt for Const<659> { + type Output = U659; +} + +impl ToUInt for Const<660> { + type Output = U660; +} + +impl ToUInt for Const<661> { + type Output = U661; +} + +impl ToUInt for Const<662> { + type Output = U662; +} + +impl ToUInt for Const<663> { + type Output = U663; +} + +impl ToUInt for Const<664> { + type Output = U664; +} + +impl ToUInt for Const<665> { + type Output = U665; +} + +impl ToUInt for Const<666> { + type Output = U666; +} + +impl ToUInt for Const<667> { + type Output = U667; +} + +impl ToUInt for Const<668> { + type Output = U668; +} + +impl ToUInt for Const<669> { + type Output = U669; +} + +impl ToUInt for Const<670> { + type Output = U670; +} + +impl ToUInt for Const<671> { + type Output = U671; +} + +impl ToUInt for Const<672> { + type Output = U672; +} + +impl ToUInt for Const<673> { + type Output = U673; +} + +impl ToUInt for Const<674> { + type Output = U674; +} + +impl ToUInt for Const<675> { + type Output = U675; +} + +impl ToUInt for Const<676> { + type Output = U676; +} + +impl ToUInt for Const<677> { + type Output = U677; +} + +impl ToUInt for Const<678> { + type Output = U678; +} + +impl ToUInt for Const<679> { + type Output = U679; +} + +impl ToUInt for Const<680> { + type Output = U680; +} + +impl ToUInt for Const<681> { + type Output = U681; +} + +impl ToUInt for Const<682> { + type Output = U682; +} + +impl ToUInt for Const<683> { + type Output = U683; +} + +impl ToUInt for Const<684> { + type Output = U684; +} + +impl ToUInt for Const<685> { + type Output = U685; +} + +impl ToUInt for Const<686> { + type Output = U686; +} + +impl ToUInt for Const<687> { + type Output = U687; +} + +impl ToUInt for Const<688> { + type Output = U688; +} + +impl ToUInt for Const<689> { + type Output = U689; +} + +impl ToUInt for Const<690> { + type Output = U690; +} + +impl ToUInt for Const<691> { + type Output = U691; +} + +impl ToUInt for Const<692> { + type Output = U692; +} + +impl ToUInt for Const<693> { + type Output = U693; +} + +impl ToUInt for Const<694> { + type Output = U694; +} + +impl ToUInt for Const<695> { + type Output = U695; +} + +impl ToUInt for Const<696> { + type Output = U696; +} + +impl ToUInt for Const<697> { + type Output = U697; +} + +impl ToUInt for Const<698> { + type Output = U698; +} + +impl ToUInt for Const<699> { + type Output = U699; +} + +impl ToUInt for Const<700> { + type Output = U700; +} + +impl ToUInt for Const<701> { + type Output = U701; +} + +impl ToUInt for Const<702> { + type Output = U702; +} + +impl ToUInt for Const<703> { + type Output = U703; +} + +impl ToUInt for Const<704> { + type Output = U704; +} + +impl ToUInt for Const<705> { + type Output = U705; +} + +impl ToUInt for Const<706> { + type Output = U706; +} + +impl ToUInt for Const<707> { + type Output = U707; +} + +impl ToUInt for Const<708> { + type Output = U708; +} + +impl ToUInt for Const<709> { + type Output = U709; +} + +impl ToUInt for Const<710> { + type Output = U710; +} + +impl ToUInt for Const<711> { + type Output = U711; +} + +impl ToUInt for Const<712> { + type Output = U712; +} + +impl ToUInt for Const<713> { + type Output = U713; +} + +impl ToUInt for Const<714> { + type Output = U714; +} + +impl ToUInt for Const<715> { + type Output = U715; +} + +impl ToUInt for Const<716> { + type Output = U716; +} + +impl ToUInt for Const<717> { + type Output = U717; +} + +impl ToUInt for Const<718> { + type Output = U718; +} + +impl ToUInt for Const<719> { + type Output = U719; +} + +impl ToUInt for Const<720> { + type Output = U720; +} + +impl ToUInt for Const<721> { + type Output = U721; +} + +impl ToUInt for Const<722> { + type Output = U722; +} + +impl ToUInt for Const<723> { + type Output = U723; +} + +impl ToUInt for Const<724> { + type Output = U724; +} + +impl ToUInt for Const<725> { + type Output = U725; +} + +impl ToUInt for Const<726> { + type Output = U726; +} + +impl ToUInt for Const<727> { + type Output = U727; +} + +impl ToUInt for Const<728> { + type Output = U728; +} + +impl ToUInt for Const<729> { + type Output = U729; +} + +impl ToUInt for Const<730> { + type Output = U730; +} + +impl ToUInt for Const<731> { + type Output = U731; +} + +impl ToUInt for Const<732> { + type Output = U732; +} + +impl ToUInt for Const<733> { + type Output = U733; +} + +impl ToUInt for Const<734> { + type Output = U734; +} + +impl ToUInt for Const<735> { + type Output = U735; +} + +impl ToUInt for Const<736> { + type Output = U736; +} + +impl ToUInt for Const<737> { + type Output = U737; +} + +impl ToUInt for Const<738> { + type Output = U738; +} + +impl ToUInt for Const<739> { + type Output = U739; +} + +impl ToUInt for Const<740> { + type Output = U740; +} + +impl ToUInt for Const<741> { + type Output = U741; +} + +impl ToUInt for Const<742> { + type Output = U742; +} + +impl ToUInt for Const<743> { + type Output = U743; +} + +impl ToUInt for Const<744> { + type Output = U744; +} + +impl ToUInt for Const<745> { + type Output = U745; +} + +impl ToUInt for Const<746> { + type Output = U746; +} + +impl ToUInt for Const<747> { + type Output = U747; +} + +impl ToUInt for Const<748> { + type Output = U748; +} + +impl ToUInt for Const<749> { + type Output = U749; +} + +impl ToUInt for Const<750> { + type Output = U750; +} + +impl ToUInt for Const<751> { + type Output = U751; +} + +impl ToUInt for Const<752> { + type Output = U752; +} + +impl ToUInt for Const<753> { + type Output = U753; +} + +impl ToUInt for Const<754> { + type Output = U754; +} + +impl ToUInt for Const<755> { + type Output = U755; +} + +impl ToUInt for Const<756> { + type Output = U756; +} + +impl ToUInt for Const<757> { + type Output = U757; +} + +impl ToUInt for Const<758> { + type Output = U758; +} + +impl ToUInt for Const<759> { + type Output = U759; +} + +impl ToUInt for Const<760> { + type Output = U760; +} + +impl ToUInt for Const<761> { + type Output = U761; +} + +impl ToUInt for Const<762> { + type Output = U762; +} + +impl ToUInt for Const<763> { + type Output = U763; +} + +impl ToUInt for Const<764> { + type Output = U764; +} + +impl ToUInt for Const<765> { + type Output = U765; +} + +impl ToUInt for Const<766> { + type Output = U766; +} + +impl ToUInt for Const<767> { + type Output = U767; +} + +impl ToUInt for Const<768> { + type Output = U768; +} + +impl ToUInt for Const<769> { + type Output = U769; +} + +impl ToUInt for Const<770> { + type Output = U770; +} + +impl ToUInt for Const<771> { + type Output = U771; +} + +impl ToUInt for Const<772> { + type Output = U772; +} + +impl ToUInt for Const<773> { + type Output = U773; +} + +impl ToUInt for Const<774> { + type Output = U774; +} + +impl ToUInt for Const<775> { + type Output = U775; +} + +impl ToUInt for Const<776> { + type Output = U776; +} + +impl ToUInt for Const<777> { + type Output = U777; +} + +impl ToUInt for Const<778> { + type Output = U778; +} + +impl ToUInt for Const<779> { + type Output = U779; +} + +impl ToUInt for Const<780> { + type Output = U780; +} + +impl ToUInt for Const<781> { + type Output = U781; +} + +impl ToUInt for Const<782> { + type Output = U782; +} + +impl ToUInt for Const<783> { + type Output = U783; +} + +impl ToUInt for Const<784> { + type Output = U784; +} + +impl ToUInt for Const<785> { + type Output = U785; +} + +impl ToUInt for Const<786> { + type Output = U786; +} + +impl ToUInt for Const<787> { + type Output = U787; +} + +impl ToUInt for Const<788> { + type Output = U788; +} + +impl ToUInt for Const<789> { + type Output = U789; +} + +impl ToUInt for Const<790> { + type Output = U790; +} + +impl ToUInt for Const<791> { + type Output = U791; +} + +impl ToUInt for Const<792> { + type Output = U792; +} + +impl ToUInt for Const<793> { + type Output = U793; +} + +impl ToUInt for Const<794> { + type Output = U794; +} + +impl ToUInt for Const<795> { + type Output = U795; +} + +impl ToUInt for Const<796> { + type Output = U796; +} + +impl ToUInt for Const<797> { + type Output = U797; +} + +impl ToUInt for Const<798> { + type Output = U798; +} + +impl ToUInt for Const<799> { + type Output = U799; +} + +impl ToUInt for Const<800> { + type Output = U800; +} + +impl ToUInt for Const<801> { + type Output = U801; +} + +impl ToUInt for Const<802> { + type Output = U802; +} + +impl ToUInt for Const<803> { + type Output = U803; +} + +impl ToUInt for Const<804> { + type Output = U804; +} + +impl ToUInt for Const<805> { + type Output = U805; +} + +impl ToUInt for Const<806> { + type Output = U806; +} + +impl ToUInt for Const<807> { + type Output = U807; +} + +impl ToUInt for Const<808> { + type Output = U808; +} + +impl ToUInt for Const<809> { + type Output = U809; +} + +impl ToUInt for Const<810> { + type Output = U810; +} + +impl ToUInt for Const<811> { + type Output = U811; +} + +impl ToUInt for Const<812> { + type Output = U812; +} + +impl ToUInt for Const<813> { + type Output = U813; +} + +impl ToUInt for Const<814> { + type Output = U814; +} + +impl ToUInt for Const<815> { + type Output = U815; +} + +impl ToUInt for Const<816> { + type Output = U816; +} + +impl ToUInt for Const<817> { + type Output = U817; +} + +impl ToUInt for Const<818> { + type Output = U818; +} + +impl ToUInt for Const<819> { + type Output = U819; +} + +impl ToUInt for Const<820> { + type Output = U820; +} + +impl ToUInt for Const<821> { + type Output = U821; +} + +impl ToUInt for Const<822> { + type Output = U822; +} + +impl ToUInt for Const<823> { + type Output = U823; +} + +impl ToUInt for Const<824> { + type Output = U824; +} + +impl ToUInt for Const<825> { + type Output = U825; +} + +impl ToUInt for Const<826> { + type Output = U826; +} + +impl ToUInt for Const<827> { + type Output = U827; +} + +impl ToUInt for Const<828> { + type Output = U828; +} + +impl ToUInt for Const<829> { + type Output = U829; +} + +impl ToUInt for Const<830> { + type Output = U830; +} + +impl ToUInt for Const<831> { + type Output = U831; +} + +impl ToUInt for Const<832> { + type Output = U832; +} + +impl ToUInt for Const<833> { + type Output = U833; +} + +impl ToUInt for Const<834> { + type Output = U834; +} + +impl ToUInt for Const<835> { + type Output = U835; +} + +impl ToUInt for Const<836> { + type Output = U836; +} + +impl ToUInt for Const<837> { + type Output = U837; +} + +impl ToUInt for Const<838> { + type Output = U838; +} + +impl ToUInt for Const<839> { + type Output = U839; +} + +impl ToUInt for Const<840> { + type Output = U840; +} + +impl ToUInt for Const<841> { + type Output = U841; +} + +impl ToUInt for Const<842> { + type Output = U842; +} + +impl ToUInt for Const<843> { + type Output = U843; +} + +impl ToUInt for Const<844> { + type Output = U844; +} + +impl ToUInt for Const<845> { + type Output = U845; +} + +impl ToUInt for Const<846> { + type Output = U846; +} + +impl ToUInt for Const<847> { + type Output = U847; +} + +impl ToUInt for Const<848> { + type Output = U848; +} + +impl ToUInt for Const<849> { + type Output = U849; +} + +impl ToUInt for Const<850> { + type Output = U850; +} + +impl ToUInt for Const<851> { + type Output = U851; +} + +impl ToUInt for Const<852> { + type Output = U852; +} + +impl ToUInt for Const<853> { + type Output = U853; +} + +impl ToUInt for Const<854> { + type Output = U854; +} + +impl ToUInt for Const<855> { + type Output = U855; +} + +impl ToUInt for Const<856> { + type Output = U856; +} + +impl ToUInt for Const<857> { + type Output = U857; +} + +impl ToUInt for Const<858> { + type Output = U858; +} + +impl ToUInt for Const<859> { + type Output = U859; +} + +impl ToUInt for Const<860> { + type Output = U860; +} + +impl ToUInt for Const<861> { + type Output = U861; +} + +impl ToUInt for Const<862> { + type Output = U862; +} + +impl ToUInt for Const<863> { + type Output = U863; +} + +impl ToUInt for Const<864> { + type Output = U864; +} + +impl ToUInt for Const<865> { + type Output = U865; +} + +impl ToUInt for Const<866> { + type Output = U866; +} + +impl ToUInt for Const<867> { + type Output = U867; +} + +impl ToUInt for Const<868> { + type Output = U868; +} + +impl ToUInt for Const<869> { + type Output = U869; +} + +impl ToUInt for Const<870> { + type Output = U870; +} + +impl ToUInt for Const<871> { + type Output = U871; +} + +impl ToUInt for Const<872> { + type Output = U872; +} + +impl ToUInt for Const<873> { + type Output = U873; +} + +impl ToUInt for Const<874> { + type Output = U874; +} + +impl ToUInt for Const<875> { + type Output = U875; +} + +impl ToUInt for Const<876> { + type Output = U876; +} + +impl ToUInt for Const<877> { + type Output = U877; +} + +impl ToUInt for Const<878> { + type Output = U878; +} + +impl ToUInt for Const<879> { + type Output = U879; +} + +impl ToUInt for Const<880> { + type Output = U880; +} + +impl ToUInt for Const<881> { + type Output = U881; +} + +impl ToUInt for Const<882> { + type Output = U882; +} + +impl ToUInt for Const<883> { + type Output = U883; +} + +impl ToUInt for Const<884> { + type Output = U884; +} + +impl ToUInt for Const<885> { + type Output = U885; +} + +impl ToUInt for Const<886> { + type Output = U886; +} + +impl ToUInt for Const<887> { + type Output = U887; +} + +impl ToUInt for Const<888> { + type Output = U888; +} + +impl ToUInt for Const<889> { + type Output = U889; +} + +impl ToUInt for Const<890> { + type Output = U890; +} + +impl ToUInt for Const<891> { + type Output = U891; +} + +impl ToUInt for Const<892> { + type Output = U892; +} + +impl ToUInt for Const<893> { + type Output = U893; +} + +impl ToUInt for Const<894> { + type Output = U894; +} + +impl ToUInt for Const<895> { + type Output = U895; +} + +impl ToUInt for Const<896> { + type Output = U896; +} + +impl ToUInt for Const<897> { + type Output = U897; +} + +impl ToUInt for Const<898> { + type Output = U898; +} + +impl ToUInt for Const<899> { + type Output = U899; +} + +impl ToUInt for Const<900> { + type Output = U900; +} + +impl ToUInt for Const<901> { + type Output = U901; +} + +impl ToUInt for Const<902> { + type Output = U902; +} + +impl ToUInt for Const<903> { + type Output = U903; +} + +impl ToUInt for Const<904> { + type Output = U904; +} + +impl ToUInt for Const<905> { + type Output = U905; +} + +impl ToUInt for Const<906> { + type Output = U906; +} + +impl ToUInt for Const<907> { + type Output = U907; +} + +impl ToUInt for Const<908> { + type Output = U908; +} + +impl ToUInt for Const<909> { + type Output = U909; +} + +impl ToUInt for Const<910> { + type Output = U910; +} + +impl ToUInt for Const<911> { + type Output = U911; +} + +impl ToUInt for Const<912> { + type Output = U912; +} + +impl ToUInt for Const<913> { + type Output = U913; +} + +impl ToUInt for Const<914> { + type Output = U914; +} + +impl ToUInt for Const<915> { + type Output = U915; +} + +impl ToUInt for Const<916> { + type Output = U916; +} + +impl ToUInt for Const<917> { + type Output = U917; +} + +impl ToUInt for Const<918> { + type Output = U918; +} + +impl ToUInt for Const<919> { + type Output = U919; +} + +impl ToUInt for Const<920> { + type Output = U920; +} + +impl ToUInt for Const<921> { + type Output = U921; +} + +impl ToUInt for Const<922> { + type Output = U922; +} + +impl ToUInt for Const<923> { + type Output = U923; +} + +impl ToUInt for Const<924> { + type Output = U924; +} + +impl ToUInt for Const<925> { + type Output = U925; +} + +impl ToUInt for Const<926> { + type Output = U926; +} + +impl ToUInt for Const<927> { + type Output = U927; +} + +impl ToUInt for Const<928> { + type Output = U928; +} + +impl ToUInt for Const<929> { + type Output = U929; +} + +impl ToUInt for Const<930> { + type Output = U930; +} + +impl ToUInt for Const<931> { + type Output = U931; +} + +impl ToUInt for Const<932> { + type Output = U932; +} + +impl ToUInt for Const<933> { + type Output = U933; +} + +impl ToUInt for Const<934> { + type Output = U934; +} + +impl ToUInt for Const<935> { + type Output = U935; +} + +impl ToUInt for Const<936> { + type Output = U936; +} + +impl ToUInt for Const<937> { + type Output = U937; +} + +impl ToUInt for Const<938> { + type Output = U938; +} + +impl ToUInt for Const<939> { + type Output = U939; +} + +impl ToUInt for Const<940> { + type Output = U940; +} + +impl ToUInt for Const<941> { + type Output = U941; +} + +impl ToUInt for Const<942> { + type Output = U942; +} + +impl ToUInt for Const<943> { + type Output = U943; +} + +impl ToUInt for Const<944> { + type Output = U944; +} + +impl ToUInt for Const<945> { + type Output = U945; +} + +impl ToUInt for Const<946> { + type Output = U946; +} + +impl ToUInt for Const<947> { + type Output = U947; +} + +impl ToUInt for Const<948> { + type Output = U948; +} + +impl ToUInt for Const<949> { + type Output = U949; +} + +impl ToUInt for Const<950> { + type Output = U950; +} + +impl ToUInt for Const<951> { + type Output = U951; +} + +impl ToUInt for Const<952> { + type Output = U952; +} + +impl ToUInt for Const<953> { + type Output = U953; +} + +impl ToUInt for Const<954> { + type Output = U954; +} + +impl ToUInt for Const<955> { + type Output = U955; +} + +impl ToUInt for Const<956> { + type Output = U956; +} + +impl ToUInt for Const<957> { + type Output = U957; +} + +impl ToUInt for Const<958> { + type Output = U958; +} + +impl ToUInt for Const<959> { + type Output = U959; +} + +impl ToUInt for Const<960> { + type Output = U960; +} + +impl ToUInt for Const<961> { + type Output = U961; +} + +impl ToUInt for Const<962> { + type Output = U962; +} + +impl ToUInt for Const<963> { + type Output = U963; +} + +impl ToUInt for Const<964> { + type Output = U964; +} + +impl ToUInt for Const<965> { + type Output = U965; +} + +impl ToUInt for Const<966> { + type Output = U966; +} + +impl ToUInt for Const<967> { + type Output = U967; +} + +impl ToUInt for Const<968> { + type Output = U968; +} + +impl ToUInt for Const<969> { + type Output = U969; +} + +impl ToUInt for Const<970> { + type Output = U970; +} + +impl ToUInt for Const<971> { + type Output = U971; +} + +impl ToUInt for Const<972> { + type Output = U972; +} + +impl ToUInt for Const<973> { + type Output = U973; +} + +impl ToUInt for Const<974> { + type Output = U974; +} + +impl ToUInt for Const<975> { + type Output = U975; +} + +impl ToUInt for Const<976> { + type Output = U976; +} + +impl ToUInt for Const<977> { + type Output = U977; +} + +impl ToUInt for Const<978> { + type Output = U978; +} + +impl ToUInt for Const<979> { + type Output = U979; +} + +impl ToUInt for Const<980> { + type Output = U980; +} + +impl ToUInt for Const<981> { + type Output = U981; +} + +impl ToUInt for Const<982> { + type Output = U982; +} + +impl ToUInt for Const<983> { + type Output = U983; +} + +impl ToUInt for Const<984> { + type Output = U984; +} + +impl ToUInt for Const<985> { + type Output = U985; +} + +impl ToUInt for Const<986> { + type Output = U986; +} + +impl ToUInt for Const<987> { + type Output = U987; +} + +impl ToUInt for Const<988> { + type Output = U988; +} + +impl ToUInt for Const<989> { + type Output = U989; +} + +impl ToUInt for Const<990> { + type Output = U990; +} + +impl ToUInt for Const<991> { + type Output = U991; +} + +impl ToUInt for Const<992> { + type Output = U992; +} + +impl ToUInt for Const<993> { + type Output = U993; +} + +impl ToUInt for Const<994> { + type Output = U994; +} + +impl ToUInt for Const<995> { + type Output = U995; +} + +impl ToUInt for Const<996> { + type Output = U996; +} + +impl ToUInt for Const<997> { + type Output = U997; +} + +impl ToUInt for Const<998> { + type Output = U998; +} + +impl ToUInt for Const<999> { + type Output = U999; +} + +impl ToUInt for Const<1000> { + type Output = U1000; +} + +impl ToUInt for Const<1001> { + type Output = U1001; +} + +impl ToUInt for Const<1002> { + type Output = U1002; +} + +impl ToUInt for Const<1003> { + type Output = U1003; +} + +impl ToUInt for Const<1004> { + type Output = U1004; +} + +impl ToUInt for Const<1005> { + type Output = U1005; +} + +impl ToUInt for Const<1006> { + type Output = U1006; +} + +impl ToUInt for Const<1007> { + type Output = U1007; +} + +impl ToUInt for Const<1008> { + type Output = U1008; +} + +impl ToUInt for Const<1009> { + type Output = U1009; +} + +impl ToUInt for Const<1010> { + type Output = U1010; +} + +impl ToUInt for Const<1011> { + type Output = U1011; +} + +impl ToUInt for Const<1012> { + type Output = U1012; +} + +impl ToUInt for Const<1013> { + type Output = U1013; +} + +impl ToUInt for Const<1014> { + type Output = U1014; +} + +impl ToUInt for Const<1015> { + type Output = U1015; +} + +impl ToUInt for Const<1016> { + type Output = U1016; +} + +impl ToUInt for Const<1017> { + type Output = U1017; +} + +impl ToUInt for Const<1018> { + type Output = U1018; +} + +impl ToUInt for Const<1019> { + type Output = U1019; +} + +impl ToUInt for Const<1020> { + type Output = U1020; +} + +impl ToUInt for Const<1021> { + type Output = U1021; +} + +impl ToUInt for Const<1022> { + type Output = U1022; +} + +impl ToUInt for Const<1023> { + type Output = U1023; +} + +impl ToUInt for Const<1024> { + type Output = U1024; +} + +impl ToUInt for Const<3600> { + type Output = U3600; +} + +impl ToUInt for Const<2047> { + type Output = U2047; +} + +impl ToUInt for Const<2048> { + type Output = U2048; +} + +impl ToUInt for Const<4095> { + type Output = U4095; +} + +impl ToUInt for Const<4096> { + type Output = U4096; +} + +impl ToUInt for Const<8191> { + type Output = U8191; +} + +impl ToUInt for Const<8192> { + type Output = U8192; +} + +impl ToUInt for Const<16383> { + type Output = U16383; +} + +impl ToUInt for Const<16384> { + type Output = U16384; +} + +impl ToUInt for Const<32767> { + type Output = U32767; +} + +impl ToUInt for Const<32768> { + type Output = U32768; +} + +impl ToUInt for Const<65535> { + type Output = U65535; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<65536> { + type Output = U65536; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<131071> { + type Output = U131071; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<131072> { + type Output = U131072; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<262143> { + type Output = U262143; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<262144> { + type Output = U262144; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<524287> { + type Output = U524287; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<524288> { + type Output = U524288; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<1048575> { + type Output = U1048575; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<1048576> { + type Output = U1048576; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<2097151> { + type Output = U2097151; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<2097152> { + type Output = U2097152; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<4194303> { + type Output = U4194303; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<4194304> { + type Output = U4194304; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<8388607> { + type Output = U8388607; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<8388608> { + type Output = U8388608; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<16777215> { + type Output = U16777215; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<16777216> { + type Output = U16777216; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<33554431> { + type Output = U33554431; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<33554432> { + type Output = U33554432; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<67108863> { + type Output = U67108863; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<67108864> { + type Output = U67108864; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<134217727> { + type Output = U134217727; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<134217728> { + type Output = U134217728; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<268435455> { + type Output = U268435455; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<268435456> { + type Output = U268435456; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<536870911> { + type Output = U536870911; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<536870912> { + type Output = U536870912; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<1073741823> { + type Output = U1073741823; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<1073741824> { + type Output = U1073741824; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<2147483647> { + type Output = U2147483647; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<2147483648> { + type Output = U2147483648; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<4294967295> { + type Output = U4294967295; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<4294967296> { + type Output = U4294967296; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<8589934591> { + type Output = U8589934591; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<8589934592> { + type Output = U8589934592; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<17179869183> { + type Output = U17179869183; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<17179869184> { + type Output = U17179869184; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<34359738367> { + type Output = U34359738367; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<34359738368> { + type Output = U34359738368; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<68719476735> { + type Output = U68719476735; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<68719476736> { + type Output = U68719476736; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<137438953471> { + type Output = U137438953471; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<137438953472> { + type Output = U137438953472; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<274877906943> { + type Output = U274877906943; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<274877906944> { + type Output = U274877906944; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<549755813887> { + type Output = U549755813887; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<549755813888> { + type Output = U549755813888; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<1099511627775> { + type Output = U1099511627775; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<1099511627776> { + type Output = U1099511627776; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<2199023255551> { + type Output = U2199023255551; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<2199023255552> { + type Output = U2199023255552; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<4398046511103> { + type Output = U4398046511103; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<4398046511104> { + type Output = U4398046511104; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<8796093022207> { + type Output = U8796093022207; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<8796093022208> { + type Output = U8796093022208; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<17592186044415> { + type Output = U17592186044415; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<17592186044416> { + type Output = U17592186044416; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<35184372088831> { + type Output = U35184372088831; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<35184372088832> { + type Output = U35184372088832; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<70368744177663> { + type Output = U70368744177663; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<70368744177664> { + type Output = U70368744177664; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<140737488355327> { + type Output = U140737488355327; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<140737488355328> { + type Output = U140737488355328; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<281474976710655> { + type Output = U281474976710655; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<281474976710656> { + type Output = U281474976710656; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<562949953421311> { + type Output = U562949953421311; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<562949953421312> { + type Output = U562949953421312; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<1125899906842623> { + type Output = U1125899906842623; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<1125899906842624> { + type Output = U1125899906842624; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<2251799813685247> { + type Output = U2251799813685247; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<2251799813685248> { + type Output = U2251799813685248; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<4503599627370495> { + type Output = U4503599627370495; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<4503599627370496> { + type Output = U4503599627370496; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<9007199254740991> { + type Output = U9007199254740991; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<9007199254740992> { + type Output = U9007199254740992; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<18014398509481983> { + type Output = U18014398509481983; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<18014398509481984> { + type Output = U18014398509481984; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<36028797018963967> { + type Output = U36028797018963967; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<36028797018963968> { + type Output = U36028797018963968; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<72057594037927935> { + type Output = U72057594037927935; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<72057594037927936> { + type Output = U72057594037927936; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<144115188075855871> { + type Output = U144115188075855871; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<144115188075855872> { + type Output = U144115188075855872; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<288230376151711743> { + type Output = U288230376151711743; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<288230376151711744> { + type Output = U288230376151711744; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<576460752303423487> { + type Output = U576460752303423487; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<576460752303423488> { + type Output = U576460752303423488; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<1152921504606846975> { + type Output = U1152921504606846975; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<1152921504606846976> { + type Output = U1152921504606846976; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<2305843009213693951> { + type Output = U2305843009213693951; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<2305843009213693952> { + type Output = U2305843009213693952; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<4611686018427387903> { + type Output = U4611686018427387903; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<4611686018427387904> { + type Output = U4611686018427387904; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<9223372036854775807> { + type Output = U9223372036854775807; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<9223372036854775808> { + type Output = U9223372036854775808; +} + +impl ToUInt for Const<10000> { + type Output = U10000; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<100000> { + type Output = U100000; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<1000000> { + type Output = U1000000; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<10000000> { + type Output = U10000000; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<100000000> { + type Output = U100000000; +} + +#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))] +impl ToUInt for Const<1000000000> { + type Output = U1000000000; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<10000000000> { + type Output = U10000000000; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<100000000000> { + type Output = U100000000000; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<1000000000000> { + type Output = U1000000000000; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<10000000000000> { + type Output = U10000000000000; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<100000000000000> { + type Output = U100000000000000; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<1000000000000000> { + type Output = U1000000000000000; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<10000000000000000> { + type Output = U10000000000000000; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<100000000000000000> { + type Output = U100000000000000000; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<1000000000000000000> { + type Output = U1000000000000000000; +} + +#[cfg(target_pointer_width = "64")] +impl ToUInt for Const<10000000000000000000> { + type Output = U10000000000000000000; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/gen/op.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/gen/op.rs new file mode 100644 index 0000000000000000000000000000000000000000..15120a1310e0cfb0eeff1bb358b68c3712f22501 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/gen/op.rs @@ -0,0 +1,1030 @@ +// THIS IS GENERATED CODE +/** +Convenient type operations. + +Any types representing values must be able to be expressed as `ident`s. That means they need to be +in scope. + +For example, `P5` is okay, but `typenum::P5` is not. + +You may combine operators arbitrarily, although doing so excessively may require raising the +recursion limit. + +# Example +```rust +#![recursion_limit="128"] +#[macro_use] extern crate typenum; +use typenum::consts::*; + +fn main() { + assert_type!( + op!(min((P1 - P2) * (N3 + N7), P5 * (P3 + P4)) == P10) + ); +} +``` +Operators are evaluated based on the operator precedence outlined +[here](https://doc.rust-lang.org/reference.html#operator-precedence). + +The full list of supported operators and functions is as follows: + +`*`, `/`, `%`, `+`, `-`, `<<`, `>>`, `&`, `^`, `|`, `==`, `!=`, `<=`, `>=`, `<`, `>`, `cmp`, `sqr`, `sqrt`, `abs`, `cube`, `pow`, `min`, `max`, `log2`, `gcd` + +They all expand to type aliases defined in the `operator_aliases` module. Here is an expanded list, +including examples: + +--- +Operator `*`. Expands to `Prod`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(P2 * P3), P6); +# } +``` + +--- +Operator `/`. Expands to `Quot`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(P6 / P2), P3); +# } +``` + +--- +Operator `%`. Expands to `Mod`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(P5 % P3), P2); +# } +``` + +--- +Operator `+`. Expands to `Sum`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(P2 + P3), P5); +# } +``` + +--- +Operator `-`. Expands to `Diff`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(P2 - P3), N1); +# } +``` + +--- +Operator `<<`. Expands to `Shleft`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(U1 << U5), U32); +# } +``` + +--- +Operator `>>`. Expands to `Shright`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(U32 >> U5), U1); +# } +``` + +--- +Operator `&`. Expands to `And`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(U5 & U3), U1); +# } +``` + +--- +Operator `^`. Expands to `Xor`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(U5 ^ U3), U6); +# } +``` + +--- +Operator `|`. Expands to `Or`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(U5 | U3), U7); +# } +``` + +--- +Operator `==`. Expands to `Eq`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(P5 == P3 + P2), True); +# } +``` + +--- +Operator `!=`. Expands to `NotEq`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(P5 != P3 + P2), False); +# } +``` + +--- +Operator `<=`. Expands to `LeEq`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(P6 <= P3 + P2), False); +# } +``` + +--- +Operator `>=`. Expands to `GrEq`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(P6 >= P3 + P2), True); +# } +``` + +--- +Operator `<`. Expands to `Le`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(P4 < P3 + P2), True); +# } +``` + +--- +Operator `>`. Expands to `Gr`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(P5 < P3 + P2), False); +# } +``` + +--- +Operator `cmp`. Expands to `Compare`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(cmp(P2, P3)), Less); +# } +``` + +--- +Operator `sqr`. Expands to `Square`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(sqr(P2)), P4); +# } +``` + +--- +Operator `sqrt`. Expands to `Sqrt`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(sqrt(U9)), U3); +# } +``` + +--- +Operator `abs`. Expands to `AbsVal`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(abs(N2)), P2); +# } +``` + +--- +Operator `cube`. Expands to `Cube`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(cube(P2)), P8); +# } +``` + +--- +Operator `pow`. Expands to `Exp`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(pow(P2, P3)), P8); +# } +``` + +--- +Operator `min`. Expands to `Minimum`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(min(P2, P3)), P2); +# } +``` + +--- +Operator `max`. Expands to `Maximum`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(max(P2, P3)), P3); +# } +``` + +--- +Operator `log2`. Expands to `Log2`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(log2(U9)), U3); +# } +``` + +--- +Operator `gcd`. Expands to `Gcf`. + +```rust +# #[macro_use] extern crate typenum; +# use typenum::*; +# fn main() { +assert_type_eq!(op!(gcd(U9, U21)), U3); +# } +``` + +*/ +#[macro_export(local_inner_macros)] +macro_rules! op { + ($($tail:tt)*) => ( __op_internal__!($($tail)*) ); +} + +#[doc(hidden)] +#[macro_export(local_inner_macros)] +macro_rules! __op_internal__ { + +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: cmp $($tail:tt)*) => ( + __op_internal__!(@stack[Compare, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: sqr $($tail:tt)*) => ( + __op_internal__!(@stack[Square, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: sqrt $($tail:tt)*) => ( + __op_internal__!(@stack[Sqrt, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: abs $($tail:tt)*) => ( + __op_internal__!(@stack[AbsVal, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: cube $($tail:tt)*) => ( + __op_internal__!(@stack[Cube, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: pow $($tail:tt)*) => ( + __op_internal__!(@stack[Exp, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: min $($tail:tt)*) => ( + __op_internal__!(@stack[Minimum, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: max $($tail:tt)*) => ( + __op_internal__!(@stack[Maximum, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: log2 $($tail:tt)*) => ( + __op_internal__!(@stack[Log2, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: gcd $($tail:tt)*) => ( + __op_internal__!(@stack[Gcf, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[LParen, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: , $($tail:tt)*) => ( + __op_internal__!(@stack[LParen, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[$stack_top:ident, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: , $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[$stack_top, $($queue,)*] @tail: , $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: * $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: * $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: * $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: * $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: * $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: * $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: * $($tail:tt)*) => ( + __op_internal__!(@stack[Prod, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: / $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: / $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: / $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: / $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: / $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: / $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: / $($tail:tt)*) => ( + __op_internal__!(@stack[Quot, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: % $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: % $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: % $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: % $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: % $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: % $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: % $($tail:tt)*) => ( + __op_internal__!(@stack[Mod, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: + $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: + $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: + $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: + $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: + $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: + $($tail)*) +); +(@stack[Sum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: + $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sum, $($queue,)*] @tail: + $($tail)*) +); +(@stack[Diff, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: + $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Diff, $($queue,)*] @tail: + $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: + $($tail:tt)*) => ( + __op_internal__!(@stack[Sum, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: - $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: - $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: - $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: - $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: - $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: - $($tail)*) +); +(@stack[Sum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: - $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sum, $($queue,)*] @tail: - $($tail)*) +); +(@stack[Diff, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: - $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Diff, $($queue,)*] @tail: - $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: - $($tail:tt)*) => ( + __op_internal__!(@stack[Diff, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: << $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: << $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: << $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: << $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: << $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: << $($tail)*) +); +(@stack[Sum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: << $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sum, $($queue,)*] @tail: << $($tail)*) +); +(@stack[Diff, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: << $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Diff, $($queue,)*] @tail: << $($tail)*) +); +(@stack[Shleft, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: << $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shleft, $($queue,)*] @tail: << $($tail)*) +); +(@stack[Shright, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: << $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shright, $($queue,)*] @tail: << $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: << $($tail:tt)*) => ( + __op_internal__!(@stack[Shleft, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >> $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: >> $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >> $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: >> $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >> $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: >> $($tail)*) +); +(@stack[Sum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >> $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sum, $($queue,)*] @tail: >> $($tail)*) +); +(@stack[Diff, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >> $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Diff, $($queue,)*] @tail: >> $($tail)*) +); +(@stack[Shleft, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >> $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shleft, $($queue,)*] @tail: >> $($tail)*) +); +(@stack[Shright, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >> $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shright, $($queue,)*] @tail: >> $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >> $($tail:tt)*) => ( + __op_internal__!(@stack[Shright, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: & $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: & $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: & $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: & $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: & $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: & $($tail)*) +); +(@stack[Sum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: & $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sum, $($queue,)*] @tail: & $($tail)*) +); +(@stack[Diff, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: & $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Diff, $($queue,)*] @tail: & $($tail)*) +); +(@stack[Shleft, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: & $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shleft, $($queue,)*] @tail: & $($tail)*) +); +(@stack[Shright, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: & $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shright, $($queue,)*] @tail: & $($tail)*) +); +(@stack[And, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: & $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[And, $($queue,)*] @tail: & $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: & $($tail:tt)*) => ( + __op_internal__!(@stack[And, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: ^ $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: ^ $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: ^ $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: ^ $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: ^ $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: ^ $($tail)*) +); +(@stack[Sum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: ^ $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sum, $($queue,)*] @tail: ^ $($tail)*) +); +(@stack[Diff, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: ^ $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Diff, $($queue,)*] @tail: ^ $($tail)*) +); +(@stack[Shleft, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: ^ $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shleft, $($queue,)*] @tail: ^ $($tail)*) +); +(@stack[Shright, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: ^ $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shright, $($queue,)*] @tail: ^ $($tail)*) +); +(@stack[And, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: ^ $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[And, $($queue,)*] @tail: ^ $($tail)*) +); +(@stack[Xor, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: ^ $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Xor, $($queue,)*] @tail: ^ $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: ^ $($tail:tt)*) => ( + __op_internal__!(@stack[Xor, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: | $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: | $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: | $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: | $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: | $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: | $($tail)*) +); +(@stack[Sum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: | $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sum, $($queue,)*] @tail: | $($tail)*) +); +(@stack[Diff, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: | $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Diff, $($queue,)*] @tail: | $($tail)*) +); +(@stack[Shleft, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: | $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shleft, $($queue,)*] @tail: | $($tail)*) +); +(@stack[Shright, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: | $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shright, $($queue,)*] @tail: | $($tail)*) +); +(@stack[And, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: | $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[And, $($queue,)*] @tail: | $($tail)*) +); +(@stack[Xor, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: | $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Xor, $($queue,)*] @tail: | $($tail)*) +); +(@stack[Or, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: | $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Or, $($queue,)*] @tail: | $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: | $($tail:tt)*) => ( + __op_internal__!(@stack[Or, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: == $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: == $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: == $($tail)*) +); +(@stack[Sum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sum, $($queue,)*] @tail: == $($tail)*) +); +(@stack[Diff, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Diff, $($queue,)*] @tail: == $($tail)*) +); +(@stack[Shleft, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shleft, $($queue,)*] @tail: == $($tail)*) +); +(@stack[Shright, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shright, $($queue,)*] @tail: == $($tail)*) +); +(@stack[And, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[And, $($queue,)*] @tail: == $($tail)*) +); +(@stack[Xor, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Xor, $($queue,)*] @tail: == $($tail)*) +); +(@stack[Or, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Or, $($queue,)*] @tail: == $($tail)*) +); +(@stack[Eq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Eq, $($queue,)*] @tail: == $($tail)*) +); +(@stack[NotEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[NotEq, $($queue,)*] @tail: == $($tail)*) +); +(@stack[LeEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[LeEq, $($queue,)*] @tail: == $($tail)*) +); +(@stack[GrEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[GrEq, $($queue,)*] @tail: == $($tail)*) +); +(@stack[Le, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Le, $($queue,)*] @tail: == $($tail)*) +); +(@stack[Gr, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Gr, $($queue,)*] @tail: == $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: == $($tail:tt)*) => ( + __op_internal__!(@stack[Eq, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: != $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: != $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: != $($tail)*) +); +(@stack[Sum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sum, $($queue,)*] @tail: != $($tail)*) +); +(@stack[Diff, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Diff, $($queue,)*] @tail: != $($tail)*) +); +(@stack[Shleft, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shleft, $($queue,)*] @tail: != $($tail)*) +); +(@stack[Shright, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shright, $($queue,)*] @tail: != $($tail)*) +); +(@stack[And, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[And, $($queue,)*] @tail: != $($tail)*) +); +(@stack[Xor, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Xor, $($queue,)*] @tail: != $($tail)*) +); +(@stack[Or, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Or, $($queue,)*] @tail: != $($tail)*) +); +(@stack[Eq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Eq, $($queue,)*] @tail: != $($tail)*) +); +(@stack[NotEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[NotEq, $($queue,)*] @tail: != $($tail)*) +); +(@stack[LeEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[LeEq, $($queue,)*] @tail: != $($tail)*) +); +(@stack[GrEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[GrEq, $($queue,)*] @tail: != $($tail)*) +); +(@stack[Le, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Le, $($queue,)*] @tail: != $($tail)*) +); +(@stack[Gr, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Gr, $($queue,)*] @tail: != $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: != $($tail:tt)*) => ( + __op_internal__!(@stack[NotEq, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[Sum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sum, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[Diff, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Diff, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[Shleft, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shleft, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[Shright, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shright, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[And, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[And, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[Xor, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Xor, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[Or, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Or, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[Eq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Eq, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[NotEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[NotEq, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[LeEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[LeEq, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[GrEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[GrEq, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[Le, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Le, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[Gr, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Gr, $($queue,)*] @tail: <= $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: <= $($tail:tt)*) => ( + __op_internal__!(@stack[LeEq, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[Sum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sum, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[Diff, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Diff, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[Shleft, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shleft, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[Shright, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shright, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[And, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[And, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[Xor, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Xor, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[Or, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Or, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[Eq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Eq, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[NotEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[NotEq, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[LeEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[LeEq, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[GrEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[GrEq, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[Le, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Le, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[Gr, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Gr, $($queue,)*] @tail: >= $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: >= $($tail:tt)*) => ( + __op_internal__!(@stack[GrEq, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: < $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: < $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: < $($tail)*) +); +(@stack[Sum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sum, $($queue,)*] @tail: < $($tail)*) +); +(@stack[Diff, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Diff, $($queue,)*] @tail: < $($tail)*) +); +(@stack[Shleft, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shleft, $($queue,)*] @tail: < $($tail)*) +); +(@stack[Shright, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shright, $($queue,)*] @tail: < $($tail)*) +); +(@stack[And, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[And, $($queue,)*] @tail: < $($tail)*) +); +(@stack[Xor, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Xor, $($queue,)*] @tail: < $($tail)*) +); +(@stack[Or, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Or, $($queue,)*] @tail: < $($tail)*) +); +(@stack[Eq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Eq, $($queue,)*] @tail: < $($tail)*) +); +(@stack[NotEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[NotEq, $($queue,)*] @tail: < $($tail)*) +); +(@stack[LeEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[LeEq, $($queue,)*] @tail: < $($tail)*) +); +(@stack[GrEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[GrEq, $($queue,)*] @tail: < $($tail)*) +); +(@stack[Le, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Le, $($queue,)*] @tail: < $($tail)*) +); +(@stack[Gr, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Gr, $($queue,)*] @tail: < $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: < $($tail:tt)*) => ( + __op_internal__!(@stack[Le, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[Prod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Prod, $($queue,)*] @tail: > $($tail)*) +); +(@stack[Quot, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Quot, $($queue,)*] @tail: > $($tail)*) +); +(@stack[Mod, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Mod, $($queue,)*] @tail: > $($tail)*) +); +(@stack[Sum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sum, $($queue,)*] @tail: > $($tail)*) +); +(@stack[Diff, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Diff, $($queue,)*] @tail: > $($tail)*) +); +(@stack[Shleft, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shleft, $($queue,)*] @tail: > $($tail)*) +); +(@stack[Shright, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Shright, $($queue,)*] @tail: > $($tail)*) +); +(@stack[And, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[And, $($queue,)*] @tail: > $($tail)*) +); +(@stack[Xor, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Xor, $($queue,)*] @tail: > $($tail)*) +); +(@stack[Or, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Or, $($queue,)*] @tail: > $($tail)*) +); +(@stack[Eq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Eq, $($queue,)*] @tail: > $($tail)*) +); +(@stack[NotEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[NotEq, $($queue,)*] @tail: > $($tail)*) +); +(@stack[LeEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[LeEq, $($queue,)*] @tail: > $($tail)*) +); +(@stack[GrEq, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[GrEq, $($queue,)*] @tail: > $($tail)*) +); +(@stack[Le, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Le, $($queue,)*] @tail: > $($tail)*) +); +(@stack[Gr, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Gr, $($queue,)*] @tail: > $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: > $($tail:tt)*) => ( + __op_internal__!(@stack[Gr, $($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: ( $($stuff:tt)* ) $($tail:tt)* ) + => ( + __op_internal__!(@stack[LParen, $($stack,)*] @queue[$($queue,)*] + @tail: $($stuff)* RParen $($tail)*) +); +(@stack[LParen, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: RParen $($tail:tt)*) => ( + __op_internal__!(@rp3 @stack[$($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[$stack_top:ident, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: RParen $($tail:tt)*) + => ( + __op_internal__!(@stack[$($stack,)*] @queue[$stack_top, $($queue,)*] @tail: RParen $($tail)*) +); +(@rp3 @stack[Compare, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Compare, $($queue,)*] @tail: $($tail)*) +); +(@rp3 @stack[Square, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Square, $($queue,)*] @tail: $($tail)*) +); +(@rp3 @stack[Sqrt, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Sqrt, $($queue,)*] @tail: $($tail)*) +); +(@rp3 @stack[AbsVal, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[AbsVal, $($queue,)*] @tail: $($tail)*) +); +(@rp3 @stack[Cube, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Cube, $($queue,)*] @tail: $($tail)*) +); +(@rp3 @stack[Exp, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Exp, $($queue,)*] @tail: $($tail)*) +); +(@rp3 @stack[Minimum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Minimum, $($queue,)*] @tail: $($tail)*) +); +(@rp3 @stack[Maximum, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Maximum, $($queue,)*] @tail: $($tail)*) +); +(@rp3 @stack[Log2, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Log2, $($queue,)*] @tail: $($tail)*) +); +(@rp3 @stack[Gcf, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail: $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[Gcf, $($queue,)*] @tail: $($tail)*) +); +(@rp3 @stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[$($queue,)*] @tail: $($tail)*) +); +(@stack[$($stack:ident,)*] @queue[$($queue:ident,)*] @tail: $num:ident $($tail:tt)*) => ( + __op_internal__!(@stack[$($stack,)*] @queue[$num, $($queue,)*] @tail: $($tail)*) +); +(@stack[] @queue[$($queue:ident,)*] @tail: ) => ( + __op_internal__!(@reverse[] @input: $($queue,)*) +); +(@stack[$stack_top:ident, $($stack:ident,)*] @queue[$($queue:ident,)*] @tail:) => ( + __op_internal__!(@stack[$($stack,)*] @queue[$stack_top, $($queue,)*] @tail: ) +); +(@reverse[$($revved:ident,)*] @input: $head:ident, $($tail:ident,)* ) => ( + __op_internal__!(@reverse[$head, $($revved,)*] @input: $($tail,)*) +); +(@reverse[$($revved:ident,)*] @input: ) => ( + __op_internal__!(@eval @stack[] @input[$($revved,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Prod, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Prod<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Quot, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Quot<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Mod, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Mod<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Sum, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Sum<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Diff, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Diff<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Shleft, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Shleft<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Shright, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Shright<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[And, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::And<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Xor, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Xor<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Or, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Or<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Eq, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Eq<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[NotEq, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::NotEq<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[LeEq, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::LeEq<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[GrEq, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::GrEq<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Le, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Le<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Gr, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Gr<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Compare, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Compare<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Exp, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Exp<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Minimum, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Minimum<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Maximum, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Maximum<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $b:ty, $($stack:ty,)*] @input[Gcf, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Gcf<$b, $a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $($stack:ty,)*] @input[Square, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Square<$a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $($stack:ty,)*] @input[Sqrt, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Sqrt<$a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $($stack:ty,)*] @input[AbsVal, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::AbsVal<$a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $($stack:ty,)*] @input[Cube, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Cube<$a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$a:ty, $($stack:ty,)*] @input[Log2, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$crate::Log2<$a>, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$($stack:ty,)*] @input[$head:ident, $($tail:ident,)*]) => ( + __op_internal__!(@eval @stack[$head, $($stack,)*] @input[$($tail,)*]) +); +(@eval @stack[$stack:ty,] @input[]) => ( + $stack +); +($($tail:tt)* ) => ( + __op_internal__!(@stack[] @queue[] @tail: $($tail)*) +); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/int.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/int.rs new file mode 100644 index 0000000000000000000000000000000000000000..d11d301f78cd04b06077d0ce18b96c929118b0db --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typenum-1.19.0/src/int.rs @@ -0,0 +1,1528 @@ +//! Type-level signed integers. +//! +//! +//! Type **operators** implemented: +//! +//! From `core::ops`: `Add`, `Sub`, `Mul`, `Div`, and `Rem`. +//! From `typenum`: `Same`, `Cmp`, and `Pow`. +//! +//! Rather than directly using the structs defined in this module, it is recommended that +//! you import and use the relevant aliases from the [consts](../consts/index.html) module. +//! +//! Note that operators that work on the underlying structure of the number are +//! intentionally not implemented. This is because this implementation of signed integers +//! does *not* use twos-complement, and implementing them would require making arbitrary +//! choices, causing the results of such operators to be difficult to reason about. +//! +//! # Example +//! ```rust +//! use std::ops::{Add, Div, Mul, Rem, Sub}; +//! use typenum::{Integer, N3, P2}; +//! +//! assert_eq!(>::Output::to_i32(), -1); +//! assert_eq!(>::Output::to_i32(), -5); +//! assert_eq!(>::Output::to_i32(), -6); +//! assert_eq!(>::Output::to_i32(), -1); +//! assert_eq!(>::Output::to_i32(), -1); +//! ``` + +pub use crate::marker_traits::Integer; +use crate::{ + bit::{Bit, B0, B1}, + consts::{N1, P1, U0, U1}, + private::{Internal, InternalMarker, PrivateDivInt, PrivateIntegerAdd, PrivateRem}, + uint::{UInt, Unsigned}, + Cmp, Equal, Greater, Less, NonZero, Pow, PowerOfTwo, ToInt, Zero, +}; +use core::ops::{Add, Div, Mul, Neg, Rem, Sub}; + +/// Type-level signed integers with positive sign. +#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Copy, Hash, Debug, Default)] +#[cfg_attr(feature = "scale_info", derive(scale_info::TypeInfo))] +pub struct PInt { + pub(crate) n: U, +} + +/// Type-level signed integers with negative sign. +#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Copy, Hash, Debug, Default)] +#[cfg_attr(feature = "scale_info", derive(scale_info::TypeInfo))] +pub struct NInt { + pub(crate) n: U, +} + +impl PInt { + /// Instantiates a singleton representing this strictly positive integer. + #[inline] + pub fn new() -> PInt { + PInt::default() + } +} + +impl NInt { + /// Instantiates a singleton representing this strictly negative integer. + #[inline] + pub fn new() -> NInt { + NInt::default() + } +} + +/// The type-level signed integer 0. +#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Copy, Hash, Debug, Default)] +#[cfg_attr(feature = "scale_info", derive(scale_info::TypeInfo))] +pub struct Z0; + +impl Z0 { + /// Instantiates a singleton representing the integer 0. + #[inline] + pub fn new() -> Z0 { + Z0 + } +} + +impl NonZero for PInt {} +impl NonZero for NInt {} +impl Zero for Z0 {} + +impl PowerOfTwo for PInt {} + +impl Integer for Z0 { + const I8: i8 = 0; + const I16: i16 = 0; + const I32: i32 = 0; + const I64: i64 = 0; + #[cfg(feature = "i128")] + const I128: i128 = 0; + const ISIZE: isize = 0; + + #[inline] + fn to_i8() -> i8 { + 0 + } + #[inline] + fn to_i16() -> i16 { + 0 + } + #[inline] + fn to_i32() -> i32 { + 0 + } + #[inline] + fn to_i64() -> i64 { + 0 + } + #[cfg(feature = "i128")] + #[inline] + fn to_i128() -> i128 { + 0 + } + #[inline] + fn to_isize() -> isize { + 0 + } +} + +impl Integer for PInt { + const I8: i8 = U::I8; + const I16: i16 = U::I16; + const I32: i32 = U::I32; + const I64: i64 = U::I64; + #[cfg(feature = "i128")] + const I128: i128 = U::I128; + const ISIZE: isize = U::ISIZE; + + #[inline] + fn to_i8() -> i8 { + ::to_i8() + } + #[inline] + fn to_i16() -> i16 { + ::to_i16() + } + #[inline] + fn to_i32() -> i32 { + ::to_i32() + } + #[inline] + fn to_i64() -> i64 { + ::to_i64() + } + #[cfg(feature = "i128")] + #[inline] + fn to_i128() -> i128 { + ::to_i128() + } + #[inline] + fn to_isize() -> isize { + ::to_isize() + } +} + +// Simply negating the result of e.g. `U::I8` will result in overflow for `std::i8::MIN`. Instead, +// we use the fact that `U: NonZero` by subtracting one from the `U::U8` before negating. +impl Integer for NInt { + const I8: i8 = -((U::U8 - 1) as i8) - 1; + const I16: i16 = -((U::U16 - 1) as i16) - 1; + const I32: i32 = -((U::U32 - 1) as i32) - 1; + const I64: i64 = -((U::U64 - 1) as i64) - 1; + #[cfg(feature = "i128")] + const I128: i128 = -((U::U128 - 1) as i128) - 1; + const ISIZE: isize = -((U::USIZE - 1) as isize) - 1; + + #[inline] + fn to_i8() -> i8 { + Self::I8 + } + #[inline] + fn to_i16() -> i16 { + Self::I16 + } + #[inline] + fn to_i32() -> i32 { + Self::I32 + } + #[inline] + fn to_i64() -> i64 { + Self::I64 + } + #[cfg(feature = "i128")] + #[inline] + fn to_i128() -> i128 { + Self::I128 + } + #[inline] + fn to_isize() -> isize { + Self::ISIZE + } +} + +// --------------------------------------------------------------------------------------- +// Formatting as binary + +impl core::fmt::Binary for Z0 { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { + write!(f, "0") + } +} + +impl core::fmt::Binary for PInt { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { + write!(f, "+{:b}", self.n) + } +} + +impl core::fmt::Binary for NInt { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { + write!(f, "-{:b}", self.n) + } +} + +// --------------------------------------------------------------------------------------- +// Neg + +/// `-Z0 = Z0` +impl Neg for Z0 { + type Output = Z0; + #[inline] + fn neg(self) -> Self::Output { + Z0 + } +} + +/// `-PInt = NInt` +impl Neg for PInt { + type Output = NInt; + #[inline] + fn neg(self) -> Self::Output { + NInt::new() + } +} + +/// `-NInt = PInt` +impl Neg for NInt { + type Output = PInt; + #[inline] + fn neg(self) -> Self::Output { + PInt::new() + } +} + +// --------------------------------------------------------------------------------------- +// Add + +/// `Z0 + I = I` +impl Add for Z0 { + type Output = I; + #[inline] + fn add(self, rhs: I) -> Self::Output { + rhs + } +} + +/// `PInt + Z0 = PInt` +impl Add for PInt { + type Output = PInt; + #[inline] + fn add(self, _: Z0) -> Self::Output { + PInt::new() + } +} + +/// `NInt + Z0 = NInt` +impl Add for NInt { + type Output = NInt; + #[inline] + fn add(self, _: Z0) -> Self::Output { + NInt::new() + } +} + +/// `P(Ul) + P(Ur) = P(Ul + Ur)` +impl Add> for PInt