libeth_rx_pt_get_ip_ver(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ libeth_rx_pt_get_ip_ver(9) ✨

okay so bestie, welcome to the Kernel API Manual entry for libeth_rx_pt_get_ip_ver β€” yes that's a whole mouthful, no I will not be shortening it, it's iconic πŸ’…


🌸 NAME 🌸

libeth_rx_pt_get_ip_ver β€” gets the IP version out of a packet type structure, literally that's the whole job πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

u32 libeth_rx_pt_get_ip_ver (struct libeth_rx_pt pt );

πŸ’– ARGUMENTS πŸ’–

  • pt β€” the packet type params, aka the little struct you're handing over 🫢

🌈 DESCRIPTION 🌈

So this one is a wrapper, and its whole personality is compile-time vibes. It exists so the IPv6 code can get compiled out of the drivers when the kernel isn't supporting IPv6 β€” no cap, that's the point of it. Not me finding a function whose main character energy is "I disappear at build time" 😭


⭐ RETURN ⭐

You get back pt.outer_ip, or the stub for IPv6 when IPv6 isn't compiled in, periodt. πŸ‘‘


🧚 SEE ALSO 🧚

go read those too, iykyk πŸ’œ


ngl this one is short and sweet, but every single line of it slays 🌸

and that's a wrap, bestie! this cutie lives at ./include/net/libeth, stamped October 2026, in the Kernel API Manual β€” mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from