[PATCH] libosmo-sccp[master]: osmo_sccp_make_addr_pc_ssn(): Set routing indicator

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
Sun Apr 9 16:57:03 UTC 2017


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

osmo_sccp_make_addr_pc_ssn(): Set routing indicator

When we crate a sccp address with PC+SSN, we should also set the routing
indicator accordingly (OSMO_SCCP_RI_SSN_PC).

Change-Id: Ie179df7158624520e90093da063c57f1e3efa0bd
---
M src/sccp_helpers.c
1 file changed, 1 insertion(+), 0 deletions(-)


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

diff --git a/src/sccp_helpers.c b/src/sccp_helpers.c
index c588607..76a7c1c 100644
--- a/src/sccp_helpers.c
+++ b/src/sccp_helpers.c
@@ -39,6 +39,7 @@
 void osmo_sccp_make_addr_pc_ssn(struct osmo_sccp_addr *addr, uint32_t pc, uint32_t ssn)
 {
 	addr->presence = OSMO_SCCP_ADDR_T_SSN | OSMO_SCCP_ADDR_T_PC;
+	addr->ri = OSMO_SCCP_RI_SSN_PC;
 	addr->ssn = ssn;
 	addr->pc = pc;
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie179df7158624520e90093da063c57f1e3efa0bd
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list