scapy.contrib.esmc

class scapy.contrib.esmc.EQLTLV(_pkt, /, *, type=2, length=20, enhancedSsmCode=255, clockIdentity=b'\x00\x00\x00\x00\x00\x00\x00\x00', flag=0, cascaded_eEEcs=1, cascaded_EEcs=0, reserved=b'\x00\x00\x00\x00\x00')[source]

Bases: ESMC

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      TYPE     |             LENGTH            |ENHANCEDSSMCODE|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         CLOCKIDENTITY                         |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      FLAG     | CASCADED EEECS| CASCADED EECS |    RESERVED   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                           Fig. EQLTLV                            
EQLTLV fields

type

ByteField

2

length

ShortField

20

enhancedSsmCode

XByteField

255

clockIdentity

XStrFixedLenField

b'\x00\x00\x00\x00\x00\x00\x00\x00'

flag

ByteField

0

cascaded_eEEcs

ByteField

1

cascaded_EEcs

ByteField

0

reserved

XStrFixedLenField

b'\x00\x00\x00\x00\x00'

class scapy.contrib.esmc.ESMC(_pkt, /, *, ituOui=b'\x00\x19\xa7', ituSubtype=1, version=1, event=0, reserved1=0, reserved2=b'\x00\x00\x00')[source]

Bases: Packet

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                     ITUOUI                    |   ITUSUBTYPE  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |VERSION|E|RESER|           RESERVED2           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                            Fig. ESMC                             
ESMC fields

ituOui

XStrFixedLenField

b'\x00\x19\xa7'

ituSubtype

ShortField

1

version

BitField (4 bits)

1

event

BitField (1 bit)

0

reserved1

BitField (3 bits)

0

reserved2

XStrFixedLenField

b'\x00\x00\x00'

guess_payload_class(payload)[source]
class scapy.contrib.esmc.QLTLV(_pkt, /, *, type=1, length=4, ssmCode=15)[source]

Bases: ESMC

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      TYPE     |             LENGTH            |    SSMCODE    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                            Fig. QLTLV                            
QLTLV fields

type

ByteField

1

length

ShortField

4

ssmCode

XByteField

15