batadv_send_skb_packet(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_send_skb_packet(9) β€” send an already prepared packet ✨

okay so welcome to batadv_send_skb_packet(9) from the Kernel API Manual. This is the β€œpacket is already packed, bestie, just send it” function. Let’s get into it 🫢


πŸŽ€ NAME πŸŽ€

batadv_send_skb_packet β€” send an already prepared packet

✨ SYNOPSIS ✨

int batadv_send_skb_packet (struct sk_buff *skb , struct
batadv_hard_iface *hard_iface , const u8 *dst_addr );

πŸ’… ARGUMENTS πŸ’…

  • skb β€” the packet to send πŸ’Œ
  • hard_iface β€” the interface to use to send the broadcast packet πŸ“‘
  • dst_addr β€” the payload destination 🎯

πŸ¦‹ DESCRIPTION πŸ¦‹

Send out an already prepared packet to the given neighbor, or broadcast it using the specified interface. Either hard_iface or neigh_node must be not NULL. If neigh_node is NULL, then the packet is broadcasted using hard_iface; otherwise it is sent as unicast to the given neighbor. iykyk πŸ’«

Big important thing: regardless of the return value, the skb is consumed. like, it’s gone, it’s not yours anymore, no take-backs 🫠

🌸 RETURN 🌸

A negative errno code is returned on a failure. A success does not guarantee the frame will be transmitted β€” it may be dropped due to congestion or traffic shaping. so yeah, success is giving β€œwe tried” not β€œit arrived” 😭

πŸ’– SEE ALSO πŸ’–

Kernel file ./net/batman-adv/send.c β€” plus the whole squad:


xoxo, source/version ./net/batman-adv Β· October 2026 πŸ’–βœ¨

πŸ“¦ where this page comes from