ip6_dst_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« 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 a dst_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 πŸ”₯

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 says ip6_dst_lookup(9) because that's her name and she's keeping it. Byeee, go look up some routes πŸ§šπŸ’–β­
πŸ“¦ where this page comes from