[][src]Function openthread_sys::otIp6SetSlaacPrefixFilter

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

This function sets the SLAAC module filter handler.

This function requires the build-time feature OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE to 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.