batadv_v_elp_packet_recv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_v_elp_packet_recv(9) β€” like, the ELP packet handler era

okay bestie, buckle up, because we're diving into the Kernel API Manual and this one is a whole mood. The main character of today's episode is batadv_v_elp_packet_recv β€” the main ELP packet handler. Yes, THE main one. Not a side quest. Main. Character. Energy. πŸ‘‘


✨ NAME ✨

batadv_v_elp_packet_recv β€” the main ELP packet handler πŸŽ€


🌸 SYNOPSIS 🌸

int batadv_v_elp_packet_recv (struct sk_buff *skb , struct
       batadv_hard_iface *if_incoming );

like… it returns an int, it takes two structs, it's giving "I know exactly what I'm doing" β€” periodt. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” the received packet πŸ“ (yes, the actual packet, the whole reason we're here, no cap)
  • if_incoming β€” the interface this packet was received through 🌈 (the ~vibes~ channel it came in on, iykyk)

πŸ’€ RETURN πŸ’€

okay so this is important, don't skip it πŸ™ˆ

  • NET_RX_SUCCESS β€” and it consumes the skb if the packet was properly processed βœ… (like, it ate the skb and left no crumbs, obsessed)
  • NET_RX_DROP β€” in case of failure πŸ’€ (she tried, bestie, but the vibe check failed)

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr β€” first up:

Kernel file ./net/batman-adv/bat_v_elp.c struct

then the squad, in exactly this order because we don't do chaos here:


ngl bestie, this is kernel-space stuff β€” read the return values carefully and don't go dropping skbs in ways the kernel didn't ask for πŸ™

k bye ily, this page was brought to you by ./net/batman-adv and the iconic month of October 2026 β€” dated and slaying, no notes πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from