$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":
