dst_cache_get_ip4(9)
π dst_cache_get_ip4 π
okay so welcome to the Kernel API Manual entry for dst_cache_get_ip4, bestie. its whole job is to perform a cache lookup and fetch the ipv4 source address. that's the vibe. β¨
π¦ SYNOPSIS π¦
here's the exact signature, no cap:
struct rtable * dst_cache_get_ip4 (struct dst_cache *dst_cache , __be32
*saddr );
it returns a struct rtable *. slay.
π ARGUMENTS π
dst_cacheβ the cache. literally the cache you're looking in, bestie. πsaddrβ the return value for the retrieved source address. it's the spot where the source address comes back to you. π«Ά
π DESCRIPTION π
okay so the big rule: local BH must be disabled. not "maybe", not "if you feel like it" β must. mandatory. periodt. π
π SEE ALSO π
go check out the Kernel file ./include/net/dst_cache.h and these iconic besties:
dst_cache_get(9)dst_cache_set_ip4(9)dst_cache_set_ip6(9)dst_cache_get_ip6(9)dst_cache_reset(9)dst_cache_reset_now(9)dst_cache_init(9)dst_cache_destroy(9)
okay bye bestie π this page is from ./include/net, dated October 2026, and it's the dst_cache_get_ip4(9) page β periodt. πΈ
π¦ 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