nuttx/include/netinet
Zhe Weng 6fd74f817d net/pkt: Support filtering protocol in AF_PACKET
Ref: https://man7.org/linux/man-pages/man7/packet.7.html

1. For `socket(AF_PACKET, int socket_type, int protocol)`: When `protocol` is set to `htons(ETH_P_ALL)`, then all protocols are received. If `protocol` is set to zero, no packets are received.
2. For `bind`: `bind` can optionally be called with a nonzero `sll_protocol` to start receiving packets for the protocols specified.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2025-12-10 23:44:14 +08:00
..
arp.h include/netinet/arp.h: change the type of arp_dev from uint8_t to char 2024-12-26 23:29:23 +08:00
ether.h include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
icmp6.h include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
if_ether.h net/pkt: Support filtering protocol in AF_PACKET 2025-12-10 23:44:14 +08:00
in.h netinet/in.h: add IN6_IS_ADDR_GLOBAL macro 2024-11-20 20:42:21 +08:00
ip.h include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
ip6.h include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
tcp.h include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
udp.h include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00