mirror of
https://github.com/espressif/openthread.git
synced 2026-09-02 07:10:08 +00:00
[tmf] avoid binding TMF port for user UDP (#6534)
This commit is contained in:
+10
-7
@@ -409,14 +409,17 @@ uint16_t Udp::GetEphemeralPort(void)
|
||||
{
|
||||
uint16_t rval = mEphemeralPort;
|
||||
|
||||
if (mEphemeralPort < kDynamicPortMax)
|
||||
do
|
||||
{
|
||||
mEphemeralPort++;
|
||||
}
|
||||
else
|
||||
{
|
||||
mEphemeralPort = kDynamicPortMin;
|
||||
}
|
||||
if (mEphemeralPort < kDynamicPortMax)
|
||||
{
|
||||
mEphemeralPort++;
|
||||
}
|
||||
else
|
||||
{
|
||||
mEphemeralPort = kDynamicPortMin;
|
||||
}
|
||||
} while (rval == Tmf::kUdpPort);
|
||||
|
||||
return rval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user