Skip to content
Snippets Groups Projects
Commit 32d71796 authored by Gabriel Potter's avatar Gabriel Potter Committed by Pierre Lalet
Browse files

Fixed priting bug (Windows) (#344)

Fixed priting tiny bug
parent c4e038a2
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ Routing and handling of network interfaces. ...@@ -8,7 +8,7 @@ Routing and handling of network interfaces.
""" """
import socket import socket
from scapy.arch.consts import LOOPBACK_NAME from scapy.arch.consts import LOOPBACK_NAME, WINDOWS
from scapy.utils import atol,ltoa,itom from scapy.utils import atol,ltoa,itom
from scapy.config import conf from scapy.config import conf
from scapy.error import Scapy_Exception,warning from scapy.error import Scapy_Exception,warning
...@@ -36,7 +36,7 @@ class Route: ...@@ -36,7 +36,7 @@ class Route:
rt += "%-15s %-15s %-15s %-15s %-15s\n" % (ltoa(net), rt += "%-15s %-15s %-15s %-15s %-15s\n" % (ltoa(net),
ltoa(msk), ltoa(msk),
gw, gw,
iface, (iface.name if WINDOWS else iface),
addr) addr)
return rt return rt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment