From: Wang Chen <[EMAIL PROTECTED]> Date: Fri, 16 Nov 2007 11:18:16 +0800
> Actually, I tested and found this issue. > I sent 50 udp packets, which have wrong checksum, to my > machine. > Before the patch being applied, /proc/net/snmp's udp > InDatagrams increased, and InErrors didn't increase. > After the patch being applied, InErrors increased correctly > and InDatagrams stayed unchanging. That's right, InDataGrams will increase even if we haven't verified the checksum yet. When the user does a recvmsg() or a poll() on the socket, we will notice the bad checksum then and increment InErrors. We could in this case correct the InDatagrams counter by decrementing it in this case. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html