aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-22 18:56:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-22 18:56:00 +0000
commit1787e2246504d4252d2f42d2aac609c844c4cfe5 (patch)
tree3e5442b7e47ec64728fcb53f83947fa2cfa29787
parent2a51af257957bef9206b594f0e7fb8846ea7070b (diff)
downloadbusybox-w32-1787e2246504d4252d2f42d2aac609c844c4cfe5.tar.gz
busybox-w32-1787e2246504d4252d2f42d2aac609c844c4cfe5.tar.bz2
busybox-w32-1787e2246504d4252d2f42d2aac609c844c4cfe5.zip
ifconfig: support (by ignoring it) "inet" before IP address or hostname
-rw-r--r--networking/ifconfig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index f4fc0a476..96af7b770 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -387,6 +387,8 @@ int ifconfig_main(int argc, char **argv)
387 } 387 }
388#endif 388#endif
389 else { 389 else {
390 if (strcmp(host, "inet") == 0)
391 continue; /* compat stuff */
390 len_and_sockaddr *lsa = xhost2sockaddr(host, 0); 392 len_and_sockaddr *lsa = xhost2sockaddr(host, 0);
391#if ENABLE_FEATURE_IPV6 393#if ENABLE_FEATURE_IPV6
392 if (lsa->sa.sa_family == AF_INET6) { 394 if (lsa->sa.sa_family == AF_INET6) {