]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[UDP]: Defer InDataGrams increment until recvmsg() does checksum
authorWang Chen <wangchen@cn.fujitsu.com>
Mon, 3 Dec 2007 11:33:28 +0000 (22:33 +1100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:55:47 +0000 (14:55 -0800)
commitcb75994ec311b2cd50e5205efdcc0696abd6675d
treeeb0fbb65bfe1b896a55ce8b987d6f4f3f4357e98
parent6859d49475d4f32abe640372117e4b687906e6b6
[UDP]: Defer InDataGrams increment until recvmsg() does checksum

Thanks dave, herbert, gerrit, andi and other people for your
discussion about this problem.

UdpInDatagrams can be confusing because it counts packets that
might be dropped later.
Move UdpInDatagrams into recvmsg() as allowed by the RFC.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/udplite.txt
net/ipv4/udp.c
net/ipv6/udp.c