batadv_route_unicast_packet(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’– batadv_route_unicast_packet(9) ๐Ÿ’–

okay so bestie, welcome to the Kernel API Manual glow-up for batadv_route_unicast_packet(9) โ€” weโ€™re gonna make this route-unicast situation make sense, no cap ๐Ÿ’…


๐ŸŽ€ NAME ๐ŸŽ€

batadv_route_unicast_packet โ€” forward a unicast packet towards its destination originator

โœจ SYNOPSIS โœจ

int batadv_route_unicast_packet (struct sk_buff *skb , struct batadv_hard_iface *recv_if );

๐Ÿซถ ARGUMENTS ๐Ÿซถ

  • skb โ€” the received unicast packet, aka the packet that just showed up
  • recv_if โ€” interface on which the packet was received

๐ŸŒธ DESCRIPTION ๐ŸŒธ

okay so hereโ€™s the tea: this function decrements the TTL, looks up the originator for the destination address, and hands the packet over to batadv_send_skb_to_orig for transmission. thatโ€™s the whole main-character sequence โœจ

and if the TTL is exhausted or no route exists? boom, the packet gets dropped. not me being dramatic, thatโ€™s literally the rule ๐Ÿ’€

๐ŸŒˆ RETURN ๐ŸŒˆ

NET_RX_SUCCESS if the packet was forwarded, and NET_RX_DROP otherwise. return-value vibe check complete, periodt ๐Ÿ’…

๐Ÿ”ฎ SEE ALSO ๐Ÿ”ฎ

Kernel file: ./net/batman-adv/routing.c โ€” and hereโ€™s the whole friend group:

this page is from ./net/batman-adv, dated October 2026, and itโ€™s all about batadv_route_unicast_packet(9) โ€” mwah, she ate ๐Ÿ’–๐ŸŽ€

๐Ÿ“ฆ where this page comes from