STRUCT BPF_KSOCK_CREATE_OPTS(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… 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_INET or AF_INET6. Pick your fave IP situation ๐Ÿ’–
  • type โ€” Socket type: only SOCK_DGRAM supported for now. That's the whole menu rn, bestie.
  • protocol โ€” Protocol number (e.g. IPPROTO_UDP), or 0 for 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