openbsd-ports/net/scapy/patches/patch-scapy_arch_unix_py
bluhm 0aa9dfaece When there is a locked MTU in the routing table, scapy gets confused
by the additional L.  So be aware of this additional column in
read_routes().
ok danj@
2018-03-07 16:43:43 +00:00

18 lines
619 B
Plaintext

$OpenBSD: patch-scapy_arch_unix_py,v 1.4 2018/03/07 16:43:43 bluhm Exp $
https://github.com/secdev/scapy/pull/1213
Index: scapy/arch/unix.py
--- scapy/arch/unix.py.orig
+++ scapy/arch/unix.py
@@ -79,7 +79,8 @@ def read_routes():
else:
rt = l.split()
dest,gw,flg = rt[:3]
- netif = rt[4 + mtu_present + prio_present + refs_present]
+ locked = scapy.arch.OPENBSD and rt[6] == "L"
+ netif = rt[4 + mtu_present + prio_present + refs_present + locked]
if flg.find("Lc") >= 0:
continue
if dest == "default":