summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-07-30 19:17:07 +0000
committerwollman <wollman@FreeBSD.org>1996-07-30 19:17:07 +0000
commit50a3e4ed9e414f69f86253ea0bf631d402af6571 (patch)
tree4f7f2207dece54c4dfd55fd09f5b29f637e49009 /sys/net/if.c
parentf05fb79839f2c2e939d63287e153b80b22336408 (diff)
downloadFreeBSD-src-50a3e4ed9e414f69f86253ea0bf631d402af6571.zip
FreeBSD-src-50a3e4ed9e414f69f86253ea0bf631d402af6571.tar.gz
Add better support for retrieving management information from network
interfaces. This creates two new tables in the net.link.generic branch of the MIB; one contains (essentially) `ifdata' structures, and the other contains a blob provided by the interface (and presumably used to implement link-layer-specific MIB variables). A number of things have been moved around in the `ifnet' and `ifdata' structures, so NEW VERSIONS OF ifconfig(8) AND routed(8) ARE REQUIRED. (A simple recompile is all that's necessary.) I have a sample program which uses this interface for those interested in making use of it.
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 59f568d..912b8a5 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if.c 8.3 (Berkeley) 1/4/94
- * $Id: if.c,v 1.33 1996/07/11 16:32:26 wollman Exp $
+ * $Id: if.c,v 1.34 1996/07/24 19:59:53 wollman Exp $
*/
#include <sys/param.h>
@@ -90,8 +90,8 @@ ifinit(dummy)
if_slowtimo(0);
}
-static int if_index = 0;
-static struct ifaddr **ifnet_addrs;
+int if_index = 0;
+struct ifaddr **ifnet_addrs;
/*
OpenPOWER on IntegriCloud