batadv_v_ogm_metric_update(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_v_ogm_metric_update β€” the kernel API manual, but make it make sense

okay so bestie, we're in the batadv_v_ogm_metric_update(9) page today β€” yes that's the manual name, yes it's a mouthful, no we're not shortening it. This one lives in the Kernel API Manual and it's literally all about updating the route metric based on OGM. That's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

int batadv_v_ogm_metric_update (struct batadv_priv *bat_priv , const
struct batadv_ogm2_packet *ogm2 , struct batadv_orig_node *orig_node ,
struct batadv_neigh_node *neigh_node , struct batadv_hard_iface
*if_incoming , struct batadv_hard_iface *if_outgoing );

six arguments, one int coming back at you. she's serving function signature realness, no cap. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv that's holding all the mesh interface information. the main character of the struct collection, fr.
  • ogm2 β€” the OGM2 structure. that's it, that's the description, it's very lowkey about itself.
  • orig_node β€” the Originator structure for which the OGM has been received. iykyk.
  • neigh_node β€” the neigh_node through which the OGM has been received. the middleman. the messenger. respect her.
  • if_incoming β€” the interface where this packet was received. where it showed up. where it ate. πŸ“
  • if_outgoing β€” the interface for which the packet should be considered. not the same as incoming, bestie, don't mix them up πŸ’€

🌈 RETURN 🌈

three possible moods:

  • 1 β€” if the OGM is new. fresh off the wire. iconic. ✨
  • 0 β€” if it is not new but valid. not new, still valid, still slaying in her own way πŸ’…
  • <0 β€” on error, e.g. an old OGM. yeah, that's a no from her 😭

🌸 SEE ALSO 🌸

the kernel file is ./net/batman-adv/bat_v_ogm.c and honestly the whole friend group is here β€” every single one of these, no skipping:

twenty-four whole references. she keeps her circle close and her (9) suffixes closer 🫢


ngl this page is short but she's doing exactly what she needs to do. read the args, respect the args, move on. periodt. πŸ’œ

and that's the tea, bestie β€” this one came from ./net/batman-adv, dated October 2026, and it's signed off as batadv_v_ogm_metric_update(9). go forth and update those metrics πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from