diff options
author | ptrkrysik <ptrkrysik@gmail.com> | 2014-08-16 12:41:25 +0200 |
---|---|---|
committer | ptrkrysik <ptrkrysik@gmail.com> | 2014-08-16 12:41:25 +0200 |
commit | af9431b0db342c1111db6e6ed0da81d98947691d (patch) | |
tree | c094e17351bd953a7996926c600ec26140b4c51c /lib | |
parent | 8fdc5c02104ac74294c75c753f4d4652cc47e0b4 (diff) |
Added extraction of gsmtap header and message content from pmt msg
Diffstat (limited to 'lib')
-rw-r--r-- | lib/misc_utils/wireshark_sink_impl.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/misc_utils/wireshark_sink_impl.cc b/lib/misc_utils/wireshark_sink_impl.cc index e2b0558..90cb9c2 100644 --- a/lib/misc_utils/wireshark_sink_impl.cc +++ b/lib/misc_utils/wireshark_sink_impl.cc @@ -24,13 +24,22 @@ #include <gnuradio/io_signature.h> #include "wireshark_sink_impl.h" +#include "gsm/gsmtap.h" namespace gr { namespace gsm { void wireshark_sink_impl::send_to_wireshark(pmt::pmt_t msg) { - //implementation of sending gsm messages to wireshark + + pmt::pmt_t header_blob = pmt::car(msg); + gsmtap_hdr * header = (gsmtap_hdr *)pmt::blob_data(header_blob); //GSMTAP header + + pmt::pmt_t message = pmt::cdr(msg); + uint8_t * message_elements = (uint8_t *)pmt::blob_data(message); + size_t message_len=pmt::blob_length(message); //message content + + //place for implementation of sending gsm messages to wireshark } |