aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/hnb-test-ranap.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-02-18 23:03:15 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-02-29 10:02:10 +0100
commit860a12977cf5825bdd5ee5907d7475779c6be100 (patch)
treede021edb42c437761282cecb4da5ccf7ce1e1d75 /src/tests/hnb-test-ranap.c
parentb984f36f58fda99a76261fc90b2f54e7c9c968af (diff)
hnb-test: attempt to reply to an MM Identity Request
Diffstat (limited to 'src/tests/hnb-test-ranap.c')
-rw-r--r--src/tests/hnb-test-ranap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tests/hnb-test-ranap.c b/src/tests/hnb-test-ranap.c
index eb90745..763a7f2 100644
--- a/src/tests/hnb-test-ranap.c
+++ b/src/tests/hnb-test-ranap.c
@@ -18,8 +18,6 @@ void ranap_msg_dt_print(void *ctx, ranap_message *ranap_msg)
printf("rx DirectTransfer: presence = %hx\n", ranap_msg->msg.directTransferIEs.presenceMask);
PP(ranap_msg->msg.directTransferIEs.nas_pdu);
- // nas_pdu == '05 08 12' ==> IMEI Identity request
- // '05 04 0d' ==> LU reject
/*
typedef struct RANAP_DirectTransferIEs_s {
uint16_t presenceMask;
@@ -44,5 +42,6 @@ void ranap_msg_dt_get(void *ctx, ranap_message *ranap_msg)
int len = ranap_msg->msg.directTransferIEs.nas_pdu.size;
char *data = ranap_msg->msg.directTransferIEs.nas_pdu.buf;
+ m->l3h = m->data;
memcpy(msgb_put(m, len), data, len);
}