diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-01-15 11:50:08 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-01-18 18:33:13 +0100 |
commit | 69d271376cce7d26a0469bbb948f272c399ac6c7 (patch) | |
tree | e2054565f15357ad1039192a554e6fa16ac617d4 /openbsc/src/gprs/gprs_gsup_messages.c | |
parent | cde0bb27a14553bba2f680cd1307a5f9b3581f0e (diff) |
gprs: Implement PURGE_MS GSUP messages
This commit implements the encoding and decoding of the messages
- Purge MS Request
- Purge MS Error
- Purge MS Result
and adds corresponding tests.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/src/gprs/gprs_gsup_messages.c')
-rw-r--r-- | openbsc/src/gprs/gprs_gsup_messages.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gprs_gsup_messages.c b/openbsc/src/gprs/gprs_gsup_messages.c index 1dad74ffe..8996fe2bf 100644 --- a/openbsc/src/gprs/gprs_gsup_messages.c +++ b/openbsc/src/gprs/gprs_gsup_messages.c @@ -237,6 +237,10 @@ int gprs_gsup_decode(const uint8_t *const_data, size_t data_len, gsup_msg->pdp_info_compl = 1; break; + case GPRS_GSUP_FREEZE_PTMSI_IE: + gsup_msg->freeze_ptmsi = 1; + break; + case GPRS_GSUP_PDP_CONTEXT_ID_IE: /* When these IE appear in the top-level part of the * message, they are used by Delete Subscr Info to delete @@ -381,6 +385,9 @@ void gprs_gsup_encode(struct msgb *msg, const struct gprs_gsup_message *gsup_msg if (gsup_msg->pdp_info_compl) msgb_tlv_put(msg, GPRS_GSUP_PDP_INFO_COMPL_IE, 0, &u8); + if (gsup_msg->freeze_ptmsi) + msgb_tlv_put(msg, GPRS_GSUP_FREEZE_PTMSI_IE, 0, &u8); + for (idx = 0; idx < gsup_msg->num_pdp_infos; idx++) { const struct gprs_gsup_pdp_info *pdp_info; |