[MERGED] libosmo-sccp[master]: sccp-addr vty: set RI to SSN_PC when setting a point-code

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Aug 9 12:58:59 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: sccp-addr vty: set RI to SSN_PC when setting a point-code
......................................................................


sccp-addr vty: set RI to SSN_PC when setting a point-code

Change-Id: I75c67d289693f1c2a049ac61cf2b2097d6e5687d
---
M src/osmo_ss7_vty.c
1 file changed, 2 insertions(+), 0 deletions(-)

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



diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index b70f892..21efcae 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -1300,6 +1300,8 @@
 
 	entry->addr.presence |= OSMO_SCCP_ADDR_T_PC;
 	entry->addr.pc = pc;
+	if (entry->addr.ri == OSMO_SCCP_RI_NONE)
+		entry->addr.ri = OSMO_SCCP_RI_SSN_PC;
 	return CMD_SUCCESS;
 }
 

-- 
To view, visit https://gerrit.osmocom.org/3365
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I75c67d289693f1c2a049ac61cf2b2097d6e5687d
Gerrit-PatchSet: 4
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list