batadv_mcas...align_offset(9)
π batadv_mcast_forw_shrink_align_offset(9)
okay so bestie, welcome to the Kernel API Manual β¨ this one is section 9, it lives in batman-adv land, and honestly? it's a tiny little function with main character energy. let's get into it π«Ά
πΈ NAME πΈ
batadv_mcast_forw_shrink_align_offset β get new alignment offset π«
π SYNOPSIS π
short batadv_mcast_forw_shrink_align_offset (unsigned int num_dests_old
, unsigned int num_dests_reduce );
π¦ ARGUMENTS π¦
num_dests_oldβ the old amount of destination nodes, like, the one that's about to get updated π it's the "before" pic fr frnum_dests_reduceβ the number of destinations that were removed π« so how many besties did NOT make the cut
π DESCRIPTION π
so what does it actually do? it calculates the amount of potential extra alignment offset that's needed to adjust the TVLV padding after the change in destination nodes π
that's it. that's the whole vibe. no cap β¨
π₯ RETURN π₯
0β if no change to padding is needed π everything's already iconic, nothing to do2β if padding needs to be removed π§ so we're trimming, we're decluttering-2β if padding needs to be added πΈ okay so now we're ACCESSORIZING, we need more
β SEE ALSO β
the kernel file itself lives right here: ./net/batman-adv/multicast_forw.c π and these are all the sister functions, the whole group chat basically:
batadv_mcast_forw_skb_push(9)batadv_mcast_forw_push_padding(9)batadv_mcast_forw_push_est_padding(9)batadv_mcast_forw_orig_entry(9)batadv_mcast_forw_push_dest(9)batadv_mcast_forw_push_dests_list(9)batadv_mcast_forw_push_tt(9)batadv_mcast_forw_push_want_all(9)batadv_mcast_forw_push_want_rtr(9)batadv_mcast_forw_scrape(9)batadv_mcast_forw_push_scrape_padding(9)batadv_mcast_forw_push_insert_padding(9)batadv_mcast_forw_push_adjust_padding(9)batadv_mcast_forw_push_dests(9)batadv_mcast_forw_push_tracker(9)batadv_mcast_forw_push_tvlvs(9)batadv_mcast_forw_push_hdr(9)batadv_mcast_forw_scrub_dests(9)batadv_mcast_forw_shrink_fill(9)batadv_mcast_forw_shrink_pack_dests(9)batadv_mcast_forw_shrink_update_headers(9)batadv_mcast_forw_shrink_move_headers(9)batadv_mcast_forw_shrink_tracker(9)batadv_mcast_forw_packet(9)batadv_mcast_forw_tracker_tvlv_handler(9)batadv_mcast_forw_packet_hdrlen(9)batadv_mcast_forw_expand_head(9)batadv_mcast_forw_push(9)batadv_mcast_forw_mcsend(9)
ngl this whole page is short but it ATE π every one of those functions above is a real one, go read them, iykyk π
β¨ and that's the page, bestie β¨ this iconic lil' slice of the kernel lives in ./net/batman-adv and it was dated October 2026 π periodt. go forth and align ur offsets π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms