mirror of
https://github.com/espressif/openthread.git
synced 2026-09-10 03:00:09 +00:00
[simulation] add empty otPlatInfraIf platform APIs in simul/test (#6852)
This commit adds empty implementations of `otPlatInfraIf` platform APIs under simulation. It also adds `otPlatInfraIfHasAddress()` in `test_platform`. This allows the unit tests and simulation platform builds to succeed when `OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE` is enabled.
This commit is contained in:
@@ -712,6 +712,14 @@ otLinkMetrics otPlatRadioGetEnhAckProbingMetrics(otInstance *aInstance, const ot
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
|
||||
bool otPlatInfraIfHasAddress(uint32_t aInfraIfIndex, const otIp6Address *aAddress)
|
||||
{
|
||||
OT_UNUSED_VARIABLE(aInfraIfIndex);
|
||||
OT_UNUSED_VARIABLE(aAddress);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
otError otPlatInfraIfSendIcmp6Nd(uint32_t aInfraIfIndex,
|
||||
const otIp6Address *aDestAddress,
|
||||
const uint8_t * aBuffer,
|
||||
|
||||
Reference in New Issue
Block a user