diff options
Diffstat (limited to 'net/ipv4/ipconfig.c')
-rw-r--r-- | net/ipv4/ipconfig.c | 9 |
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: |