This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, api-next has been updated via f20dee9db3da9425d8764e414b04cdcbd41bece8 (commit) via 3faf025987a1640983080a2743e58fbb3cbac55e (commit) via 599ac6802352c9c56eca33a6004824783becaa6e (commit) from 0a3e5be140e77167173b9af4b72cdad8451aff71 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit f20dee9db3da9425d8764e414b04cdcbd41bece8 Merge: 3faf0259 599ac680 Author: Maxim Uvarov maxim.uvarov@linaro.org Date: Tue May 23 22:18:43 2017 +0300
Merge branch 'master' into api-next
commit 3faf025987a1640983080a2743e58fbb3cbac55e Author: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Date: Tue May 23 09:00:10 2017 +0300
api: ipsec: factor out IP protocol version parameter
Instead of using 'magic' numbers for ip version in SA params, define new enum to distinguish between IPv4 and IPv6.
Signed-off-by: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Reviewed-by: Petri Savolainen petri.savolainen@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 9a7404c9..15f5e8be 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -581,6 +581,18 @@ typedef enum odp_ipsec_pipeline_t { } odp_ipsec_pipeline_t;
/** + * IPSEC header type + */ +typedef enum odp_ipsec_ip_version_t { + /** Header is IPv4 */ + ODP_IPSEC_IPV4 = 4, + + /** Header is IPv6 */ + ODP_IPSEC_IPV6 = 6 + +} odp_ipsec_ip_version_t; + +/** * IPSEC Security Association (SA) parameters */ typedef struct odp_ipsec_sa_param_t { @@ -625,11 +637,8 @@ typedef struct odp_ipsec_sa_param_t { * only in ODP_IPSEC_LOOKUP_DSTADDR_SPI lookup mode. */ struct { /** Select IP version - * - * 4: IPv4 - * 6: IPv6 */ - uint8_t ip_version; + odp_ipsec_ip_version_t ip_version;
/** IP destination address (NETWORK ENDIAN) */ void *dst_addr;
-----------------------------------------------------------------------
Summary of changes: .travis.yml | 14 +++++++++++++- include/odp/api/spec/ipsec.h | 17 +++++++++++++---- 2 files changed, 26 insertions(+), 5 deletions(-)
hooks/post-receive