[pypy-issue] [issue1318] Scapy.sniff returns an error

Yuriy tracker at bugs.pypy.org
Fri Nov 9 18:42:43 CET 2012


Yuriy <yuriym at toroki.com> added the comment:

I'd tried but received new error:

>>>> scapy.sniff(iface="eth1", filter="stp", prn=lambda x: x.display)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "scapy/sendrecv.py", line 550, in sniff
    s = L2socket(type=ETH_P_ALL, *arg, **karg)
  File "scapy/arch/linux.py", line 460, in __init__
    if iface is None:
  File "scapy/arch/linux.py", line 131, in attach_filter
    mreq = struct.pack("IHH8s", get_if_index(iff), PACKET_MR_PROMISC, 0, "")
ValueError: cannot convert negative integer to unsigned

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1318>
________________________________________


More information about the pypy-issue mailing list