diff options
author | Xiao Liang <shaw.leon@gmail.com> | 2021-09-06 11:06:41 +0800 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-09-06 22:21:10 +0200 |
commit | cca4c856301caa8959ac98aac5811130bc19512c (patch) | |
tree | 68f9f305e91cf298d02aa02e4e3d5c7f7e36c2c2 /tests/shell/testcases | |
parent | e42551a406b87e8d5c3a790e2bdb04386cafa55a (diff) |
src: Check range bounds before converting to prefix
The lower bound must be the first value of the prefix to be coverted.
For example, range "10.0.0.15-10.0.0.240" can not be converted to
"10.0.0.15/24". Validate it by checking if the lower bound value has
enough trailing zeros.
Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases')
0 files changed, 0 insertions, 0 deletions