From: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>

Pass outer headers for outbound inline packets as const pointers.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>
---
/** Email created from pull request 69 (lumag:ipsec-const)
 ** https://github.com/Linaro/odp/pull/69
 ** Patch: https://github.com/Linaro/odp/pull/69.patch
 ** Base sha: 15c97427d01c81dc9f4d0aafe9b0a99cdb2d1fc6
 ** Merge commit sha: 777f6167fde63438802b01e07d1ac080f8b684b2
 **/
 include/odp/api/spec/ipsec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;

Reply via email to