summaryrefslogtreecommitdiffhomepage
path: root/networking
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-07 12:25:17 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-07 12:25:17 +0000
commit57d83ff5f9e56e881d0c75ee981db3fb3f1d4903 (patch)
tree76613dc5be8c4b874605ba796ffd32c864706faa /networking
parent1819eee436198b52c30bfdd4a15fb3c6a5f2aef1 (diff)
- Proposed fix to make aliases work (with uClibc-current).
See comment in the patch about the change introduced in r16342.
Diffstat (limited to 'networking')
-rw-r--r--networking/interface.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/networking/interface.c b/networking/interface.c
index cabfc063b..dd455823b 100644
--- a/networking/interface.c
+++ b/networking/interface.c
@@ -343,8 +343,10 @@ static void sockets_close(void)
}
}
#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 @@ static int nstrcmp(const char *a, const char *b)
}
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;