openthread_sys

Type Alias otNat64ReceiveIp4Callback

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

Pointer is called when an IPv4 datagram (translated by NAT64 translator) is received.

@param[in] aMessage A pointer to the message buffer containing the received IPv6 datagram. This function transfers the ownership of the @p aMessage to the receiver of the callback. The message should be freed by the receiver of the callback after it is processed. @param[in] aContext A pointer to application-specific context.

Aliased Type§

enum otNat64ReceiveIp4Callback {
    None,
    Some(unsafe extern "C" fn(_: *mut otMessage, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut otMessage, _: *mut c_void))

Some value of type T.