diff mbox series

[API-NEXT,v1,1/2] api: ipsec: add AH capability

Message ID 1494450005-17547-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v1,1/2] api: ipsec: add AH capability | expand

Commit Message

Github ODP bot May 10, 2017, 9 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


RFC4301 marks AH support as MAY instead of MUST. Some platforms might
skip implementing AH. Thus we should provide capability to allow
applications to check if AH is actually implemented or not.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 26 (lumag:ipsec-ah-cap)
 ** https://github.com/Linaro/odp/pull/26
 ** Patch: https://github.com/Linaro/odp/pull/26.patch
 ** Base sha: 3ea9c1dac34e0fb4785b0d643056c731daa55e85
 ** Merge commit sha: 6eb5ba103d81883b2b55945c58214b903bfac64d
 **/
 include/odp/api/spec/ipsec.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index e83494d..150e691 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -244,6 +244,9 @@  typedef struct odp_ipsec_capability_t {
 	/** Inline IPSEC operation mode (ODP_IPSEC_OP_MODE_INLINE) support */
 	odp_support_t op_mode_inline;
 
+	/** IP Authenticated Header (ODP_IPSEC_AH) support */
+	odp_support_t proto_ah;
+
 	/**
 	 * Support of pipelined classification (ODP_IPSEC_PIPELINE_CLS) of
 	 *  resulting inbound packets