batadv_v_ogm_forward(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_v_ogm_forward(9) πŸ’–

okay so bestie, we're in the Kernel API Manual today and the star of the show is batadv_v_ogm_forward(9) β€” yes that's the whole title, yes it's a lot, no we're not scared of it 🫢


✨ NAME ✨

batadv_v_ogm_forward β€” the function that checks all the conditions and then forwards an OGM out the given outgoing interface πŸ’…


🌸 SYNOPSIS 🌸

void batadv_v_ogm_forward (struct batadv_priv *bat_priv , const struct
batadv_ogm2_packet *ogm_received , struct batadv_orig_node *orig_node ,
struct batadv_neigh_node *neigh_node , struct batadv_hard_iface
*if_incoming , struct batadv_hard_iface *if_outgoing );

like, it returns void and takes six whole arguments. she's high maintenance and she's worth it πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv that's holding all the mesh interface information. the main character's whole wardrobe basically πŸ’œ
  • ogm_received β€” the OGM that was previously received and is now getting forwarded. it's been places, it's seen things πŸ¦‹
  • orig_node β€” the originator that has been updated ✨
  • neigh_node β€” the neigh_node that the OGM came in through, iykyk 🌈
  • if_incoming β€” the interface this OGM was received on, like, where it entered the chat πŸ™ˆ
  • if_outgoing β€” the interface the OGM has to be forwarded to. that's the exit, the departure gate, the slay πŸ’…

⭐ DESCRIPTION ⭐

so what she does is: forward an OGM to an interface β€” but after having altered the throughput metric and the TTL value contained in it πŸ”₯

and here's the iconic part: the original OGM isn't modified. not one bit. she makes a copy moment and leaves the original untouched, no cap πŸ™Œ

ngl bestie this is the important bit β€” the metrics get tweaked for the forwarded version, but the received packet stays exactly as it was. respect the original, periodt πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/batman-adv/bat_v_ogm.c β€” and honestly the whole extended friend group:


okay that's the whole page bestie, go forth and forward those OGMs responsibly πŸ§šβ€β™€οΈ

source/version: ./net/batman-adv Β· dated: October 2026 Β· batadv_v_ogm_forward(9) β€” mwah, see u in the kernel πŸ’‹πŸŒ·

πŸ“¦ where this page comes from