zephyr/samples/net/sockets
Jukka Rissanen 99693bee5f 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>
2024-05-29 10:48:34 -07:00
..
big_http_download samples: net: Exclude native_posix when socket service lib is used 2024-05-29 11:59:51 +02:00
can
coap_client
coap_server
dumb_http_server
dumb_http_server_mt
echo
echo_async
echo_async_select
echo_client samples: net: Add net_if.h include 2024-05-20 14:25:44 +03:00
echo_server
echo_service
http_client
http_get samples: net: http_get: fix typo in sections names in sample.yaml 2024-05-29 14:06:20 +02:00
http_server
net_mgmt
packet net: socket: Change the protocol field for AF_PACKET sockets 2024-05-29 10:48:34 -07:00
sntp_client
socketpair
tcp
txtime net: socket: Change the protocol field for AF_PACKET sockets 2024-05-29 10:48:34 -07:00
websocket_client