[PATCH] 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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Thu Jul 27 13:50:05 UTC 2017


Review at  https://gerrit.osmocom.org/3365

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(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/65/3365/1

diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index f60eef4..72d7946 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -1301,6 +1301,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: newchange
Gerrit-Change-Id: I75c67d289693f1c2a049ac61cf2b2097d6e5687d
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list