ieee80211_get_mesh_hdrlen(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ieee80211_get_mesh_hdrlen(9) β€” Kernel API Manual

okay bestie, welcome to the function that literally just tells you how long a mesh extension header is. that's it. that's the whole job. and honestly? iconic of her. this is from the Kernel API Manual (section 9, kernel internals, iykyk) and she's about to be your new lowkey fave πŸŽ€


✨ NAME ✨

ieee80211_get_mesh_hdrlen β€” get mesh extension header length πŸ¦‹

like the name says, she gets the length. of the mesh extension header. no cap, that's the vibe.


✨ SYNOPSIS ✨

unsigned int ieee80211_get_mesh_hdrlen (struct ieee80211s_hdr *meshhdr
);

so you pass her one thing and she hands you back an unsigned int. simple. clean. main character energy ✨


✨ ARGUMENTS ✨

  • meshhdr β€” the mesh extension header, but here's the tea πŸ“: only the flags field (the very first byte) actually gets accessed. so don't stress about the whole struct being perfect, she's literally only peeking at byte zero. the way that she's efficient πŸ’…

✨ RETURN ✨

she returns the length of the extension header. and the rules are:

  • it's always at least 6 bytes ⭐
  • it's at most 18 if address 5 and 6 are present 🌸

so like, somewhere in the 6-to-18 range, depending on whether those extra addresses showed up to the party. ikyk 😭


~ part 1 over, more coming, don't go anywhere ~ still got more to spill 🫢

…and here's the rest of the extended fam, bestie β€” the whole group chat of related calls, all in (9) man-page form so you can go read them yourself when you're ready 🫢

Like, that's a lot of neighbors, and every single one of them has its own page waiting for you 🌸 so go tap through them whenever a function name shows up in your stack trace and you're like "who is she??" β€” she has a man page, bestie, go read it πŸ’…


And that's a wrap on ieee80211_get_mesh_hdrlen(9)!! πŸŽ€ You made it to the end, I'm literally so proud 😭 go forth and compute your mesh header length with confidence, you absolute icon πŸ‘‘βœ¨

Source path: ./include/net Β· Version/date: October 2026 β€” signed off with love, your favorite manual page πŸ’–

πŸ“¦ where this page comes from