ip6_dst_lookup(9)
π« ip6_dst_lookup(9) β the kernel API manual, bestie edition π«
Okay so welcome to ip6_dst_lookup(9), the little IPv6 route-lookup bestie from the kernel API manual. She's got one job and she ate, honestly. Let's get into it π
β¨ NAME β¨
ip6_dst_lookup β perform route lookup on flow
Like, that's the whole vibe. You hand her a flow, she goes and finds the route. Main character energy fr fr π
πΈ SYNOPSIS πΈ
int ip6_dst_lookup (struct net *net , struct sock *sk , struct dst_entry
**dst , struct flowi6 *fl6 );
That's the signature, verbatim, no cap. Copy it exactly, don't be out here renaming things π
π¦ ARGUMENTS π¦
netβ the network namespace you wanna do the lookup in. That's her whole world, lowkey πskβ the socket that provides the route info. She's the one with the lore π«Άdstβ pointer to adst_entry *where the result goes. It's giving "hold my answer" energy β¨fl6β the flow to look up. This is the actual thing being looked up, iconic π
π DESCRIPTION π
So basically: this function performs a route lookup on the given flow. That's it, that's the plot π
It returns zero on success, or a standard errno code on error. Zero = slay, nonzero = something went sideways, no cap π
π₯ SEE ALSO π₯
- Kernel file
./net/ipv6/ip6_output.cβ that's where she lives π‘ ip6_dst_lookup_flow(9)ip6_sk_dst_lookup_flow(9)
The whole friend group, honestly. Read all three, iykyk π
Real talk bestie: this page is from./net/ipv6, dated October 2026, and yes the header still saysip6_dst_lookup(9)because that's her name and she's keeping it. Byeee, go look up some routes π§πβ
π¦ 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