walnux/net/pkt
Zhe Weng 9a23ebdbc0 net/pkt: Support binding to devices other than ETH
We're using the `sll_ifindex` inside `struct sockaddr_ll` to bind
device, so we don't need to translate it into mac address, we can just
match the index, which also let us bind to different type of devices
other than Ethernet.

Ref: Linux also uses `ifindex` to find related device and note it down without mac addresses.
https://man7.org/linux/man-pages/man7/packet.7.html
https://github.com/torvalds/linux/blob/v6.7/net/packet/af_packet.c#L3328
https://github.com/torvalds/linux/blob/v6.7/net/packet/af_packet.c#L3264-L3265

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-02-22 21:21:48 -08:00
..
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
Kconfig net/pkt: Support binding to devices other than ETH 2024-02-22 21:21:48 -08:00
Make.defs
pkt.h net/pkt: Support binding to devices other than ETH 2024-02-22 21:21:48 -08:00
pkt_callback.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
pkt_conn.c net/pkt: Support binding to devices other than ETH 2024-02-22 21:21:48 -08:00
pkt_finddev.c net/pkt: Add readahead queue for pkt, call input for tx on sim 2023-03-08 23:09:25 +02:00
pkt_input.c net/pkt: Support binding to devices other than ETH 2024-02-22 21:21:48 -08:00
pkt_poll.c net/devif_poll: optimize device buffer alloc in txpoll 2023-01-13 16:41:10 +08:00
pkt_recvmsg.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
pkt_sendmsg.c net: Fix task block when devif_send fails. 2023-06-01 17:05:54 +08:00
pkt_sockif.c net/pkt: Support binding to devices other than ETH 2024-02-22 21:21:48 -08:00