Skip to content
Commit 96cc8514 authored by Robert Lubos's avatar Robert Lubos Committed by Marti Bolivar
Browse files

net: conn: Add proper processing of DGRAM packet sockets



Datagram AF_PACKET sockets were not processed properly by the net stack.
Instead of receving a packet already processed L2, and thus with L2
header trimmed, it was receiving a raw, unprocessed packet.

Fix this by calling net_packet_socket_input() for the second time, after
L2 has processed the packet. An updated connection handler module will
forward the packet correctly based on the corresponding socket type and
packet L2 processing status.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 4e38ddb3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment