| 309 | |
| 310 | |
| 311 | class 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 | |
| 323 | class L2CAP_CmdHdr(Packet): |
nothing calls this directly
no test coverage detected
searching dependent graphs…