Type Alias otBorderRoutingRdnssAddrCallback

Source
pub type otBorderRoutingRdnssAddrCallback = Option<unsafe extern "C" fn(aContext: *mut c_void)>;
Expand description

Callback function pointer to notify of changes to discovered Recursive DNS Server (RDNSS) address entries.

Address entries are discovered by processing the RDNSS options within received Router Advertisement messages from routers on infrastructure link.

The otBorderRoutingGetNextRdnssAddrEntry() function can be used to iterate over the discovered RDNSS address entries.

This callback is invoked when any of the following changes occur to the address entries associated with a discovered router:

  • A new RDNSS address is advertised by the router.
  • A previously discovered address is removed due to the router advertising it with a zero lifetime.
  • A previously discovered address has aged out (its lifetime expired without being re-advertised).
  • We determine that the router that advertised the address is now unreachable, and therefore all its associated entries are removed.

@param[in] aContext A pointer to arbitrary context information.

Aliased Type§

pub enum otBorderRoutingRdnssAddrCallback {
    None,
    Some(unsafe extern "C" fn(*mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void))

Some value of type T.