Skip to contentSkip to conversation

[2.6] propogate rx errors from raw_rcv_skb

PATCH In review David S. Miller 1 participant 2 messages Jul 17, 2003 – Jul 21, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 [2.6] propogate rx errors from raw_rcv_skb

Forwarded...

Zwane, please posting networking patches to the "networking" lists, thanks.

Begin forwarded message:

Date: Wed, 16 Jul 2003 22:46:59 -0400 (EDT)
From: Zwane Mwaikambo <[email protected]>
To: Linux Kernel <[email protected]>
Cc: "David S. Miller" <[email protected]>
Subject: [PATCH][2.6] propogate rx errors from raw_rcv_skb

Hi David,
This looks somewhat sane, ipv6 doesn't seem to need it as it
always returns 0

Index: linux-2.6.0-test1-mm1/net/ipv4/raw.c
===================================================================
RCS file: /build/cvsroot/linux-2.6.0-test1-mm1/net/ipv4/raw.c,v retrieving revision 1.1.1.1

net/ipv4/raw.c +1 -2
diff -u -p -B -r1.1.1.1 raw.c
@@ -252,8 +252,7 @@ int raw_rcv(struct sock *sk, struct sk_b
 
 	skb_push(skb, skb->data - skb->nh.raw);
 
-	raw_rcv_skb(sk, skb);
-	return 0;
+	return raw_rcv_skb(sk, skb);
 }
 
 static int raw_send_hdrinc(struct sock *sk, void *from, int length,
#1 lore raw
Quoted 2 lines · On Wed, 16 Jul 2003 19:53:45 -0700 "David S. Miller" <[email protected]> wrote:

This looks somewhat sane, ipv6 doesn't seem to need it as it
always returns 0

Nothing that calls raw_rcv() checks the return value, so what's the point?