Is it allowed to register localhost (::1) as a unicast address on a Thread device? #10988
-
Is it allowed to register the localhost address ::1 as a unicast address on a Thread device using otIp6AddUnicastAddress(...)? If it is allowed: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
OpenThread does not currently forbid adding loopback to the Thread interface. However, OpenThread also does not currently filter loopback on address registration and received messages. I'll submit a couple PRs to address this. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply and PRs. Looking at the second PR I realized that checking if otMessageGetOrigin(...) equals OT_MESSAGE_ORIGIN_HOST_TRUSTED may be a better way to verify if a message originates for the host than checking if mPeerAddr is localhost. |
Beta Was this translation helpful? Give feedback.
OpenThread does not currently forbid adding loopback to the Thread interface.
However, OpenThread also does not currently filter loopback on address registration and received messages. I'll submit a couple PRs to address this.