Harald Welte | 288be16 | 2010-05-01 16:48:27 +0200 | [diff] [blame] | 1 | #ifndef _SGSN_H |
| 2 | #define _SGSN_H |
| 3 | |
| 4 | #include <sys/types.h> |
| 5 | |
| 6 | #include <osmocore/msgb.h> |
| 7 | |
| 8 | #include <openbsc/gprs_ns.h> |
| 9 | |
| 10 | struct sgsn_config { |
| 11 | /* parsed from config file */ |
| 12 | u_int32_t nsip_listen_ip; |
| 13 | u_int16_t nsip_listen_port; |
| 14 | |
| 15 | /* misc */ |
| 16 | struct gprs_ns_inst *nsi; |
| 17 | }; |
| 18 | |
| 19 | |
| 20 | /* sgsn_vty.c */ |
| 21 | |
| 22 | int sgsn_vty_init(void); |
| 23 | int sgsn_parse_config(const char *config_file, struct sgsn_config *cfg); |
| 24 | |
| 25 | /* sgsn.c */ |
| 26 | |
| 27 | /* Main input function for Gb proxy */ |
| 28 | int sgsn_rcvmsg(struct msgb *msg, struct gprs_nsvc *nsvc, uint16_t ns_bvci); |
| 29 | |
| 30 | #endif |