diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-03-23 18:08:26 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-03-23 18:34:58 +0100 |
commit | a27303094ab8bedb0a3b3bfe771daeed10a2e0a9 (patch) | |
tree | 146d6a943d44c950ee10244691c01061624ae309 /openbsc/include/openbsc | |
parent | 49f9e5b6b42cae9f6083e5c69c70af0b29b15b23 (diff) |
sgsn/ctrl: Add ctrl interface, implement listing subscribers
Add the control interface with no hierachy right now and implement
the first command to list IMSI + Context Address of active sessions.
sgsn_cmd_handle could share more code with bsc variant.
Fixes: SYS#264, SYS#265
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r-- | openbsc/include/openbsc/gprs_sgsn.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h index 8074d8f9b..df9b82621 100644 --- a/openbsc/include/openbsc/gprs_sgsn.h +++ b/openbsc/include/openbsc/gprs_sgsn.h @@ -15,6 +15,7 @@ #define GSM_EXTENSION_LENGTH 15 struct gprs_llc_lle; +struct ctrl_handle; /* TS 04.08 4.1.3.3 GMM mobility management states on the network side */ enum gprs_mm_state { @@ -219,4 +220,13 @@ uint32_t sgsn_alloc_ptmsi(void); * ottherwise lost state (recovery procedure) */ int drop_all_pdp_for_ggsn(struct sgsn_ggsn_ctx *ggsn); +char *gprs_pdpaddr2str(uint8_t *pdpa, uint8_t len); + +/* + * ctrl interface related work + */ +struct gsm_network; +struct ctrl_handle *sgsn_controlif_setup(struct gsm_network *, uint16_t port); +int sgsn_ctrl_cmds_install(void); + #endif /* _GPRS_SGSN_H */ |