<p>Harald Welte <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/10293">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Deprecate ipa_ccm_idtag_parse() with ipa_ccm_id_{get,resp}_parse()<br><br>In the past, the function ipa_ccm_idtag_parse() was used to parse<br>the payload of IPA CCM ID RESP packets.  However, the function was<br>based on a possible misunderstanding of the message encoding, and<br>callers actually counted the first (upper) length nibble as part<br>of the header and passed a pointer to the second<br>(lower) length nibble of the first TLV into this function.  As such,<br>it was unfixable, and had to be replaced with a new function called<br>ipa_ccm_id_resp_parse().  At the same time, we also add<br>ipa_ccm_id_get_parse() to parse the slightly different format of<br>the IPA CCM ID GET payload.<br><br>We can never be 100% sure what is "correct", as our understanding<br>of the protocol is entirely based on protocol analysis, without any<br>official documentation available.<br><br>This patch also introduces unit test coverage for both of the new<br>functions.<br><br>Revert "ipa: Add libosmogsm.map entry for ipa_ccm_idtag_parse_off"<br>This reverts commit 7f31c90b80c08fbfe2d84d70d397402fdb38b94c.<br><br>Revert "ipa: Properly parse LV stream of a ID_GET request"<br>This reverts commit f558ed4bb9c0f00997b8f97c2b251a574c1a64c4.<br><br>It introduced a function/behavior that was not originally intended:<br>The parse of IPA CCM ID GET (8bit length followed by 1 byte tag<br>and variable-length payload) instead of the IPA CCM ID RESP (16bit<br>length followed by 1 byte tag and variable-length payload).<br><br>Change-Id: I1834d90fbcdbfcb05f5b8cfe39bfe9543737ef8f<br>---<br>M include/osmocom/gsm/ipa.h<br>M src/gsm/ipa.c<br>M src/gsm/libosmogsm.map<br>M tests/utils/utils_test.c<br>M tests/utils/utils_test.ok<br>5 files changed, 151 insertions(+), 17 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/93/10293/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/10293">change 10293</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/10293"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I1834d90fbcdbfcb05f5b8cfe39bfe9543737ef8f </div>
<div style="display:none"> Gerrit-Change-Number: 10293 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>