Skip to content
Commit 83f523f0 authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Jukka Rissanen
Browse files

net: Add support for simultaneous UDP/TCP and raw sockets



This patch brings support for AF_PACKET and SOCK_RAW type of sockets.
In net_conn_input() function the new flag has been introduced -
'raw_pkt_continue' to indicate if there are other than AF_PACKET
connections registered.

If we do not have other connections than AF_PACKET, the packet is
solely handled in net_conn_input() (or to be more specific in its
helper function - conn_raw_socket()).

Otherwise, it is passed back to net_conn_input in IPv4/6 processing.

Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
parent 1f72b1f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment