<p style="white-space: pre-wrap; word-wrap: break-word;">Some stuff from cbsp.c and gsm48049.c looks duplicated, or at least they look quite similar.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/14360">View Change</a></p><p>7 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/14360/5/include/osmocom/gsm/cbsp.h">File include/osmocom/gsm/cbsp.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/14360/5/include/osmocom/gsm/cbsp.h@22">Patch Set #5, Line 22:</a> <code style="font-family:monospace,monospace">       struct llist_head list;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Could add /* osmo_cbsp_cell_ent */</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/14360/5/include/osmocom/gsm/cbsp.h@45">Patch Set #5, Line 45:</a> <code style="font-family:monospace,monospace"> struct llist_head list;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Could add /* osmo_cbsp_loading_ent */</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/14360/5/include/osmocom/gsm/protocol/gsm_48_049.h">File include/osmocom/gsm/protocol/gsm_48_049.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/14360/5/include/osmocom/gsm/protocol/gsm_48_049.h@16">Patch Set #5, Line 16:</a> <code style="font-family:monospace,monospace">#define CBSP_TCP_PORT 48049</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Missing: /* 5.2 TCP/IP */</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/14360/5/include/osmocom/gsm/protocol/gsm_48_049.h@116">Patch Set #5, Line 116:</a> <code style="font-family:monospace,monospace">/* not explicitly specified, but every message starts with those mandatory eleemnts */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">typo: eleemnts</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/14360/5/src/gsm/cbsp.c">File src/gsm/cbsp.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/14360/5/src/gsm/cbsp.c@39">Patch Set #5, Line 39:</a> <code style="font-family:monospace,monospace">        return msgb_alloc_headroom_c(ctx, 65535, 16, name);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Wow, really, that long?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/14360/5/src/gsm/cbsp.c@1303">Patch Set #5, Line 1303:</a> <code style="font-family:monospace,monospace">#ifdef HAVE_SYS_SOCKET_H</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">so if sys/socket.h is not available, then API osmo_cbsp_recv_buffered() is not present? sys/socket.h is only needed for recv(), isn't it?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/14360/5/src/gsm/gsm48049.c">File src/gsm/gsm48049.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/14360/5/src/gsm/gsm48049.c@211">Patch Set #5, Line 211:</a> <code style="font-family:monospace,monospace"></code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This looks wrong, code directly on the file, not inside any function?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/14360">change 14360</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/+/14360"/><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: I5b7ae08f67e415967b60ac4b824db9e22ca00935 </div>
<div style="display:none"> Gerrit-Change-Number: 14360 </div>
<div style="display:none"> Gerrit-PatchSet: 5 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 19 Jul 2019 10:21:59 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>