From: Denis Vlasenko Date: Thu, 22 Mar 2007 18:56:00 +0000 (-0000) Subject: ifconfig: support (by ignoring it) "inet" before IP address or hostname X-Git-Tag: 1_5_1~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1787e2246504d4252d2f42d2aac609c844c4cfe5;p=oweals%2Fbusybox.git ifconfig: support (by ignoring it) "inet" before IP address or hostname --- 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) } #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) {