[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    KSniffer 0.3.2
From:       Giovanni Venturi <giovanni () ksniffer ! org>
Date:       2008-02-20 22:15:30
Message-ID: 200802202315.35759.giovanni () ksniffer ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


Hello,
I delayed the KSniffer 0.3.2 release cause of a bug. A strange bug. Some 
people told me that when you select different packets to capture (once 100, 
another time 200, than 10, 1000, and so on... not in this same order) the GUI 
take more/less packets of what it has to get.
A developer told me when he select 100 packets to capture the GUI stops at 800 
packets, but the pcap dumped file has 100 packets. I'm not able to reproduce 
this bug. Can someone help me testing/debugging KSniffer?
It's in the playground module (see 
http://ksniffer.sourceforge.net/index.php?section=development to install it 
quickly).
Another question. Is KProcess 3.5.9 bugged in some way?
To capture network packets I use the suid binary "ksniff" (the code is in the 
file ksniff/ksniff.cpp) . From command line If I sent it the signal TERM it 
waits 2 seconds that quit and show you the results on the konsole (how many 
packets captured) and to the secure log (on Slackware is the 
file /var/log/secure).
You can test it with the file XML I attached. You try it with:
"ksniff ksniffer.xml" than you can send a "kill -TERM ksniff-pid" when you 
want to stop sniffing.
In this way it works. But not from the GUI. KProcess calls kill() and ksniff 
die immediately without to show you the brief report on the number of packets 
ksniff has gotten (if you run as "ksniffer --nofork" from konsole) and 
without to write in the secure log the summary. Can someone try to give me 
some suggesting? Why KProcess seems to be wrong? Where is the problem in the 
code? The kill() call is in void KSniffer::stopSniffing() in ksniffer.cpp 
file.
Help and suggestions are very welcome.

Giovanni
-- 
A KDE Italian translator and KSniffer core developer
Slackware GNU/Linux current version - kernel 2.6.24.2
KSniffer Project - http://www.ksniffer.org/

["ksniffer.xml" (text/xml)]

<?xml version="1.0"?>
<options>
 <standard>
  <interface capturefile="/tmp/kde-slacky/ksniffer.pcap" dev="any" />
 </standard>
 <extras>
  <capture type="manually" />
 </extras>
</options>

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic