From af9431b0db342c1111db6e6ed0da81d98947691d Mon Sep 17 00:00:00 2001 From: ptrkrysik Date: Sat, 16 Aug 2014 12:41:25 +0200 Subject: Added extraction of gsmtap header and message content from pmt msg --- lib/misc_utils/wireshark_sink_impl.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lib') 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 #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 } -- cgit v1.2.3