Add netaccess tag to tests when appropriate

This commit is contained in:
Pierre LALET 2016-01-15 13:31:16 +01:00
parent 1848f53aae
commit d0f8d4668b
2 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,7 @@ 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

View File

@ -46,6 +46,8 @@ tlv = EDNS0TLV(optcode=5, optdata="\x00\x11\x22\x33")
str(tlv) == '\x00\x05\x00\x04\x00\x11"3'
= EDNS-PING - Live test
~ netaccess
* NB: 85.17.219.217 and www.edns-ping.org seem down
r = sr1(IP(dst="85.17.219.217")/UDP()/DNS(qd=[DNSQR(qtype="A", qname="www.edns-ping.org.")], ar=[DNSRROPT(z=0, rdata=[EDNS0TLV(optcode="PING", optdata="\x00\x11\x22\x33")])]), timeout=1)
len(r.ar) and r.ar.rdata[0].optcode == 4 # XXX: should be 5
@ -56,5 +58,7 @@ tlv = EDNS0TLV(optcode=2, optdata="")
str(tlv) == '\x00\x02\x00\x00'
= NSID - Live test
~ netaccess
* NB: 85.17.219.217 and www.edns-ping.org seem down
r = sr1(IP(dst="85.17.219.217")/UDP()/DNS(qd=[DNSQR(qtype="A", qname="www.edns-ping.org.")], ar=[DNSRROPT(z=0, rdata=[EDNS0TLV(optcode="NSID")])]), timeout=1)
r.ar.rdata[0].optcode == 3 and r.ar.rdata[0].optdata == "dns01"