batadv_send_skb_packet(9)
π
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:
batadv_send_broadcast_skb(9)batadv_send_unicast_skb(9)batadv_send_skb_to_orig(9)batadv_send_skb_push_fill_unicast(9)batadv_send_skb_prepare_unicast(9)batadv_send_skb_prepare_unicast_4addr(9)batadv_send_skb_unicast(9)batadv_send_skb_via_tt_generic(9)batadv_send_skb_via_gw(9)batadv_forw_packet_free(9)batadv_forw_packet_alloc(9)batadv_forw_packet_was_stolen(9)batadv_forw_packet_steal(9)batadv_forw_packet_list_steal(9)batadv_forw_packet_list_free(9)batadv_forw_packet_queue(9)batadv_forw_packet_bcast_queue(9)batadv_forw_packet_ogmv1_queue(9)batadv_forw_bcast_packet_to_list(9)batadv_forw_bcast_packet_if(9)batadv_send_no_broadcast(9)__batadv_forw_bcast_packet(9)batadv_forw_bcast_packet(9)batadv_send_bcast_packet(9)batadv_forw_packet_bcasts_left(9)batadv_forw_packet_bcasts_dec(9)batadv_forw_packet_is_rebroadcast(9)batadv_send_outstanding_bcast_packet(9)batadv_purge_outstanding_packets(9)
xoxo, source/version ./net/batman-adv Β· October 2026 πβ¨
π¦ 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