<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26517">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">library/DIAMETER_Templates: fix flags in AIR templates<br><br>According to RFC 6733, section 3 "Diameter Header", if the 'R' bit<br>is set, the message is a request. If the 'P' bit is set, the<br>message may be proxied, relayed, or redirected.<br><br>ts_DIA_AIR is a template for Authentication Information *Request*,<br>so the 'R' bit must be set. Also, let's allow this message to be<br>proxied, relayed, or redirected by setting the 'P' bit by default.<br><br>In tr_DIA_AIR, do not match all command flags, just ensure that<br>the message is a request. Other flags do not matter.<br><br>Change-Id: I7db3b632189eed09c1bdf98f9d588491d928e2f5<br>Related: SYS#5602<br>---<br>M library/DIAMETER_Templates.ttcn<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/DIAMETER_Templates.ttcn b/library/DIAMETER_Templates.ttcn</span><br><span>index a30a565..1b3ffdb 100644</span><br><span>--- a/library/DIAMETER_Templates.ttcn</span><br><span>+++ b/library/DIAMETER_Templates.ttcn</span><br><span>@@ -891,7 +891,7 @@</span><br><span> template (value) charstring dest_realm := "localdomain",</span><br><span> template (value) UINT32 hbh_id := '00000000'O,</span><br><span> template (value) UINT32 ete_id := '00000000'O) :=</span><br><span style="color: hsl(0, 100%, 40%);">- ts_DIAMETER(flags := '00000000'B,</span><br><span style="color: hsl(120, 100%, 40%);">+ ts_DIAMETER(flags := '11000000'B,</span><br><span> cmd_code := Authentication_Information,</span><br><span> hbh_id := hbh_id,</span><br><span> ete_id := ete_id,</span><br><span>@@ -909,7 +909,7 @@</span><br><span> template (present) charstring dest_realm := ?,</span><br><span> template (present) UINT32 hbh_id := ?,</span><br><span> template (present) UINT32 ete_id := ?) :=</span><br><span style="color: hsl(0, 100%, 40%);">- tr_DIAMETER(flags := '11000000'B,</span><br><span style="color: hsl(120, 100%, 40%);">+ tr_DIAMETER(flags := '1???????'B,</span><br><span> cmd_code := Authentication_Information,</span><br><span> app_id := int2oct(c_DIAMETER_3GPP_S6_AID, 4),</span><br><span> hbh_id := hbh_id, ete_id := ete_id,</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26517">change 26517</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/osmo-ttcn3-hacks/+/26517"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I7db3b632189eed09c1bdf98f9d588491d928e2f5 </div>
<div style="display:none"> Gerrit-Change-Number: 26517 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>