diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-08-08 15:03:50 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-08-09 12:17:39 +0200 |
commit | c4178e55ea5a0ac480f11e3352a3579cdb78025a (patch) | |
tree | ee80ac629621f921ce2363396bb0be36a96640d5 /src/osmobts_sock.cpp | |
parent | 0cd8e4eadea3fc4ec709b102e428f7a47836a7e3 (diff) |
Add pcu-socket vty config
osmo-bts already supports configuring a different path for the bts<->pcu
socket by using the 'pcu-socket' config field.
Change-Id: I9b3e1171da467519750b201849ec892a1e318129
Diffstat (limited to 'src/osmobts_sock.cpp')
-rw-r--r-- | src/osmobts_sock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmobts_sock.cpp b/src/osmobts_sock.cpp index d7e55e7c..e9b85ab7 100644 --- a/src/osmobts_sock.cpp +++ b/src/osmobts_sock.cpp @@ -223,6 +223,7 @@ int pcu_l1if_open(void) struct sockaddr_un local; unsigned int namelen; int rc; + struct gprs_rlcmac_bts *bts = bts_main_data(); LOGP(DL1IF, LOGL_INFO, "Opening OsmoPCU L1 interface to OsmoBTS\n"); @@ -244,7 +245,7 @@ int pcu_l1if_open(void) } local.sun_family = AF_UNIX; - strncpy(local.sun_path, "/tmp/pcu_bts", sizeof(local.sun_path)); + strncpy(local.sun_path, bts->pcu_sock_path, sizeof(local.sun_path)); local.sun_path[sizeof(local.sun_path) - 1] = '\0'; /* we use the same magic that X11 uses in Xtranssock.c for |