#7 dumpfiles/open_live sockets are not closed properly

open-accepted
nobody
None
5
2012-01-06
2008-03-20
No

dumpfiles/open_live sockets created are not closed
properly. The destructor is written as follow in
the pcap.i file line:

~pcapObject(void);

For some reason, swig only considers it as a destructor if is written like:

~pcapObject();

without the void.

Download the patch to the folder of pylibpcap 6.2 and from there apply the patch do as follow:

% patch -Np1 < pylibpcap.6.2.dstructor_fix.patch
% python setup.py build
% sudo python setup.py install

Discussion

  • Wim Lewis

    Wim Lewis - 2012-01-06
    • status: open --> open-accepted
     
  • Wim Lewis

    Wim Lewis - 2012-01-06

    It looks like SWIG must have fixed that bug at some point, but I applied the patch anyway (at least for the constructor and destructor).

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks