<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9506">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bsc-nat: bsc_nat_filter_ipa: Improve documentation<br><br>Change-Id: I91b18aeb8bdc2a1b392474318b1df1b4b1fee5a3<br>---<br>M openbsc/src/osmo-bsc_nat/bsc_filter.c<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/06/9506/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/openbsc/src/osmo-bsc_nat/bsc_filter.c b/openbsc/src/osmo-bsc_nat/bsc_filter.c</span><br><span>index 6a9e99f..ddfcdcb 100644</span><br><span>--- a/openbsc/src/osmo-bsc_nat/bsc_filter.c</span><br><span>+++ b/openbsc/src/osmo-bsc_nat/bsc_filter.c</span><br><span>@@ -135,6 +135,8 @@</span><br><span>  return parsed;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Returns 0 if message is whitelisted (has to beforwarded by bsc-nat), 1 if</span><br><span style="color: hsl(120, 100%, 40%);">+/* it's blacklisted (not to be forwarded) */</span><br><span> int bsc_nat_filter_ipa(int dir, struct msgb *msg, struct bsc_nat_parsed *parsed)</span><br><span> {</span><br><span>     int i;</span><br><span>@@ -177,7 +179,7 @@</span><br><span>                 }</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   /* go through the whitelust now */</span><br><span style="color: hsl(120, 100%, 40%);">+    /* go through the whitelist now */</span><br><span>   for (i = 0; i < ARRAY_SIZE(white_list); ++i) {</span><br><span>            /* ignore the rule? */</span><br><span>               if (white_list[i].filter_dir != FILTER_TO_BOTH</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9506">change 9506</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/9506"/><meta itemprop="name" content="View Change"/></div></div>

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