Commit Graph

15 Commits

Author SHA1 Message Date
Harald Welte 7e6d71ea74 also log config request/response messages via GSMTAP 2017-01-08 16:04:47 +01:00
Harald Welte a32c769bb7 Generate GSMTAP messages from raw received DIAG frames
This forwards the raw DIAG messages via GSMTAP, so the receiver (e.g.
wireshark) will have to do a full DIAG protocol decode.  I currently
prefer this idea to that of converting only the protocol payload to
"native" GSMTAP messages like GSMTAP_UM.

One of the problems is that the LAPDm headers are alrady stripped, and
we would have to re-add fake LAPDm headers to generate GSMTAP_UM.  So
let's rather forward all information we have and let wireshark deal with
it.

I'm not entirely sure if this is  the best strategy, but we can always
implement both modes and switch between them at runtime.
2017-01-08 16:04:01 +01:00
Harald Welte a115fbb1bb diag_read_msg(): Discard any messages shorter than 3 bytes
The 16bit CRC and the FLAG octet together are 3 bytes.  If a message is
shorter than that, something is going wrong, for sure.
2017-01-08 16:04:01 +01:00
Harald Welte 4ae0936123 WIP: Enable PCAP generation in modem 2017-01-07 16:01:42 +01:00
Harald Welte 02f7f3af76 diag_io.c: remove left-over 'rc=%d' print 2017-01-02 00:52:29 +01:00
Harald Welte 3b144a27fa DPL: add parsing of results from modem
we can now get a list of DPL interfaces and their links.
2017-01-01 19:51:50 +01:00
Harald Welte ddd6a0d249 diag_cmd: Print error messages for bad {command, length, parameter} 2017-01-01 19:51:50 +01:00
Harald Welte 58185e6df5 fixup dpl 2017-01-01 19:51:50 +01:00
Harald Welte c265c1206d remove Tx/Rx debugging from diag_io.c 2017-01-01 19:51:50 +01:00
Harald Welte efb3ecadd7 add ability to hexdump all received and transmitted messages 2017-01-01 19:51:50 +01:00
Harald Welte dc2cafcd97 restructuring: Introduce _transceive_ functions for Tx-then-Rx 2017-01-01 19:51:50 +01:00
Harald Welte ccea8dd51c Add GPLv2-or-later license text + headers + rename to osmo-qcdiag-log 2016-12-24 10:31:07 +01:00
Harald Welte 84ec50f901 header file restructuring
Move all protocol definitions to protocol/*.h and keep only
definitions related to our implementation as *.h in the top directory.

Also, remove some header files to reduce header file proliferation.
2016-12-24 10:16:00 +01:00
Harald Welte 98f6fadd96 diag_io: print error messsage to stderr 2016-12-24 01:27:49 +01:00
Harald Welte bd4485852a split the I/O part into diag_io.c 2016-12-23 23:41:14 +01:00