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:
raise
else:
def get_if_raw_hwaddr(iff):
if iff[:2] == scapy.arch.LOOPBACK_NAME:
if iff == scapy.arch.LOOPBACK_NAME:
return (772, '\x00'*6)
try:
l = dnet.intf().get(iff)
......
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