[Bug 485215] [NEW] Can't manipulate l2 data
Davide Viti
zinosat at tiscali.it
Thu Nov 19 08:07:26 UTC 2009
Public bug reported:
Binary package hint: scapy
$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04
$ scapy
Welcome to Scapy (2.0.0.5 beta)
>>> hexdump(Ether())
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/var/lib/python-support/python2.6/scapy/utils.py", line 52, in hexdump
x=str(x)
File "/var/lib/python-support/python2.6/scapy/packet.py", line 240, in __str__
return self.build()
File "/var/lib/python-support/python2.6/scapy/packet.py", line 284, in build
pkt = self.do_build()
File "/var/lib/python-support/python2.6/scapy/packet.py", line 271, in do_build
p = f.addfield(self, p, self.getfieldval(f.name))
File "/var/lib/python-support/python2.6/scapy/fields.py", line 68, in addfield
return s+struct.pack(self.fmt, self.i2m(pkt,val))
File "/var/lib/python-support/python2.6/scapy/layers/l2.py", line 85, in i2m
return MACField.i2m(self, pkt, self.i2h(pkt, x))
File "/var/lib/python-support/python2.6/scapy/layers/l2.py", line 79, in i2h
x = conf.neighbor.resolve(pkt,pkt.payload)
File "/var/lib/python-support/python2.6/scapy/layers/l2.py", line 31, in resolve
return self.resolvers[l2inst.__class__,l3inst.__class__](l2inst,l3inst)
KeyError: (<class 'scapy.layers.l2.Ether'>, <class 'scapy.packet.NoPayload'>)
If I run the same command on a debian lenny box (Scapy (v1.1.1 / -)) it just works:
Welcome to Scapy (v1.1.1 / -)
>>> hexdump(Ether())
WARNING: Mac address to reach None not found
0000 FF FF FF FF FF FF 00 00 00 00 00 00 00 00 ..............
ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: python-scapy 2.0.0.5-1
PackageArchitecture: all
ProcEnviron:
PATH=(custom, no user)
LANG=it_IT.UTF-8
SHELL=/bin/bash
SourcePackage: scapy
Uname: Linux 2.6.28-16-generic i686
** Affects: scapy (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386
--
Can't manipulate l2 data
https://bugs.launchpad.net/bugs/485215
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