diff --git a/lib/tmsi_dumper_impl.cc b/lib/tmsi_dumper_impl.cc index 5d825e2..842f3bf 100644 --- a/lib/tmsi_dumper_impl.cc +++ b/lib/tmsi_dumper_impl.cc @@ -26,10 +26,27 @@ #include #include "tmsi_dumper_impl.h" +#include "grgsm/gsmtap.h" +#include namespace gr { namespace gsm { - + + void tmsi_dumper_impl::dump_tmsi(pmt::pmt_t msg) + { + pmt::pmt_t message_plus_header_blob = pmt::cdr(msg); + uint8_t * message_plus_header = (uint8_t *)pmt::blob_data(message_plus_header_blob); + size_t message_plus_header_len=pmt::blob_length(message_plus_header_blob); + + gsmtap_hdr * header = (gsmtap_hdr *)message_plus_header; + + for(int ii=sizeof(gsmtap_hdr); ii +#include namespace gr { namespace gsm { @@ -31,11 +31,12 @@ namespace gr { class tmsi_dumper_impl : public tmsi_dumper { private: - // Nothing to declare in this block. + void dump_tmsi(pmt::pmt_t msg); public: tmsi_dumper_impl(); ~tmsi_dumper_impl(); + }; } // namespace gsm } // namespace gr