zephyr/subsys/net/l2/ppp
Robert Lubos 20faa0e114 net: l2: ppp: Make PPP L2 work with packet sockets
Currently, the L2 PPP won't work with AF_PACKET socket family as it only
supports packets from AF_INET/AF_INET6 families. Because of this, it's
not possible to use AF_PACKET RAW or DGRAm sockets with PPP interfaces,
as the packets they generate have family field set to AF_PACKET.

Fix this, by verifying the LL protocol field in the PPP L2 before
passing the packet the respective PPP driver. If the AF_PACKET packet is
received, and the protocol field is set to IP/IPv6, update the packet
family to AF_INET/AF_INET6 accordingly.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-03-18 16:45:53 +01:00
..
CMakeLists.txt
fsm.c net: l2: ppp: ensure proper null-termination in ppp_fsm_close 2024-08-14 09:40:23 +02:00
ipcp.c
ipv6cp.c net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
Kconfig kconfig: replace known integer constants with variables 2024-07-27 20:49:15 +03:00
lcp.c
link.c
misc.c
network.c
options.c
pap.c
ppp_internal.h
ppp_l2.c net: l2: ppp: Make PPP L2 work with packet sockets 2025-03-18 16:45:53 +01:00
ppp_mgmt.c
ppp_stats.c
ppp_stats.h