diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2011-02-18 14:30:25 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-13 14:07:10 +0200 |
commit | f7d557cdf2af0e39d5b9592dcb74d3d1c79030a9 (patch) | |
tree | 66d75df1d4dd90657b031cd87d66fd55ac692546 /openbsc/src/osmo-bsc/osmo_bsc_main.c | |
parent | e8aef2a84bc6617b733e92d02fe8a9059e656037 (diff) |
osmo_bsc: Use libctrl, handle ctrl cmds on port 4249 or from the nat
This patch initializes libctrl to listen for connections on port 4249.
Additionally, control messages arriving from the nat will also be
processed.
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_main.c')
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_main.c b/openbsc/src/osmo-bsc/osmo_bsc_main.c index 42c74cc60..6deed3009 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_main.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_main.c @@ -50,6 +50,8 @@ static const char *rf_ctl = NULL; extern const char *openbsc_copyright; static int daemonize = 0; +extern void controlif_setup(struct gsm_network *gsmnet, uint16_t port); + static void print_usage() { printf("Usage: osmo-bsc\n"); @@ -204,6 +206,8 @@ int main(int argc, char **argv) } bsc_api_init(bsc_gsmnet, osmo_bsc_api()); + controlif_setup(bsc_gsmnet, 4249); + data = bsc_gsmnet->msc_data; if (rf_ctl) bsc_replace_string(data, &data->rf_ctrl_name, rf_ctl); |