summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-07-07 16:53:30 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-07-07 21:54:38 +0200
commiteb55c0d4daff3e62c9282077379e4b596f312fd0 (patch)
tree360f9eb19813260450c1a01cd662ce55c2c4a7e2 /include/osmocom
parent639c408ec1325b97a72fba603064265b27687703 (diff)
gsup: Add encoding/decoding for the pdp charging characteristics
These fields can be in the ISD and the PDP Context inofmration. Store pointers to this IE in both cases. It needs to be used by the SGSN when opening a PDP context. Change-Id: Iedc7c02adcf77ca5c9545119e19c968dfbbb3e6b
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/gsm/gsup.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsup.h b/include/osmocom/gsm/gsup.h
index 886ea5da..890bff32 100644
--- a/include/osmocom/gsm/gsup.h
+++ b/include/osmocom/gsm/gsup.h
@@ -51,6 +51,7 @@ enum osmo_gsup_iei {
OSMO_GSUP_PDP_TYPE_IE = 0x11,
OSMO_GSUP_ACCESS_POINT_NAME_IE = 0x12,
OSMO_GSUP_PDP_QOS_IE = 0x13,
+ OSMO_GSUP_CHARG_CHAR_IE = 0x14,
OSMO_GSUP_RAND_IE = 0x20,
OSMO_GSUP_SRES_IE = 0x21,
OSMO_GSUP_KC_IE = 0x22,
@@ -127,6 +128,11 @@ struct osmo_gsup_pdp_info {
const uint8_t *qos_enc;
/*! length (in octets) of qos_enc */
size_t qos_enc_len;
+ /*! PDP Charging Characteristics, still in encoded form. Can be NULL if no
+ * PDP Charging Characteristics */
+ const uint8_t *pdp_charg_enc;
+ /*! length (in octets) of pdp_charg_enc */
+ size_t pdp_charg_enc_len;
};
/*! parsed/decoded GSUP protocol message */
@@ -148,6 +154,8 @@ struct osmo_gsup_message {
const uint8_t *auts;
const uint8_t *rand;
enum osmo_gsup_cn_domain cn_domain;
+ const uint8_t *pdp_charg_enc;
+ size_t pdp_charg_enc_len;
};
int osmo_gsup_decode(const uint8_t *data, size_t data_len,