wireshark: add support for an IEEE 802.15.4 TAP Header, using a new ZIGBEE_TAP link type

This check for an optional "channel" key in the pmt dict, and adds an
additional TLV to the TAP header.
This commit is contained in:
Mathieu Rene
2024-08-16 21:49:53 -04:00
committed by Bastian Bloessl
parent 7c154d97f7
commit 4190fcd94a
6 changed files with 107 additions and 38 deletions
+16 -27
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Free Software Foundation, Inc.
* Copyright 2024 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(wireshark_connector.h) */
/* BINDTOOL_HEADER_FILE_HASH(10414a436e555bc27b41e65120989433) */
/* BINDTOOL_HEADER_FILE_HASH(fcd645d2eb8f7772de5e8ded1ce89be8) */
/***********************************************************************************/
#include <pybind11/complex.h>
@@ -30,39 +30,28 @@ namespace py = pybind11;
void bind_wireshark_connector(py::module& m)
{
using wireshark_connector = ::gr::foo::wireshark_connector;
using wireshark_connector = ::gr::foo::wireshark_connector;
py::class_<wireshark_connector, gr::block, gr::basic_block,
std::shared_ptr<wireshark_connector>>(m, "wireshark_connector", D(wireshark_connector))
py::class_<wireshark_connector,
gr::block,
gr::basic_block,
std::shared_ptr<wireshark_connector>>(
m, "wireshark_connector", D(wireshark_connector))
.def(py::init(&wireshark_connector::make),
py::arg("type"),
py::arg("debug") = false,
D(wireshark_connector,make)
)
py::arg("type"),
py::arg("debug") = false,
D(wireshark_connector, make))
;
py::enum_<::gr::foo::LinkType>(m,"LinkType")
.value("WIFI", ::gr::foo::WIFI) // 127
.value("ZIGBEE", ::gr::foo::ZIGBEE) // 195
.export_values()
;
py::enum_<::gr::foo::LinkType>(m, "LinkType")
.value("WIFI", ::gr::foo::LinkType::WIFI) // 127
.value("ZIGBEE", ::gr::foo::LinkType::ZIGBEE) // 195
.value("ZIGBEE_TAP", ::gr::foo::LinkType::ZIGBEE_TAP) // 283
.export_values();
py::implicitly_convertible<int, ::gr::foo::LinkType>();
}