summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Yu <michael.a.yu@nokia-sbell.com>2019-09-09 13:09:16 +0800
committerMichael Yu <michael.a.yu@nokia-sbell.com>2019-09-09 13:09:16 +0800
commitf0cd428b88e9d8e4e42021ea35fc47c41e018899 (patch)
treed8ff1b940bdbf123f3262200d711b7d0134189f4
parent2234c30a625ec2c38f7fb9d0c7e7ddd02a0f038f (diff)
Fix: src_port set wrongly in dpi_add_del_rx_flow
Type: fix Signed-off-by: Michael Yu <michael.a.yu@nokia-sbell.com> Change-Id: Ie9c62184492e90ac68af330572d6e30ac5020528
-rw-r--r--src/dpi.c2
1 files changed, 1 insertions, 1 deletions
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;