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

Class L2CAP_Hdr

scapy/layers/bluetooth.py:311–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309
310
311class L2CAP_Hdr(Packet):
312 name = "L2CAP header"
313 fields_desc = [LEShortField("len", None),
314 LEShortEnumField("cid", 0, {1: "control", 4: "attribute"}), ] # noqa: E501
315
316 def post_build(self, p, pay):
317 p += pay
318 if self.len is None:
319 p = struct.pack("<H", len(pay)) + p[2:]
320 return p
321
322
323class L2CAP_CmdHdr(Packet):

Callers

nothing calls this directly

Calls 2

LEShortFieldClass · 0.90
LEShortEnumFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…