Change in osmo-remsim[master]: rspro_util.c: Set pdu version to 2 for all generator functions

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 Oct 14 23:53:09 UTC 2018


Harald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/11352


Change subject: rspro_util.c: Set pdu version to 2 for all generator functions
......................................................................

rspro_util.c: Set pdu version to 2 for all generator functions

Change-Id: I83b87875b81491217315390f9ccefeeb39fb610b
---
M src/rspro_util.c
1 file changed, 7 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/52/11352/1

diff --git a/src/rspro_util.c b/src/rspro_util.c
index 0452728..970aca5 100644
--- a/src/rspro_util.c
+++ b/src/rspro_util.c
@@ -103,6 +103,7 @@
 	RsproPDU_t *pdu = CALLOC(1, sizeof(*pdu));
 	if (!pdu)
 		return NULL;
+	pdu->version = 2;
 	pdu->msg.present = RsproPDUchoice_PR_connectBankReq;
 	fill_comp_id(&pdu->msg.choice.connectBankReq.identity, a_cid);
 	pdu->msg.choice.connectBankReq.bankId = bank_id;
@@ -116,6 +117,7 @@
 	RsproPDU_t *pdu = CALLOC(1, sizeof(*pdu));
 	if (!pdu)
 		return NULL;
+	pdu->version = 2;
 	pdu->msg.present = RsproPDUchoice_PR_connectClientReq;
 	fill_comp_id(&pdu->msg.choice.connectClientReq.identity, a_cid);
 	if (client)
@@ -143,6 +145,7 @@
 	RsproPDU_t *pdu = CALLOC(1, sizeof(*pdu));
 	if (!pdu)
 		return NULL;
+	pdu->version = 2;
 	pdu->msg.present = RsproPDUchoice_PR_createMappingReq;
 	pdu->msg.choice.createMappingReq.client = *client;
 	pdu->msg.choice.createMappingReq.bank = *bank;
@@ -155,6 +158,7 @@
 	RsproPDU_t *pdu = CALLOC(1, sizeof(*pdu));
 	if (!pdu)
 		return NULL;
+	pdu->version = 2;
 	pdu->msg.present = RsproPDUchoice_PR_configClientReq;
 	pdu->msg.choice.configClientReq.clientSlot = *client;
 	fill_ip4_port(&pdu->msg.choice.configClientReq.bankd, ip, port);
@@ -168,6 +172,7 @@
 	RsproPDU_t *pdu = CALLOC(1, sizeof(*pdu));
 	if (!pdu)
 		return NULL;
+	pdu->version = 2;
 	pdu->msg.present = RsproPDUchoice_PR_setAtrReq;
 	pdu->msg.choice.setAtrReq.slot.clientId = client_id;
 	pdu->msg.choice.setAtrReq.slot.slotNr = slot_nr;
@@ -182,6 +187,7 @@
 	RsproPDU_t *pdu = CALLOC(1, sizeof(*pdu));
 	if (!pdu)
 		return NULL;
+	pdu->version = 2;
 	pdu->msg.present = RsproPDUchoice_PR_tpduModemToCard;
 	OSMO_ASSERT(client);
 	pdu->msg.choice.tpduModemToCard.fromClientSlot = *client;
@@ -199,6 +205,7 @@
 	RsproPDU_t *pdu = CALLOC(1, sizeof(*pdu));
 	if (!pdu)
 		return NULL;
+	pdu->version = 2;
 	pdu->msg.present = RsproPDUchoice_PR_tpduCardToModem;
 	OSMO_ASSERT(bank);
 	pdu->msg.choice.tpduCardToModem.fromBankSlot = *bank;

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

Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I83b87875b81491217315390f9ccefeeb39fb610b
Gerrit-Change-Number: 11352
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181014/11f6b63e/attachment.htm>


More information about the gerrit-log mailing list