Menu

#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

  • Humberto Abdelnur

    Patch file for version 6.2

     
  • 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).

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.