batadv_route_unicast_packet(9)
๐ 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 uprecv_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:
_batadv_update_route(9)batadv_update_route(9)batadv_window_protected(9)batadv_check_management_packet(9)batadv_skb_decrement_ttl(9)batadv_recv_my_icmp_packet(9)batadv_recv_icmp_ttl_exceeded(9)batadv_recv_icmp_packet(9)batadv_check_unicast_packet(9)batadv_last_bonding_get(9)batadv_last_bonding_replace(9)batadv_find_router(9)batadv_reroute_unicast_packet(9)batadv_check_unicast_ttvn(9)batadv_recv_unhandled_unicast_packet(9)batadv_recv_unicast_packet(9)batadv_recv_unicast_tvlv(9)batadv_recv_frag_packet(9)batadv_recv_bcast_packet(9)batadv_recv_mcast_packet(9)
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
- 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