diff options
author | Klaas Freitag <freitag@suse.de> | 1999-12-11 13:35:53 +0000 |
---|---|---|
committer | Klaas Freitag <freitag@suse.de> | 1999-12-11 13:35:53 +0000 |
commit | 11e66d4103f90b958c8dee4c8de522aff12ac21c (patch) | |
tree | cc7d339357462b6892bcc74e1c1f4abe6588c61f /ifconfig.c | |
parent | c7f5d607e2b88e38fd1cacefbadcb96d8408b13b (diff) | |
download | net-tools-11e66d4103f90b958c8dee4c8de522aff12ac21c.tar.gz net-tools-11e66d4103f90b958c8dee4c8de522aff12ac21c.tar.bz2 net-tools-11e66d4103f90b958c8dee4c8de522aff12ac21c.zip |
Some patches from Kurt Garloff to handle /etc/networks correctly
Make ifconfig more forgiving when /proc is not mounted
Avoid endless recursion when /proc/net/dev is empty :-)
Diffstat (limited to 'ifconfig.c')
-rw-r--r-- | ifconfig.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,7 +3,7 @@ * that either displays or sets the characteristics of * one or more of the system's networking interfaces. * - * Version: $Id: ifconfig.c,v 1.32 1999/09/28 09:01:49 philip Exp $ + * Version: $Id: ifconfig.c,v 1.33 1999/12/11 13:35:53 freitag Exp $ * * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> * and others. Copyright 1993 MicroWalt Corporation @@ -41,6 +41,7 @@ /* Ugh. But libc5 doesn't provide POSIX types. */ #include <asm/types.h> + #ifdef HAVE_HWSLIP #include <linux/if_slip.h> #endif @@ -364,7 +365,7 @@ static int if_print(char *ifname) } else { struct interface *ife; - ife = lookup_interface(ifname); + ife = lookup_interface(ifname,1); res = do_if_fetch(ife); if (res >= 0) ife_print(ife); |