From 8e26377f0c0a1a0c5790de9df59e2e2526dfb824 Mon Sep 17 00:00:00 2001 From: Guillaume Valadon <guillaume.valadon@ssi.gouv.fr> Date: Fri, 20 May 2016 13:52:49 +0200 Subject: [PATCH] Comment HomePlugAV unit tests that use the network --- scapy/contrib/HomePlugAV.uts | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/scapy/contrib/HomePlugAV.uts b/scapy/contrib/HomePlugAV.uts index 9b405958..a1ca8558 100644 --- a/scapy/contrib/HomePlugAV.uts +++ b/scapy/contrib/HomePlugAV.uts @@ -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" -- GitLab