Re: [PATCH 2.4.35.3] Fix the "InAddrErrors" increasing problem

2007-10-22 Thread David Miller
From: Gui Jianfeng <[EMAIL PROTECTED]> Date: Mon, 22 Oct 2007 15:10:46 +0800 > sorry for my careless, here is the correct one > > Signed-off-by: Gui Jianfeng <[EMAIL PROTECTED]> BTW, I would also like to say that I think a statistics correction is totally inappropriate for the 2.4.x kernel serie

Re: [PATCH 2.4.35.3] Fix the "InAddrErrors" increasing problem

2007-10-22 Thread Gui Jianfeng
Krishna Kumar2 写道: > Gui Jianfeng wrote on 10/22/2007 11:37:07 AM: > >> @@ -310,8 +310,12 @@ static inline int ip_rcv_finish(struct s >> * how the packet travels inside Linux networking. >> */ >> if (skb->dst == NULL) { >> - if (ip_route_input(skb, iph->daddr, iph->saddr, iph-

Re: [PATCH 2.4.35.3] Fix the "InAddrErrors" increasing problem

2007-10-21 Thread Gui Jianfeng
Krishna Kumar2 写道: > Gui Jianfeng wrote on 10/22/2007 11:37:07 AM: > >> @@ -310,8 +310,12 @@ static inline int ip_rcv_finish(struct s >> * how the packet travels inside Linux networking. >> */ >> if (skb->dst == NULL) { >> - if (ip_route_input(skb, iph->daddr, iph->saddr, iph-

Re: [PATCH 2.4.35.3] Fix the "InAddrErrors" increasing problem

2007-10-21 Thread Krishna Kumar2
Gui Jianfeng wrote on 10/22/2007 11:37:07 AM: > @@ -310,8 +310,12 @@ static inline int ip_rcv_finish(struct s > * how the packet travels inside Linux networking. > */ > if (skb->dst == NULL) { > - if (ip_route_input(skb, iph->daddr, iph->saddr, iph->tos, dev)) > - goto

Re: [PATCH 2.4.35.3] Fix the "InAddrErrors" increasing problem

2007-10-21 Thread David Miller
From: Gui Jianfeng <[EMAIL PROTECTED]> Date: Mon, 22 Oct 2007 14:07:07 +0800 > When kernel receives a package with a wrong destination ipv4 address, it > can't increase "InAddrErrors" number correctly. > InAddrErrors is located in /proc/net/snmp. > > This is a patch for fixing this problem. > >

[PATCH 2.4.35.3] Fix the "InAddrErrors" increasing problem

2007-10-21 Thread Gui Jianfeng
Hi, When kernel receives a package with a wrong destination ipv4 address, it can't increase "InAddrErrors" number correctly. InAddrErrors is located in /proc/net/snmp. This is a patch for fixing this problem. Signed-off-by: Gui Jianfeng <[EMAIL PROTECTED]> --- diff -Narup linux-2.4.35.3/net/ipv4