On Tue, Mar 20, 2012 at 11:51:16AM +0400, Sergey Popov wrote:
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)?
>diff --git a/src/packet.c b/src/packet.c
>index dec3166..f41619f 100644
>@@ -67,6 +67,7 @@ static void adjustpacket(char *tpacket, struct sockaddr_ll
> 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
Are you using current git or other version? I fixed the code in git
(on Feb 27) to allow capture on tun-like interfaces (it's the
ARPHRD_NONE in the above code).