summaryrefslogtreecommitdiff
path: root/net/wmnet/patches/patch-ab
blob: bd46b721a04a4eda910ba56834499536100bd805 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-ab,v 1.3 2006/03/23 17:36:16 joerg Exp $

--- config.h.orig	Fri May  5 02:34:29 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__) || defined(__DragonFly__)
 
 /* 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