mirror of
https://github.com/openbsd/src.git
synced 2024-12-21 23:18:00 -08:00
6fb93e4770
this allows userland to use sockets to send and receive Ethernet frames. as per the upcoming frame.4 man page: frame protocol family sockets are designed as an alternative to bpf(4) for handling low data and packet rate communication protocols. Rather than filtering every frame entering the system before the network stack like bpf(4), the frame protocol family processing avoids this overhead by running after the built in protocol handlers in the kernel. For this reason, it is not possible to handle IPv4 or IPv6 packets with frame protocol sockets because the kernel network stack consumes them before the receive handling for frame sockets is run. if you've used udp sockets then these should feel much the same. my main motivation is to implement an lldp agent in userland, but without having to have bpf look at every packet when lldp happens every minute or two. the only feedback i had was positive, so i'm putting it in ok claudio@ |
||
---|---|---|
.. | ||
defines | ||
files | ||
GENERIC | ||
makegap.sh | ||
newvers.sh | ||
param.c | ||
swapgeneric.c |