summaryrefslogtreecommitdiff
path: root/net/wmnet/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'net/wmnet/patches/patch-ab')
-rw-r--r--net/wmnet/patches/patch-ab23
1 files changed, 21 insertions, 2 deletions
diff --git a/net/wmnet/patches/patch-ab b/net/wmnet/patches/patch-ab
index b143f017ea6..28028f90a83 100644
--- a/net/wmnet/patches/patch-ab
+++ b/net/wmnet/patches/patch-ab
@@ -1,10 +1,29 @@
-$NetBSD: patch-ab,v 1.1 2000/07/31 17:02:25 tron Exp $
+$NetBSD: patch-ab,v 1.2 2002/07/18 12:57:57 seb Exp $
--- config.h.orig Fri May 5 02:34:29 2000
-+++ config.h Mon Jul 31 19:00:30 2000
++++ config.h Mon Jul 8 16:44:18 2002
@@ -1,4 +1,4 @@
-#if defined (__FreeBSD__) || defined (__OpenBSD__)
+#if defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__)
/* Our only FreeBSD driver, this goes straight into kernel memory
* and reads the raw structures from right underneath the kernel using the
+@@ -13,7 +13,18 @@
+ #endif
+
+
++#if defined (sun)
+
++/*
++ * This driver uses the Solaris kstat(3) mechanism to acquire interface
++ * statistics. It's a lot more elegant than grovelling through kernel
++ * memory.
++ */
++#define USE_KSTAT
++
++#endif
++
++
+ #ifdef linux
+
+ /* this driver uses a socket ioctl() to get stats from a ppp type interface