[Bug 483561] [NEW] rdpcap Fails When Run from a Script (Solution To the Bug is Included)
ScapyBugMan
ubuntu_bug_found at mailinator.com
Mon Nov 16 12:07:56 UTC 2009
Public bug reported:
Binary package hint: scapy
System Information:
Description: Ubuntu 9.04
Release: 9.04
$ apt-cache policy python-scapy
python-scapy:
Installed: 2.0.0.5-1
Candidate: 2.0.0.5-1
Version table:
*** 2.0.0.5-1 0
500 http://archive.ubuntu.com jaunty/universe Packages
100 /var/lib/dpkg/status
----
When invoking the rdpcap function from a script, which reads in a pcap
file, it fails. Here's an example of the issue (taken from here because
it is exactly the same bug that I ran into -
http://osdir.com/ml/security.scapy.general/2008-08/msg00035.html:
# cat test.py
from scapy.all import *
rdpcap('file.pcap')
# python test.py
Traceback (most recent call last):
File "test.py", line 3, in <module>
rdpcap('file.pcap')
File "/var/lib/python-support/python2.5/scapy/utils.py", line 454, in
rdpcap
return PcapReader(filename).read_all(count=count)
File "/var/lib/python-support/python2.5/scapy/utils.py", line 569, in
read_all
return PacketList(res,name = os.path.basename(self.filename))
NameError: global name 'PacketList' is not defined
This issue has been reported before (not specifically for Ubuntu) and
the necessary patch can be found here -
http://osdir.com/ml/security.scapy.general/2008-08/msg00037.html. I
applied the patch myself and it resolved the issue. Thanks.
** Affects: scapy (Ubuntu)
Importance: Undecided
Status: New
--
rdpcap Fails When Run from a Script (Solution To the Bug is Included)
https://bugs.launchpad.net/bugs/483561
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list