mesh_nexthop_lookup_nolearn(9)
π mesh_nexthop_lookup_nolearn β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual entry for mesh_nexthop_lookup_nolearn(9) β yes the name is a mouthful, yes it's iconic, and no we are not skipping a single letter of it. β¨
β¨ NAME β¨
mesh_nexthop_lookup_nolearn β literally "try to set next hop without path discovery". That's the whole vibe: skip the paperwork, just send it. π¦
β¨ SYNOPSIS β¨
int mesh_nexthop_lookup_nolearn (struct ieee80211_sub_if_data *sdata ,
struct sk_buff *skb );
Two args, one int coming back at you. Short and slay. π
β¨ ARGUMENTS β¨
sdataβ the network subif that the frame is gonna be sent through. Like, that's its whole job. πskbβ the 802.11 frame that's about to be sent. the main character of this function ngl.
β¨ DESCRIPTION β¨
So here's the tea β: this function checks whether the meshDA β that's addr3 β of a unicast frame is a direct neighbor.
And if it is? Boom. It sets the RA β that's addr1 β to that neighbor, so the frame goes straight to that node directly. No detour, no drama. π
The whole point is avoiding PREQ/PREP path discovery β like, we already know where this is going, why are we doing a whole lookup ritual about it. iykyk.
β¨ RETURN β¨
0β the next hop was found. slay, we're going straight there. π-ENOENTβ not found. no direct neighbor for you, bestie. π
β¨ SEE ALSO β¨
the lore continues in the Kernel file ./net/mac80211/mesh_hwmp.c β go read up on these icons:
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(9)
and that's the page, bestie π«Ά β brought to you by the good people of ./net/mac80211, dated October 2026, and yes, it's still mesh_nexthop_lookup_nolearn(9) in case you forgot already. mwah. ππβ
π¦ 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