[tests] dd traffic analysis for Cert_5_2_06_RouterDowngrade.py (#2192)

Also add a method in command.py to verify a properly formatted address release command message.
This commit is contained in:
hjian2017
2017-09-21 08:40:51 -07:00
committed by Jonathan Hui
parent d893b8d851
commit 4e3ef18737
4 changed files with 53 additions and 10 deletions
+2
View File
@@ -51,6 +51,7 @@ DEFAULT_MASTER_KEY = bytearray([0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77,
0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff])
ADDRESS_TYPE = Enum('ADDRESS_TYPE', ('LINK_LOCAL', 'GLOBAL', 'RLOC', 'ALOC', 'ML_EID'))
RSSI = {'LINK_QULITY_0': -100, 'LINK_QULITY_1': -95, 'LINK_QULITY_2': -85, 'LINK_QULITY_3': -65}
SNIFFER_ID = int(os.getenv('SNIFFER_ID', 34))
PANID = 0xface
@@ -203,6 +204,7 @@ def create_default_uri_path_based_payload_factories():
return {
"/a/as": network_layer_tlvs_factory,
"/a/aq": network_layer_tlvs_factory,
"/a/ar": network_layer_tlvs_factory,
"/a/an": network_layer_tlvs_factory
}