STRUCT BPF_KSOCK_CREATE_OPTS(9)
๐ NAME ๐
okay bestie, this is the Kernel API Manual page for struct bpf_ksock_create_opts โ and the header vibe is struct bpf_k..._create_opts(9), iykyk โจ. It's literally the BPF kernel socket creation parameters: the lil blueprint you reach for when you're setting up one of these sockets. ๐ง
โจ SYNOPSIS โจ
struct bpf_ksock_create_opts {
__u8 family;
__u8 type;
__u8 protocol;
__u8 reserved;
};
no cap, that's the whole shape of it ๐ซถ
๐ Members ๐
familyโ Address family:AF_INETorAF_INET6. Pick your fave IP situation ๐typeโ Socket type: onlySOCK_DGRAMsupported for now. That's the whole menu rn, bestie.protocolโ Protocol number (e.g.IPPROTO_UDP), or0for the default protocol of the given type. Slay default protocol energy โจreservedโ Must be zero. Reserved for future use. Do not touch, it's giving "future main character" ๐ฎ
๐ SEE ALSO ๐
- Kernel file
./include/linux/bpf_ksock.hโ go read the source, bestie ๐ union bpf_ksock_addr(9)โ the other page you're gonna want in your tabs ๐
mwah ๐ this cutie came from ./include/linux, dated October 2026, and the footer title is struct bpf_k..._create_opts(9). periodt ๐
๐ฆ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms