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

Class ISIS_P2PAdjacencyStateTlv

scapy/contrib/isis.py:751–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749
750
751class ISIS_P2PAdjacencyStateTlv(ISIS_GenericTlv):
752 name = "ISIS P2P Adjacency State TLV"
753 fields_desc = [ByteEnumField("type", 240, _isis_tlv_names),
754 _AdjacencyStateTlvLenField("len", None, fmt="B"),
755 ByteEnumField("state", "Down", {0x2: "Down", 0x1: "Initialising", 0x0: "Up"}), # noqa: E501
756 ConditionalField(IntField("extlocalcircuitid", None), lambda pkt: pkt.len >= 5), # noqa: E501
757 ConditionalField(ISIS_SystemIdField("neighboursystemid", None), lambda pkt: pkt.len >= 11), # noqa: E501
758 ConditionalField(IntField("neighbourextlocalcircuitid", None), lambda pkt: pkt.len == 15)] # noqa: E501
759
760
761# TODO dynamically allocate sufficient size

Callers

nothing calls this directly

Calls 5

ByteEnumFieldClass · 0.90
ConditionalFieldClass · 0.90
IntFieldClass · 0.90
ISIS_SystemIdFieldClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…