pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/54028: net/scapy not working?
>Number: 54028
>Category: pkg
>Synopsis: net/scapy not working?
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 01 11:10:01 +0000 2019
>Originator: Martin Husemann
>Release: NetBSD 8.99.34
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD space-truckin.duskware.de 8.99.34 NetBSD 8.99.34 (SUNXI) #33: Tue Feb 26 07:40:08 CET 2019 martin%night-owl.duskware.de@localhost:/usr/src/sys/arch/evbarm/compile/SUNXI evbarm
Architecture: earmv7hfeb
Machine: evbarm
>Description:
I was trying to run a python script from a recentish FreeBSD test case
commit and could not make it work. It does soemthing along the lines of:
import scapy.all as sp
def main():
intf = sys.argv[1]
ipv6_src = sys.argv[2]
ipv6_dst = sys.argv[3]
ipv6_main = sp.IPv6(dst=ipv6_dst, src=ipv6_src)
[...]
sp.sendp(pkt0, iface=intf, verbose=False)
I have scapy-2.3.2 from pkgsrc, and I called the test script with:
# python2.7 test.py awge0 2001:470:1f0b:e84:a982:4f01:4b81:7d8a 2001:470:a085:999::80
(where awge0 is my only ethernet interface, the first address is my local
IPv6 and the second is www.netbsd.org).
Scapy failed to send the packet:
WARNING: No route found for IPv6 destination 2001:470:a085:999::80 (no default route?)
which is plain wrong, I can do:
> ping6 -S 2001:470:1f0b:e84:a982:4f01:4b81:7d8a 2001:470:a085:999::80
PING6(56=40+8+8 bytes) 2001:470:1f0b:e84:a982:4f01:4b81:7d8a --> 2001:470:a085:999::80
16 bytes from 2001:470:a085:999::80, icmp_seq=0 hlim=54 time=156.987 ms
16 bytes from 2001:470:a085:999::80, icmp_seq=1 hlim=54 time=155.625 ms
>How-To-Repeat:
s/a
>Fix:
n/a
Home |
Main Index |
Thread Index |
Old Index