diff options
author | bz <bz@FreeBSD.org> | 2010-10-30 18:52:44 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2010-10-30 18:52:44 +0000 |
commit | d198c87916244d40cd4328a88792df9c0f13fefe (patch) | |
tree | b1c1b7884cd1cc867f0a8211c2561703d84de794 /sys/netipsec | |
parent | 80380396eb82f5b772e1dc397e7136aa8708a121 (diff) | |
download | FreeBSD-src-d198c87916244d40cd4328a88792df9c0f13fefe.zip FreeBSD-src-d198c87916244d40cd4328a88792df9c0f13fefe.tar.gz |
Announce both IPsec and UDP Encap (NAT-T) if available for
feature_present(3) checks.
This will help to run-time detect and conditionally handle specific
optionas of either feature in user space (i.e. in libipsec).
Descriptions read by: rwatson
MFC after: 2 weeks
Diffstat (limited to 'sys/netipsec')
-rw-r--r-- | sys/netipsec/ipsec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netipsec/ipsec.c b/sys/netipsec/ipsec.c index 1f48dd6..712040f 100644 --- a/sys/netipsec/ipsec.c +++ b/sys/netipsec/ipsec.c @@ -126,6 +126,11 @@ VNET_DEFINE(int, ip4_esp_randpad) = -1; */ VNET_DEFINE(int, crypto_support) = CRYPTOCAP_F_HARDWARE | CRYPTOCAP_F_SOFTWARE; +FEATURE(ipsec, "Internet Protocol Security (IPsec)"); +#ifdef IPSEC_NAT_T +FEATURE(ipsec_natt, "UDP Encapsulation of IPsec ESP Packets ('NAT-T')"); +#endif + SYSCTL_DECL(_net_inet_ipsec); /* net.inet.ipsec */ |