Re: [UDP6]: Restore sk_filter optimisation
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2007-10-29 12:54:46
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2007-10-29 12:54:46
On Mon, Oct 29, 2007 at 03:33:20PM +0900, Mitsuru Chinen wrote:
Hello Herbert,
Let me ask a question about this patch.
After this patch was applied, 2 of the protocol stack behaviors were
changed when it receives a UDP datagram with broken checksum:
1. udp6InDatagrams is incremented instead of udpInErrors
2. In userland, recvfrom() replies an error with EAGAIN.
recvfrom() wasn't aware of such a packet before.
Are these changes intentional?It wasn't my intention if that's what you mean :) However, this would've happened with the old code anyway if someone had a filter attached so this isn't new. If it's a problem then we should just get it fixed. Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} [off-list ref] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt