2010-05-01 09:28:43 +00:00
|
|
|
#ifndef _GB_PROXY_H
|
|
|
|
#define _GB_PROXY_H
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
#include <osmocore/msgb.h>
|
|
|
|
|
|
|
|
#include <openbsc/gprs_ns.h>
|
2010-05-11 03:49:43 +00:00
|
|
|
#include <vty/command.h>
|
2010-05-01 09:28:43 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2010-05-03 16:54:58 +00:00
|
|
|
extern struct gbproxy_config gbcfg;
|
2010-05-11 03:49:43 +00:00
|
|
|
extern struct cmd_element show_gbproxy_cmd;
|
2010-05-01 09:28:43 +00:00
|
|
|
|
|
|
|
/* 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
|