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
c09c1cb7
Commit
c09c1cb7
authored
8 years ago
by
gpotter2
Browse files
Options
Downloads
Patches
Plain Diff
Tiny fix to show error when interface does not exist
parent
3f483a01
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
scapy/arch/windows/__init__.py
+5
-3
5 additions, 3 deletions
scapy/arch/windows/__init__.py
with
5 additions
and
3 deletions
scapy/arch/windows/__init__.py
+
5
−
3
View file @
c09c1cb7
...
@@ -363,9 +363,11 @@ def pcapname(dev):
...
@@ -363,9 +363,11 @@ def pcapname(dev):
try
:
try
:
return
IFACES
.
dev_from_name
(
dev
).
pcap_name
return
IFACES
.
dev_from_name
(
dev
).
pcap_name
except
ValueError
:
except
ValueError
:
# pcap.pcap() will choose a sensible default for sniffing if
if
conf
.
use_pcap
:
# iface=None
# pcap.pcap() will choose a sensible default for sniffing if
return
None
# iface=None
return
None
raise
def
dev_from_pcapname
(
pcap_name
):
def
dev_from_pcapname
(
pcap_name
):
"""
Return libdnet/Scapy device name for given pypcap device name
"""
"""
Return libdnet/Scapy device name for given pypcap device name
"""
...
...
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