aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipconfig.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-03-18 03:37:55 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-18 03:37:55 -0400
commit577f99c1d08cf9cbdafd4e858dd13ff04d855090 (patch)
tree0f726bbda9b18d311d4c95198bbd96cb7ac01db0 /net/ipv4/ipconfig.c
parent26c0f03f6b77c513cb7bc37b73a06819bdbb791b (diff)
parent2f633928cbba8a5858bb39b11e7219a41b0fbef5 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/wireless/rt2x00/rt2x00dev.c net/8021q/vlan_dev.c
Diffstat (limited to 'net/ipv4/ipconfig.c')
-rw-r--r--net/ipv4/ipconfig.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index 4afce0572806..96138b128de8 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -103,6 +103,7 @@
103 - '3' from resolv.h */ 103 - '3' from resolv.h */
104 104
105#define NONE __constant_htonl(INADDR_NONE) 105#define NONE __constant_htonl(INADDR_NONE)
106#define ANY __constant_htonl(INADDR_ANY)
106 107
107/* 108/*
108 * Public IP configuration 109 * Public IP configuration
@@ -1476,19 +1477,19 @@ static int __init ip_auto_config_setup(char *addrs)
1476 DBG(("IP-Config: Parameter #%d: `%s'\n", num, ip)); 1477 DBG(("IP-Config: Parameter #%d: `%s'\n", num, ip));
1477 switch (num) { 1478 switch (num) {
1478 case 0: 1479 case 0:
1479 if ((ic_myaddr = in_aton(ip)) == INADDR_ANY) 1480 if ((ic_myaddr = in_aton(ip)) == ANY)
1480 ic_myaddr = NONE; 1481 ic_myaddr = NONE;
1481 break; 1482 break;
1482 case 1: 1483 case 1:
1483 if ((ic_servaddr = in_aton(ip)) == INADDR_ANY) 1484 if ((ic_servaddr = in_aton(ip)) == ANY)
1484 ic_servaddr = NONE; 1485 ic_servaddr = NONE;
1485 break; 1486 break;
1486 case 2: 1487 case 2:
1487 if ((ic_gateway = in_aton(ip)) == INADDR_ANY) 1488 if ((ic_gateway = in_aton(ip)) == ANY)
1488 ic_gateway = NONE; 1489 ic_gateway = NONE;
1489 break; 1490 break;
1490 case 3: 1491 case 3:
1491 if ((ic_netmask = in_aton(ip)) == INADDR_ANY) 1492 if ((ic_netmask = in_aton(ip)) == ANY)
1492 ic_netmask = NONE; 1493 ic_netmask = NONE;
1493 break; 1494 break;
1494 case 4: 1495 case 4: