aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-qcdiag-log.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-01-07 16:01:09 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-08 16:04:01 +0100
commita32c769bb7c71c71376cfb934082c07272cfe0c3 (patch)
tree0b1ab71ef46ec28d5d6cbde2f4fcc55979064929 /src/osmo-qcdiag-log.c
parenta115fbb1bbfeec9c6a10ac2ea2999e23be77336a (diff)
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.
Diffstat (limited to 'src/osmo-qcdiag-log.c')
-rw-r--r--src/osmo-qcdiag-log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-qcdiag-log.c b/src/osmo-qcdiag-log.c
index 8905576..33b26ba 100644
--- a/src/osmo-qcdiag-log.c
+++ b/src/osmo-qcdiag-log.c
@@ -160,6 +160,7 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
di.gsmtap = gsmtap_source_init("localhost", GSMTAP_UDP_PORT, 0);
+ di.flags = DIAG_INST_F_GSMTAP_DIAG;
gsmtap_source_add_sink(di.gsmtap);
printf("\n===> CONFIGURING\n");