blob: 2dc53c13d9db2581003d7319afa5034aa8abb70e [file] [log] [blame]
Harald Welte288be162010-05-01 16:48:27 +02001#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
10struct 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
22int sgsn_vty_init(void);
23int sgsn_parse_config(const char *config_file, struct sgsn_config *cfg);
24
25/* sgsn.c */
26
27/* Main input function for Gb proxy */
28int sgsn_rcvmsg(struct msgb *msg, struct gprs_nsvc *nsvc, uint16_t ns_bvci);
29
30#endif