Re: [PATCH]IPv4 UDP does not discard the datagram with invalid checksum

2006-02-23 Thread Wei Yongjun
Under IPv4, when I send a UDP packet with invalid checksum, kernel used udp_rcv() to up packet to UDP layer, application used udp_recvmsg to receive message. So if one UDP packet with invalid checksum is arrived to host, UDP_MIB_INDATAGRAMS will be increased 1, UDP_MIB_INERRORS should be increased

Re: [PATCH]IPv4 UDP does not discard the datagram with invalid checksum

2006-02-23 Thread David S. Miller
From: Wei Yongjun <[EMAIL PROTECTED]> Date: Thu, 23 Feb 2006 16:03:18 -0500 > IPv4 UDP does not discard the datagram with invalid checksum. UDP can > validate UDP checksums correctly only when socket filtering instructions > is set. If socket filtering instructions is not set, datagram with > inva