Anonymous

Packet sockets: Difference between revisions

From dankwiki
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Packet sockets allow a program to more directly interface with the networking stack than standard Layer 4 Berkeley sockets (e.g. AF_INET + SOCK_STREAM, AF_INET6 + SOCK_DGRAM).
Packet sockets allow a program to more directly interface with the networking stack than standard Layer 4 Berkeley sockets (e.g. AF_INET + SOCK_STREAM, AF_INET6 + SOCK_DGRAM).


==[[Linux APIs|Linux]] Packet sockets==
==[[Linux APIs|Linux]] packet sockets==
The SOCK_PACKET socket type is strongly deprecated (see packet(7)), and thus not discussed here.
The SOCK_PACKET socket type is strongly deprecated (see packet(7)), and thus not discussed here.
{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 79: Line 79:
==See also==
==See also==
* [[Linux APIs]] and [[FreeBSD APIs]]
* [[Linux APIs]] and [[FreeBSD APIs]]
* "[https://fly.io/blog/bpf-xdp-packet-filters-and-udp/ BPF, XDP, Packet Filters and UDP]" at fly.io