A source PAN ID is included if and only if both src addr mode != 0 and PAN ID Compression in FCF == 0
(pkt)
| 393 | |
| 394 | |
| 395 | def util_srcpanid_present(pkt): |
| 396 | '''A source PAN ID is included if and only if both src addr mode != 0 and PAN ID Compression in FCF == 0''' # noqa: E501 |
| 397 | if (pkt.underlayer.getfieldval("fcf_srcaddrmode") != 0) and (pkt.underlayer.getfieldval("fcf_panidcompress") == 0): # noqa: E501 |
| 398 | return True |
| 399 | else: |
| 400 | return False |
| 401 | |
| 402 | |
| 403 | class Dot15d4CmdAssocReq(Packet): |
no test coverage detected
searching dependent graphs…