1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-21 23:18:00 -08:00
openbsd-src/sys/conf
dlg 6fb93e4770 add an AF_FRAME socket domain and an IFT_ETHER protocol family under it.
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@
2024-12-15 11:00:05 +00:00
..
defines Remove tcp_acounts, some tcp_usrreq() counting from 1981. Also 2018-02-05 14:53:26 +00:00
files add an AF_FRAME socket domain and an IFT_ETHER protocol family under it. 2024-12-15 11:00:05 +00:00
GENERIC We've left release mode. Time to re-enable POOL_DEBUG 2024-10-03 04:39:09 +00:00
makegap.sh Use a new LDFLAGS variable to pass "-melf_i386_obsd" on amd64. 2018-01-25 14:09:52 +00:00
newvers.sh now hacking on 7.6-current 2024-09-23 21:05:28 +00:00
param.c Unlock KERN_MAXFILES. 2024-08-20 13:29:25 +00:00
swapgeneric.c remove unneeded conf.h include 2024-10-30 07:28:17 +00:00