<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/14023">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmux: Introduce mgcp_conn_rtp_is_osmux() helper<br><br>This is going to be useful to know if a conn is to use Osmux without<br>looking at implementation details. Currently we have some duplicated<br>information (type, osmux.state, etc.) which we may want to refactor<br>later. This will allow changing implementation details without caring<br>much about rest of code.<br><br>Change-Id: Ib5a239fdbc319bcb16317f5e959d9a724b7a444a<br>---<br>M include/osmocom/mgcp/mgcp_internal.h<br>1 file changed, 5 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/23/14023/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/mgcp/mgcp_internal.h b/include/osmocom/mgcp/mgcp_internal.h</span><br><span>index 82ff6c8..e9d5d2d 100644</span><br><span>--- a/include/osmocom/mgcp/mgcp_internal.h</span><br><span>+++ b/include/osmocom/mgcp/mgcp_internal.h</span><br><span>@@ -312,6 +312,11 @@</span><br><span> </span><br><span> int mgcp_set_ip_tos(int fd, int tos);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Was conn configured to handle Osmux? */</span><br><span style="color: hsl(120, 100%, 40%);">+static inline bool mgcp_conn_rtp_is_osmux(const struct mgcp_conn_rtp *conn) {</span><br><span style="color: hsl(120, 100%, 40%);">+     return conn->type == MGCP_OSMUX_BSC || conn->type == MGCP_OSMUX_BSC_NAT;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> enum {</span><br><span>        MGCP_DEST_NET = 0,</span><br><span>   MGCP_DEST_BTS,</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/14023">change 14023</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/14023"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-mgw </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ib5a239fdbc319bcb16317f5e959d9a724b7a444a </div>
<div style="display:none"> Gerrit-Change-Number: 14023 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>