openthread_sys

Function otIp6SetSlaacPrefixFilter

Source
pub unsafe extern "C" fn otIp6SetSlaacPrefixFilter(
    aInstance: *mut otInstance,
    aFilter: otIp6SlaacPrefixFilter,
)
Expand description

Sets the SLAAC module filter handler.

OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE build-time feature must be enabled.

The filter handler is called by SLAAC module when it is about to add a SLAAC address based on a prefix to decide whether the address should be added or not.

A NULL filter handler disables filtering and allows all SLAAC addresses to be added.

If this function is not called, the default filter used by SLAAC module will be NULL (filtering is disabled).

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aFilter A pointer to SLAAC prefix filter handler, or NULL to disable filtering.