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

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: pass the correct header size to interface_rx
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Antonio Quartulli @ 2012-01-31 21:39 UTC (permalink / raw)
  To: b.a.t.m.a.n

[-- Attachment #1: Type: text/plain, Size: 469 bytes --]

On Tue, Jan 31, 2012 at 10:35:10 +0100, Antonio Quartulli wrote:
> 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>
> ---


This patch is based on top of maint, even if it does not really change so much.

Cheers,


-- 
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

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

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: pass the correct header size to interface_rx
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Sven Eckelmann @ 2012-01-31 22:53 UTC (permalink / raw)
  To: b.a.t.m.a.n

[-- Attachment #1: Type: text/plain, Size: 527 bytes --]

On Tuesday 31 January 2012 22:35:10 Antonio Quartulli wrote:
> in recv_unicast_frag(), the third parameter of the interface_rx()
> invocation, which is the size of the current header, is wrongly computed.

Really (actually it is the fourth, but I don't want to talk about that)? 
Wasn't the reassembled unicast packet just a unicast packet and not a 
unicast_frag packet (see frag_merge_packet)?

I could be wrong (didn't checked it), but I just have the feeling that the 
current version could be correct.

Kind regards,
	Sven

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: pass the correct header size to interface_rx
  2012-01-31 22:53 ` Sven Eckelmann
@ 2012-02-01  7:15   ` Antonio Quartulli
  0 siblings, 0 replies; 4+ messages in thread
From: Antonio Quartulli @ 2012-02-01  7:15 UTC (permalink / raw)
  To: Sven Eckelmann; +Cc: b.a.t.m.a.n

[-- Attachment #1: Type: text/plain, Size: 871 bytes --]

On Tue, Jan 31, 2012 at 11:53:33PM +0100, Sven Eckelmann wrote:
> On Tuesday 31 January 2012 22:35:10 Antonio Quartulli wrote:
> > in recv_unicast_frag(), the third parameter of the interface_rx()
> > invocation, which is the size of the current header, is wrongly computed.
> 
> Really (actually it is the fourth, but I don't want to talk about that)? 
> Wasn't the reassembled unicast packet just a unicast packet and not a 
> unicast_frag packet (see frag_merge_packet)?
> 
> I could be wrong (didn't checked it), but I just have the feeling that the 
> current version could be correct.

I double checked a few second ago and yes, you are right. Once the packet has
been merged again it is a unicast_packet.

So, please guys, drop this patch.


Regards,



-- 
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[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