mesh_nexthop_lookup_nolearn(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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