mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 02:37:47 +00:00
[udp] allow Reference Devices to send UDP messages to TMF port (#6627)
This commit allows Reference Devices to send UDP messages to TMF port, which was prohibited by #5911 . Background: TestHarness sends constructed TMF messages in many TCs to validate the behavior of nodes on receiving these TMF messages. Fixes DUA-TC-09
This commit is contained in:
@@ -1289,10 +1289,14 @@ start:
|
||||
sourcePort = HostSwap16(sourcePort);
|
||||
destPort = HostSwap16(destPort);
|
||||
|
||||
#if !OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
|
||||
if (nextHeader == kProtoUdp)
|
||||
{
|
||||
VerifyOrExit(Get<Udp>().ShouldUsePlatformUdp(destPort), error = kErrorDrop);
|
||||
}
|
||||
#else
|
||||
OT_UNUSED_VARIABLE(destPort);
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_CONFIG_UNSECURE_TRAFFIC_MANAGED_BY_STACK_ENABLE
|
||||
// check whether source port is an unsecure port
|
||||
|
||||
Reference in New Issue
Block a user