From 6f7d67ca5d9deba7424df277e25115253a8da74c Mon Sep 17 00:00:00 2001 From: Xavier Simonart Date: Tue, 12 Jan 2021 16:57:01 +0100 Subject: Fix mbuf corruption when handling icmp messages. Signed-off-by: Xavier Simonart Change-Id: I3eeacb550d1ef51a13802d06f06973437afe7d9b --- VNFs/DPPD-PROX/handle_master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'VNFs') diff --git a/VNFs/DPPD-PROX/handle_master.c b/VNFs/DPPD-PROX/handle_master.c index ddaab521..5389058f 100644 --- a/VNFs/DPPD-PROX/handle_master.c +++ b/VNFs/DPPD-PROX/handle_master.c @@ -402,7 +402,7 @@ static inline void handle_icmp(struct task_base *tbase, struct rte_mbuf *mbuf) port->n_echo_req = 0; port->last_echo_req_rcvd_tsc = rte_rdtsc(); } - build_icmp_reply_message(tbase, mbuf); + return build_icmp_reply_message(tbase, mbuf); } else if (type == PROX_RTE_IP_ICMP_ECHO_REPLY) { port->n_echo_rep++; if (rte_rdtsc() - port->last_echo_rep_rcvd_tsc > rte_get_tsc_hz()) { -- cgit 1.2.3-korg