batadv_v_elp_packet_recv(9)
π 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 theskbif 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:
batadv_v_metric_queue_entry(9)batadv_v_elp_start_timer(9)batadv_v_elp_get_throughput(9)batadv_v_elp_throughput_metric_update(9)batadv_v_elp_wifi_neigh_probe(9)batadv_v_elp_periodic_work(9)batadv_v_elp_iface_enable(9)batadv_v_elp_iface_disable(9)batadv_v_elp_iface_activate(9)batadv_v_elp_primary_iface_set(9)batadv_v_elp_neigh_update(9)
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
- 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