[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:
parent
d7c02ad9df
commit
f69c059a0e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue