public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batman-adv: pass the correct header size to interface_rx
@ 2012-01-31 21:35 Antonio Quartulli
  2012-01-31 21:39 ` Antonio Quartulli
  2012-01-31 22:53 ` Sven Eckelmann
  0 siblings, 2 replies; 4+ messages in thread
From: Antonio Quartulli @ 2012-01-31 21:35 UTC (permalink / raw)
  To: b.a.t.m.a.n

in recv_unicast_frag(), the third parameter of the interface_rx() invocation,
which is the size of the current header, is wrongly computed.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
 routing.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/routing.c b/routing.c
index f961cc5..cf8fe0a 100644
--- a/routing.c
+++ b/routing.c
@@ -990,7 +990,7 @@ int recv_ucast_frag_packet(struct sk_buff *skb, struct hard_iface *recv_if)
 			return NET_RX_SUCCESS;
 
 		interface_rx(recv_if->soft_iface, new_skb, recv_if,
-			     sizeof(struct unicast_packet));
+			     sizeof(*unicast_packet));
 		return NET_RX_SUCCESS;
 	}
 
-- 
1.7.3.4


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

end of thread, other threads:[~2012-02-01  7:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-31 21:35 [B.A.T.M.A.N.] [PATCH] batman-adv: pass the correct header size to interface_rx Antonio Quartulli
2012-01-31 21:39 ` Antonio Quartulli
2012-01-31 22:53 ` Sven Eckelmann
2012-02-01  7:15   ` Antonio Quartulli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox