Skip to content

IP network bypassing mechanisms #55455

Answered by jukkar
cperera-aud asked this question in Q&A
Discussion options

You must be logged in to vote

If you have network interface and do not want to use a packet sockets, then it is possible to call net_send_data() directly to send pre-formatted data. Note that you would need to build the data packet yourself with all the needed protocol layers.
For the RX side, it is more complicated and for normal IP traffic not possible. You could have your own L2 layer and then you would receive all the network packets for a specific network interface, but then you cannot use the normal sockets to receive those packets.
Of course as the source code is available, you can certainly tweak the sources as you wish, see net_recv_data() that is called by network device driver when a packet is received, and…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cperera-aud
Comment options

@jukkar
Comment options

jukkar Mar 9, 2023
Collaborator

@cperera-aud
Comment options

Answer selected by cperera-aud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants