b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH v3 1/2] batman-adv: Remove unused skb_reset_mac_header()
@ 2016-08-06  2:06 Linus Lüssing
  2016-08-06  2:06 ` [B.A.T.M.A.N.] [PATCH v3 2/2] batman-adv: Simple (re)broadcast avoidance Linus Lüssing
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Lüssing @ 2016-08-06  2:06 UTC (permalink / raw)
  To: b.a.t.m.a.n

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.

Reviewed-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
---

Changes in v3:
* none

Changes in v2:
* none

 net/batman-adv/send.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c
index 8d4e1f5..97bdb0c 100644
--- a/net/batman-adv/send.c
+++ b/net/batman-adv/send.c
@@ -586,8 +586,6 @@ int batadv_add_bcast_packet_to_list(struct batadv_priv *bat_priv,
 	bcast_packet = (struct batadv_bcast_packet *)newskb->data;
 	bcast_packet->ttl--;
 
-	skb_reset_mac_header(newskb);
-
 	forw_packet->skb = newskb;
 
 	INIT_DELAYED_WORK(&forw_packet->delayed_work,
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-06 18:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-06  2:06 [B.A.T.M.A.N.] [PATCH v3 1/2] batman-adv: Remove unused skb_reset_mac_header() Linus Lüssing
2016-08-06  2:06 ` [B.A.T.M.A.N.] [PATCH v3 2/2] batman-adv: Simple (re)broadcast avoidance Linus Lüssing
2016-08-06 18:27   ` Sven Eckelmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).