aboutsummaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
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 @@
3 * that either displays or sets the characteristics of 3 * that either displays or sets the characteristics of
4 * one or more of the system's networking interfaces. 4 * one or more of the system's networking interfaces.
5 * 5 *
6 * Version: $Id: interface.c,v 1.2 2001/03/06 20:54:43 andersen Exp $ 6 * Version: $Id: interface.c,v 1.3 2001/03/10 02:00:54 mjn3 Exp $
7 * 7 *
8 * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> 8 * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
9 * and others. Copyright 1993 MicroWalt Corporation 9 * and others. Copyright 1993 MicroWalt Corporation
@@ -2059,14 +2059,15 @@ static int if_print(char *ifname)
2059 return res; 2059 return res;
2060} 2060}
2061 2061
2062int display_interfaces(void) 2062int display_interfaces(int opt_all)
2063{ 2063{
2064 int status; 2064 int status;
2065 2065
2066 opt_a = opt_all;
2067
2066 /* Create a channel to the NET kernel. */ 2068 /* Create a channel to the NET kernel. */
2067 if ((skfd = sockets_open(0)) < 0) { 2069 if ((skfd = sockets_open(0)) < 0) {
2068 perror("socket"); 2070 perror_msg_and_die("socket");
2069 exit(1);
2070 } 2071 }
2071 2072
2072 /* Do we have to show the current setup? */ 2073 /* Do we have to show the current setup? */