[IPV4] ipconfig: Fix regression in ip command line processing
authorAmos Waterland <apw@us.ibm.com>
Sun, 6 Jan 2008 07:23:06 +0000 (23:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jan 2008 07:29:58 +0000 (23:29 -0800)
commit92ffb85dd33d62ac1dad8b44da62365f2aad413d
tree248504c621af6bb50c9a399b9540c2e6500a1e30
parentf844c74fe07321953e2dd227fe35280075f18f60
[IPV4] ipconfig: Fix regression in ip command line processing

The recent changes for ip command line processing fixed some problems
but unfortunately broke some common usage scenarios.  In current
2.6.24-rc6 the following command line results in no IP address
assignment, which is surely a regression:

 ip=10.0.2.15::10.0.2.2:255.255.255.0::eth0:off

Please find below a patch that works for all cases I can find.

Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/nfsroot.txt
net/ipv4/ipconfig.c