<p>neels has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/18964">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">api comment: fix example of osmo_mobile_identity_encode_msgb<br><br>The previous example showed a type == IMSI while setting a TMSI value.<br>Rather show how to encode IMSI digits.<br><br>Change-Id: I41af6bf0d61443465172123297b1228584d791d6<br>---<br>M src/gsm/gsm48.c<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/64/18964/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gsm/gsm48.c b/src/gsm/gsm48.c</span><br><span>index 4368ce2..eb1d055 100644</span><br><span>--- a/src/gsm/gsm48.c</span><br><span>+++ b/src/gsm/gsm48.c</span><br><span>@@ -751,7 +751,8 @@</span><br><span> /*! Encode Mobile Identity type and BCD digits, appended to a msgb.</span><br><span>  * Example to add a GSM48_IE_MOBILE_ID IEI with tag and length to a msgb:</span><br><span>  *</span><br><span style="color: hsl(0, 100%, 40%);">- *  struct osmo_mobile_identity mi = { .type = GSM_MI_TYPE_IMSI, .tmsi = random_tmsi, };</span><br><span style="color: hsl(120, 100%, 40%);">+ *  struct osmo_mobile_identity mi = { .type = GSM_MI_TYPE_IMSI };</span><br><span style="color: hsl(120, 100%, 40%);">+ *  OSMO_STRLCPY_ARRAY(mi.imsi, "1234567890123456");</span><br><span>  *  uint8_t *l = msgb_tl_put(msg, GSM48_IE_MOBILE_ID);</span><br><span>  *  int rc = osmo_mobile_identity_encode_msgb(msg, &mi, false);</span><br><span>  *  if (rc < 0)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/18964">change 18964</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/libosmocore/+/18964"/><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-Change-Id: I41af6bf0d61443465172123297b1228584d791d6 </div>
<div style="display:none"> Gerrit-Change-Number: 18964 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>