aboutsummaryrefslogtreecommitdiffstats
path: root/src/diag_io.c
AgeCommit message (Collapse)AuthorFilesLines
2017-01-08also log config request/response messages via GSMTAPHarald Welte1-0/+2
2017-01-08Generate GSMTAP messages from raw received DIAG framesHarald Welte1-0/+15
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-08diag_read_msg(): Discard any messages shorter than 3 bytesHarald Welte1-0/+6
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-07WIP: Enable PCAP generation in modemHarald Welte1-0/+4
2017-01-02diag_io.c: remove left-over 'rc=%d' printHarald Welte1-1/+0
2017-01-01DPL: add parsing of results from modemHarald Welte1-0/+21
we can now get a list of DPL interfaces and their links.
2017-01-01diag_cmd: Print error messages for bad {command, length, parameter}Harald Welte1-0/+1
2017-01-01fixup dplHarald Welte1-1/+1
2017-01-01remove Tx/Rx debugging from diag_io.cHarald Welte1-2/+0
2017-01-01add ability to hexdump all received and transmitted messagesHarald Welte1-0/+7
2017-01-01restructuring: Introduce _transceive_ functions for Tx-then-RxHarald Welte1-14/+69
2016-12-24Add GPLv2-or-later license text + headers + rename to osmo-qcdiag-logHarald Welte1-0/+18
2016-12-24header file restructuringHarald Welte1-1/+1
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-24diag_io: print error messsage to stderrHarald Welte1-1/+1
2016-12-23split the I/O part into diag_io.cHarald Welte1-0/+115