diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-03-21 10:57:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-03-21 10:57:45 -0400 |
commit | 7d3628b230ecbdc29566c18bc7800ff8ed66a71f (patch) | |
tree | eac1bff40bdb655fdfdeaf1e22ce12a81296f1fb /net/ipv4/ipconfig.c | |
parent | 2c7871982cf27caaddbaeb7e2121ce1374b520ff (diff) | |
parent | 94833dfb8c98ed4ca1944dd2c1339d88a2d1c758 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (46 commits)
[NET] ifb: set separate lockdep classes for queue locks
[IPV6] KCONFIG: Fix description about IPV6_TUNNEL.
[TCP]: Fix shrinking windows with window scaling
netpoll: zap_completion_queue: adjust skb->users counter
bridge: use time_before() in br_fdb_cleanup()
[TG3]: Fix build warning on sparc32.
MAINTAINERS: bluez-devel is subscribers-only
audit: netlink socket can be auto-bound to pid other than current->pid (v2)
[NET]: Fix permissions of /proc/net
[SCTP]: Fix a race between module load and protosw access
[NETFILTER]: ipt_recent: sanity check hit count
[NETFILTER]: nf_conntrack_h323: logical-bitwise & confusion in process_setup()
[RT2X00] drivers/net/wireless/rt2x00/rt2x00dev.c: remove dead code, fix warning
[IPV4]: esp_output() misannotations
[8021Q]: vlan_dev misannotations
xfrm: ->eth_proto is __be16
[IPV4]: ipv4_is_lbcast() misannotations
[SUNRPC]: net/* NULL noise
[SCTP]: fix misannotated __sctp_rcv_asconf_lookup()
[PKT_SCHED]: annotate cls_u32
...
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 5dd938579eeb..7c992fbbc2c3 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 |
@@ -1479,19 +1480,19 @@ static int __init ip_auto_config_setup(char *addrs) | |||
1479 | DBG(("IP-Config: Parameter #%d: `%s'\n", num, ip)); | 1480 | DBG(("IP-Config: Parameter #%d: `%s'\n", num, ip)); |
1480 | switch (num) { | 1481 | switch (num) { |
1481 | case 0: | 1482 | case 0: |
1482 | if ((ic_myaddr = in_aton(ip)) == INADDR_ANY) | 1483 | if ((ic_myaddr = in_aton(ip)) == ANY) |
1483 | ic_myaddr = NONE; | 1484 | ic_myaddr = NONE; |
1484 | break; | 1485 | break; |
1485 | case 1: | 1486 | case 1: |
1486 | if ((ic_servaddr = in_aton(ip)) == INADDR_ANY) | 1487 | if ((ic_servaddr = in_aton(ip)) == ANY) |
1487 | ic_servaddr = NONE; | 1488 | ic_servaddr = NONE; |
1488 | break; | 1489 | break; |
1489 | case 2: | 1490 | case 2: |
1490 | if ((ic_gateway = in_aton(ip)) == INADDR_ANY) | 1491 | if ((ic_gateway = in_aton(ip)) == ANY) |
1491 | ic_gateway = NONE; | 1492 | ic_gateway = NONE; |
1492 | break; | 1493 | break; |
1493 | case 3: | 1494 | case 3: |
1494 | if ((ic_netmask = in_aton(ip)) == INADDR_ANY) | 1495 | if ((ic_netmask = in_aton(ip)) == ANY) |
1495 | ic_netmask = NONE; | 1496 | ic_netmask = NONE; |
1496 | break; | 1497 | break; |
1497 | case 4: | 1498 | case 4: |