aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2021-08-04 18:48:41 +0200
committerNeale Ranns <neale@graphiant.com>2021-08-05 18:15:49 +0000
commit4b9246ad2008fa791405a3482914960a352237c9 (patch)
treea31a7d4152d218dddc4be262fadc8593b94c32ac /src
parent41a54f6a0b16b36f55461f0ce0a2303081a4fb6c (diff)
classify: fix parsing for l4 match
l4 match parsing should not try to consume the whole input, otherwise it breaks cli such as: 'classify session ... match l4 dst_port 22 action set-ip4-fib-id 2' Type: fix Change-Id: I81a1b5779811f7df8286a371f85fafe09c947b87 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/classify/vnet_classify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/classify/vnet_classify.c b/src/vnet/classify/vnet_classify.c
index d36d93b5f31..ab933eb816b 100644
--- a/src/vnet/classify/vnet_classify.c
+++ b/src/vnet/classify/vnet_classify.c
@@ -2314,7 +2314,7 @@ unformat_l4_match (unformat_input_t * input, va_list * args)
else if (unformat (input, "dst_port %d", &dst_port))
;
else
- return 0;
+ break;
}
h.src_port = clib_host_to_net_u16 (src_port);