getdata: add cidr range support

This makes 'range6 123::/45' style cidr notation to be understood as address
range.  Earlier ranges that used cidr failed to parse completely.

Reported-by: Jeff Bailey <jeffrey.bailey@bt.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2017-09-17 00:03:06 +01:00
parent 48d0629881
commit bb0fa9adae
No known key found for this signature in database
GPG key ID: A9553245FDE9B739
13 changed files with 175 additions and 5 deletions

View file

@ -20,6 +20,8 @@ TESTS = \
tests/leading0 \
tests/one-ip \
tests/one-line \
tests/range4 \
tests/range6 \
tests/same-twice \
tests/simple \
tests/sorts \