Hi Dave:
My foray into the TTL stuff is turning into an all-out assault on NAT-T :)
The following patch moves the udp->encap_type check from the per-packet
hot-path into udp_setsockopt().
As a consequence, this allows user space to detect whether the kernel
actually supports the encap type that they're requesting. Pity no one
did this before the NON-IKE patch was applied. As it is there is no
easy way to detect whether NON-IKE support is present.
Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
PS I will be doing a similar patch for the encap_type in xfrm.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
p
Description: Text document
|