<p><a href="https://gerrit.osmocom.org/13242">View Change</a></p><p>6 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/13242/1//COMMIT_MSG">Commit Message:</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/13242/1//COMMIT_MSG@10">Patch Set #1, Line 10:</a> <code style="font-family:monospace,monospace">Signed-off-by: Sylvain Munaut <tnt@246tNt.com></code></p><p style="white-space: pre-wrap; word-wrap: break-word;">No signed-off-by in osmocom repos.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/13242/1/src/libmsc/msc_vty.c">File src/libmsc/msc_vty.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/13242/1/src/libmsc/msc_vty.c@1072">Patch Set #1, Line 1072:</a> <code style="font-family:monospace,monospace">   uint16_t port = 0;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">no initialization needed here afaiu.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/13242/1/src/libmsc/silent_call.c">File src/libmsc/silent_call.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/13242/1/src/libmsc/silent_call.c@40">Patch Set #1, Line 40:</a> <code style="font-family:monospace,monospace">      char traffic_ip[INET_ADDRSTRLEN];</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">worth using INET6_ADDRSTRLEN here in case we want to support ipv6? Not sure if it makes sense in this context.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13242/1/src/libmsc/silent_call.c@91">Patch Set #1, Line 91:</a> <code style="font-family:monospace,monospace">             osmo_timer_schedule(&scd->timer, 0, 0);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Why not calling timer_cb directly  around line 120? You are immediatelly firing this cb, and only once.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13242/1/src/libmsc/silent_call.c@99">Patch Set #1, Line 99:</a> <code style="font-family:monospace,monospace">                       } rtp_addr;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Is this conversion from sockaddr_in to sockaddr_storage through union valid? Never seen it before.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13242/1/src/libmsc/silent_call.c@120">Patch Set #1, Line 120:</a> <code style="font-family:monospace,monospace">             break;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Would be clearer using a return 0 here, otherwise it's confusing scheduling scd timer then having a talloc_free(scd) after the switch block.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/13242">change 13242</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/13242"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I82645708dd27864cf33ea9cc993ead0983415602 </div>
<div style="display:none"> Gerrit-Change-Number: 13242 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: tnt <tnt@246tNt.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-CC: Max <msuraev@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 13 Mar 2019 19:21:01 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>