batadv_skb_decrement_ttl(9)
π batadv_skb_decrement_ttl(9) π
okay so bestie, this is a page from the Kernel API Manual about batadv_skb_decrement_ttl β and honestly? she's a tiny function with main character energy. buckle up π
β¨ NAME β¨
batadv_skb_decrement_ttl β decrements the ttl inside a batman-adv header, and does it csum-safe. like, it doesn't wreck your checksums. queen behavior π
πΈ SYNOPSIS πΈ
bool batadv_skb_decrement_ttl(struct sk_buff *skb);
π¦ ARGUMENTS π¦
skbβ the received packet, and listen:skb->datahas to be pointing at the batman-adv header. that's the whole vibe check fr fr π«Ά
π₯ DESCRIPTION π₯
she supports a whole lineup of packet types, and every single one of them carries the TTL at offset 2. no cap, offset 2 for all of them. iconic consistency π
batadv_ogm_packetbatadv_ogm2_packetbatadv_icmp_headerbatadv_icmp_packetbatadv_icmp_tp_packetbatadv_icmp_packet_rrbatadv_unicast_packetbatadv_frag_packetbatadv_bcast_packetbatadv_mcast_packetbatadv_coded_packetbatadv_unicast_tvlv_packet
twelve packet types, all ate, no crumbs π
β RETURN β
trueβ the packet may be forwarded, because the ttl got decremented. slay, she's still alive πfalseβ the packet must be dropped, because the ttl would expire. rip bestie, she's done π
π SEE ALSO π
all the routing.c girlies, from the kernel file ./net/batman-adv/routing.c:
_batadv_update_route(9)batadv_update_route(9)batadv_window_protected(9)batadv_check_management_packet(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_route_unicast_packet(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)
go read them, iykyk π§
and that's the whole page, bestie! this one comes to you live from ./net/batman-adv, dated October 2026 β the manual name is batadv_skb_decrement_ttl(9) in case you forgot already π mwah, go forward those packets responsibly ππ
π¦ 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