summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX
diff options
context:
space:
mode:
authorXavier Simonart <simonartxavier@gmail.com>2021-01-12 16:57:01 +0100
committerLuc Provoost <luc.provoost@intel.com>2021-02-25 17:27:35 +0000
commit6f7d67ca5d9deba7424df277e25115253a8da74c (patch)
tree69aea8780635d23462c27d8ffc5d381936cf36f9 /VNFs/DPPD-PROX
parent958ef329bc893444dcaa9e1efd71d22d0de3228c (diff)
Fix mbuf corruption when handling icmp messages.
Signed-off-by: Xavier Simonart <simonartxavier@gmail.com> Change-Id: I3eeacb550d1ef51a13802d06f06973437afe7d9b
Diffstat (limited to 'VNFs/DPPD-PROX')
-rw-r--r--VNFs/DPPD-PROX/handle_master.c2
1 files changed, 1 insertions, 1 deletions
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()) {