commit | 99693bee5f2762f84b78ed90740753cdec40f394 | [log] [tgz] |
---|---|---|
author | Jukka Rissanen <jukka.rissanen@nordicsemi.no> | Mon May 27 13:28:28 2024 +0300 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Wed May 29 10:48:34 2024 -0700 |
tree | 81a60ba51cf7c9d9eefc41902c15f12dfe17aadd | |
parent | b58e242a52add05f1ad4ae8fa8917b76504355fa [diff] |
net: socket: Change the protocol field for AF_PACKET sockets In order to be compatible with Linux AF_PACKET socket calls, the protocol field needs to be in network byte order. So for example, if user wants to receive all packets, then the protocol field needs to be set as "htons(ETH_P_ALL)". See Linux manual page at https://www.man7.org/linux/man-pages/man7/packet.7.html for details. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>