[IPSEC]: Check encap_type at config time.
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@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@redhat.com>
Showing
Please register or sign in to comment