batadv_iv_ogm_calc_tq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_iv_ogm_calc_tq ✨

okay so bestie, welcome to the batadv_iv_ogm_calc_tq(9) page from the Kernel API Manual β€” like, the kernel API manual, not the regular one, keep up 🫢. This one's a whole function, and it is literally the vibe check for your OGM packets. let's get into it ✨


🌸 NAME 🌸

batadv_iv_ogm_calc_tq β€” calculate tq for current received ogm packet πŸ’–

that's it, that's the whole name. tq stands for transmit quality btw (iykyk), and this function is out here computing it for the ogm packet you just received. no cap. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

okay here's the signature, copied exactly because I do not play about signatures 😀

bool batadv_iv_ogm_calc_tq (struct batadv_orig_node *orig_node , struct
batadv_orig_node *orig_neigh_node , struct batadv_ogm_packet
*batadv_ogm_packet , struct batadv_hard_iface *if_incoming , struct
batadv_hard_iface *if_outgoing );

returns a bool, takes five pointers. five. she's high maintenance and honestly? iconic πŸ‘‘


πŸ’œ ARGUMENTS πŸ’œ

every single one, bestie, in order, no skips πŸ™ˆ

  • orig_node β€” the orig node who originally emitted the ogm packet 🌟 like the actual origin of the whole thing, the main character of this packet's story.
  • orig_neigh_node β€” the orig node struct of the neighbor who sent the packet 🫢 lowkey the difference between these two is everything: one emitted it, the other sent it to you. two different nodes, two different jobs.
  • batadv_ogm_packet β€” the ogm packet πŸ“¦ the actual packet, the payload, the reason we're all here.
  • if_incoming β€” interface where the packet was received πŸŽ€ the door it came through.
  • if_outgoing β€” interface for which the retransmission should be considered πŸ”₯ the door it would go back out of. yes, it's a whole thing.

⭐ RETURN ⭐

  • true β€” if the link can be considered bidirectional ✨ slay, the link goes both ways, we love a mutual situation πŸ’–
  • false β€” otherwise 😭 not bidirectional, not today.

🌈 SEE ALSO 🌈

okay this list is long long, but I promised I wouldn't skip anything, so buckle up bestie, we're going through all of it 🧚

see? all of them. every single one. I told you I wasn't gonna do you dirty πŸ’…βœ¨


that's the whole page bestie, go forth and calculate some tq πŸ¦‹πŸ’–

this lil masterpiece lives in ./net/batman-adv and it's dated October 2026 β€” yes, the future, she's ahead of her time πŸ‘‘βœ¨ mwah, ily, bye 🫢

πŸ“¦ where this page comes from