From 2720e7310d3cce36bc3cbcf87d3e8eb2eecf5c75 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 17 May 2010 00:44:57 +0200 Subject: [GPRS] Initial untested support for libgtp libgtp of the OpenGGSN project will allow us to speak the GTPv0/v1 protocol of the interface between SGSN and GGSN. This commit includes code for the main libgtp integration (file descriptor, select loop, timer) as well as code to encode/send a CREATE PDP CONTEXT request. --- openbsc/include/openbsc/sgsn.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'openbsc/include/openbsc/sgsn.h') diff --git a/openbsc/include/openbsc/sgsn.h b/openbsc/include/openbsc/sgsn.h index 2dc53c13d..2c4378bca 100644 --- a/openbsc/include/openbsc/sgsn.h +++ b/openbsc/include/openbsc/sgsn.h @@ -12,10 +12,26 @@ struct sgsn_config { u_int32_t nsip_listen_ip; u_int16_t nsip_listen_port; + char *gtp_statedir; + struct sockaddr_in gtp_listenaddr; + /* misc */ struct gprs_ns_inst *nsi; }; +struct sgsn_instance { + char *config_file; + struct sgsn_config cfg; + /* File descriptor wrappers for LibGTP */ + struct bsc_fd gtp_fd0; + struct bsc_fd gtp_fd1c; + struct bsc_fd gtp_fd1u; + /* Timer for libGTP */ + struct timer_list gtp_timer; + /* GSN instance for libgtp */ + struct gsn_t *gsn; +}; + /* sgsn_vty.c */ -- cgit v1.2.3