batadv_v_ogm_aggr_packet(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_v_ogm_aggr_packet πŸ’…

okay bestie, quick vibe check first: you're reading a page from the Kernel API Manual, section 9, and today's main character is batadv_v_ogm_aggr_packet. no cap, she's a little one but she matters 🫢


✨ NAME ✨

batadv_v_ogm_aggr_packet β€” checks if there is another OGM aggregated πŸ”₯

like, literally her whole job is peeking at the buffer and being like "girl, is there room for one more?"


πŸ¦‹ SYNOPSIS πŸ¦‹

bool batadv_v_ogm_aggr_packet (int buff_pos , int packet_len , const
struct batadv_ogm2_packet *ogm2_packet );

she returns a bool, she takes three args, she's not complicated. we love a low-maintenance icon ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • buff_pos β€” current position in the skb πŸ’« like where we're at right now in the buffer, our current little spot
  • packet_len β€” the total length of the skb πŸ“ the whole entire thing, not just your section
  • ogm2_packet β€” potential OGM2 in buffer πŸ‘€ potential is doing so much work in that sentence and we respect it

🌸 RETURN 🌸

returns true if there's enough space for another OGM, and false otherwise ⭐

that's it. that's the whole answer. no in-between, no "maybe", no "it's complicated" β€” just a clean little yes-or-no, slay πŸ’…


🌈 SEE ALSO 🌈

so there's a whole friend group here, and honestly the group chat is popping off. from the kernel file ./net/batman-adv/bat_v_ogm.c:

that's the whole squad 🧚 lowkey a reunion tour. go read them, they'd do the same for you πŸ’œ


and that's the page!! mwah πŸ’– this cutie lives in ./net/batman-adv and the date stamp on her is October 2026 β€” screenshot it, frame it, put it on the fridge, she ate and left no crumbs πŸ‘‘βœ¨

πŸ“¦ where this page comes from