batadv_iv_ogm_send_to_if(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_iv_ogm_send_to_if β€” like, the Kernel API Manual page, bestie ✨

okay so picture this: we're deep in the batman-adv kernel docs, and this lil function is the one that literally yeets a batman OGM out the door onto an interface. it's a (9) manpage, it lives in ./net/batman-adv/bat_iv_ogm.c, and honestly? iconic. let's get into it πŸŽ€


✨ NAME ✨

batadv_iv_ogm_send_to_if β€” send a batman OGM to a given interface πŸ’Œ

no cap, that's the whole vibe: one OGM packet, one interface, one transmission. slay.


🌸 SYNOPSIS 🌸

void batadv_iv_ogm_send_to_if (struct batadv_forw_packet *forw_packet ,
struct batadv_hard_iface *hard_iface );

it returns void, so there's literally nothing to check afterwards, it just does the thing 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • forw_packet β€” the forward packet, and it's the one holding the OGM(s) that are about to be transmitted ✨
  • hard_iface β€” the interface the OGM is getting sent out on 🧚

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the little routine, step by step, because the way that it does three things in a row is lowkey gorgeous:

  • it updates the direct link flags of each aggregated OGM for the outgoing interface πŸŽ€
  • then it logs the transmission (yes, there's a log, it's giving observability)
  • and finally it hands a clone of the skb down to the lower layer so it can get broadcast out into the world 🌈

clone the skb, pass it down, broadcast. that's it. that's the whole function. periodt πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr β€” go read these too:


and that's the page, bestie!! it came from ./net/batman-adv, dated October 2026, and it's filed under batadv_iv_ogm_send_to_if(9) β€” go touch some skbs, ily πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from