Harald Welte has submitted this change and it was merged. (
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(-)
Approvals:
Jenkins Builder: Verified
Harald Welte: Looks good to me, approved
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: merged
Gerrit-Change-Id: I83b87875b81491217315390f9ccefeeb39fb610b
Gerrit-Change-Number: 11352
Gerrit-PatchSet: 2
Gerrit-Owner: Harald Welte <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)