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 samples: net: Disable native_posix target in more samples 2024-04-17 14:28:08 +02:00
coap_client samples: net: Change to use CONFIG_POSIX_API 2024-03-27 13:40:13 -05:00
coap_server samples: net: sockets: coap_server: Support CMAKE_LINKER_GENERATOR 2024-05-13 09:46:44 +02:00
dumb_http_server samples: net: Disable native_posix target in samples 2024-04-04 17:02:04 +02:00
dumb_http_server_mt samples: net: Disable native_posix target in more samples 2024-04-17 14:28:08 +02:00
echo samples/net socket_echo: Fix pointer type 2024-04-18 12:20:14 +02:00
echo_async Network: L2: remove IPSP 2024-04-11 12:48:50 +02:00
echo_async_select net: Use always zephyr/posix/fcntl.h 2024-03-27 13:40:13 -05:00
echo_client samples: net: Add net_if.h include 2024-05-20 14:25:44 +03:00
echo_server samples: net: echo_server: set IPV6_V6ONLY 2024-05-17 11:12:43 +02:00
echo_service samples: net: Change to use CONFIG_POSIX_API 2024-03-27 13:40:13 -05:00
http_client doc: net: Add HTTP server documentation 2024-05-10 14:43:38 -05:00
http_get samples: net: http_get: fix typo in sections names in sample.yaml 2024-05-29 14:06:20 +02:00
http_server samples: net: http_server: add link to HTTP Server doc page 2024-05-17 14:38:15 -05:00
net_mgmt samples: net: net_mgmt: Fix build failure on multiple boards 2024-04-04 17:02:04 +02:00
packet net: socket: Change the protocol field for AF_PACKET sockets 2024-05-29 10:48:34 -07:00
sntp_client samples: net: Change to use CONFIG_POSIX_API 2024-03-27 13:40:13 -05:00
socketpair samples net/posix: Rename old Makefiles and clarify READMEs 2023-10-20 15:01:42 +02:00
tcp samples: net: Change to use CONFIG_POSIX_API 2024-03-27 13:40:13 -05:00
txtime net: socket: Change the protocol field for AF_PACKET sockets 2024-05-29 10:48:34 -07:00
websocket_client samples: net: Disable native_posix target in more samples 2024-04-17 14:28:08 +02:00