tcp filter not work with wlan0 iface

Bug #881887 reported by Matteo Nastasi (mop)
8
This bug affects 1 person
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.11.04
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: fglrx
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)

Revision history for this message
Matteo Nastasi (mop) (nastasi) wrote :
Revision history for this message
James Page (james-page) wrote :

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!

Changed in iptraf (Ubuntu):
status: New → Incomplete
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "This fix solve my problem but I don't know if add some other problem." seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for iptraf (Ubuntu) because there has been no activity for 60 days.]

Changed in iptraf (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.