Skip to content
Snippets Groups Projects
Commit b1239ca8 authored by Phil's avatar Phil
Browse files

Fixed pcapdnet.get_if_raw_addr for loopback interfaces

parent f9d46ff4
No related branches found
No related tags found
No related merge requests found
...@@ -151,7 +151,7 @@ if conf.use_dnet: ...@@ -151,7 +151,7 @@ if conf.use_dnet:
raise raise
else: else:
def get_if_raw_hwaddr(iff): def get_if_raw_hwaddr(iff):
if iff[:2] == scapy.arch.LOOPBACK_NAME: if iff == scapy.arch.LOOPBACK_NAME:
return (772, '\x00'*6) return (772, '\x00'*6)
try: try:
l = dnet.intf().get(iff) l = dnet.intf().get(iff)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment