aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-08-18 22:46:42 +0200
committerHarald Welte <laforge@gnumonks.org>2014-08-24 17:25:47 +0200
commitaf066bab9dac8f52efad4d924b6dcc3bc3c64626 (patch)
tree68986b115de9479d6d7683851cabf4278f06934e /include/osmo-bts
parentc0a3030277ed1541bcbfd5f602ee6dbe906fac14 (diff)
Use new libosmo-abis features to allow OML on non-standard TCP port
If we run osmo-bts, osmobts-omlrouter and osmo-nitb or osmo-bsc on one machine, we cannot have both omlrouter and osmo-{nitb,bsc} listen on TCP Port 3002. This introduces a new 'oml remote-port <0-65535>' directive to the osmo-bts configuration to connect to sunch a non-standard port.
Diffstat (limited to 'include/osmo-bts')
-rw-r--r--include/osmo-bts/abis.h2
-rw-r--r--include/osmo-bts/gsm_data.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/osmo-bts/abis.h b/include/osmo-bts/abis.h
index 8c055d71..91b9cd00 100644
--- a/include/osmo-bts/abis.h
+++ b/include/osmo-bts/abis.h
@@ -18,7 +18,7 @@ enum {
void abis_init(struct gsm_bts *bts);
struct e1inp_line *abis_open(struct gsm_bts *bts, const char *dst_host,
- const char *model_name);
+ uint16_t dst_port, const char *model_name);
int abis_oml_sendmsg(struct msgb *msg);
diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h
index 5e0af775..c893a3db 100644
--- a/include/osmo-bts/gsm_data.h
+++ b/include/osmo-bts/gsm_data.h
@@ -73,6 +73,7 @@ struct gsm_bts_role_bts {
struct paging_state *paging_state;
char *bsc_oml_host;
+ uint16_t bsc_oml_port;
unsigned int rtp_jitter_buf_ms;
struct {
uint8_t ciphers; /* flags A5/1==0x1, A5/2==0x2, A5/3==0x4 */