wmbutton: Escape minus sign in manpage
[dockapps.git] / wmnet / config.h
blobfe50fabaae86044d9ece240c2d08ed0d6f7cbd55
1 #if defined (__FreeBSD__) || defined (__OpenBSD__)
3 /* Our only FreeBSD driver, this goes straight into kernel memory
4 * and reads the raw structures from right underneath the kernel using the
5 * kvm library. This made the code a require a little more thought, but
6 * the end result is a statistics driver thats faster than the linux ones
7 * (with the possible exception of the LINUX_PPP driver). However, none
8 * of them really vary by any appreciable amount. You can monitor whole
9 * interfaces only with this driver.
11 # define USE_KVM
13 #endif
17 #ifdef linux
19 /* this driver uses a socket ioctl() to get stats from a ppp type interface
20 * Define this if you will be using wmnet mostly to watch your ppp stats.
21 * The advantage to this driver is that you don't need to mess around with
22 * IP accounting rules.
24 #define USE_LINUX_PPP
31 /* This driver uses the 2.0 kernel's IP accounting rules to gather data
32 * You set two rules up using the ipfwadm command and wmnet will watch
33 * them. You DO need a 2.0 kernel and IP accounting enabled in your kernel
35 #define USE_IPFWADM
41 /* If you have a 2.1 kernel, you've probably noticed that IP accounting
42 * and the ipfwadm command won't work anymore. These have been superceded
43 * by the ipchains mechanism. Define this if you want IP chains support,
44 * you have a 2.1 kernel, and you have set up two chains (read README)
46 #define USE_IPCHAINS
48 /* Define this if you have a 2.1 kernel and wish to use the stats from
49 * /proc/net/dev. In the 2.1 kernels, /proc/net/dev now has a bytes field
50 * (2.0 only had a packets field) which enables us to use this driver as
51 * a generic interface watcher. With this, you don't have to fool around with
52 * ipchains if you don't want to or haven't it enabled
54 #define USE_2_1_DEV
55 #endif /* linux */