Commit Graph

15 Commits

Author SHA1 Message Date
Eric Wild acb80088b3 allow specifying gsmtap dest ip
This allows distinguishing multiple modems by specifying another
loopback ip i.e. -i 127.0.0.4
Linux has a default local route for 127.0.0.0/8 so it "just works".
2020-12-09 04:27:20 +01:00
Eric Wild 4846c50521 properly init logging, implicitly used by errors 2020-12-09 04:09:38 +01:00
Eric Wild 58111310e6 add rat tracking so we don't get duplicate nas/rrc messages for != 2G 2020-05-12 17:03:50 +02:00
Eric Wild a8ea2dc983 v#1 2020-05-11 19:15:00 +02:00
Harald Welte 3710dcc1eb Add support for DIAG EVENT reporting 2017-01-21 23:53:15 +01:00
Harald Welte 70ff72d5f4 fix various compilation warnings all over the code 2017-01-21 11:20:07 +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 4ae0936123 WIP: Enable PCAP generation in modem 2017-01-07 16:01:42 +01:00
Harald Welte 95fdb6e584 don't use magic numbers if we have #defines 2017-01-01 19:51:50 +01:00
Harald Welte f180199521 diag_msgc: Parse responses 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 ce2f3967a0 WIP: gsmtap 2017-01-01 19:51:50 +01:00
Harald Welte 8ca17c654f fix typos 2017-01-01 19:51:50 +01:00
Martin Hauke b236aa77a0 Fix no-return-in-nonvoid-functions in osmo-qcdiag-log.c
[    4s] E: osmo-qcdiag no-return-in-nonvoid-function osmo-qcdiag-log.c:170

[hfreyther: Changed exit to return EXIT_SUCCESS]
2016-12-28 15:11:52 +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