summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_length.t
Commit message (Collapse)AuthorAgeFilesLines
* libxtables: xtoptions: Assert ranges are monotonic increasingPhil Sutter2024-02-021-1/+1
| | | | | | | | | | | Extensions commonly require the upper range value to be larger or equal to the lower one. Performing this check in the parser is easier and covers all extensions at once. One notable exception is NFQUEUE which requires strict monotonicity. Hence leave its checks in place. Signed-off-by: Phil Sutter <phil@nwl.cc>
* extensions: *.t/*.txlate: Test range corner-casesPhil Sutter2024-02-021-0/+3
| | | | | | | | | | | For every extension option accepting a range, test open and half-open as well as single element and invalid (negative) ranges. The added tests merely reflect the status quo, not the expected outcome. Following patches will fix results and the already existing test cases highlight the fixes' effects. Signed-off-by: Phil Sutter <phil@nwl.cc>
* tests: libxt_length.t: Fix odd use-case outputPhil Sutter2022-10-261-1/+1
| | | | | | | Specifying the lower boundary suffixed by colon is an undocumented feature. Explicitly printing the upper boundary in that case seems sane. Signed-off-by: Phil Sutter <phil@nwl.cc>
* extensions: libxt_length: add unit testPablo Neira Ayuso2013-10-071-0/+10
based on tests/options-most.rules Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>