From b426d94463bcb4166c4cd8f9526ed8e814307b54 Mon Sep 17 00:00:00 2001 From: Martin Gallo <martin.gallo@gmail.com> Date: Tue, 8 Apr 2014 21:24:57 -0300 Subject: [PATCH] Fixed import of supersocket module on non-linux platforms. As sendrecv is arch-dependent, import arch first so the module can identify the proper arch. --HG-- branch : archimport --- scapy/supersocket.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scapy/supersocket.py b/scapy/supersocket.py index a5fe5e40..6e844197 100644 --- a/scapy/supersocket.py +++ b/scapy/supersocket.py @@ -138,4 +138,5 @@ class StreamSocket(SimpleSocket): if conf.L3socket is None: conf.L3socket = L3RawSocket +import arch import sendrecv -- GitLab