summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_iprange.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libipt_iprange.c')
-rw-r--r--extensions/libipt_iprange.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/libipt_iprange.c b/extensions/libipt_iprange.c
index 05d6db9..f262bba 100644
--- a/extensions/libipt_iprange.c
+++ b/extensions/libipt_iprange.c
@@ -29,20 +29,20 @@ static void
parse_iprange(char *arg, struct ipt_iprange *range)
{
char *dash;
- struct in_addr *ip;
+ const struct in_addr *ip;
dash = strchr(arg, '-');
if (dash)
*dash = '\0';
- ip = dotted_to_addr(arg);
+ ip = numeric_to_ipaddr(arg);
if (!ip)
exit_error(PARAMETER_PROBLEM, "iprange match: Bad IP address `%s'\n",
arg);
range->min_ip = ip->s_addr;
if (dash) {
- ip = dotted_to_addr(dash+1);
+ ip = numeric_to_ipaddr(dash+1);
if (!ip)
exit_error(PARAMETER_PROBLEM, "iprange match: Bad IP address `%s'\n",
dash+1);