-
|
I run tcpdump -i wpan0 -w - > wpan0.pcapng to capture packets on openwrt router running border router and coap server. However the command I use is not capturing any coap packets, as i can't see them when i open wireshark. Has anyone else had this problem before? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
The behavior you are observing is due to the OpenThread core stack intercepting CoAP (UDP) messages before they can be passed to the host network interface. Technical ExplanationIn OpenThread, the IPv6 layer ( Once the packet is handed to the internal UDP stack:
If no internal socket or receiver matches the destination port, the packet is dropped within the OpenThread core. Because the IPv6 layer already decided not to forward the packet to the host, it never reaches the host's network stack, even if the host has an application listening on that same port. |
Beta Was this translation helpful? Give feedback.
The behavior you are observing is due to the OpenThread core stack intercepting CoAP (UDP) messages before they can be passed to the host network interface.
Technical Explanation
In OpenThread, the IPv6 layer (
Ip6::DetermineAction) is responsible for deciding whether an incoming packet should be processed locally or forwarded to the host. If a unicast packet is destined for an IPv6 address that OpenThread considers "local" (such as the Mesh-Local EID, an RLOC, or an OMR address added to the interface), the core stack sets thereceiveflag to true and theforwardHostflag to false.Once the packet is handed to the internal UDP stack:
o…