From b77c697c0b86a17870da5dda8f0f17007f5e35b4 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 1 May 2010 11:28:43 +0200 Subject: [gprs] fully integrate VTY configuration into Gb proxy The Gb-proxy is now fully configured by config file / VTY --- openbsc/include/openbsc/gb_proxy.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 openbsc/include/openbsc/gb_proxy.h (limited to 'openbsc/include/openbsc/gb_proxy.h') diff --git a/openbsc/include/openbsc/gb_proxy.h b/openbsc/include/openbsc/gb_proxy.h new file mode 100644 index 000000000..8194d2a8b --- /dev/null +++ b/openbsc/include/openbsc/gb_proxy.h @@ -0,0 +1,37 @@ +#ifndef _GB_PROXY_H +#define _GB_PROXY_H + +#include + +#include + +#include + +struct gbproxy_config { + /* parsed from config file */ + u_int32_t nsip_listen_ip; + u_int16_t nsip_listen_port; + + u_int32_t nsip_sgsn_ip; + u_int16_t nsip_sgsn_port; + + u_int16_t nsip_sgsn_nsei; + u_int16_t nsip_sgsn_nsvci; + + /* misc */ + struct gprs_ns_inst *nsi; +}; + + +/* gb_proxy_vty .c */ + +int gbproxy_vty_init(void); +int gbproxy_parse_config(const char *config_file, struct gbproxy_config *cfg); + + +/* gb_proxy.c */ + +/* Main input function for Gb proxy */ +int gbprox_rcvmsg(struct msgb *msg, struct gprs_nsvc *nsvc, uint16_t ns_bvci); + +#endif -- cgit v1.2.3