diff options
Diffstat (limited to '')
-rw-r--r-- | options.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -4058,17 +4058,8 @@ add_option (struct options *options, msg (msglevel, "error parsing --ifconfig-pool parameters"); goto err; } - if (start > end) - { - msg (msglevel, "--ifconfig-pool start IP is greater than end IP"); - goto err; - } - if (end - start >= IFCONFIG_POOL_MAX) - { - msg (msglevel, "--ifconfig-pool address range is too large. Current maximum is %d addresses.", - IFCONFIG_POOL_MAX); - goto err; - } + if (!ifconfig_pool_verify_range (msglevel, start, end)) + goto err; options->ifconfig_pool_defined = true; options->ifconfig_pool_start = start; |