ifconfig: support (by ignoring it) "inet" before IP address or hostname
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 22 Mar 2007 18:56:00 +0000 (18:56 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 22 Mar 2007 18:56:00 +0000 (18:56 -0000)
networking/ifconfig.c

index f4fc0a4760251b2cfe4a80497ce21c2ef6b36907..96af7b770f6772cf3458c625289420216dc17f48 100644 (file)
@@ -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) {