summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ipconfig.c')
-rw-r--r--net/ipv4/ipconfig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index 88212615bf4c..2393e5c106bf 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -429,6 +429,8 @@ static int __init ic_defaults(void)
429 ic_netmask = htonl(IN_CLASSB_NET); 429 ic_netmask = htonl(IN_CLASSB_NET);
430 else if (IN_CLASSC(ntohl(ic_myaddr))) 430 else if (IN_CLASSC(ntohl(ic_myaddr)))
431 ic_netmask = htonl(IN_CLASSC_NET); 431 ic_netmask = htonl(IN_CLASSC_NET);
432 else if (IN_CLASSE(ntohl(ic_myaddr)))
433 ic_netmask = htonl(IN_CLASSE_NET);
432 else { 434 else {
433 pr_err("IP-Config: Unable to guess netmask for address %pI4\n", 435 pr_err("IP-Config: Unable to guess netmask for address %pI4\n",
434 &ic_myaddr); 436 &ic_myaddr);