udp: Fix the SNMP counter of UDP_MIB_INERRORS
authorWei Yongjun <yjwei@cn.fujitsu.com>
Sun, 2 Nov 2008 16:14:27 +0000 (16:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Nov 2008 07:52:46 +0000 (23:52 -0800)
UDP packets received in udpv6_recvmsg() are not only IPv6 UDP packets, but
also have IPv4 UDP packets, so when do the counter of UDP_MIB_INERRORS in
udpv6_recvmsg(), we should check whether the packet is a IPv6 UDP packet
or a IPv4 UDP packet.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found