| 749 | |
| 750 | |
| 751 | class 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…