diff options
author | Oliver Smith <osmith@sysmocom.de> | 2021-07-23 15:46:37 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2021-07-23 17:13:19 +0200 |
commit | 76985a9aa2ec11b4816cc5f22153f9f451608dd2 (patch) | |
tree | e7290d5747497da73d05156e6ce1012716bf72c6 | |
parent | 1a75755f9b47bc93600dafd61c5ea1e1ad283d68 (diff) |
m3ua: fix m3ua_encode_dupu
Fix wrong header and swapped user / cause values (see RFC 4666). This
makes TC_ssnm_distribution_dupu pass.
Change-Id: I717b64d13d12a2781c90e4d2f83643331797bed4
-rw-r--r-- | src/m3ua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -820,9 +820,9 @@ static struct xua_msg *m3ua_encode_dupu(const uint32_t *rctx, unsigned int num_r const char *info_string) { struct xua_msg *xua = xua_msg_alloc(); - uint32_t user_cause = (user << 16) | cause; + uint32_t user_cause = (cause << 16) | user; - xua->hdr = XUA_HDR(M3UA_MSGC_SNM, M3UA_SNM_DUNA); + xua->hdr = XUA_HDR(M3UA_MSGC_SNM, M3UA_SNM_DUPU); xua->hdr.version = M3UA_VERSION; if (rctx) xua_msg_add_data(xua, M3UA_IEI_ROUTE_CTX, num_rctx * sizeof(*rctx), (const uint8_t *)rctx); |