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
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-
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-
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
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.
>
>
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