path: root/openbsc/src/libiu/iu.c
diff options
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-12 01:29:33 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-16 15:32:32 +0100
commit7cb4778a1c02cbdd25beba45b049e217939c6c08 (patch)
tree2c96927003536c490b25cdfd5bbab79e0f5ae0d0 /openbsc/src/libiu/iu.c
parentf365565d8d755067435a75cb386b830076626a0c (diff)
iu: sort out confusion around asn_debug and asn1_xer_print
Before, I confused asn_debug with asn1_xer_print. Have two distinct VTY commands and fix documentation. Put the asn_debug and asn1_xer_print implementations in iu.c. Since they are globally defined, don't pass a pointer to iu_vty_init() but just use it directly. Might be considered less clean, but is also less bloat. Change-Id: Iccbadfe1585ba224f74cdfb5273b5ce29b6d78f0
Diffstat (limited to 'openbsc/src/libiu/iu.c')
1 files changed, 9 insertions, 1 deletions
diff --git a/openbsc/src/libiu/iu.c b/openbsc/src/libiu/iu.c
index 2f208d02b..2317c2da9 100644
--- a/openbsc/src/libiu/iu.c
+++ b/openbsc/src/libiu/iu.c
@@ -80,7 +80,15 @@ struct iu_rnc {
void *talloc_iu_ctx;
-int asn1_xer_print = 1;
+/* Implement the extern asn_debug from libasn1c to indicate whether to print
+ * asn.1 debug messages (see libasn1c). */
+int asn_debug = 0;
+/* Implement the extern asn1_xer_print to indicate whether the ASN.1 binary
+ * code decoded and encoded during Iu communication should be logged to stderr
+ * (see asn.1 generated code in osmo-iuh). */
+int asn1_xer_print = 0;
void *talloc_asn1_ctx;
iu_recv_cb_t global_iu_recv_cb = NULL;