projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
228d8b7
)
dhcp: warn on invalid netmask
author
Julien Massot
<jmassot@aldebaran-robotics.com>
Thu, 5 Jul 2012 14:12:53 +0000
(14:12 +0000)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 5 Jul 2012 14:23:31 +0000
(16:23 +0200)
src/dhcp.c
patch
|
blob
|
history
diff --git
a/src/dhcp.c
b/src/dhcp.c
index
f4de736
..
3425b6d
100644
(file)
--- 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);
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);
DBG("c_address %s", c_address);