Hi,

after reading a little bit of guessnet source and pcap documentation,
one of the possible reasons seemed to be a too short timeout for packet
capture (4th parameter of pcap_open_live). This is set to 500ms in the 
original sources. Changing this to 50000 (5000 should also suffice I think) 
solved this for me (read, I can't reproduce since I changed this).

But I think, my approach (while working) is rather crude, perhaps it would 
be better to do some timeouting in NetWatcher (the class responsible to 
read from the wire).

If you also encounter the problem, try the following (I assume that you do 
not know how to build packages from source, if you do, the interesting part 
is step (ii) and (iii)).

(i) download guessnet source (apt-get source guessnet, apt-get build-dep 
guessnet)
(ii) go to <guessnet root>/src/util. There you'll find a file called 
netwatcher.cc. Open it with your favourite editor.
(iii) search for "pcap_open_live". You should find something like
"if (!(pcap_interface = pcap_open_live (
           (char*)iface.c_str(), captureSize, 1, 500, errbuf)))"
(iv) change the 500 to s.t. like 5000 or 50000 (the latter might induce a 
loong delay if no packets are received, but did not test) and save the file
(v) go to <guessnet root> and fire up dpkg-buildpackage
(vi) now you should have a freshly baked guessnet .deb in <guessnet 
root>/..

No. I won't fret about maintainers that do not look at bug reports here...



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to