summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX
diff options
context:
space:
mode:
authorXavier Simonart <simonartxavier@gmail.com>2021-04-08 12:11:57 +0200
committerXavier Simonart <simonartxavier@gmail.com>2021-04-16 21:56:40 +0200
commit873d9e8b9169461694343a913c22c7de4ab5e912 (patch)
tree72b0049a1b13711060da42a094344060afa80b12 /VNFs/DPPD-PROX
parent769aa66a42a6ea578752c664e21741e8a1932c65 (diff)
Fix spurious discarded packets in CGNat.
CGNat was discarding packets in some cases. Some run were fine, others were seeing many packets discarded. Signed-off-by: Xavier Simonart <simonartxavier@gmail.com> Change-Id: I63b2df993e31443bc4b5168611fcdcfa454e2137
Diffstat (limited to 'VNFs/DPPD-PROX')
-rw-r--r--VNFs/DPPD-PROX/handle_cgnat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/handle_cgnat.c b/VNFs/DPPD-PROX/handle_cgnat.c
index cc1eae2..b3c22c4 100644
--- a/VNFs/DPPD-PROX/handle_cgnat.c
+++ b/VNFs/DPPD-PROX/handle_cgnat.c
@@ -310,7 +310,7 @@ static int add_new_port_entry(struct task_nat *task, uint8_t proto, int public_i
static int handle_nat_bulk(struct task_base *tbase, struct rte_mbuf **mbufs, uint16_t n_pkts)
{
struct task_nat *task = (struct task_nat *)tbase;
- uint8_t out[MAX_PKT_BURST];
+ uint8_t out[MAX_PKT_BURST] = {0};
uint16_t j;
uint32_t *ip_addr, public_ip, private_ip;
uint16_t *udp_src_port, port, private_port, public_port;