aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/common/oml.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/oml.c b/src/common/oml.c
index 37fb4bda..7fe922e8 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -396,8 +396,13 @@ static int oml_rx_set_bts_attr(struct gsm_bts *bts, struct msgb *msg)
/* Test for globally unsupported stuff here */
if (TLVP_PRESENT(&tp, NM_ATT_BCCH_ARFCN)) {
- const uint16_t *value = (uint16_t *) TLVP_VAL(&tp, NM_ATT_BCCH_ARFCN);
+ const uint16_t *value = (const uint16_t *) TLVP_VAL(&tp, NM_ATT_BCCH_ARFCN);
uint16_t arfcn = ntohs(*value);
+
+ LOGP(DOML, LOGL_NOTICE, "MSG: %s\n", osmo_hexdump(msgb_l3(msg), msgb_l3len(msg)));
+ LOGP(DOML, LOGL_NOTICE, "L3=%p, VAL=%p, DIF=%lu\n", msgb_l3(msg), value,
+ (void *)value - (void *) msgb_l3(msg));
+
if (arfcn > 1024) {
LOGP(DOML, LOGL_NOTICE, "Given ARFCN %d is not supported.\n", arfcn);
return oml_fom_ack_nack(msg, NM_NACK_FREQ_NOTAVAIL);