<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/25033">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">m3ua: fix m3ua_encode_dupu<br><br>Fix wrong header and swapped user / cause values (see RFC 4666). This<br>makes TC_ssnm_distribution_dupu pass.<br><br>Change-Id: I717b64d13d12a2781c90e4d2f83643331797bed4<br>---<br>M src/m3ua.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/33/25033/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/m3ua.c b/src/m3ua.c</span><br><span>index 4583683..607813f 100644</span><br><span>--- a/src/m3ua.c</span><br><span>+++ b/src/m3ua.c</span><br><span>@@ -820,9 +820,9 @@</span><br><span>                                  const char *info_string)</span><br><span> {</span><br><span>        struct xua_msg *xua = xua_msg_alloc();</span><br><span style="color: hsl(0, 100%, 40%);">-  uint32_t user_cause = (user << 16) | cause;</span><br><span style="color: hsl(120, 100%, 40%);">+     uint32_t user_cause = (cause << 16) | user;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   xua->hdr = XUA_HDR(M3UA_MSGC_SNM, M3UA_SNM_DUNA);</span><br><span style="color: hsl(120, 100%, 40%);">+  xua->hdr = XUA_HDR(M3UA_MSGC_SNM, M3UA_SNM_DUPU);</span><br><span>         xua->hdr.version = M3UA_VERSION;</span><br><span>  if (rctx)</span><br><span>            xua_msg_add_data(xua, M3UA_IEI_ROUTE_CTX, num_rctx * sizeof(*rctx), (const uint8_t *)rctx);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/25033">change 25033</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmo-sccp/+/25033"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I717b64d13d12a2781c90e4d2f83643331797bed4 </div>
<div style="display:none"> Gerrit-Change-Number: 25033 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>