openbsd-ports/net/scapy/patches/patch-scapy_arch_unix_py
sthen f1f2f30877 Update scapy to 2.0.1 from new maintainer Jonathan Armani with a little
help from me. The IPv6 features provided by scapy6 are integrated (still
some problems with them, but working well enough) so pkgpath/conflict
markers are set to replace an existing scapy6 installation.

ok wcmaier@ "if it works go for it" claudio@
2009-10-01 16:28:49 +00:00

16 lines
594 B
Plaintext

$OpenBSD: patch-scapy_arch_unix_py,v 1.1 2009/10/01 16:28:49 sthen Exp $
--- scapy/arch/unix.py.orig Tue Sep 29 20:25:02 2009
+++ scapy/arch/unix.py Tue Sep 29 20:26:50 2009
@@ -61,7 +61,10 @@ def read_routes():
else:
rt = l.split()
dest,gw,flg = rt[:3]
- netif = rt[5+mtu_present+prio_present]
+ if 'L' in rt[4+mtu_present+prio_present]:
+ netif = rt[6+mtu_present+prio_present]
+ else:
+ netif = rt[5+mtu_present+prio_present]
if flg.find("Lc") >= 0:
continue
if dest == "default":