aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc_nat/bsc_nat.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-07-04 12:11:51 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-07-04 12:30:30 +0200
commit3504f293f100f793b935933381130553b883dd0d (patch)
treebb9ffc3888893373764b741ac61abc9ebfbbccca /openbsc/src/osmo-bsc_nat/bsc_nat.c
parent5f267a64b985341306385936bc576a9303d05560 (diff)
nat: Add VTY cmd paging-bss-forward to nat node
This command controls forward/drop of BSS paging messages from MSC to all BSCs connected to BSC-NAT. In situations in which MS don't generally roam from one BSC to another under the BSC-NAT, it may be beneficial (bandwidth wise) to drop these global paging commands, which are usually issued by the MSC if the location of the MS isn't known and LAC paging has failed. Change-Id: I737774543e0a8734d79b072e66e3c09e82b001d3
Diffstat (limited to 'openbsc/src/osmo-bsc_nat/bsc_nat.c')
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_nat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c
index 2c6c6443d..05597588f 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c
@@ -620,6 +620,10 @@ static void bsc_nat_handle_paging(struct bsc_nat *nat, struct msgb *msg)
}
if (discrim == CELL_IDENT_BSS) {
+ if (!nat->paging_bss_forward) {
+ LOGP(DNAT, LOGL_DEBUG, "Dropping BSS paging based on current config\n");
+ return;
+ }
/* All cells on the BSS are identified. */
llist_for_each_entry(bsc, &nat->bsc_connections, list_entry) {
if (!bsc->authenticated)