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

Class ESMC

scapy/contrib/esmc.py:14–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14class ESMC(Packet):
15 name = "ESMC"
16 fields_desc = [
17 XStrFixedLenField("ituOui", b"\x00\x19\xa7", 3),
18 ShortField("ituSubtype", 1),
19 BitField("version", 1, 4),
20 BitField("event", 0, 1),
21 BitField("reserved1", 0, 3),
22 XStrFixedLenField("reserved2", b"\x00" * 3, 3),
23 ]
24
25 def guess_payload_class(self, payload):
26 if orb(payload[0]) == 1:
27 return QLTLV
28 if orb(payload[0]) == 2:
29 return EQLTLV
30 return Packet.guess_payload_class(self, payload)
31
32
33class QLTLV(ESMC):

Callers

nothing calls this directly

Calls 3

XStrFixedLenFieldClass · 0.90
ShortFieldClass · 0.90
BitFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…