[tests] add traffic analysis for Cert_5_3_08 as TestPlan (#2484)

This commit adds the method set_lowpan_context to set the lowpan context of sniffer.
This commit is contained in:
Zhanglong Xia
2018-01-22 16:48:00 +00:00
committed by Jonathan Hui
parent 092021ad45
commit 2636df1952
8 changed files with 161 additions and 52 deletions
+3
View File
@@ -443,6 +443,9 @@ class MessageFactory:
mac_frame.parse(data)
return mac_frame
def set_lowpan_context(self, cid, prefix):
self._lowpan_parser.set_lowpan_context(cid, prefix)
def create(self, data):
message = Message()
message.channel = struct.unpack(">B", data.read(1))