libeth_rx_pt_get_ip_ver(9)
β¨ 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 π§
- Kernel file
./include/net/libeth/rx.h struct libeth_fqe(9)enum libeth_fqe_type(9)struct libeth_fq(9)libeth_rx_alloc(9)libeth_rx_sync_for_cpu(9)struct libeth_rx_csum(9)struct libeth_rqe_info(9)libeth_rx_pt_set_hash(9)
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
- 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