blob: 044978b0a78f43b8515f3d71023132c5ba779495 [file] [log] [blame]
Harald Welte75827d62010-05-18 11:07:34 +02001#ifndef _GPRS_GMM_H
2#define _GPRS_GMM_H
3
Pablo Neira Ayuso136f4532011-03-22 16:47:59 +01004#include <osmocom/core/msgb.h>
Harald Welte807a5d82010-06-01 11:53:01 +02005#include <openbsc/gprs_sgsn.h>
6
Harald Weltea9b473a2010-12-24 21:13:26 +01007int gsm48_tx_gsm_deact_pdp_req(struct sgsn_pdp_ctx *pdp, uint8_t sm_cause);
Harald Welte75827d62010-05-18 11:07:34 +02008int gsm48_tx_gsm_act_pdp_rej(struct sgsn_mm_ctx *mm, uint8_t tid,
9 uint8_t cause, uint8_t pco_len, uint8_t *pco_v);
Harald Welte75827d62010-05-18 11:07:34 +020010int gsm48_tx_gsm_act_pdp_acc(struct sgsn_pdp_ctx *pdp);
Harald Welte77289c22010-05-18 14:32:29 +020011int gsm48_tx_gsm_deact_pdp_acc(struct sgsn_pdp_ctx *pdp);
12
Harald Welte49393e12015-12-25 19:14:57 +010013int gsm0408_gprs_rcvmsg_gb(struct msgb *msg, struct gprs_llc_llme *llme);
Jacob Erlbeckabdf02b2014-10-31 12:20:49 +010014int gsm0408_gprs_force_reattach(struct sgsn_mm_ctx *mmctx);
Maxb997f842016-07-06 15:57:01 +020015int gsm0408_gprs_force_reattach_oldmsg(struct msgb *msg,
16 struct gprs_llc_llme *llme);
Jacob Erlbeck423f8bf2014-10-24 18:09:54 +020017void gsm0408_gprs_access_granted(struct sgsn_mm_ctx *mmctx);
Jacob Erlbeckaf3d5c52015-01-05 17:51:17 +010018void gsm0408_gprs_access_denied(struct sgsn_mm_ctx *mmctx, int gmm_cause);
19void gsm0408_gprs_access_cancelled(struct sgsn_mm_ctx *mmctx, int gmm_cause);
Jacob Erlbeck4adb1362014-12-02 09:47:26 +010020void gsm0408_gprs_authenticate(struct sgsn_mm_ctx *mmctx);
Harald Welte75827d62010-05-18 11:07:34 +020021
Harald Welte5bfe4992010-06-09 11:22:47 +020022int gprs_gmm_rx_suspend(struct gprs_ra_id *raid, uint32_t tlli);
23int gprs_gmm_rx_resume(struct gprs_ra_id *raid, uint32_t tlli,
24 uint8_t suspend_ref);
25
Jacob Erlbeck81ffb742015-01-23 11:33:51 +010026time_t gprs_max_time_to_idle(void);
27
Harald Welte75827d62010-05-18 11:07:34 +020028#endif /* _GPRS_GMM_H */