mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
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:
parent
48d0629881
commit
bb0fa9adae
13 changed files with 175 additions and 5 deletions
|
|
@ -238,6 +238,8 @@ extern int parse_ipaddr_init(const char *restrict src,
|
|||
extern int parse_ipaddr_v4(const char *restrict src, union ipaddr_t *restrict dst);
|
||||
extern int parse_ipaddr_v6(const char *restrict src, union ipaddr_t *restrict dst);
|
||||
|
||||
extern void parse_cidr(struct range_t *range_p, const char *word);
|
||||
|
||||
extern void (*copy_ipaddr) (union ipaddr_t *restrict dst, const union ipaddr_t *restrict src);
|
||||
extern void copy_ipaddr_init(union ipaddr_t *restrict dst,
|
||||
const union ipaddr_t *restrict src);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue