UNION BPF_KSOCK_ADDR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– union bpf_ksock_addr(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for union bpf_ksock_addr β€” it's giving "one little union, two socket-address vibes" and we're gonna get through it together, no cap ✨

πŸŽ€ NAME πŸŽ€

union bpf_ksock_addr β€” an IPv4 or IPv6 socket address. That's the whole name section, short and iconic πŸ’…

✨ SYNOPSIS ✨

here's the exact shape, copied with care:

union bpf_ksock_addr {
    struct sockaddr_in sin;
    struct sockaddr_in6 sin6;
 };

🫢 Members 🫢

  • sin β€” IPv4 socket address. literally the IPv4 one πŸ“
  • sin6 β€” IPv6 socket address. and this is the IPv6 one πŸ¦‹

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/bpf_ksock.h β€” go peek, iykyk πŸ‘€
  • struct bpf_ksock_create_opts(9) β€” another page to vibe with πŸ’œ
πŸ’– source/version: ./include/linux Β· date: October 2026 Β· page: union bpf_ksock_addr(9) β€” mwah, that's the whole page, bestie πŸŽ€
πŸ“¦ where this page comes from