pespin submitted this change.

View Change

Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved
xua: Fix Routing Context IE len of multiple rctx

There was a typo when adding the definition for "Routing Context: n X
32-bit integers" IE. The SUA_MSG_PART_CLASS_ROUTE_CTX1 is already used
to check for "single Routing Context" case.

Fixes: 684e0499a0ee291590ecd2546674222682d2ddf8
Change-Id: I8e21932dba8e85a01bcb2e6d0188773c36608135
---
M src/m3ua.c
M src/sua.c
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/m3ua.c b/src/m3ua.c
index ae3077a..ed2efdd 100644
--- a/src/m3ua.c
+++ b/src/m3ua.c
@@ -155,7 +155,7 @@
XUA_MSG_PART_CLASS_UNBOUND(M3UA_IEI_ROUTE_CTX, (mandatory))

#define M3UA_MSG_PART_CLASS_ROUTE_CTX(mandatory) \
- XUA_MSG_PART_CLASS_U32(M3UA_IEI_ROUTE_CTX, (mandatory))
+ XUA_MSG_PART_CLASS_UNBOUND(M3UA_IEI_ROUTE_CTX, (mandatory))

#define M3UA_MSG_PART_CLASS_ROUTE_CTX1(mandatory) \
XUA_MSG_PART_CLASS_U32(M3UA_IEI_ROUTE_CTX, (mandatory))
diff --git a/src/sua.c b/src/sua.c
index e14130f..ddb2153 100644
--- a/src/sua.c
+++ b/src/sua.c
@@ -130,7 +130,7 @@
XUA_MSG_PART_CLASS_UNBOUND(SUA_IEI_ROUTE_CTX, (mandatory))

#define SUA_MSG_PART_CLASS_ROUTE_CTX(mandatory) \
- XUA_MSG_PART_CLASS_U32(SUA_IEI_ROUTE_CTX, (mandatory))
+ XUA_MSG_PART_CLASS_UNBOUND(SUA_IEI_ROUTE_CTX, (mandatory))

#define SUA_MSG_PART_CLASS_ROUTE_CTX1(mandatory) \
XUA_MSG_PART_CLASS_U32(SUA_IEI_ROUTE_CTX, (mandatory))

To view, visit change 43484. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I8e21932dba8e85a01bcb2e6d0188773c36608135
Gerrit-Change-Number: 43484
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin@sysmocom.de>