20.03.2012 11:36, Vitezslav Samel пишет:
On Tue, Mar 20, 2012 at 11:06:18AM +0400, Sergey Popov wrote:
> iptraf-ng-1.1.1 does not show traffic on some types of interfaces.
> Older(1.0.2) version did not show traffic on tun devices under
> Linux, new(1.1.1) also does not show it on ppp devices.
>
> Which information could i provide to fix this issue?
>
> My system: Gentoo Linux
> Arch: x86_64(but tried on x86 too)
Could you try the following patch (against current git)?
Cheers,
Vita
diff --git a/src/packet.c b/src/packet.c
index dec3166..f41619f 100644
--- a/src/packet.c
+++ b/src/packet.c
@@ -67,6 +67,7 @@ static void adjustpacket(char *tpacket, struct sockaddr_ll *fromaddr,
case ARPHRD_CSLIP:
case ARPHRD_SLIP6:
case ARPHRD_CSLIP6:
+ case ARPHRD_PPP:
case ARPHRD_TUNNEL:
case ARPHRD_NONE:
*packet = tpacket;
After applying patch, ppp interfaces counters bringed back, thanks. But,
however, counter for tun interfaces are still shows zeroes