pkgsrc-Bugs archive

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

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



>Number:         55446
>Category:       pkg
>Synopsis:       scapy function send() does not work
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 02 11:55:00 +0000 2020
>Originator:     Alexei
>Release:        NetBSD 8.2, up to date packages
>Organization:
>Environment:
NetBSD 8.2 (GENERIC) #0: Tue Mar 31 05:08:40 UTC 2020  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/i386/compile/GENERIC i386

# pkg_info scapy
Information for scapy-2.4.3nb1:

Comment:
Interactive packet manipulation program

Requires:
py37-setuptools>=0.8
python37>=3.7.0

Description:
Scapy is a powerful interactive packet manipulation program. It is able
to forge or decode packets of a wide number of protocols, send them on
the wire, capture them, match requests and replies, and much more.

Homepage:
http://www.secdev.org/projects/scapy/


# pkg_info py37-setuptools
Information for py37-setuptools-44.0.0:

Comment:
New Python packaging system

Requires:
py37-expat-[0-9]*
python37>=3.7.0

Required by:
scapy-2.4.3nb1
speedtest-cli-2.1.2

Description:
setuptools is a collection of enhancements to the Python distutils
that allow you to more easily build and distribute Python packages,
especially ones that have dependencies on other packages.

Homepage:
https://github.com/pypa/setuptools


# pkg_info python37
Information for python37-3.7.7:

Comment:
Interpreted, interactive, object-oriented programming language

Requires:
libffi>=3.3nb1
libuuid>=2.18
openssl>=1.1.1dnb2

Required by:
py37-setuptools-44.0.0
py37-expat-3.7.7
py37-cElementTree-3.7.7
pango-1.44.7nb2
nghttp2-1.40.0nb2
libxkbcommon-0.10.0
gdk-pixbuf2-2.40.0nb1
atk-2.33.3nb1
scapy-2.4.3nb1
orc-0.4.31
libvdpau-1.3
qt5-qtdeclarative-5.14.1nb2
clang-9.0.1nb1
speedtest-cli-2.1.2
mkfontalias-20000521nb6
url2pkg-19.3.7
json-glib-1.4.4nb1
gexiv2-0.12.0nb3
gobject-introspection-1.64.0
poppler-glib-0.86.1nb1
libsoup-2.70.0
libnotify-0.7.9nb2
yelp-xsl-3.32.1
glib-networking-2.64.0
GConf-3.2.3nb4
at-spi2-atk-2.34.1nb1
at-spi2-core-2.35.1nb1

Description:
Python is an interpreted, interactive, object-oriented
programming language that combines remarkable power with
very clear syntax. For an introduction to programming in
Python you are referred to the Python Tutorial. The
Python Library Reference documents built-in and standard
types, constants, functions and modules. Finally, the
Python Reference Manual describes the syntax and semantics
of the core language in (perhaps too) much detail.

Python's basic power can be extended with your own modules
written in C or C++. On most systems such modules may be
dynamically loaded. Python is also adaptable as an exten-
sion language for existing applications. See the internal
documentation for hints.

This package provides Python version 3.7.x.

Homepage:
https://www.python.org/



>Description:
scapy function send() does not work

>How-To-Repeat:
# cat ./test.py
#! /usr/pkg/bin/python3.7

from scapy.all import *

p=IP(dst="127.0.0.1")/ICMP()/"test"
p.show2()
send(p)


# ./test.py
###[ IP ]###
  version   = 4
  ihl       = 5
  tos       = 0x0
  len       = 32
  id        = 1
  flags     =
  frag      = 0
  ttl       = 64
  proto     = icmp
  chksum    = 0x7cda
  src       = 127.0.0.1
  dst       = 127.0.0.1
  \options   \
###[ ICMP ]###
     type      = echo-request
     code      = 0
     chksum    = 0x1026
     id        = 0x0
     seq       = 0x0
###[ Raw ]###
        load      = 'test'

Traceback (most recent call last):
  File "./test.py", line 7, in <module>
    send(p)
  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



>Fix:


Home | Main Index | Thread Index | Old Index