aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-06-08 12:08:23 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-06-08 12:29:28 +0200
commit50bed81e50085bf474c392e51c03815c18a85774 (patch)
treee7f27bf8dd49a1b72cc9728cfdc47b9f16fb5404
parenta18a7a96c962b6e5c17dde6919fa46b2b2eb99b2 (diff)
bsc-nat: bsc_nat_filter_ipa: Improve documentation
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_filter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_filter.c b/openbsc/src/osmo-bsc_nat/bsc_filter.c
index 6a9e99fb8..ddfcdcbee 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_filter.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_filter.c
@@ -135,6 +135,8 @@ struct bsc_nat_parsed *bsc_nat_parse(struct msgb *msg)
return parsed;
}
+/* Returns 0 if message is whitelisted (has to beforwarded by bsc-nat), 1 if
+/* it's blacklisted (not to be forwarded) */
int bsc_nat_filter_ipa(int dir, struct msgb *msg, struct bsc_nat_parsed *parsed)
{
int i;
@@ -177,7 +179,7 @@ int bsc_nat_filter_ipa(int dir, struct msgb *msg, struct bsc_nat_parsed *parsed)
}
}
- /* go through the whitelust now */
+ /* go through the whitelist now */
for (i = 0; i < ARRAY_SIZE(white_list); ++i) {
/* ignore the rule? */
if (white_list[i].filter_dir != FILTER_TO_BOTH