diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2004-08-15 05:43:06 -0700 |
|---|---|---|
| committer | David S. Miller <davem@kernel.bkbits.net> | 2004-08-15 05:43:06 -0700 |
| commit | 3ded0baffb1ec366917d8d1434711897d5a41294 (patch) | |
| tree | ffc2b4420018d022e7cc32bce5a3939c0c80361f /include/linux/stat.h | |
| parent | 6567299ad27fb7c0b21d23ccd732b14304184578 (diff) | |
[IPSEC]: Move encap check back down to esp4.c
In a previous, I moved the encap_type checks in esp4.c from the packet
processing path to xfrm_user/af_key. This isn't ideal since those encap
types only make sense for esp4.
The following patch moves it back into esp4.c. The difference is
that it's now done in init_state so that it's only done once rather
than per-packet.
I've also added encap_type checks for every transform. This means
that people attaching encap objects to AH/IPCOMP/IPIP will now get
errors. That should be fine as no major KM does this.
Please note that the error returned is now EINVAL instead of
ENOPROTOOPT. This shouldn't break anything since KMs only test
the errno from setsockopt() for NAT-T support rather than add_sa
where it would be too late anyway.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
Diffstat (limited to 'include/linux/stat.h')
0 files changed, 0 insertions, 0 deletions
