hnb-test: receive Paging, add CL rx
Add ability to receive ConnectionLess transfers in order to read the
Paging and (so far only) print the IMSI paged for.
diff --git a/src/tests/hnb-test.c b/src/tests/hnb-test.c
index 2e2baf7..7971b64 100644
--- a/src/tests/hnb-test.c
+++ b/src/tests/hnb-test.c
@@ -459,6 +459,12 @@
hnb_test_tx_iu_release_compl(hnb);
}
+void hnb_test_rx_paging(struct hnb_test *hnb, const char *imsi)
+{
+ printf(" :) Paging Request for %s :)\n", imsi);
+ /* TODO reply */
+}
+
int hnb_test_hnbap_rx(struct hnb_test *hnb, struct msgb *msg)
{
HNBAP_PDU_t _pdu, *pdu = &_pdu;
@@ -529,6 +535,7 @@
switch (pdu->choice.successfulOutcome.procedureCode) {
case RUA_ProcedureCode_id_ConnectionlessTransfer:
printf("RUA rx Connectionless Transfer\n");
+ hnb_test_rua_cl_handle(hnb, &pdu->choice.successfulOutcome.value);
break;
case RUA_ProcedureCode_id_Connect:
printf("RUA rx Connect\n");