aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-07-14 12:57:53 +0200
committerDamjan Marion <damarion@cisco.com>2021-07-14 12:59:26 +0200
commita32416ded5aef52015155ce405708d98838be6b1 (patch)
tree90474c4e635ddf671303a35e09ba6ef94bfa0b5f /src/vnet/ip
parent62ed5435a028c6e61a6c4bf52115b9e62fba011d (diff)
ip: fix check_adj_port_range_x1
Type: fix Change-Id: I776bf797e07bb3cfd0510a4c09d8182edfa193bd Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/ip')
-rw-r--r--src/vnet/ip/ip4_source_and_port_range_check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/ip/ip4_source_and_port_range_check.c b/src/vnet/ip/ip4_source_and_port_range_check.c
index 210d5b28951..00ab51e2440 100644
--- a/src/vnet/ip/ip4_source_and_port_range_check.c
+++ b/src/vnet/ip/ip4_source_and_port_range_check.c
@@ -107,8 +107,8 @@ check_adj_port_range_x1 (const protocol_port_range_dpo_t * ppr_dpo,
for (i = 0; i < ppr_dpo->n_used_blocks; i++)
- if (!u16x8_is_all_zero ((ppr_dpo->blocks[i].low.as_u16x8 >= key) &
- (ppr_dpo->blocks[i].hi.as_u16x8 <= key)))
+ if (!u16x8_is_all_zero ((ppr_dpo->blocks[i].low.as_u16x8 <= key) &
+ (ppr_dpo->blocks[i].hi.as_u16x8 >= key)))
return next;
return IP4_SOURCE_AND_PORT_RANGE_CHECK_NEXT_DROP;