summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko2007-03-22 19:35:51 +0000
committerDenis Vlasenko2007-03-22 19:35:51 +0000
commitd0587ed9666d2d3aa65c42007ae93244cfc58568 (patch)
tree89c559b2803b07ca13bd7d65a5669975aafb5bf8 /networking
parentcbcff2936e3ff8382c7c9c79c8674e125fdae8ae (diff)
downloadbusybox-d0587ed9666d2d3aa65c42007ae93244cfc58568.zip
busybox-d0587ed9666d2d3aa65c42007ae93244cfc58568.tar.gz
interface: revert part of commit 18120 (eth aliases work again)
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 2c5f328..b1b935e 100644
--- 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 *),