projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a51af2
)
ifconfig: support (by ignoring it) "inet" before IP address or hostname
author
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 22 Mar 2007 18:56:00 +0000
(18:56 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 22 Mar 2007 18:56:00 +0000
(18:56 -0000)
networking/ifconfig.c
patch
|
blob
|
history
diff --git
a/networking/ifconfig.c
b/networking/ifconfig.c
index f4fc0a4760251b2cfe4a80497ce21c2ef6b36907..96af7b770f6772cf3458c625289420216dc17f48 100644
(file)
--- a/
networking/ifconfig.c
+++ b/
networking/ifconfig.c
@@
-387,6
+387,8
@@
int ifconfig_main(int argc, char **argv)
}
#endif
else {
+ if (strcmp(host, "inet") == 0)
+ continue; /* compat stuff */
len_and_sockaddr *lsa = xhost2sockaddr(host, 0);
#if ENABLE_FEATURE_IPV6
if (lsa->sa.sa_family == AF_INET6) {