diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-10-07 09:49:30 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-11-20 17:35:45 +0100 |
commit | fb4433a129ca7b0757baee834a1e5a6ba4c5bd85 (patch) | |
tree | daf4c9f19891cf2e539e1f3a1c1e29d22465ea45 /openbsc/src | |
parent | d954dcf9e1178b3f8709831fba47bb54141f486b (diff) |
[bssap] Implement SAPI "N" Reject message
This message will be needed when no RLL connection
on a different SAPI can be established or we don't
want to establish it.
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/bssap.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c index ad52827bc..061d6cd50 100644 --- a/openbsc/src/bssap.c +++ b/openbsc/src/bssap.c @@ -427,6 +427,22 @@ struct msgb *bssmap_create_cipher_reject(u_int8_t cause) return msg; } +struct msgb *bssmap_create_sapi_reject(u_int8_t link_id) +{ + struct msgb *msg = msgb_alloc(30, "bssmap: sapi 'n' reject"); + if (!msg) + return NULL; + + msg->l3h = msgb_put(msg, 5); + msg->l3h[0] = BSSAP_MSG_BSS_MANAGEMENT; + msg->l3h[1] = 3; + msg->l3h[2] = BSS_MAP_MSG_SAPI_N_REJECT; + msg->l3h[3] = link_id; + msg->l3h[4] = GSM0808_CAUSE_BSS_NOT_EQUIPPED; + + return msg; +} + struct msgb *dtap_create_msg(struct msgb *msg_l3, u_int8_t link_id) { struct dtap_header *header; |