tcp filter not work with wlan0 iface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iptraf (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I was running iptraf on wlan0 iface with a filter to collect
ssh statistics and found that no packets was counted.
I'm a developer, so I investigate the code and I suppose that
there is a bug in the packet.c file, where is checked without
a reason if 2 integer pointers (sport and dport) are different from NULL and
than choose the wrong conditional branch.
A patch is attached.
Regards, Matteo Nastasi.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: iptraf 3.0.0-7ubuntu0.
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelMo
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Wed Oct 26 11:31:11 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: iptraf
UpgradeStatus: No upgrade log present (probably fresh install)
I'm unable to reproduce this issue using an SSH filter against a wireless interface; I can track SSH traffic just fine.
I am using 14.04, so it may be that this issue has been resolved - please could you provide more details on how to reproduce your issue? and a re-test on 14.04 or 12.04 would be great as well!