We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32211b4 commit 0f9baefCopy full SHA for 0f9baef
scapy/arch/unix.py
@@ -49,7 +49,7 @@ def read_routes():
49
if SOLARIS:
50
f = os.popen("netstat -rvn -f inet")
51
elif FREEBSD:
52
- f = os.popen("netstat -rnW") # -W to handle long interface names
+ f = os.popen("netstat -rnW -f inet") # -W to show long interface names
53
else:
54
f = os.popen("netstat -rn -f inet")
55
ok = 0
@@ -71,7 +71,7 @@ def read_routes():
71
mtu_present = "mtu" in line
72
prio_present = "prio" in line
73
refs_present = "ref" in line # There is no s on Solaris
74
- use_present = "use" in line
+ use_present = "use" in line or "nhop" in line
75
continue
76
if not line:
77
break
0 commit comments