diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-01-20 23:34:43 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-02-15 14:27:52 +0100 |
commit | a9a7120c82f571554e6c1417eec0803f15e6c7bb (patch) | |
tree | fcfd92dd0f13f9edacc7ff8a22f45bbe264213d9 /include/osmo-bts/pcu_if.h | |
parent | 5dfb115eaf16a5c5e9ccea5b03374651aa97da11 (diff) |
make PCU socket and telnet port configurable
In some cases we'd like to run multiple instances of osmo-bts on a
single machine. This is the case where we a multi-TRX PHY is to be used
for several BTSs, or in case osmo-bts-trx has multple SDRs attached.
This wa currently prevented by having a hard-coded PCU socket path
and telnet port, which are now configurable via VTY / config file
itself.
Diffstat (limited to 'include/osmo-bts/pcu_if.h')
-rw-r--r-- | include/osmo-bts/pcu_if.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/osmo-bts/pcu_if.h b/include/osmo-bts/pcu_if.h index 71738445..0c4fb696 100644 --- a/include/osmo-bts/pcu_if.h +++ b/include/osmo-bts/pcu_if.h @@ -1,6 +1,8 @@ #ifndef _PCU_IF_H #define _PCU_IF_H +#define PCU_SOCK_DEFAULT "/tmp/pcu_bts" + extern int pcu_direct; int pcu_tx_info_ind(void); @@ -14,7 +16,7 @@ int pcu_tx_time_ind(uint32_t fn); int pcu_tx_pag_req(const uint8_t *identity_lv, uint8_t chan_needed); int pcu_tx_pch_data_cnf(uint32_t fn, uint8_t *data, uint8_t len); -int pcu_sock_init(void); +int pcu_sock_init(const char *path); void pcu_sock_exit(void); #endif /* _PCU_IF_H */ |