aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-02 23:11:50 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-04 07:20:44 +0200
commit421cba4b08e3a179aa9297bd67fe192d99751277 (patch)
tree5c6a2b72a2a08aa9b86f3c819a6bb7f323bb1d63 /openbsc/include
parentba850c529e31c1a48dd7fa9db677061f80510b2a (diff)
[gprs] SGSN SM: Provide IPv4 PDP address in PDP CTX ACT ACCEPT
The message looks now fine (from wireshark point of view). However, we cannot simply echo back the QoS parameters, as the meaning in uplink and downlink connection is not the same.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/gsm_04_08_gprs.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/openbsc/include/openbsc/gsm_04_08_gprs.h b/openbsc/include/openbsc/gsm_04_08_gprs.h
index 86adea156..c953742cc 100644
--- a/openbsc/include/openbsc/gsm_04_08_gprs.h
+++ b/openbsc/include/openbsc/gsm_04_08_gprs.h
@@ -108,15 +108,6 @@ struct gsm48_act_pdp_ctx_req {
uint8_t data[0];
} __attribute__((packed));
-/* Chapter 9.5.2 / Table 9.5.2 */
-struct gsm48_act_pdp_ctx_ack {
- uint8_t llc_sapi;
- uint8_t qos_lv[4];
- uint8_t radio_prio:4,
- spare:4;
- uint8_t data[0];
-} __attribute__((packed));
-
/* Chapter 10.5.5.14 / Table 10.5.147 */
enum gsm48_gmm_cause {
GMM_CAUSE_IMSI_UNKNOWN = 0x02,
@@ -180,6 +171,18 @@ enum gsm48_pdp_state {
PDP_S_MODIFY_PENDING,
};
+/* Table 10.5.155/3GPP TS 24.008 */
+enum gsm48_pdp_type_org {
+ PDP_TYPE_ORG_ETSI = 0x00,
+ PDP_TYPE_ORG_IETF = 0x01,
+};
+enum gsm48_pdp_type_nr {
+ PDP_TYPE_N_ETSI_RESERVED = 0x00,
+ PDP_TYPE_N_ETSI_PPP = 0x01,
+ PDP_TYPE_N_IETF_IPv4 = 0x21,
+ PDP_TYPE_N_IETF_IPv6 = 0x57,
+};
+
int gprs_tlli_type(uint32_t tlli);
struct gsm_bts *gsm48_bts_by_ra_id(struct gsm_network *net,