diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-15 19:40:05 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-15 19:40:05 +0800 |
commit | 230a4d886da1c2ab0e55594f585eaf0225e1d188 (patch) | |
tree | 64fcf170cf26069fb31245948ceb9e92288ba73c /openbsc/src/gsm_04_08_utils.c | |
parent | 2c0f16699e80ab492e3b7f8ad3de181ca90e5ef1 (diff) |
gsm48: Split LU Reject sending and generation into two.
Diffstat (limited to 'openbsc/src/gsm_04_08_utils.c')
-rw-r--r-- | openbsc/src/gsm_04_08_utils.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/openbsc/src/gsm_04_08_utils.c b/openbsc/src/gsm_04_08_utils.c index eb8c03413..952d7248e 100644 --- a/openbsc/src/gsm_04_08_utils.c +++ b/openbsc/src/gsm_04_08_utils.c @@ -581,3 +581,19 @@ struct msgb *gsm48_create_mm_serv_rej(enum gsm48_reject_value value) return msg; } + +struct msgb *gsm48_create_loc_upd_rej(uint8_t cause) +{ + struct gsm48_hdr *gh; + struct msgb *msg; + + msg = gsm48_msgb_alloc(); + if (!msg) + return NULL; + + gh = (struct gsm48_hdr *) msgb_put(msg, sizeof(*gh) + 1); + gh->proto_discr = GSM48_PDISC_MM; + gh->msg_type = GSM48_MT_MM_LOC_UPD_REJECT; + gh->data[0] = cause; + return msg; +} |