batadv_v_forward_penalty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the batadv_v_forward_penalty(9) page from the Kernel API Manual ✨ this one is literally about applying a penalty to the throughput metric forwarded with B.A.T.M.A.N. V OGMs πŸ¦‹

✨ NAME ✨

batadv_v_forward_penalty β€” apply a penalty to the throughput metric forwarded with B.A.T.M.A.N. V OGMs πŸ’…

🌸 SYNOPSIS 🌸

u32 batadv_v_forward_penalty (struct batadv_priv *bat_priv , struct
       batadv_hard_iface *if_incoming , struct batadv_hard_iface *if_outgoing ,
       u32 throughput );

πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv with all the mesh interface information πŸ‘‘
  • if_incoming β€” the interface where the OGM has been received πŸ“₯
  • if_outgoing β€” the interface where the OGM has to be forwarded to πŸ“€
  • throughput β€” the current throughput πŸ“

πŸ’… DESCRIPTION πŸ’…

okay so this function applies a penalty on the current throughput metric value based on the characteristic of the interface where the OGM has been received. no cap, that's the vibe check 🫢

Initially the per hardif hop penalty is applied to the throughput. After that the return value is then computed as follows:

  • throughput * 50% β€” if the incoming and outgoing interface are the same WiFi interface and the throughput is above 1MBit/s πŸ”₯
  • throughput β€” if the outgoing interface is the default interface (i.e. this OGM is processed for the internal table and not forwarded) 🧚
  • throughput * node hop penalty β€” otherwise πŸ’œ

πŸ”₯ RETURN πŸ”₯

the penalised throughput metric πŸ˜­πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/batman-adv/bat_v_ogm.c 🌈


and that's the whole page, bestie πŸ’– this iconic lil manual comes from source ./net/batman-adv, dated October 2026, and it's literally the batadv_v_forward_penalty(9) page πŸŽ€βœ¨

πŸ“¦ where this page comes from