svn commit: trunk/busybox/networking

aldot at busybox.net aldot at busybox.net
Thu Dec 7 12:25:19 UTC 2006


Author: aldot
Date: 2006-12-07 04:25:17 -0800 (Thu, 07 Dec 2006)
New Revision: 16798

Log:
- Proposed fix to make aliases work (with uClibc-current).
  See comment in the patch about the change introduced in r16342.


Modified:
   trunk/busybox/networking/interface.c


Changeset:
Modified: trunk/busybox/networking/interface.c
===================================================================
--- trunk/busybox/networking/interface.c	2006-12-07 12:18:36 UTC (rev 16797)
+++ trunk/busybox/networking/interface.c	2006-12-07 12:25:17 UTC (rev 16798)
@@ -343,8 +343,10 @@
 	}
 }
 #endif
-
+#if 0
 /* like strcmp(), but knows about numbers */
+except that the freshly added calls to xatoul() brf on ethernet aliases with
+uClibc with e.g.: ife->name='lo'  name='eth0:1'
 static int nstrcmp(const char *a, const char *b)
 {
 	const char *a_ptr = a;
@@ -367,13 +369,14 @@
 	}
 	return *a - *b;
 }
+#endif
 
 static struct interface *add_interface(char *name)
 {
 	struct interface *ife, **nextp, *new;
 
 	for (ife = int_last; ife; ife = ife->prev) {
-		int n = nstrcmp(ife->name, name);
+		int n = /*n*/strcmp(ife->name, name);
 
 		if (n == 0)
 			return ife;




More information about the busybox-cvs mailing list