diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2017-10-17 15:33:48 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-10-24 10:50:17 +0000 |
commit | 4c9ec22546264454662895123ff2b1310b1081ad (patch) | |
tree | 61d482a83787aa66034a11c1cba56598b1759789 | |
parent | a4f4822784c35d89d8dfa644f0546f6510f889db (diff) |
gb: allow only packets from a specific SGSN
Each PCU has a specifically assigned SGSN, which may send
packets to the PCU. Ensure that no one else except the
configured SGSN can send packets to the PCU.
Change-Id: Ic2009039fab7cf0fba916556239747ae5b410366
Depends: libosmocore Ifeb201d9006eec275a46708007ff342cdfc14e45
-rw-r--r-- | src/gprs_bssgp_pcu.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp index 9c78ecf2..7b78e2f5 100644 --- a/src/gprs_bssgp_pcu.cpp +++ b/src/gprs_bssgp_pcu.cpp @@ -896,6 +896,8 @@ struct gprs_bssgp_pcu *gprs_bssgp_create_and_connect(struct gprs_rlcmac_bts *bts return NULL; } gprs_ns_vty_init(bssgp_nsi); + bssgp_nsi->nsip.remote_port = sgsn_port; + bssgp_nsi->nsip.remote_ip = sgsn_ip; bssgp_nsi->nsip.local_port = local_port; rc = gprs_ns_nsip_listen(bssgp_nsi); if (rc < 0) { |