On Mon, 30 Sep 2002, jamal wrote:
> was to use sk->protinfo.af_inet.recverr only in the case of all is
> clean from the device layer.
Of course if you want to say sk->protinfo.af_inet.recverr is higher
priority then the patch becomes;->
--- ip_output.c 2002/09/29 08:50:36 1.1
+++ ip_output.c 2002/09/30 06:38:32
@@ -603,8 +603,9 @@
err = NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL,
skb->dst->dev, output_maybe_reroute);
if (err) {
- if (err > 0)
- err = sk->protinfo.af_inet.recverr ?
net_xmit_errno(err) : 0;
+ if (err > 0) {
+ err = sk->protinfo.af_inet.recverr ?
sk->protinfo.af_inet.recverr:net_xmit_errno(err);
+ }
if (err)
goto error;
}
@@ -713,8 +714,9 @@
err = NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, rt->u.dst.dev,
output_maybe_reroute);
- if (err > 0)
- err = sk->protinfo.af_inet.recverr ? net_xmit_errno(err) : 0;
+ if (err > 0) {
+ err = sk->protinfo.af_inet.recverr ?
sk->protinfo.af_inet.recverr:net_xmit_errno(err);
+ }
if (err)
goto error;
out:
|