|
wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
|
One open AF_XDP driver instance: the socket/rings, the TX frame pool, the learned peer MAC cache, and — when this instance opened its own BPF redirect filter rather than joining a shared one — those BPF objects. More...
#include <srvxdp.h>
Data Fields | |
| xsk | xsk |
| AF_XDP socket, UMEM and four rings. | |
| xskumem_alloc | txpool |
| TX frame pool, UMEM frames 64..127. | |
| xdpmac | macs |
| peer ip -> mac reflect cache | |
| u8 | our_mac [6] |
| learned from the first RX frame | |
| int | have_mac |
| 0 until our_mac is learned | |
| u32 | ip_be |
| cfg->ip, network byte order | |
| u16 | port |
| cfg->port, host order | |
| wired_srvxdpbpf | bpf |
| BPF map/prog/link owned by this instance; fds are -1 when opened against a shared wired_srvxdpbpf (wired_srvxdp_open_shared). | |
| int | bpf_owned |
| 1 when wired_srvxdp_open built bpf and close() must tear it down | |
One open AF_XDP driver instance: the socket/rings, the TX frame pool, the learned peer MAC cache, and — when this instance opened its own BPF redirect filter rather than joining a shared one — those BPF objects.