diff options
author | Julien Massot <jmassot@aldebaran-robotics.com> | 2012-07-05 14:12:53 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-07-05 16:23:31 +0200 |
commit | 2973e70796e17cff8b76b747f4fc45e77c208681 (patch) | |
tree | 1271e28d8ff10e001c6b4b73d71d0890e9096fb7 /src/dhcp.c | |
parent | 228d8b7833f39e1133411f339e87ab5bd32c5fc7 (diff) | |
download | connman-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |