aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-11-13 16:44:33 +0100
committerHarald Welte <laforge@gnumonks.org>2018-11-19 05:44:36 +0000
commit116ac855cc1dd6e1cba8ec937e952551ebc55df9 (patch)
treefd4bcaae374949414f9658c7d58194f1ebd84481 /src
parenteebb6a4216f136132400831ca35ed70e7502e92a (diff)
osmo-bts-trx: print TRX socket addresses in 'show transceiver'
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bts-trx/trx_vty.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osmo-bts-trx/trx_vty.c b/src/osmo-bts-trx/trx_vty.c
index 1dfc617c..e9710acd 100644
--- a/src/osmo-bts-trx/trx_vty.c
+++ b/src/osmo-bts-trx/trx_vty.c
@@ -32,6 +32,7 @@
#include <osmocom/core/talloc.h>
#include <osmocom/core/select.h>
#include <osmocom/core/bits.h>
+#include <osmocom/core/socket.h>
#include <osmocom/vty/vty.h>
#include <osmocom/vty/command.h>
@@ -65,8 +66,10 @@ DEFUN(show_transceiver, show_transceiver_cmd, "show transceiver",
llist_for_each_entry(trx, &bts->trx_list, list) {
struct phy_instance *pinst = trx_phy_instance(trx);
+ char *sname = osmo_sock_get_name(NULL, pinst->phy_link->u.osmotrx.trx_ofd_clk.fd);
l1h = pinst->u.osmotrx.hdl;
- vty_out(vty, "TRX %d%s", trx->nr, VTY_NEWLINE);
+ vty_out(vty, "TRX %d %s%s", trx->nr, sname, VTY_NEWLINE);
+ talloc_free(sname);
vty_out(vty, " %s%s",
(l1h->config.poweron) ? "poweron":"poweroff",
VTY_NEWLINE);