Ticket #139 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

missing ``from scapy.error import warning`` in linux.py

Reported by: anonymous Assigned to: pbi
Priority: low Milestone:
Component: Scapy Version: 2.0.0.x
Keywords: Cc:

Description

Using scapy 2.0.0.9beta

$ sudo python lswifi.py # Traceback (most recent call last): # File "lswifi.py", line 50, in <module> # sendrecv.sniff(iface="rausb0", prn=wiprn, store=0) # File "/usr/lib/python2.5/site-packages/scapy/sendrecv.py", line 550, in sniff # p = s.recv(MTU) # File "/usr/lib/python2.5/site-packages/scapy/arch/linux.py", line 483, in recv # warning("Unable to guess type (interface=%s protocol=%#x family=%i). Using %s" % (sa_ll[0],sa_ll[1],sa_ll[3],cls.name)) #NameError?: global name 'warning' is not defined

Adding: from scapy.error import warning to arch/linux.py fixes it.

Attachments

Change History

10/01/08 18:25:19 changed by pbi

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [6c71f1f41d71].


Add/Change #139 (missing ``from scapy.error import warning`` in linux.py)




Change Properties
Action