STRUCT SOCKADDR_L2TPIP6(9)
π 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 isAF_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
- 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