pub unsafe extern "C" fn otPlatTrelNotifyPeerSocketAddressDifference(
aInstance: *mut otInstance,
aPeerSockAddr: *const otSockAddr,
aRxSockAddr: *const otSockAddr,
)
Expand description
Notifies platform that a TREL packet is received from a peer using a different socket address than the one reported
earlier from otPlatTrelHandleDiscoveredPeerInfo()
.
Ideally the platform underlying DNS-SD should detect changes to advertised port and addresses by peers, however, there are situations where this is not detected reliably. This function signals to the platform layer than we received a packet from a peer with it using a different port or address. This can be used by the playroom layer to restart/confirm the DNS-SD service/address resolution for the peer service and/or take any other relevant actions.
@param[in] aInstance The OpenThread instance.
@param[in] aPeerSockAddr The address of the peer, reported from otPlatTrelHandleDiscoveredPeerInfo()
call.
@param[in] aRxSockAddr The address of received packet from the same peer (differs from @p aPeerSockAddr).