mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
22 lines
816 B
Plaintext
22 lines
816 B
Plaintext
$NetBSD: patch-aa,v 1.6 2016/05/09 11:07:51 adam Exp $
|
|
|
|
--- scapy/arch/__init__.py.orig 2016-01-15 13:10:59.000000000 +0000
|
|
+++ scapy/arch/__init__.py
|
|
@@ -50,6 +50,7 @@ NETBSD=sys.platform.startswith("netbsd")
|
|
DARWIN=sys.platform.startswith("darwin")
|
|
SOLARIS=sys.platform.startswith("sunos")
|
|
WINDOWS=sys.platform.startswith("win32")
|
|
+DRAGONFLY=sys.platform.startswith("dragonfly")
|
|
|
|
X86_64 = not WINDOWS and (os.uname()[4] == 'x86_64')
|
|
ARM_64 = not WINDOWS and (os.uname()[4] == 'aarch64')
|
|
@@ -72,7 +73,7 @@ if LINUX:
|
|
from linux import *
|
|
if scapy.config.conf.use_pcap or scapy.config.conf.use_dnet:
|
|
from pcapdnet import *
|
|
-elif OPENBSD or FREEBSD or NETBSD or DARWIN:
|
|
+elif OPENBSD or FREEBSD or NETBSD or DARWIN or DRAGONFLY:
|
|
from bsd import *
|
|
elif SOLARIS:
|
|
from solaris import *
|