// http://www.tcpdump.org/linktypes.html LINKTYPE_BLUETOOTH_HCI_H4_WITH_PHDR // Note: the description given for the direction bit by tcpdump // is in opposition with the implementation in wireshark. // The values match wireshark's implementation here. char direction[4] = {0, 0, 0, static_cast<char>(packet_direction)};
uint8_t idc = static_cast<uint8_t>(packet_type);
output_->write(direction, sizeof(direction));
output_->write((char*)&idc, 1);
// Apply the PCAP filter when provided. if (filter_ != nullptr) {
std::vector<uint8_t> filtered_packet = filter_->FilterHciPacket(packet, idc);
output_->write((char*)filtered_packet.data(), filtered_packet.size());
} else {
output_->write((char*)packet.data(), packet.size());
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.