Skip to main content

DhcpOptions

Struct DhcpOptions 

Source
#[non_exhaustive]
pub struct DhcpOptions {
Show 27 fields pub active_fingerprint_server_group: Option<String>, pub active_leasequery: Option<DhcpActiveLeasequery>, pub allow_active_leasequery: Option<DhcpActiveLeasequeryLimits>, pub allow_bulk_leasequery: Option<DhcpBulkLeasequery>, pub allow_leasequery: bool, pub allow_leasequery_restricted_requestor: bool, pub authentication: Option<DhcpAuthentication>, pub dynamic_profiles: Vec<DhcpDynamicProfile>, pub duplicate_clients: Option<String>, pub duplicate_clients_in_subnet: Option<String>, pub dynamic_server: Vec<DhcpDynamicServerGroup>, pub fingerprint_server_groups: Vec<DhcpFingerprintServerGroup>, pub forward_snooped_clients: Option<String>, pub interface_traceoptions: Option<Traceoptions>, pub lease_time_validation: Option<DhcpLeaseTimeValidation>, pub liveness_detection: Option<DhcpLivenessDetection>, pub no_snoop: bool, pub overrides: Option<DhcpOverrides>, pub pool_match_order: Vec<String>, pub reauthenticate: Vec<String>, pub reconfigure: Option<DhcpReconfigure>, pub remote_id_mismatch_disconnect: bool, pub requested_ip_network_match: Option<String>, pub route_suppression: Option<String>, pub server_duid_type: Option<String>, pub service_profile: Option<String>, pub short_cycle_protection: Option<DhcpShortCycleProtection>,
}
Expand description

The statements shared by every level of a DHCP local server. The ones a level does not allow are unset.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§active_fingerprint_server_group: Option<String>§active_leasequery: Option<DhcpActiveLeasequery>§allow_active_leasequery: Option<DhcpActiveLeasequeryLimits>§allow_bulk_leasequery: Option<DhcpBulkLeasequery>§allow_leasequery: bool

allow-leasequery: whether it is configured.

§allow_leasequery_restricted_requestor: bool

allow-leasequery { restricted-requestor; }.

§authentication: Option<DhcpAuthentication>§dynamic_profiles: Vec<DhcpDynamicProfile>§duplicate_clients: Option<String>

DHCPv6 duplicate-clients incoming-interface.

§duplicate_clients_in_subnet: Option<String>

incoming-interface or option-82.

§dynamic_server: Vec<DhcpDynamicServerGroup>§fingerprint_server_groups: Vec<DhcpFingerprintServerGroup>§forward_snooped_clients: Option<String>

all-interfaces, configured-interfaces or non-configured-interfaces.

§interface_traceoptions: Option<Traceoptions>§lease_time_validation: Option<DhcpLeaseTimeValidation>§liveness_detection: Option<DhcpLivenessDetection>§no_snoop: bool§overrides: Option<DhcpOverrides>§pool_match_order: Vec<String>

e.g. ip-address-first, option-82, external-authority.

§reauthenticate: Vec<String>

e.g. lease-renewal, remote-id-mismatch, actual-data-rate-change.

§reconfigure: Option<DhcpReconfigure>§remote_id_mismatch_disconnect: bool

remote-id-mismatch disconnect.

§requested_ip_network_match: Option<String>§route_suppression: Option<String>

access, access-internal or destination.

§server_duid_type: Option<String>§service_profile: Option<String>§short_cycle_protection: Option<DhcpShortCycleProtection>

Trait Implementations§

Source§

impl Clone for DhcpOptions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DhcpOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DhcpOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for DhcpOptions

Source§

impl PartialEq for DhcpOptions

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DhcpOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.