From be9cbe24b2847eedbc1f88690d5c0ff9ce924cba Mon Sep 17 00:00:00 2001 From: outscale-gle Date: Thu, 29 Nov 2018 14:13:51 +0000 Subject: [PATCH] utils: count IPv6 len in vtep close #406 --- src/utils/network.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/network.h b/src/utils/network.h index c175b23d9..839b8f51c 100644 --- a/src/utils/network.h +++ b/src/utils/network.h @@ -87,7 +87,7 @@ static inline uint16_t pg_utils_get_ether_type(struct rte_mbuf *pkt) * packets (l2_len must be correct). */ return *(uint16_t *)(rte_pktmbuf_mtod(pkt, uint8_t *) + - pkt->l2_len - 2); + pkt->l2_len - 2); } #define pg_util_get_ether_src_addr(pkt) \ @@ -103,7 +103,7 @@ static inline void *pg_utils_get_l3(struct rte_mbuf *pkt) } static inline int pg_utils_iter_l3(struct rte_mbuf *pkt, uint8_t *ip_type, - uint8_t **ip_payload, uint16_t *size) + uint8_t **ip_payload, uint16_t *size) { struct ipv6_hdr *h6 = (struct ipv6_hdr *) pg_utils_get_l3(pkt); uint8_t next_header = h6->proto; @@ -156,7 +156,7 @@ static inline int pg_utils_get_l3_len(struct rte_mbuf *pkt) } static inline int pg_utils_get_ipv6_l4(struct rte_mbuf *pkt, uint8_t *ip_type, - uint8_t **ip_payload) + uint8_t **ip_payload) { /* jump all ipv6 extension headers to ICMPv6 */ return pg_utils_iter_l3(pkt, ip_type, ip_payload, NULL);