projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbcff29
)
interface: revert part of commit 18120 (eth aliases work again)
author
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 22 Mar 2007 19:35:51 +0000
(19:35 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 22 Mar 2007 19:35:51 +0000
(19:35 -0000)
networking/interface.c
patch
|
blob
|
history
diff --git
a/networking/interface.c
b/networking/interface.c
index 2c5f3284ea4b529154e3959eac53dbdb0eaa37cd..b1b935e7efdb9d096e48160ff6d0a63183f22c89 100644
(file)
--- a/
networking/interface.c
+++ b/
networking/interface.c
@@
-499,7
+499,6
@@
static inline int procnetdev_version(char *buf)
return 0;
}
-/* Used only if "/proc/net/dev" isn't available */
static int if_readconf(void)
{
int numreqs = 30;
@@
-592,7
+591,11
@@
static int if_readlist_proc(char *target)
static int if_readlist(void)
{
- return if_readlist_proc(NULL);
+ int err = if_readlist_proc(NULL);
+ /* Needed in order to get ethN:M aliases */
+ if (!err)
+ err = if_readconf();
+ return err;
}
static int for_all_interfaces(int (*doit) (struct interface *, void *),