Skip to content

Conversation

@HedongGao
Copy link
Contributor

Summary

Ref: https://man7.org/linux/man-pages/man7/packet.7.html

We should either set protocal when creating socket or binding, otherwise
we cannot capture any packet.

Impact

The netpkt tool will receive all types of Ethernet messages.

Testing

Open the compilation option CONFIG_EXAMPLES_NETPKT and set up the SIM environment. Use netpkt - vr to receive messages at the SIM and send messages to the SIM at the host. Check the reception of SIM terminal. The result verifies that netpkt receives normally.

Ref: https://man7.org/linux/man-pages/man7/packet.7.html

We should either set protocal when creating socket or binding, otherwise
we cannot capture any packet.

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants