<p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/15307">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15307/2/include/osmocom/sgsn/gprs_sgsn.h">File include/osmocom/sgsn/gprs_sgsn.h:</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/15307/2/include/osmocom/sgsn/gprs_sgsn.h@410">Patch Set #2, Line 410:</a> <code style="font-family:monospace,monospace">INET_ADDRSTRLEN</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">What about '\0'? As far as I can see, other code parts are using INET_ADDRSTRLEN + 1, while in libos […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">"man inet_ntop": "The buffer dst must be at least INET_ADDRSTRLEN bytes long."</p><p style="white-space: pre-wrap; word-wrap: break-word;">/usr/include/netinet/in.h<br>232:#define INET_ADDRSTRLEN 16</p><p style="white-space: pre-wrap; word-wrap: break-word;">xxx.xxx.xxx.xxx = 3*4 + 3 = 15</p><p style="white-space: pre-wrap; word-wrap: break-word;">So \0 is accounted in the define.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15307/2/include/osmocom/sgsn/gprs_sgsn.h@411">Patch Set #2, Line 411:</a> <code style="font-family:monospace,monospace">&(ggc)->remote_addr</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">So this address is always IPv4, right?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">So far yes, remot_addr is an in_addr. We can imporve this later if/when we add ipv6 support.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/15307">change 15307</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-sgsn/+/15307"/><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-Change-Id: I30f46f44af1d0eee324b1a995c1dad2e1315af7c </div>
<div style="display:none"> Gerrit-Change-Number: 15307 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 02 Sep 2019 08:30:50 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>