diff mbox series

[API-NEXT,v5,1/2] api: ipsec: pass OUT_INLINE outer headers as const

Message ID 1499860827-10025-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v5,1/2] api: ipsec: pass OUT_INLINE outer headers as const | expand

Commit Message

Github ODP bot July 12, 2017, noon UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Pass outer headers for outbound inline packets as const pointers.

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

---
/** Email created from pull request 70 (lumag:ipsec-testsuite-2)
 ** https://github.com/Linaro/odp/pull/70
 ** Patch: https://github.com/Linaro/odp/pull/70.patch
 ** Base sha: ee5be324411a7520528a367967c28fc529d3bc2e
 ** Merge commit sha: 6a6ddb857b818d00f19f05b93b9108ff0e9c9ec8
 **/
 include/odp/api/spec/ipsec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index e602e4b8..2d3ab4b1 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -1024,7 +1024,7 @@  typedef struct odp_ipsec_out_inline_param_t {
 		/** Points to first byte of outer headers to be copied in
 		 *  front of the outgoing IPSEC packet. Implementation copies
 		 *  the headers during odp_ipsec_out_inline() call. */
-		uint8_t *ptr;
+		const uint8_t *ptr;
 
 		/** Outer header length in bytes */
 		uint32_t len;