neels has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-hnbgw/+/31429 )
Change subject: sccp_sap_up(): ignore PCSTATE.ind
......................................................................
sccp_sap_up(): ignore PCSTATE.ind
Silence the error log about "unknown" PCSTATE prim.
Todo / coming up: instead of ignoring, detect a Destination Unavailable
from prim->u.pcstate and disconnect all conns with that particular CN
link.
Change-Id: I547387a5cc14ccb506be04ac785e6807fc4e6a96
---
M src/osmo-hnbgw/hnbgw_cn.c
1 file changed, 18 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/29/31429/1
diff --git a/src/osmo-hnbgw/hnbgw_cn.c b/src/osmo-hnbgw/hnbgw_cn.c
index 4c0e685..a05d649 100644
--- a/src/osmo-hnbgw/hnbgw_cn.c
+++ b/src/osmo-hnbgw/hnbgw_cn.c
@@ -505,6 +505,9 @@
case OSMO_PRIM(OSMO_SCU_PRIM_N_DISCONNECT, PRIM_OP_INDICATION):
rc = handle_cn_disc_ind(cnlink, &prim->u.disconnect, oph);
break;
+ case OSMO_PRIM(OSMO_SCU_PRIM_N_PCSTATE, PRIM_OP_INDICATION):
+ LOGP(DMAIN, LOGL_DEBUG, "Ignoring: SCCP USER SAP: %s\n",
osmo_scu_prim_hdr_name_c(OTC_SELECT, oph));
+ break;
default:
LOGP(DMAIN, LOGL_ERROR,
"Received unknown prim %u from SCCP USER SAP\n",
--
To view, visit
https://gerrit.osmocom.org/c/osmo-hnbgw/+/31429
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: I547387a5cc14ccb506be04ac785e6807fc4e6a96
Gerrit-Change-Number: 31429
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: newchange