MCPcopy Create free account
hub / github.com/secdev/scapy / util_srcpanid_present

Function util_srcpanid_present

scapy/layers/dot15d4.py:395–400  ·  view source on GitHub ↗

A source PAN ID is included if and only if both src addr mode != 0 and PAN ID Compression in FCF == 0

(pkt)

Source from the content-addressed store, hash-verified

393
394
395def 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
403class Dot15d4CmdAssocReq(Packet):

Callers 2

Dot15d4DataClass · 0.85
Dot15d4CmdClass · 0.85

Calls 1

getfieldvalMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…