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
299bd5e0
Commit
299bd5e0
authored
7 years ago
by
gpotter2
Browse files
Options
Downloads
Patches
Plain Diff
Use correct manufdb on windows
parent
416b2fda
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scapy/arch/windows/__init__.py
+1
-1
1 addition, 1 deletion
scapy/arch/windows/__init__.py
test/regression.uts
+2
-2
2 additions, 2 deletions
test/regression.uts
with
3 additions
and
3 deletions
scapy/arch/windows/__init__.py
+
1
−
1
View file @
299bd5e0
...
@@ -242,7 +242,7 @@ class WinProgPath(ConfClass):
...
@@ -242,7 +242,7 @@ class WinProgPath(ConfClass):
env
=
"
SystemRoot
"
)
env
=
"
SystemRoot
"
)
if
self
.
wireshark
:
if
self
.
wireshark
:
manu_path
=
load_manuf
(
os
.
path
.
sep
.
join
(
self
.
wireshark
.
split
(
os
.
path
.
sep
)[:
-
1
])
+
os
.
path
.
sep
+
"
manuf
"
)
manu_path
=
load_manuf
(
os
.
path
.
sep
.
join
(
self
.
wireshark
.
split
(
os
.
path
.
sep
)[:
-
1
])
+
os
.
path
.
sep
+
"
manuf
"
)
scapy
.
data
.
MANUFDB
=
conf
.
manufdb
=
MANUFDB
=
manu_path
scapy
.
data
.
MANUFDB
=
conf
.
manufdb
=
manu_path
self
.
os_access
=
(
self
.
powershell
is
not
None
)
or
(
self
.
cscript
is
not
None
)
self
.
os_access
=
(
self
.
powershell
is
not
None
)
or
(
self
.
cscript
is
not
None
)
...
...
This diff is collapsed.
Click to expand it.
test/regression.uts
+
2
−
2
View file @
299bd5e0
...
@@ -331,8 +331,8 @@ if not WINDOWS:
...
@@ -331,8 +331,8 @@ if not WINDOWS:
= Test manuf DB methods
= Test manuf DB methods
~ manufdb
~ manufdb
assert(
MANUFDB
._resolve_MAC("00:00:0F:01:02:03") == "Next:01:02:03")
assert(
conf.manufdb
._resolve_MAC("00:00:0F:01:02:03") == "Next:01:02:03")
assert(
MANUFDB
._get_short_manuf("00:00:0F:01:02:03") == "Next")
assert(
conf.manufdb
._get_short_manuf("00:00:0F:01:02:03") == "Next")
assert(in6_addrtovendor("fe80::0200:0fff:fe01:0203").lower().startswith("next"))
assert(in6_addrtovendor("fe80::0200:0fff:fe01:0203").lower().startswith("next"))
= Test utility functions - network related
= Test utility functions - network related
...
...
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