batadv_frag_skb_fwd(9)
π
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, iykwimorig_node_srcβ the originator that the skb is received from. we love a source π«Άrx_resultβ gets set toNET_RX_SUCCESSwhen the fragment was forwarded, andNET_RX_DROPwhen it was dropped. but bestie, hear me: this is only valid whentrueis returned. if it saysfalse, 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
trueif the fragment is consumed/forwardedfalseotherwise
periodt. no in-between. π§
π SEE ALSO
Kernel file ./net/batman-adv/fragmentation.c, plus all these besties in the same friend group:
batadv_frag_clear_chain(9)batadv_frag_purge_orig(9)batadv_frag_size_limit(9)batadv_frag_init_chain(9)batadv_frag_insert_packet(9)batadv_frag_merge_packets(9)batadv_skb_is_frag(9)batadv_frag_skb_buffer(9)batadv_frag_create(9)batadv_frag_send_packet(9)
π«Ά 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
- 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