batadv_recv...ttl_exceeded(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_recv...ttl_exceeded(9) β€” like, the Kernel API Manual page, bestie ✨

okay so you found the Kernel API Manual page for batadv_recv...ttl_exceeded(9) and honestly? iconic of you. sit down, grab a strawberry πŸ“, and let's get into it.


πŸŽ€ NAME πŸŽ€

batadv_recv_icmp_ttl_exceeded β€” handles an ICMP packet that literally hit TTL 0 😭 (yes, it expired, rip)


πŸ¦‹ SYNOPSIS πŸ¦‹

int batadv_recv_icmp_ttl_exceeded (struct batadv_priv *bat_priv , struct
       sk_buff *skb );

that's the whole signature, no cap. it takes two things and gives you back an int.


🌸 ARGUMENTS 🌸

  • bat_priv β€” the bat priv that's holding all the mesh interface information, she's the main character here πŸ‘‘
  • skb β€” the ICMP packet whose TTL has expired πŸ’€ (gone, but not forgotten)

✨ DESCRIPTION ✨

so here's the vibe: for traceroute-style ICMP echo requests, this function sends a TTL exceeded reply right back to the source. it's giving "you tried, here's your receipt" 🫢

other ICMP types? simply dropped. not today. πŸ™ˆ


πŸ”₯ RETURN πŸ”₯

  • NET_RX_SUCCESS β€” if the reply was queued, slay πŸ’…
  • NET_RX_DROP β€” otherwise, it's a no from me

πŸ‘‘ SEE ALSO πŸ‘‘

highkey the whole friend group, fr fr:

Kernel file ./net/batman-adv/routing.c


ok that's the whole page bestie, go read the source now, iykyk πŸ§šβ€β™€οΈ

mwah πŸ’œ β€” this cutie came from ./net/batman-adv, dated October 2026, and she's filed under batadv_recv...ttl_exceeded(9). periodt. 🌈

πŸ“¦ where this page comes from