Skip to content

Commit eb6915e

Browse files
T-Xsimonwunderlich
authored andcommitted
batman-adv: Remove unused skb_reset_mac_header()
During broadcast queueing, the skb_reset_mac_header() sets the skb to a place invalid for a MAC header, pointing right into the batman-adv broadcast packet. Luckily, no one seems to actually use eth_hdr(skb) afterwards until batadv_send_skb_packet() resets the header to a valid position again. Therefore removing this unnecessary, weird skb_reset_mac_header() call. Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue> Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
1 parent b776976 commit eb6915e

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎net/batman-adv/send.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,6 @@ int batadv_add_bcast_packet_to_list(struct batadv_priv *bat_priv,
586586
bcast_packet = (struct batadv_bcast_packet *)newskb->data;
587587
bcast_packet->ttl--;
588588

589-
skb_reset_mac_header(newskb);
590-
591589
forw_packet->skb = newskb;
592590

593591
INIT_DELAYED_WORK(&forw_packet->delayed_work,

0 commit comments

Comments
 (0)