Harald Welte | 76a06f7 | 2010-05-18 11:07:34 +0200 | [diff] [blame] | 1 | #ifndef _GPRS_GMM_H |
| 2 | #define _GPRS_GMM_H |
| 3 | |
Pablo Neira Ayuso | dd5fff4 | 2011-03-22 16:47:59 +0100 | [diff] [blame] | 4 | #include <osmocom/core/msgb.h> |
Harald Welte | 75871c7 | 2010-06-01 11:53:01 +0200 | [diff] [blame] | 5 | #include <openbsc/gprs_sgsn.h> |
| 6 | |
Max | 4bc2821 | 2016-07-06 11:59:18 +0200 | [diff] [blame] | 7 | #include <stdbool.h> |
| 8 | |
Harald Welte | 94ecef3 | 2010-12-24 21:13:26 +0100 | [diff] [blame] | 9 | int gsm48_tx_gsm_deact_pdp_req(struct sgsn_pdp_ctx *pdp, uint8_t sm_cause); |
Harald Welte | 76a06f7 | 2010-05-18 11:07:34 +0200 | [diff] [blame] | 10 | int gsm48_tx_gsm_act_pdp_rej(struct sgsn_mm_ctx *mm, uint8_t tid, |
| 11 | uint8_t cause, uint8_t pco_len, uint8_t *pco_v); |
Harald Welte | 76a06f7 | 2010-05-18 11:07:34 +0200 | [diff] [blame] | 12 | int gsm48_tx_gsm_act_pdp_acc(struct sgsn_pdp_ctx *pdp); |
Harald Welte | eb471c9 | 2010-05-18 14:32:29 +0200 | [diff] [blame] | 13 | int gsm48_tx_gsm_deact_pdp_acc(struct sgsn_pdp_ctx *pdp); |
| 14 | |
Max | 4bc2821 | 2016-07-06 11:59:18 +0200 | [diff] [blame] | 15 | int gsm0408_gprs_rcvmsg_gb(struct msgb *msg, struct gprs_llc_llme *llme, |
| 16 | bool drop_cipherable); |
Daniel Willmann | 945f608 | 2016-05-21 17:35:57 +0200 | [diff] [blame^] | 17 | int gsm0408_gprs_rcvmsg_iu(struct msgb *msg, struct gprs_ra_id *ra_id, |
| 18 | uint16_t *sai); |
Jacob Erlbeck | 6e15b73 | 2014-10-31 12:20:49 +0100 | [diff] [blame] | 19 | int gsm0408_gprs_force_reattach(struct sgsn_mm_ctx *mmctx); |
Max | 6d99958 | 2016-07-06 15:57:01 +0200 | [diff] [blame] | 20 | int gsm0408_gprs_force_reattach_oldmsg(struct msgb *msg, |
| 21 | struct gprs_llc_llme *llme); |
Jacob Erlbeck | c64af7a | 2014-10-24 18:09:54 +0200 | [diff] [blame] | 22 | void gsm0408_gprs_access_granted(struct sgsn_mm_ctx *mmctx); |
Jacob Erlbeck | 4101008 | 2015-01-05 17:51:17 +0100 | [diff] [blame] | 23 | void gsm0408_gprs_access_denied(struct sgsn_mm_ctx *mmctx, int gmm_cause); |
| 24 | void gsm0408_gprs_access_cancelled(struct sgsn_mm_ctx *mmctx, int gmm_cause); |
Jacob Erlbeck | ac33698 | 2014-12-02 09:47:26 +0100 | [diff] [blame] | 25 | void gsm0408_gprs_authenticate(struct sgsn_mm_ctx *mmctx); |
Harald Welte | 76a06f7 | 2010-05-18 11:07:34 +0200 | [diff] [blame] | 26 | |
Harald Welte | 5026482 | 2010-06-09 11:22:47 +0200 | [diff] [blame] | 27 | int gprs_gmm_rx_suspend(struct gprs_ra_id *raid, uint32_t tlli); |
| 28 | int gprs_gmm_rx_resume(struct gprs_ra_id *raid, uint32_t tlli, |
| 29 | uint8_t suspend_ref); |
| 30 | |
Jacob Erlbeck | e6140d0 | 2015-01-23 11:33:51 +0100 | [diff] [blame] | 31 | time_t gprs_max_time_to_idle(void); |
| 32 | |
Harald Welte | 76a06f7 | 2010-05-18 11:07:34 +0200 | [diff] [blame] | 33 | #endif /* _GPRS_GMM_H */ |