aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipconfig.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-12-27 01:04:46 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-12-27 01:04:46 -0500
commitc68cb23dde29fb107575656effa46f7b9440ac04 (patch)
tree081c24059c57d8b6b4e6b6781f741878069e5edc /net/ipv4/ipconfig.c
parentb50fd73b9d8ee1f999e8d625074872eb8fb88439 (diff)
parenta6c05c3d064dbb83be88cba3189beb5db9d2dfc3 (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: [IPV4]: Fix ip command line processing. [VETH]: move veth.h to include/linux [NET] tc_nat: header install [TUNTAP]: Fix wrong debug message. [NETFILTER]: nf_conntrack_ipv4: fix module parameter compatibility mac80211: warn when receiving frames with unaligned data mac80211: round station cleanup timer
Diffstat (limited to 'net/ipv4/ipconfig.c')
-rw-r--r--net/ipv4/ipconfig.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index 96400b0bd08a..420f56ad59f8 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -1403,6 +1403,10 @@ static int __init ic_proto_name(char *name)
1403 if (!strcmp(name, "on") || !strcmp(name, "any")) { 1403 if (!strcmp(name, "on") || !strcmp(name, "any")) {
1404 return 1; 1404 return 1;
1405 } 1405 }
1406 if (!strcmp(name, "off") || !strcmp(name, "none")) {
1407 ic_enable = 0;
1408 return 1;
1409 }
1406#ifdef CONFIG_IP_PNP_DHCP 1410#ifdef CONFIG_IP_PNP_DHCP
1407 else if (!strcmp(name, "dhcp")) { 1411 else if (!strcmp(name, "dhcp")) {
1408 ic_proto_enabled &= ~IC_RARP; 1412 ic_proto_enabled &= ~IC_RARP;
@@ -1437,12 +1441,6 @@ static int __init ip_auto_config_setup(char *addrs)
1437 1441
1438 ic_set_manually = 1; 1442 ic_set_manually = 1;
1439 1443
1440 ic_enable = (*addrs &&
1441 (strcmp(addrs, "off") != 0) &&
1442 (strcmp(addrs, "none") != 0));
1443 if (!ic_enable)
1444 return 1;
1445
1446 if (ic_proto_name(addrs)) 1444 if (ic_proto_name(addrs))
1447 return 1; 1445 return 1;
1448 1446