From: lrhorer on

I am using darkstat 3.0.712-2 to monitor the interface utilization on a
Debian "Squeeze" system running on an old Dell GX260 mini desktop box.
Everything was fine under the "Lenny" release, but I upgraded the box
yesterday to "Squeeze", and now darkstat doesn't recognize the VPN
tunnel interface (tun0). It recognizes the other interfaces, but when
I issue the command:

`/usr/sbin/darkstat -i tun0 -l 192.168.1.0/255.255.255.0 -p 668 --user
darkstat --chroot /var/log/darkstat/tun0`

it gives me:

4579: error: unknown linktype 12

Issuing the exact same command, except replacing tun0 with eth0 or ppp0
works fine. Does anyone have any ideas? Ifconfig returns:

Cricket:/downloads# ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:74:2a:47:82
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::208:74ff:fe2a:4782/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:995 errors:0 dropped:0 overruns:0 frame:0
TX packets:1150 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:112475 (109.8 KiB) TX bytes:975936 (953.0 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2860 (2.7 KiB) TX bytes:2860 (2.7 KiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:10.100.47.205 P-t-P:172.29.122.162
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4621 errors:0 dropped:0 overruns:0 frame:0
TX packets:3918 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1652323 (1.5 MiB) TX bytes:566179 (552.9 KiB)

tun0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.2 P-t-P:10.8.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:1904 errors:0 dropped:0 overruns:0 frame:0
TX packets:1208 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:162308 (158.5 KiB) TX bytes:256713 (250.6 KiB)