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
8e26377f
Commit
8e26377f
authored
8 years ago
by
Guillaume Valadon
Browse files
Options
Downloads
Patches
Plain Diff
Comment HomePlugAV unit tests that use the network
parent
81f10d9b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scapy/contrib/HomePlugAV.uts
+17
-17
17 additions, 17 deletions
scapy/contrib/HomePlugAV.uts
with
17 additions
and
17 deletions
scapy/contrib/HomePlugAV.uts
+
17
−
17
View file @
8e26377f
...
...
@@ -82,24 +82,24 @@ ModulePIB(pkt.ModuleData, pkt.Offset, pkt.DataLen)
(_.NMK == "z]\xa9\xe2]\xedR\x8b\x85\\\xdf\xe8~\xe9\xb2\x14", _.DAK == "\x1f\xedHu\x85\x16>\x86\x1aKM\xd2\xe91\xfc6")
_ == (True, True)
= Discovery packet tests in local
~ netaccess HomePlugAV NetworkInfoConfirmationV10 NetworkInfoConfirmationV11
pkt = Ether()/HomePlugAV()
a = srp1(pkt, iface="eth0")
a
pkt.version = a.version
pkt /= NetworkInformationRequest()
a = srp1(pkt, iface="eth0")
NetworkInfoConfirmationV10 in a or NetworkInfoConfirmationV11 in a
_ == True
#
= Discovery packet tests in local
#
~ netaccess HomePlugAV NetworkInfoConfirmationV10 NetworkInfoConfirmationV11
#
pkt = Ether()/HomePlugAV()
#
a = srp1(pkt, iface="eth0")
#
a
#
pkt.version = a.version
#
pkt /= NetworkInformationRequest()
#
a = srp1(pkt, iface="eth0")
#
NetworkInfoConfirmationV10 in a or NetworkInfoConfirmationV11 in a
#
_ == True
= Reading local 0x400st octets of Software Image in Module Data blocks
~ netaccess HomePlugAV ReadModuleDataRequest
pkt = Ether()/HomePlugAV()/ReadModuleDataRequest(ModuleID=0x1)
a = srp1(pkt, iface="eth0")
a
len(a.ModuleData) == pkt.Length
_ == True
#
= Reading local 0x400st octets of Software Image in Module Data blocks
#
~ netaccess HomePlugAV ReadModuleDataRequest
#
pkt = Ether()/HomePlugAV()/ReadModuleDataRequest(ModuleID=0x1)
#
a = srp1(pkt, iface="eth0")
#
a
#
len(a.ModuleData) == pkt.Length
#
_ == True
= Testing length and checksum on a generated Write Module Data Request
string = "goodchoucroute\x00\x00"
...
...
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