diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-05-29 13:42:19 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-05-29 13:45:04 +0200 |
commit | 8254cf75bf818e715201c670c7fb81b9a23dec0b (patch) | |
tree | b60e07f8741f38631d0dc0b5e8014c7d1fdad969 /openbsc/include/openbsc | |
parent | 3f86c523eea75e3da7f0495c7e43b944356d2321 (diff) |
libbsc: Create pcu-socket only as specified in config file
Since commit b4999b60d48bcbb5aa575973d068e07ab672e095 we created PCU
sockets at hard-coded paths in the filesystem by default for all BTSs.
This is inflexible and prevents the use of multiple BSC instances on a
single filesystem, or the placement of the sockets in a more secure
location than /tmp.
The new approach with this patch is that
* no PCU sockets are created by default
* only for those BTSs where a 'pcu-socket' is configured via VTY,
the socket will actually be created
Change-Id: Ie9079470584777dcc31f85f9bf0808f479156ccb
Closes: OS#2293
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r-- | openbsc/include/openbsc/gsm_data_shared.h | 1 | ||||
-rw-r--r-- | openbsc/include/openbsc/pcu_if.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h index 3371fb927..1380a6cba 100644 --- a/openbsc/include/openbsc/gsm_data_shared.h +++ b/openbsc/include/openbsc/gsm_data_shared.h @@ -870,6 +870,7 @@ struct gsm_bts { struct amr_multirate_conf mr_half; /* PCU socket state */ + char *pcu_sock_path; struct pcu_sock_state *pcu_state; #endif /* ROLE_BSC */ diff --git a/openbsc/include/openbsc/pcu_if.h b/openbsc/include/openbsc/pcu_if.h index 0c355b7a6..1f398b4aa 100644 --- a/openbsc/include/openbsc/pcu_if.h +++ b/openbsc/include/openbsc/pcu_if.h @@ -1,8 +1,6 @@ #ifndef _PCU_IF_H #define _PCU_IF_H -#define PCU_SOCK_DEFAULT "/tmp/pcu_bts" - #include <osmocom/gsm/l1sap.h> extern int pcu_direct; |