Harald Welte | b77c697 | 2010-05-01 11:28:43 +0200 | [diff] [blame^] | 1 | #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 | |
| 10 | struct 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 | |
| 28 | int gbproxy_vty_init(void); |
| 29 | int 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 */ |
| 35 | int gbprox_rcvmsg(struct msgb *msg, struct gprs_nsvc *nsvc, uint16_t ns_bvci); |
| 36 | |
| 37 | #endif |