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 <nhofm...@sysmocom.de>

Reply via email to