linux/include
Herbert Xu 3305b80c21 [IP]: Simplify and consolidate MSG_PEEK error handling
When a packet is obtained from skb_recv_datagram with MSG_PEEK enabled
it is left on the socket receive queue.  This means that when we detect
a checksum error we have to be careful when trying to free the packet
as someone could have dequeued it in the time being.

Currently this delicate logic is duplicated three times between UDPv4,
UDPv6 and RAWv6.  This patch moves them into a one place and simplifies
the code somewhat.

This is based on a suggestion by Eric Dumazet.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-01-03 13:10:41 -08:00
..
acpi [ACPI] increase owner_id limit to 64 from 32 2005-12-21 04:52:16 -05:00
asm-alpha
asm-arm
asm-arm26
asm-cris
asm-frv
asm-generic
asm-h8300
asm-i386 [PATCH] Avoid namespace pollution in <asm/param.h> 2006-01-02 08:38:38 -08:00
asm-ia64 [PATCH] x86_64/ia64 : Fix compilation error for node_to_first_cpu 2005-12-24 12:30:22 -08:00
asm-m32r
asm-m68k
asm-m68knommu
asm-mips
asm-parisc
asm-powerpc
asm-ppc [PATCH] ppc: ppc4xx_dma DMA_MODE_{READ,WRITE} fix 2005-12-16 14:43:05 -08:00
asm-s390
asm-sh
asm-sh64
asm-sparc [PATCH] sun4c_memerr_reg __iomem annotations 2005-12-15 10:01:29 -08:00
asm-sparc64
asm-um
asm-v850
asm-x86_64 [PATCH] Avoid namespace pollution in <asm/param.h> 2006-01-02 08:38:38 -08:00
asm-xtensa
keys
linux [IP]: Simplify and consolidate MSG_PEEK error handling 2006-01-03 13:10:41 -08:00
math-emu
media
mtd
net [ICSK]: Move v4_addr2sockaddr from TCP to icsk 2006-01-03 13:10:39 -08:00
pcmcia
rdma
rxrpc
scsi [SCSI] fix for fc transport recursion problem. 2005-12-15 19:22:14 -08:00
sound
video