Change in osmo-sgsn[master]: gbproxy: Implement paging to entire BSS area

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Nov 24 10:33:31 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/21311 )


Change subject: gbproxy: Implement paging to entire BSS area
......................................................................

gbproxy: Implement paging to entire BSS area

When we receive a PAGING for PS or CS with destination to the entire
BSS area, we need to iterate over all peers and send one copy of the
paging to each of them.

Change-Id: Iecf244238500a354d5a5b40c76f0c0bb8f8c2511
---
M src/gbproxy/gb_proxy.c
1 file changed, 13 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/11/21311/1

diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c
index 6c56233..39b9ffd 100644
--- a/src/gbproxy/gb_proxy.c
+++ b/src/gbproxy/gb_proxy.c
@@ -1136,12 +1136,23 @@
 				n_peers++;
 			}
 		}
-	} else
+	} else if (TLVP_PRESENT(tp, BSSGP_IE_BSS_AREA_ID)) {
+		/* iterate over all peers and dispatch the paging to each matching one */
+		llist_for_each_entry(peer, &cfg->bts_peers, list) {
+			LOGPC(DGPRS, LOGL_INFO, "broadcasting to peer BVCI=%u\n", peer->bvci);
+			gbprox_relay2peer(msg, peer, ns_bvci);
+			n_peers++;
+		}
+	} else {
 		LOGPC(DGPRS, LOGL_INFO, "\n");
+		LOGP(DGPRS, LOGL_ERROR, "NSEI=%u(SGSN) BSSGP PAGING: "
+			"unable to route, missing IE\n", nsei);
+		rate_ctr_inc(&cfg->ctrg->ctr[errctr]);
+	}
 
 	if (n_peers == 0) {
 		LOGP(DGPRS, LOGL_ERROR, "NSEI=%u(SGSN) BSSGP PAGING: "
-			"unable to route, missing IE\n", nsei);
+			"unable to route, no destination found\n", nsei);
 		rate_ctr_inc(&cfg->ctrg->ctr[errctr]);
 		return -EINVAL;
 	}

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/21311
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: Iecf244238500a354d5a5b40c76f0c0bb8f8c2511
Gerrit-Change-Number: 21311
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201124/4ffeb484/attachment.htm>


More information about the gerrit-log mailing list