mesh_nexthop_lookup(9)
β¨ mesh_nexthop_lookup(9) β¨
okay so this is the Kernel API Manual page for mesh_nexthop_lookup, and bestie, it's literally the function that picks which next hop your mesh frame is gonna vibe with π
π NAME π
mesh_nexthop_lookup β put the appropriate next hop on a mesh frame. Calling this function is considered "using" the associated mpath, so preempt a path refresh if this mpath expires soon.
like, no cap: you're not just looking at the mpath, you're committing to it, so the path refresh just got preempted if that mpath's about to expire. main character energy fr fr π
π¦ SYNOPSIS π¦
int mesh_nexthop_lookup (struct ieee80211_sub_if_data *sdata , struct
sk_buff *skb );
she takes two args and hands you back an int, periodt β¨
πΈ ARGUMENTS πΈ
sdataβ network subif the frame will be sent through π«Ά like, the interface this whole thing is riding out onskbβ 802.11 frame to be sent π the actual frame getting yeeted
π RETURN π
0if the next hop was found π₯³ slay, we're so back- Nonzero otherwise π which like, we don't love, but that's the vibe check
π SEE ALSO π
Kernel file ./net/mac80211/mesh_hwmp.c β and while you're in there, go be obsessed with these too:
mesh_path_error_tx(9)hwmp_route_info_get(9)mesh_queue_preq(9)mesh_path_start_discovery(9)mesh_nexthop_resolve(9)mesh_nexthop_lookup_nolearn(9)
iykyk π₯
ngl bestie, this whole thing lives in ./net/mac80211 β that's the home base π
and that's the page!! mwah π this lil guy is from October 2026, sourced straight out of ./net/mac80211 β drink water, read your mesh code, and go find that next hop, queen ππ
π¦ 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