svn commit: trunk/busybox/networking

vda at busybox.net vda at busybox.net
Thu Mar 22 18:56:02 UTC 2007


Author: vda
Date: 2007-03-22 11:56:00 -0700 (Thu, 22 Mar 2007)
New Revision: 18206

Log:
ifconfig: support (by ignoring it) "inet" before IP address or hostname


Modified:
   trunk/busybox/networking/ifconfig.c


Changeset:
Modified: trunk/busybox/networking/ifconfig.c
===================================================================
--- trunk/busybox/networking/ifconfig.c	2007-03-22 18:14:23 UTC (rev 18205)
+++ trunk/busybox/networking/ifconfig.c	2007-03-22 18:56:00 UTC (rev 18206)
@@ -387,6 +387,8 @@
 						}
 #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) {




More information about the busybox-cvs mailing list