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-19 17:45:32 +00:00
|
|
|
#include <osmocom/vty/command.h>
|
2010-05-01 09:28:43 +00:00
|
|
|
|
|
|
|
struct gbproxy_config {
|
|
|
|
/* parsed from config file */
|
|
|
|
u_int16_t nsip_sgsn_nsei;
|
|
|
|
|
|
|
|
/* 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);
|
|
|
|
|
2010-05-11 04:34:24 +00:00
|
|
|
int gbprox_signal(unsigned int subsys, unsigned int signal,
|
|
|
|
void *handler_data, void *signal_data);
|
2010-05-14 11:53:08 +00:00
|
|
|
|
|
|
|
/* Reset all persistent NS-VC's */
|
|
|
|
int gbprox_reset_persistent_nsvcs(struct gprs_ns_inst *nsi);
|
|
|
|
|
2010-05-01 09:28:43 +00:00
|
|
|
#endif
|