diff mbox series

[API-NEXT,v3,8/9] api: ipsec: outer header pointer as const

Message ID 20170712135438.22191-8-petri.savolainen@linaro.org
State New
Headers show
Series [API-NEXT,v3,1/9] api: ipsec: add salt parameter | expand

Commit Message

Petri Savolainen July 12, 2017, 1:54 p.m. UTC
Outer headers are read-only data for an implementation.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

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

---
 include/odp/api/spec/ipsec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.13.0
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index c9d436d9..76fb05d3 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -1067,7 +1067,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;