diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-19 14:38:50 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-19 14:38:50 +0200 |
commit | 5540c4cbd32f9b69f72adb622c3635e841724131 (patch) | |
tree | 6ced3555161e5e17d5be01898ac55f327cebd2ab /openbsc/src/input | |
parent | 3a318ab9716718a39a6907d012b6f616fe46823d (diff) |
[GPRS] Add Frame Relay in GRE encapsulation for NS
Diffstat (limited to 'openbsc/src/input')
-rw-r--r-- | openbsc/src/input/ipaccess.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/openbsc/src/input/ipaccess.c b/openbsc/src/input/ipaccess.c index 8e1832660..4968e8093 100644 --- a/openbsc/src/input/ipaccess.c +++ b/openbsc/src/input/ipaccess.c @@ -44,6 +44,7 @@ #include <openbsc/subchan_demux.h> #include <openbsc/e1_input.h> #include <openbsc/ipaccess.h> +#include <openbsc/socket.h> #include <osmocore/talloc.h> #define PRIV_OML 1 @@ -746,9 +747,6 @@ int ipaccess_connect(struct e1inp_line *line, struct sockaddr_in *sa) //return e1inp_line_register(line); } -extern int make_sock(struct bsc_fd *bfd, int proto, u_int16_t port, - int (*cb)(struct bsc_fd *fd, unsigned int what)); - int ipaccess_setup(struct gsm_network *gsmnet) { int ret; @@ -766,13 +764,13 @@ int ipaccess_setup(struct gsm_network *gsmnet) e1h->gsmnet = gsmnet; /* Listen for OML connections */ - ret = make_sock(&e1h->listen_fd, IPPROTO_TCP, IPA_TCP_PORT_OML, + ret = make_sock(&e1h->listen_fd, IPPROTO_TCP, 0, IPA_TCP_PORT_OML, listen_fd_cb); if (ret < 0) return ret; /* Listen for RSL connections */ - ret = make_sock(&e1h->rsl_listen_fd, IPPROTO_TCP, + ret = make_sock(&e1h->rsl_listen_fd, IPPROTO_TCP, 0, IPA_TCP_PORT_RSL, rsl_listen_fd_cb); if (ret < 0) return ret; |