openbsd-ports/net/scapy/patches/patch-scapy_layers_inet6_py
bluhm 2f7b467f53 To sniff on OpenBSD loopback interface there was a patch from 2012.
In the meantime upstream has implemented it differently.  Adapt
their version for OpenBSD and use it instead.
OK sthen@ danj@
2019-04-20 00:17:50 +00:00

19 lines
858 B
Plaintext

$OpenBSD: patch-scapy_layers_inet6_py,v 1.1 2019/04/20 00:17:50 bluhm Exp $
https://github.com/secdev/scapy/pull/1907/commits/d64930e3bbfeca6c04d9874d31d244a0916158e1
Index: scapy/layers/inet6.py
--- scapy/layers/inet6.py.orig
+++ scapy/layers/inet6.py
@@ -4030,9 +4030,7 @@ bind_layers(Ether, IPv6, type = 0x86dd )
bind_layers(CookedLinux, IPv6, proto = 0x86dd )
bind_layers(GRE, IPv6, proto = 0x86dd )
bind_layers(SNAP, IPv6, code = 0x86dd )
-bind_layers(Loopback, IPv6, type = 0x18 )
-bind_layers(Loopback, IPv6, type = 0x1c )
-bind_layers(Loopback, IPv6, type = 0x1e )
+bind_layers(Loopback, IPv6, type=socket.AF_INET6)
bind_layers(IPerror6, TCPerror, nh = socket.IPPROTO_TCP )
bind_layers(IPerror6, UDPerror, nh = socket.IPPROTO_UDP )
bind_layers(IPv6, TCP, nh = socket.IPPROTO_TCP )