From 2973e70796e17cff8b76b747f4fc45e77c208681 Mon Sep 17 00:00:00 2001 From: Julien Massot Date: Thu, 5 Jul 2012 14:12:53 +0000 Subject: dhcp: warn on invalid netmask --- src/dhcp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3