diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2021-01-07 21:55:48 +0100 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2021-01-19 18:04:13 +0100 |
commit | 7741bc320c42244a87e0369961b13a87d98ca844 (patch) | |
tree | 0988765b9d2b03d25feb9898a62aecf6aebe0e51 /include/osmocom/gprs/gprs_bssgp_rim.h | |
parent | aca31b8b2ddd63bc5f9f8db020cffb699672477b (diff) |
gprs_bssgp: add utilities to send and parse BSSGP rim PDUs
At the moment libosmogb offers no convinient way to send RIM PDUs. Also
parsing an incoming RIM messages into destination, source routing
info and RIM container is not available.
Change-Id: I18134fd9938040d2facb6beee3732628b167ce8c
Related: SYS#5103
Diffstat (limited to 'include/osmocom/gprs/gprs_bssgp_rim.h')
-rw-r--r-- | include/osmocom/gprs/gprs_bssgp_rim.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/gprs/gprs_bssgp_rim.h b/include/osmocom/gprs/gprs_bssgp_rim.h index 7f3a0e43..7e9efcd7 100644 --- a/include/osmocom/gprs/gprs_bssgp_rim.h +++ b/include/osmocom/gprs/gprs_bssgp_rim.h @@ -54,6 +54,10 @@ struct bssgp_rim_routing_info { }; }; +/* The encoded result of the rim routing information is, depending on the + * address type (discr) of variable length. */ +#define BSSGP_RIM_ROUTING_INFO_MAXLEN 14 + int bssgp_parse_rim_ri(struct bssgp_rim_routing_info *ri, const uint8_t *buf, unsigned int len); int bssgp_create_rim_ri(uint8_t *buf, const struct bssgp_rim_routing_info *ri); |