blob: 8194d2a8ba2f82297963ddfe7ca062b7cdf3aff4 [file] [log] [blame]
Harald Welteb77c6972010-05-01 11:28:43 +02001#ifndef _GB_PROXY_H
2#define _GB_PROXY_H
3
4#include <sys/types.h>
5
6#include <osmocore/msgb.h>
7
8#include <openbsc/gprs_ns.h>
9
10struct gbproxy_config {
11 /* parsed from config file */
12 u_int32_t nsip_listen_ip;
13 u_int16_t nsip_listen_port;
14
15 u_int32_t nsip_sgsn_ip;
16 u_int16_t nsip_sgsn_port;
17
18 u_int16_t nsip_sgsn_nsei;
19 u_int16_t nsip_sgsn_nsvci;
20
21 /* misc */
22 struct gprs_ns_inst *nsi;
23};
24
25
26/* gb_proxy_vty .c */
27
28int gbproxy_vty_init(void);
29int gbproxy_parse_config(const char *config_file, struct gbproxy_config *cfg);
30
31
32/* gb_proxy.c */
33
34/* Main input function for Gb proxy */
35int gbprox_rcvmsg(struct msgb *msg, struct gprs_nsvc *nsvc, uint16_t ns_bvci);
36
37#endif