mesh_nexthop_resolve(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– mesh_nexthop_resolve(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this one's a little function from the mac80211 mesh world and honestly it's giving "air traffic controller but for Wi-Fi frames" πŸ›«βœ¨


✨ NAME ✨

mesh_nexthop_resolve β€” lookup next hop; conditionally start path discovery

like, it figures out where a frame should go next, and only if it has to, kicks off path discovery πŸ”


πŸŽ€ SYNOPSIS πŸŽ€

int mesh_nexthop_resolve (struct ieee80211_sub_if_data *sdata , struct sk_buff *skb );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sdata β€” the network subif that the frame is gonna be sent through πŸ’Œ (the interface, basically, the ~venue~)
  • skb β€” the 802.11 frame to be sent πŸ“¨ (the actual little packet main character)

🌸 DESCRIPTION 🌸

So what it does: it looks up the next hop for the given skb, and if no forwarding information is found, it starts path discovery. That's the whole vibe. Look up first, discover only when the info's missing β€” no cap, efficiency queen πŸ‘‘πŸ’…


⭐ RETURN ⭐

  • returns 0 if the next hop was found πŸŽ‰
  • returns -ENOENT if the frame was queued 🫢
⚠️ heads up bestie: skb is freed here if no mpath could be allocated. like, it's gone. don't touch it after. 😭

🌈 SEE ALSO 🌈

Kernel file ./net/mac80211/mesh_hwmp.c β€” plus these icons:


and that's the whole page, bestie β€” slay πŸ§šπŸ’œ this cutie lives in ./net/mac80211 and the docs are dated October 2026, so mark your calendar fr fr πŸ“…βœ¨ bye ily πŸ«ΆπŸ’–

πŸ“¦ where this page comes from