pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/55446 (scapy function send() does not work)



The following reply was made to PR pkg/55446; it has been noted by GNATS.

From: "David H. Gutteridge" <david%gutteridge.ca@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/55446 (scapy function send() does not work)
Date: Fri, 17 Jul 2020 18:29:45 -0400

 On Fri, 2020-07-17 at 10:10 +0000, tmp%bh0.amt.ru@localhost wrote: 
 >  Yes, I'm sorry, the right output is:
 [...]                          
 >  >>> send(IP(dst="8.8.8.8")/ICMP()/"test")
 >  ERROR: --- Error sending packets
 >  Traceback (most recent call last):
 >    File "/usr/pkg/lib/python3.7/site-packages/scapy/sendrecv.py", line 197, in _sndrcv_snd
 >      self.pks.send(p)
 >    File "/usr/pkg/lib/python3.7/site-packages/scapy/arch/bpf/supersocket.py", line 317, in send
 >      return os.write(self.outs, raw(x))
 >  OSError: [Errno 47] Address family not supported by protocol family
 >  WARNING: Mac address to reach destination not found. Using broadcast.
 >  WARNING: Could not get the source MAC: No MAC address found on tun4 !
 >  Traceback (most recent call last):
 >    File "<console>", line 1, in <module>
 >    File "/usr/pkg/lib/python3.7/site-packages/scapy/sendrecv.py", line 319, in send
 >      realtime=realtime, return_packets=return_packets)
 >    File "/usr/pkg/lib/python3.7/site-packages/scapy/sendrecv.py", line 291, in __gen_send
 >      s.send(p)
 >    File "/usr/pkg/lib/python3.7/site-packages/scapy/arch/bpf/supersocket.py", line 362, in send
 >      L2bpfSocket.send(self, frame)
 >    File "/usr/pkg/lib/python3.7/site-packages/scapy/arch/bpf/supersocket.py", line 317, in send
 >      return os.write(self.outs, raw(x))
 >  OSError: [Errno 47] Address family not supported by protocol family
 
 Hmm, well, here it has (randomly?) chosen to use tun4, but you may want
 to use your iwi0 interface. There's the "iface" argument for that,
 please see: https://scapy.readthedocs.io/en/latest/usage.html#sending-packets
 
 Dave
 
 


Home | Main Index | Thread Index | Old Index