[gprs] gb_proxy: Fix detecting the SGSN-facing ns-vc by its NSEI

make sure we mark the NS connection as 'SGSN-facing' if the NSEI matches
This commit is contained in:
Harald Welte 2010-05-11 18:29:44 +02:00
parent d7c02ad9df
commit f69c059a0e
1 changed files with 8 additions and 0 deletions

View File

@ -458,6 +458,14 @@ int gbprox_signal(unsigned int subsys, unsigned int signal,
if (subsys != SS_NS)
return 0;
if (signal == S_NS_RESET && nsvc->nsei == gbcfg.nsip_sgsn_nsei) {
/* We have received a NS-RESET from the NSEI and NSVC
* of the SGSN. This might happen with SGSN that start
* their own NS-RESET procedure without waiting for our
* NS-RESET */
nsvc->remote_end_is_sgsn = 1;
}
/* We currently only care about signals from the SGSN */
if (!nsvc->remote_end_is_sgsn)
return 0;