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

Class CDPMsgProtoHello

scapy/contrib/cdp.py:272–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270
271
272class CDPMsgProtoHello(CDPMsgGeneric):
273 name = "Protocol Hello"
274 type = 0x0008
275 fields_desc = [XShortEnumField("type", 0x0008, _cdp_tlv_types),
276 ShortField("len", 32),
277 OUIField("oui", 0x00000c),
278 XShortField("protocol_id", 0x0),
279 # TLV length (len) - 2 (type) - 2 (len) - 3 (OUI) - 2
280 # (Protocol ID)
281 StrLenField("data", "", length_from=lambda p: p.len - 9)]
282
283
284class CDPMsgVTPMgmtDomain(CDPMsgGeneric):

Callers

nothing calls this directly

Calls 5

XShortEnumFieldClass · 0.90
ShortFieldClass · 0.90
OUIFieldClass · 0.90
XShortFieldClass · 0.90
StrLenFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…