mirror of
https://github.com/espressif/openthread.git
synced 2026-09-14 05:00:11 +00:00
[ip6] drop UDP datagrams from an untrusted origin to TMF port (#9437)
This commit drops UDP datagrams from an untrusted origin to TMF port. Examples of untrusted origin: - A process other than OT on the host sends the packet to Thread network via platform API. - A packet forwarded from infrastructure network to Thread network by Thread Border Router. OT shouldn't allow UDP datagrams from untrusted origins going to TMF port of any Thread device. To implement this, there's an API `otIp6SendFromOrigin` introduced. This can be used for specifying the origin of a packet you want to send. This commit also encapsulates the 'origin' information in `Message::Metadata`.
This commit is contained in:
@@ -57,6 +57,7 @@ REALM_LOCAL_ALL_NODES_ADDRESS = 'ff03::1'
|
||||
REALM_LOCAL_ALL_ROUTERS_ADDRESS = 'ff03::2'
|
||||
LINK_LOCAL_ALL_NODES_ADDRESS = 'ff02::1'
|
||||
LINK_LOCAL_ALL_ROUTERS_ADDRESS = 'ff02::2'
|
||||
TMF_PORT = 61631
|
||||
|
||||
DOMAIN_PREFIX = 'fd00:7d03:7d03:7d03::/64'
|
||||
DOMAIN_PREFIX_REGEX_PATTERN = '^fd00:7d03:7d03:7d03:'
|
||||
|
||||
Reference in New Issue
Block a user