Skip to content
Snippets Groups Projects
Commit cc165246 authored by Dirk Loss's avatar Dirk Loss
Browse files

Converted an import statement in an example to Scapy v2

parent b002320b
No related branches found
No related tags found
No related merge requests found
...@@ -931,7 +931,7 @@ This program uses the ``sniff()`` callback (paramter prn). The store parameter i ...@@ -931,7 +931,7 @@ This program uses the ``sniff()`` callback (paramter prn). The store parameter i
:: ::
#! /usr/bin/env python #! /usr/bin/env python
from scapy import * from scapy.all import *
def arp_monitor_callback(pkt): def arp_monitor_callback(pkt):
if ARP in pkt and pkt[ARP].op in (1,2): #who-has or is-at if ARP in pkt and pkt[ARP].op in (1,2): #who-has or is-at
......
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