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

Class L2CAP_ConnResp

scapy/layers/bluetooth.py:394–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392
393
394class L2CAP_ConnResp(Packet):
395 name = "L2CAP Conn Resp"
396 fields_desc = [LEShortField("dcid", 0),
397 LEShortField("scid", 0),
398 LEShortEnumField("result", 0, ["success", "pend", "cr_bad_psm", "cr_sec_block", "cr_no_mem", "reserved", "cr_inval_scid", "cr_scid_in_use"]), # noqa: E501
399 LEShortEnumField("status", 0, ["no_info", "authen_pend", "author_pend", "reserved"]), # noqa: E501
400 ]
401
402 def answers(self, other):
403 # dcid Resp == scid Req. Therefore compare SCIDs
404 return isinstance(other, L2CAP_ConnReq) and self.scid == other.scid
405
406
407class L2CAP_CmdRej(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…