]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc/f_flower: fix port range parsing
authorPuneet Sharma <pusharma@akamai.com>
Mon, 20 Sep 2021 15:00:01 +0000 (11:00 -0400)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 23 Sep 2021 00:28:48 +0000 (17:28 -0700)
commitd756c08a3d45a9912ee422fa3ca78488b044ebd4
tree5c23cd2530fecbe5a77691364440c178a6c6cce3
parent92e32f7791aa5345de401b292a806481fb3d9dc4
tc/f_flower: fix port range parsing

Provided port range in tc rule are parsed incorrectly.
Even though range is passed as min-max. It throws an error.

$ tc filter add dev eth0 ingress handle 100 priority 10000 protocol ipv4 flower ip_proto tcp dst_port 10368-61000 action pass
max value should be greater than min value
Illegal "dst_port"

Fixes: 8930840e678b ("tc: flower: Classify packets based port ranges")
Signed-off-by: Puneet Sharma <pusharma@akamai.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/f_flower.c