diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-05-03 11:50:32 +0200 |
---|---|---|
committer | Stefan Sperling <ssperling@sysmocom.de> | 2018-05-07 09:07:00 +0000 |
commit | dda1d4511c7456b4ee58448dfa5979118d878d75 (patch) | |
tree | 23f81efc8901dc2c84d378d03b1cb4acf585c088 /include/osmocom/gsm | |
parent | 3e8c520ad1da732af153758bb17469db8889347a (diff) |
define a constant for the max length of called party BCD IE
According to TS 24.008 10.5.4.7 the called party BSC number IE
has a maximum length of 43 octets.
This length is assumed inside osmo-hlr with a magic number:
uint8_t msisdn_enc[43]; /* TODO use constant; TS 24.008 10.5.4.7 */
This change makes libosmocore provide a constant which osmo-hlr can use.
Change-Id: Ia0bf6ceadcac38a8c75d166402b54058e5c6c6d4
Diffstat (limited to 'include/osmocom/gsm')
-rw-r--r-- | include/osmocom/gsm/gsup.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsup.h b/include/osmocom/gsm/gsup.h index 1a8a3b27..a7fa8208 100644 --- a/include/osmocom/gsm/gsup.h +++ b/include/osmocom/gsm/gsup.h @@ -52,6 +52,7 @@ #define OSMO_GSUP_MAX_NUM_AUTH_INFO 5 /*! Maximum number of octets encoding MSISDN in BCD format */ #define OSMO_GSUP_MAX_MSISDN_LEN 9 +#define OSMO_GSUP_MAX_CALLED_PARTY_BCD_LEN 43 /* TS 24.008 10.5.4.7 */ #define OSMO_GSUP_PDP_TYPE_SIZE 2 |