<p><a href="https://gerrit.osmocom.org/13744">View Change</a></p><p>5 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/13744/2/src/gprs/gprs_gmm.c">File src/gprs/gprs_gmm.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13744/2/src/gprs/gprs_gmm.c@1620">Patch Set #2, Line 1620:</a> <code style="font-family:monospace,monospace">static bool all_ms_ctx_present_on_sgsn(struct sgsn_mm_ctx *mmctx,</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">You probably want to add spec chapter and section in this comment too.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13744/2/src/gprs/gprs_gmm.c@1625">Patch Set #2, Line 1625:</a> <code style="font-family:monospace,monospace">     for (pdp_nsapi = 0; pdp_nsapi < 16; pdp_nsapi++) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">where does this 16 come from? Can we please have a define (if we don't have already) for it?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13744/2/src/gprs/gprs_gmm.c@1628">Patch Set #2, Line 1628:</a> <code style="font-family:monospace,monospace">                        active = (1 << pdp_nsapi) & pdp_status[0];</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">While fine at runtime, you are actually assigning an integer value (bitmask) to a bool here, that's weird. Either have active an uint16_t or add some " != 0" at the end.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13744/2/src/gprs/gprs_gmm.c@1630">Patch Set #2, Line 1630:</a> <code style="font-family:monospace,monospace">                  active = (1 << (pdp_nsapi - 8)) & pdp_status[1];</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Can we actually have something like:</p><p style="white-space: pre-wrap; word-wrap: break-word;">for (pdp_nsapi = 0; pdp_nsapi < 16; pdp_nsapi++) {</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">if (!(pdp_status[pdp_nsapi/8] & (1 << pdp_nsapi)))<br>   continue; /* not active in MS */</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">if (!sgsn_pdp_ctx_by_nsapi(mmctx, pdp_nsapi))<br>   return false; /* active in MS but not in sgsn */<br>}</pre><p style="white-space: pre-wrap; word-wrap: break-word;">return true;</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13744/2/src/gprs/gprs_gmm.c@1920">Patch Set #2, Line 1920:</a> <code style="font-family:monospace,monospace">      /* Look at PDP Context Status IE and see if MS's view of</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">You probably need to drop this comment too right?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/13744">change 13744</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/13744"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sgsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: If610cbef17c25ec44e65d4f1b2340d102c560437 </div>
<div style="display:none"> Gerrit-Change-Number: 13744 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Mykola Shchetinin <mykola@pentonet.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Mykola Shchetinin <mykola@pentonet.com> </div>
<div style="display:none"> Gerrit-Reviewer: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-CC: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 23 Apr 2019 19:15:12 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>