pub type otIp6SlaacPrefixFilter = Option<unsafe extern "C" fn(aInstance: *mut otInstance, aPrefix: *const otIp6Prefix) -> bool>;
Expand description

Pointer allows user to filter prefixes and not allow an SLAAC address based on a prefix to be added.

otIp6SetSlaacPrefixFilter() can be used to set the filter handler. The filter handler is invoked by SLAAC module when it is about to add a SLAAC address based on a prefix. Its boolean return value determines whether the address is filtered (not added) or not.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aPrefix A pointer to prefix for which SLAAC address is about to be added.

@retval TRUE Indicates that the SLAAC address based on the prefix should be filtered and NOT added. @retval FALSE Indicates that the SLAAC address based on the prefix should be added.

Aliased Type§

enum otIp6SlaacPrefixFilter {
    None,
    Some(unsafe extern "C" fn(_: *mut otInstance, _: *const otIp6Prefix) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut otInstance, _: *const otIp6Prefix) -> bool)

Some value of type T.