batadv_frag_skb_fwd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_frag_skb_fwd β€” a Kernel API Manual moment (yes, the batadv_frag_skb_fwd(9) girlies know)

okay so bestie, gather round, because this one is literally about forwarding fragments that would exceed MTU when merged. no cap, that's the whole vibe. ✨


πŸ¦‹ SYNOPSIS

bool batadv_frag_skb_fwd (struct sk_buff *skb , struct batadv_hard_iface
*recv_if , struct batadv_orig_node *orig_node_src , int *rx_result );

like. it returns a bool. that's it. that's the whole function signature. slay.


πŸŽ€ ARGUMENTS

  • skb β€” the skb to forward. the main character of the operation tbh πŸ’…
  • recv_if β€” the interface that the skb is received on. where it came in, iykwim
  • orig_node_src β€” the originator that the skb is received from. we love a source 🫢
  • rx_result β€” gets set to NET_RX_SUCCESS when the fragment was forwarded, and NET_RX_DROP when it was dropped. but bestie, hear me: this is only valid when true is returned. if it says false, don't you dare read this value. πŸ™ˆ

🌸 DESCRIPTION

okay so here's the tea β˜• β€” it looks up the next-hop of the fragment's payload, then checks whether the merged packet is gonna exceed the MTU towards that next-hop. and if it does? the fragment gets forwarded without merging it. that's it. that's the whole plan. iconic behaviour, honestly. 🌈


⭐ RETURN

  • true if the fragment is consumed/forwarded
  • false otherwise

periodt. no in-between. 🧚


πŸ‘‘ SEE ALSO

Kernel file ./net/batman-adv/fragmentation.c, plus all these besties in the same friend group:


🫢 tiny reminder that this page lives in ./net/batman-adv, and it's dated October 2026 β€” so yes, we're being futuristic about it. πŸ’œ

k bye, go forward those fragments responsibly, mwah πŸ“πŸ’–βœ¨

πŸ“¦ where this page comes from