| 392 | |
| 393 | |
| 394 | class 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 | |
| 407 | class L2CAP_CmdRej(Packet): |
nothing calls this directly
no test coverage detected
searching dependent graphs…