diff mbox series

[API-NEXT,v7,9/9] fixup! linux-gen: ipsec: implement IPv6 protocol support

Message ID 1511352009-8608-10-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v7,1/9] validation: ipsec: add ipv4 name parts | expand

Commit Message

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


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

---
/** Email created from pull request 304 (lumag:ipsec-ipv6-2)
 ** https://github.com/Linaro/odp/pull/304
 ** Patch: https://github.com/Linaro/odp/pull/304.patch
 ** Base sha: b95e7d08043ba45d12635c5afaa3fbf3a07ecc90
 ** Merge commit sha: c41aaa7560db330ca3ffd2407b694000e094b5fc
 **/
 platform/linux-generic/odp_ipsec.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c
index 67a588bac..63c2b0c72 100644
--- a/platform/linux-generic/odp_ipsec.c
+++ b/platform/linux-generic/odp_ipsec.c
@@ -732,6 +732,9 @@  static ipsec_sa_t *ipsec_in_single(odp_packet_t pkt,
 						 _ODP_IPV6HDR_LEN);
 		else
 			ipv6hdr->hop_limit -= ipsec_sa->dec_ttl;
+	} else {
+		status->error.proto = 1;
+		goto err;
 	}
 
 	pkt_hdr = odp_packet_hdr(pkt);