From f0cd428b88e9d8e4e42021ea35fc47c41e018899 Mon Sep 17 00:00:00 2001 From: Michael Yu Date: Mon, 9 Sep 2019 13:09:16 +0800 Subject: Fix: src_port set wrongly in dpi_add_del_rx_flow Type: fix Signed-off-by: Michael Yu Change-Id: Ie9c62184492e90ac68af330572d6e30ac5020528 --- src/dpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dpi.c b/src/dpi.c index 1cb482e..d5f37f6 100644 --- a/src/dpi.c +++ b/src/dpi.c @@ -508,7 +508,7 @@ dpi_add_del_rx_flow (u32 hw_if_index, u32 flow_id, int is_add, u32 is_ipv6) dpi_flow = pool_elt_at_index (dm->dpi_flows, flow_id); - src_port.port = dpi_flow->key.dst_port; + src_port.port = dpi_flow->key.src_port; src_port.mask = ~0; dst_port.port = dpi_flow->key.dst_port; dst_port.mask = ~0; -- cgit 1.2.3-korg