gb_proxy: listen on UDP port 23000, use AF_INET

This commit is contained in:
Harald Welte 2010-04-30 20:42:42 +02:00
parent 9f75c35eb3
commit 7b8255c52d
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,7 @@ void subscr_put() { abort(); }
void *tall_bsc_ctx;
struct gprs_ns_inst *gbprox_nsi;
static u_int16_t nsip_listen_port;
static u_int16_t nsip_listen_port = 23000;
const char *openbsc_version = "Osmocom NSIP Proxy " PACKAGE_VERSION;
const char *openbsc_copyright =
@ -114,6 +114,7 @@ int main(int argc, char **argv)
nsip_listen(gbprox_nsi, nsip_listen_port);
/* 'establish' the outgoing connection to the SGSN */
sin.sin_family = AF_INET;
sin.sin_port = ntohs(23000);
inet_aton("192.168.100.239", &sin.sin_addr);
gbprox_peer_sgsn = nsip_connect(gbprox_nsi, &sin, 2342);