diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-11-11 23:56:47 +0900 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-11-11 23:23:38 +0000 |
commit | 71b68bed2a93359fa84617292cf6159a4ed09c16 (patch) | |
tree | a520a83b0a30955278280cf81cc891dab4c7e247 | |
parent | 3b0b0641963de7a701655c8a09d15782e61f9c75 (diff) |
osmo-bsc: Print NOTICE message on unimplemented BSSMAP UDT
When we receive unimplemented/unhandled message types, we shouldn't
simply silently discard them, but print a log message for the
benefit of the user.
Change-Id: I8ecb1d2134f9c6a96f29e145fa0430880e971168
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_bssap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_bssap.c b/openbsc/src/osmo-bsc/osmo_bsc_bssap.c index 100f66441..9c549c3b7 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_bssap.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_bssap.c @@ -407,6 +407,10 @@ static int bssmap_rcvmsg_udt(struct bsc_msc_data *msc, case BSS_MAP_MSG_PAGING: ret = bssmap_handle_paging(msc, msg, length); break; + default: + LOGP(DMSC, LOGL_NOTICE, "Received unimplemented BSSMAP UDT %s\n", + gsm0808_bssmap_name(msg->l4h[0])); + break; } return ret; |