Check out my first novel, midnight's simulacra!

Packet sockets: Difference between revisions

From dankwiki
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"