aboutsummaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2001-03-10 02:00:54 +0000
committerManuel Novoa III <mjn3@codepoet.org>2001-03-10 02:00:54 +0000
commit78f57460f2776aeddb584dd10923959f26863ea5 (patch)
tree69bd4341c9a5c604793226a1d2509cf1dd57ab6b /interface.c
parentd2117e9c828e02bfc1da38768fc3f6198cab9340 (diff)
downloadbusybox-78f57460f2776aeddb584dd10923959f26863ea5.tar.gz
Quick mod to enable option -a for ifconfig.
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/interface.c b/interface.c
index 4df1a721a..648888bf5 100644
--- a/interface.c
+++ b/interface.c
@@ -3,7 +3,7 @@
* that either displays or sets the characteristics of
* one or more of the system's networking interfaces.
*
- * Version: $Id: interface.c,v 1.2 2001/03/06 20:54:43 andersen Exp $
+ * Version: $Id: interface.c,v 1.3 2001/03/10 02:00:54 mjn3 Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation
@@ -2059,14 +2059,15 @@ static int if_print(char *ifname)
return res;
}
-int display_interfaces(void)
+int display_interfaces(int opt_all)
{
int status;
+ opt_a = opt_all;
+
/* Create a channel to the NET kernel. */
if ((skfd = sockets_open(0)) < 0) {
- perror("socket");
- exit(1);
+ perror_msg_and_die("socket");
}
/* Do we have to show the current setup? */