diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2021-01-27 20:44:41 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-28 13:54:32 +0100 |
commit | 2e1a3a982a048765ffe29437ecb85e93cd13330b (patch) | |
tree | 4a1e8fcb2b3382d39376d19b02477447a5f3a468 /src/gb/gprs_ns2.c | |
parent | da1bf8e835ea69210b7e43f1dd1b15be0e07997a (diff) |
gprs_ns2: remove api call gprs_ns2_dynamic_create_nse
The call was only introduced as workaround for the first implementation
of vty. There is no need for this anymore. The configuration can
just add "accept-ipaccess" to the bind to allow creation of dynamic
ipaccess NSE.
Change-Id: Ie924ead6da17657f3da334068c8ada82c8845495
Diffstat (limited to 'src/gb/gprs_ns2.c')
-rw-r--r-- | src/gb/gprs_ns2.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c index 7e273fb6..be355134 100644 --- a/src/gb/gprs_ns2.c +++ b/src/gb/gprs_ns2.c @@ -874,7 +874,7 @@ enum ns2_cs ns2_create_vc(struct gprs_ns2_vc_bind *bind, if (bind->ll != GPRS_NS2_LL_UDP || dialect != GPRS_NS2_DIALECT_IPACCESS) return NS2_CS_SKIPPED; - if (!bind->nsi->create_nse || !bind->accept_ipaccess) + if (!bind->accept_ipaccess) return NS2_CS_SKIPPED; nse = gprs_ns2_create_nse(bind->nsi, nsei, bind->ll, dialect); @@ -1208,18 +1208,6 @@ void gprs_ns2_free(struct gprs_ns2_inst *nsi) talloc_free(nsi); } -/*! Configure whether a NS Instance should dynamically create NSEs based on incoming traffic. - * \param nsi the instance to modify - * \param create_nse if NSE can be created on receiving package. SGSN set this. - * \return 0 on success; negative on error - */ -int gprs_ns2_dynamic_create_nse(struct gprs_ns2_inst *nsi, bool create_nse) -{ - nsi->create_nse = create_nse; - - return 0; -} - /*! Start the NS-ALIVE FSM in all NS-VCs of given NSE. * \param[in] nse NS Entity in whihc to start NS-ALIVE FSMs */ void gprs_ns2_start_alive_all_nsvcs(struct gprs_ns2_nse *nse) |