Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scapy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
cc165246
Commit
cc165246
authored
16 years ago
by
Dirk Loss
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/scapy/usage.rst
+1
-1
1 addition, 1 deletion
doc/scapy/usage.rst
with
1 addition
and
1 deletion
doc/scapy/usage.rst
+
1
−
1
View file @
cc165246
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment