summaryrefslogtreecommitdiff
path: root/src/dhcp.c
diff options
context:
space:
mode:
authorJulien Massot <jmassot@aldebaran-robotics.com>2012-07-05 14:12:53 +0000
committerMarcel Holtmann <marcel@holtmann.org>2012-07-05 16:23:31 +0200
commit2973e70796e17cff8b76b747f4fc45e77c208681 (patch)
tree1271e28d8ff10e001c6b4b73d71d0890e9096fb7 /src/dhcp.c
parent228d8b7833f39e1133411f339e87ab5bd32c5fc7 (diff)
downloadconnman-2973e70796e17cff8b76b747f4fc45e77c208681.tar.gz
connman-2973e70796e17cff8b76b747f4fc45e77c208681.tar.bz2
connman-2973e70796e17cff8b76b747f4fc45e77c208681.zip
dhcp: warn on invalid netmask
Diffstat (limited to 'src/dhcp.c')
-rw-r--r--src/dhcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index f4de736a..3425b6d1 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -227,6 +227,8 @@ static void lease_available_cb(GDHCPClient *dhcp_client, gpointer user_data)
gateway = g_strdup(option->data);
prefixlen = __connman_ipconfig_netmask_prefix_len(netmask);
+ if (prefixlen == 255)
+ connman_warn("netmask: %s is invalid", netmask);
DBG("c_address %s", c_address);