$OpenBSD: patch-scapy_arch_common_py,v 1.1 2019/04/24 21:27:26 bluhm Exp $

https://github.com/secdev/scapy/commit/1515cbbe3062c6d87eac3368fca4cc5a257c2caa

Index: scapy/arch/common.py
--- scapy/arch/common.py.orig
+++ scapy/arch/common.py
@@ -20,6 +20,7 @@ from ctypes import c_uint, c_uint32, c_ushort, c_ubyte
 from scapy.config import conf
 from scapy.data import MTU
 from scapy.error import Scapy_Exception
+from scapy.consts import OPENBSD
 import scapy.modules.six as six
 
 # BOOT
@@ -35,7 +36,12 @@ def _check_tcpdump():
                                     stdout=devnull, stderr=subprocess.STDOUT)
         except OSError:
             return False
-    return proc.wait() == 0
+
+    if OPENBSD:
+        # 'tcpdump --version' returns 1 on OpenBSD 6.4
+        return proc.wait() == 1
+    else:
+        return proc.wait() == 0
 
 
 TCPDUMP = _check_tcpdump()
