Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
41a54f6
)
classify: fix parsing for l4 match
86/33386/2
author
Benoît Ganne
<bganne@cisco.com>
Wed, 4 Aug 2021 16:48:41 +0000
(18:48 +0200)
committer
Neale Ranns
<neale@graphiant.com>
Thu, 5 Aug 2021 18:15:49 +0000
(18:15 +0000)
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>
src/vnet/classify/vnet_classify.c
patch
|
blob
|
history
diff --git
a/src/vnet/classify/vnet_classify.c
b/src/vnet/classify/vnet_classify.c
index
d36d93b
..
ab933eb
100644
(file)
--- 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);