def _extract_configuration_request(packet): frame = L2capMatchers.control_frame_with_code( packet, CommandCode.CONFIGURATION_REQUEST) return l2cap_packets.ConfigurationRequestView(frame)
def _extract_connection_response(packet): frame = L2capMatchers.control_frame_with_code( packet, CommandCode.CONNECTION_RESPONSE) return l2cap_packets.ConnectionResponseView(frame)