]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: New internal helper __expr_evaluate_range
authorAnder Juaristi <a@juaristi.eus>
Thu, 29 Aug 2019 14:09:01 +0000 (16:09 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 6 Sep 2019 14:25:57 +0000 (16:25 +0200)
commitf521033afc41876173e6430cdd45fc07a1b76654
tree876be0368ebfa5e7af58831d5c2e6d0406154187
parent1e2aae7d73ce733650d78da452d45d6c5498cc33
evaluate: New internal helper __expr_evaluate_range

This is used by the followup patch to evaluate a range without emitting
an error when the left value is larger than the right one.

This is done to handle time-matching such as
23:00-01:00 -- expr_evaluate_range() will reject this, but
we want to be able to evaluate and then handle this as a request
to match from 23:00 to 1am.

Signed-off-by: Ander Juaristi <a@juaristi.eus>
Signed-off-by: Florian Westphal <fw@strlen.de>
src/evaluate.c