STRUCT SOCKADDR_L2TPIP6(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct sockaddr_l2tpip6(9) β€” the Kernel API Manual glow-up πŸŽ€

okay so bestie, welcome to the Kernel API Manual ✨ and today's main character is struct sockaddr_l2tpip6 β€” literally the sockaddr structure for L2TP-over-IPv6 sockets. yes, IPv6. she's futuristic. she's giving tunnel era. 🌈


🌸 NAME 🌸

struct sockaddr_l2tpip6 β€” the sockaddr structure for L2TP-over-IPv6 sockets, no cap πŸ’–


✨ SYNOPSIS ✨

here's the whole vibe, copied exactly so you can trust me fr fr:

struct sockaddr_l2tpip6 {
    __kernel_sa_family_t l2tp_family;
    __be16 l2tp_unused;
    __be32 l2tp_flowinfo;
    struct in6_addr l2tp_addr;
    __u32 l2tp_scope_id;
    __u32 l2tp_conn_id;
 };

yes the closing brace is indented like that. that's just how she is. iconic behavior honestly 🫢


πŸ¦‹ Members πŸ¦‹

  • l2tp_family β€” the address family number, and that number is AF_L2TPIP. periodt. πŸ‘‘
  • l2tp_addr β€” protocol specific address information. it's the address info, but make it protocol specific πŸ’«
  • l2tp_conn_id β€” connection id of tunnel. that's the tunnel's whole identity bestie, don't lose it 😭

πŸŽ€ SEE ALSO πŸŽ€

  • Kernel file ./include/uapi/linux/l2tp.h β€” go read it, iykyk πŸ“–
  • enum l2tp_debug_flags(9) β€” yes, the enum. go look. lowkey useful 🌟

πŸ’€ quick vibe check: the family field is literally called AF_L2TPIP in the original, even though this whole struct is the IPv6 one. not me questioning the naming choices, i'm just the messenger 🫢 keep it exactly as written.

and that's the page, bestie! 🧚 source is ./include/uapi/linux and it's dated October 2026 β€” so she's from the future, obviously. slay πŸ’œβœ¨

πŸ“¦ where this page comes from