Lines Matching refs:header
48 self.assertEqual(mac802154.MacHeader.FrameType.ACK, frame.header.frame_type)
49 self.assertEqual(True, frame.header.frame_pending)
50 self.assertEqual(False, frame.header.ack_request)
51 self.assertEqual(0, frame.header.frame_version)
52 self.assertEqual(0x12, frame.header.seq)
53 self.assertEqual(bytearray([0x34, 0x56]), frame.header.fcs)
61 self.assertEqual(mac802154.MacHeader.FrameType.DATA, frame.header.frame_type)
62 self.assertEqual(False, frame.header.frame_pending)
63 self.assertEqual(True, frame.header.ack_request)
64 self.assertEqual(0, frame.header.frame_version)
65 self.assertEqual(0x34, frame.header.seq)
66 self.assertEqual(bytearray([0xfe, 0xdc]), frame.header.fcs)
67 self.assertEqual(0xface, frame.header.dest_pan_id)
68 self.assertEqual(0xdead, frame.header.dest_address.rloc)
69 self.assertEqual(0xface, frame.header.src_pan_id)
70 self.assertEqual(0xbeef, frame.header.src_address.rloc)
83 self.assertEqual(mac802154.MacHeader.FrameType.DATA, frame.header.frame_type)
84 self.assertEqual(False, frame.header.frame_pending)
85 self.assertEqual(True, frame.header.ack_request)
86 self.assertEqual(0, frame.header.frame_version)
87 self.assertEqual(0x56, frame.header.seq)
88 self.assertEqual(bytearray([0xfe, 0xdc]), frame.header.fcs)
89 self.assertEqual(0xface, frame.header.dest_pan_id)
91 frame.header.dest_address.mac_address)
92 self.assertEqual(0xface, frame.header.src_pan_id)
94 frame.header.src_address.mac_address)
107 self.assertEqual(mac802154.MacHeader.FrameType.DATA, frame.header.frame_type)
108 self.assertEqual(False, frame.header.frame_pending)
109 self.assertEqual(True, frame.header.ack_request)
110 self.assertEqual(0, frame.header.frame_version)
111 self.assertEqual(0x56, frame.header.seq)
112 self.assertEqual(bytearray([0xfe, 0xdc]), frame.header.fcs)
113 self.assertEqual(0xface, frame.header.dest_pan_id)
114 self.assertEqual(0xdead, frame.header.dest_address.rloc)
115 self.assertEqual(0xface, frame.header.src_pan_id)
117 frame.header.src_address.mac_address)
130 self.assertEqual(mac802154.MacHeader.FrameType.DATA, frame.header.frame_type)
131 self.assertEqual(False, frame.header.frame_pending)
132 self.assertEqual(True, frame.header.ack_request)
133 self.assertEqual(0, frame.header.frame_version)
134 self.assertEqual(0x56, frame.header.seq)
135 self.assertEqual(bytearray([0xfe, 0xdc]), frame.header.fcs)
136 self.assertEqual(0xface, frame.header.dest_pan_id)
138 frame.header.dest_address.mac_address)
139 self.assertEqual(0xface, frame.header.src_pan_id)
140 self.assertEqual(0xf00d, frame.header.src_address.rloc)
148 self.assertEqual(mac802154.MacHeader.FrameType.COMMAND, frame.header.frame_type)
149 self.assertEqual(False, frame.header.frame_pending)
150 self.assertEqual(True, frame.header.ack_request)
151 self.assertEqual(0, frame.header.frame_version)
152 self.assertEqual(0x78, frame.header.seq)
153 self.assertEqual(bytearray([0xfe, 0xdc]), frame.header.fcs)
154 self.assertEqual(0xface, frame.header.dest_pan_id)
155 self.assertEqual(0xdead, frame.header.dest_address.rloc)
156 self.assertEqual(0xface, frame.header.src_pan_id)
157 self.assertEqual(0xf00d, frame.header.src_address.rloc)
229 self.assertEqual(mac802154.MacHeader.FrameType.DATA, frame.header.frame_type)
230 self.assertEqual(False, frame.header.frame_pending)
231 self.assertEqual(True, frame.header.ack_request)
232 self.assertEqual(1, frame.header.frame_version)
233 self.assertEqual(0x68, frame.header.seq)
234 self.assertEqual(bytearray([0x99, 0xfc]), frame.header.fcs)
235 self.assertEqual(0xface, frame.header.dest_pan_id)
236 self.assertEqual(0x2000, frame.header.dest_address.rloc)
237 self.assertEqual(0xface, frame.header.src_pan_id)
238 self.assertEqual(0x2001, frame.header.src_address.rloc)
240 self.assertEqual(0, frame.header.aux_sec_header.frame_counter)
241 self.assertEqual(5, frame.header.aux_sec_header.security_level)
261 self.assertEqual(mac802154.MacHeader.FrameType.COMMAND, frame.header.frame_type)
262 self.assertEqual(False, frame.header.frame_pending)
263 self.assertEqual(True, frame.header.ack_request)
264 self.assertEqual(1, frame.header.frame_version)
265 self.assertEqual(206, frame.header.seq)
266 self.assertEqual(bytearray([0x0a, 0x4f]), frame.header.fcs)
267 self.assertEqual(0xface, frame.header.dest_pan_id)
269 frame.header.dest_address.mac_address)
270 self.assertEqual(0xface, frame.header.src_pan_id)
272 frame.header.src_address.mac_address)
274 self.assertEqual(0, frame.header.aux_sec_header.frame_counter)
275 self.assertEqual(5, frame.header.aux_sec_header.security_level)