batadv_batman_skb_recv(9)
π batadv_batman_skb_recv β like, the whole manual page, bestie
okay so this is batadv_batman_skb_recv(9) from the Kernel API Manual, and no cap it's giving "the front door of the batman-adv receive path" π¦ β it handles an incoming message from a hard interface. yes, hard interface, that's the actual term, we don't make the rules. anyway let's get into it β¨
β¨ SYNOPSIS β¨
int batadv_batman_skb_recv (struct sk_buff *skb , struct net_device *dev
, struct packet_type *ptype , struct net_device *orig_dev );
four args, all pointers, returns an int. she's compact, she's iconic, she's not here to waste your time π
π ARGUMENTS π
skbβ the received packet, aka the actual goods π¦ the packet that just showed up.devβ the net device that the packet was received on. like, which interface caught it.ptypeβ packet type of the incoming packet, and yeah, it'sETH_P_BATMAN. that's the whole vibe check right there π₯orig_devβ the original receive net device (e.g. a bonded device). so if the packet took a little detour through a bond, this is where it actually came from, iykyk π§
π«Ά RETURN π«Ά
It returns NET_RX_SUCCESS on success, or NET_RX_DROP in case of failure.
that's it. two outcomes. slay or yeet. π
π SEE ALSO π
Kernel file ./net/batman-adv/main.c, plus the whole friend group:
batadv_init(9)batadv_exit(9)batadv_mesh_init(9)batadv_mesh_free(9)batadv_is_my_mac(9)batadv_max_header_len(9)batadv_skb_set_priority(9)batadv_recv_unhandled_packet(9)batadv_recv_handler_init(9)batadv_recv_handler_register(9)batadv_recv_handler_unregister(9)batadv_get_vid(9)batadv_vlan_ap_isola_get(9)batadv_throw_uevent(9)
literally the entire main.c extended universe, go read them, they're all main character energy π
okay that's the page!! huge shoutout to ./net/batman-adv for the source and the October 2026 date on this one β she's from the future, she's thriving, periodt βπ
π¦ 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