Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75215
b: refs/heads/master
c: a6c05c3
h: refs/heads/master
i:
  75213: 0a1daa7
  75211: 9531e75
  75207: 5ddfb85
  75199: fdf0e96
v: v3
  • Loading branch information
Simon Horman authored and David S. Miller committed Dec 27, 2007
1 parent 6b170f5 commit 8df3fa2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ecef969e5b376f98b142e22deb1cec2f23e4f5d6
refs/heads/master: a6c05c3d064dbb83be88cba3189beb5db9d2dfc3
5 changes: 1 addition & 4 deletions trunk/Documentation/nfsroot.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>
autoconfiguration will take place. The most common way to use this
is "ip=dhcp".

Note that "ip=off" is not the same thing as "ip=::::::off", because in
the latter autoconfiguration will take place if any of DHCP, BOOTP or RARP
are compiled in the kernel.

<client-ip> IP address of the client.

Default: Determined using autoconfiguration.
Expand Down Expand Up @@ -150,6 +146,7 @@ ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>

off or none: don't use autoconfiguration
on or any: use any protocol available in the kernel
(default)
dhcp: use DHCP
bootp: use BOOTP
rarp: use RARP
Expand Down
10 changes: 4 additions & 6 deletions trunk/net/ipv4/ipconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,10 @@ static int __init ic_proto_name(char *name)
if (!strcmp(name, "on") || !strcmp(name, "any")) {
return 1;
}
if (!strcmp(name, "off") || !strcmp(name, "none")) {
ic_enable = 0;
return 1;
}
#ifdef CONFIG_IP_PNP_DHCP
else if (!strcmp(name, "dhcp")) {
ic_proto_enabled &= ~IC_RARP;
Expand Down Expand Up @@ -1437,12 +1441,6 @@ static int __init ip_auto_config_setup(char *addrs)

ic_set_manually = 1;

ic_enable = (*addrs &&
(strcmp(addrs, "off") != 0) &&
(strcmp(addrs, "none") != 0));
if (!ic_enable)
return 1;

if (ic_proto_name(addrs))
return 1;

Expand Down

0 comments on commit 8df3fa2

Please sign in to comment.