Change in libosmocore[master]: gprs_ns2_fr: Print Frame Relay 'role' in VTY

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Dec 1 17:02:01 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/21424 )


Change subject: gprs_ns2_fr: Print Frame Relay 'role' in VTY
......................................................................

gprs_ns2_fr: Print Frame Relay 'role' in VTY

Change-Id: I23182e5d952fd28a0bbfa76a4fc94d8e03b7a65d
---
M src/gb/gprs_ns2_fr.c
1 file changed, 4 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/24/21424/1

diff --git a/src/gb/gprs_ns2_fr.c b/src/gb/gprs_ns2_fr.c
index 3315273..07c8d46 100644
--- a/src/gb/gprs_ns2_fr.c
+++ b/src/gb/gprs_ns2_fr.c
@@ -105,13 +105,16 @@
 {
 	struct priv_bind *priv;
 	struct gprs_ns2_vc *nsvc;
+	struct osmo_fr_link *fr_link;
 
 	if (!bind)
 		return;
 
 	priv = bind->priv;
+	fr_link = priv->link;
 
-	vty_out(vty, "FR bind: %s%s", priv->netif, VTY_NEWLINE);
+	vty_out(vty, "FR bind: %s, role: %s%s", priv->netif,
+		osmo_fr_role_str(fr_link->role), VTY_NEWLINE);
 
 	llist_for_each_entry(nsvc, &bind->nsvc, blist) {
 		vty_out(vty, "    %s%s", gprs_ns2_ll_str(nsvc), VTY_NEWLINE);

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I23182e5d952fd28a0bbfa76a4fc94d8e03b7a65d
Gerrit-Change-Number: 21424
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201201/0d2533e9/attachment.htm>


More information about the gerrit-log mailing list