batadv_iv_ogm_update_seqnos(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_iv_ogm_update_seqnos(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, we're being fancy today πŸŽ€ β€” and today's main character is batadv_iv_ogm_update_seqnos. She's a whole vibe.


✨ NAME ✨

batadv_iv_ogm_update_seqnos β€” process a batman packet for all interfaces, adjust the sequence number and find out whether it is a duplicate πŸ¦‹

like, she takes the packet, she runs it past every interface, she tweaks that sequence number, and then she's the one who goes "hmm… have i seen you before?" πŸ’…


🌸 SYNOPSIS 🌸

enum batadv_dup_status batadv_iv_ogm_update_seqnos (const struct ethhdr
*ethhdr , const struct batadv_ogm_packet *batadv_ogm_packet , const
struct batadv_hard_iface *if_incoming , struct batadv_hard_iface
*if_outgoing );

not me dropping the entire signature on you, but yes, that's her in all her glory β€” copy it exactly, no freestyling πŸ™ˆ


πŸ’– ARGUMENTS πŸ’–

  • ethhdr β€” the ethernet header of the packet. yep, the preamble situation πŸŽ€
  • batadv_ogm_packet β€” the OGM packet we're actually considering here. the one under the microscope πŸ”
  • if_incoming β€” the interface on which the OGM packet was received. where she came in at πŸ‘‹
  • if_outgoing β€” the interface for which the retransmission should be considered. where she might be headed next πŸ›«

⭐ RETURN ⭐

she gives you back a duplicate status, as enum batadv_dup_status πŸ‘‘

like β€” that's literally the entire answer. is it a dupe or not. iconic behaviour, no notes.


πŸ¦‹ SEE ALSO πŸ¦‹

first up, the kernel file where all this lives: ./net/batman-adv/bat_iv_ogm.c 🧚

and then… the whole friend group. everyone's invited, nobody gets left out 🫢

ngl, that's a long list. but every single one of them is on here for a reason, so don't skip a single soul πŸ’€

πŸŽ€ the sign-off πŸŽ€

this whole thing lives over in ./net/batman-adv, and it's dated October 2026 β€” and the page itself goes by batadv_iv_ogm_update_seqnos(9), in case you forgot who the moment belonged to πŸ‘‘βœ¨

k bye, go read your kernel source, ily πŸ’œπŸ¦‹

πŸ“¦ where this page comes from