Change in osmo-bts[master]: osmo-bts-trx: print TRX socket addresses in 'show transceiver'

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Nov 19 05:44:36 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/11764 )

Change subject: osmo-bts-trx: print TRX socket addresses in 'show transceiver'
......................................................................

osmo-bts-trx: print TRX socket addresses in 'show transceiver'

Change-Id: I081305d730cbdb14b5ce1dbfee18673328225b66
---
M src/osmo-bts-trx/trx_vty.c
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-bts-trx/trx_vty.c b/src/osmo-bts-trx/trx_vty.c
index 1dfc617..e9710ac 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 @@
 
 	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);

-- 
To view, visit https://gerrit.osmocom.org/11764
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I081305d730cbdb14b5ce1dbfee18673328225b66
Gerrit-Change-Number: 11764
Gerrit-PatchSet: 3
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181119/a647eba2/attachment.html>


More information about the gerrit-log mailing list