libosmocore/src/gb
Jacob Erlbeck cc6ac4cdc4 ns: Force a defined state when sending NS RESET
Currently the state is assumed to remain the same while the reset
procedure is active. While this works correctly in general, a single
unexpected BLOCK_ACK or UNBLOCK_ACK can change the state but will not
stop the reset procedure. The leads to repeated RESET messages, where
the corresponding RESET_ACK is ignored. This is a stable state which
can only be left by manual intervention or by reception of a RESET
message from the peer.

This commit changes the RESET timeout handler to set the state to
BLOCKED/RESET when sending the new NS RESET message.

Note that this should ensure a clean restart even if the state has been
screwed up. It does not fix the handling of BLOCK_ACK or UNBLOCK_ACK
in abnormal cases.

Addresses:
 gprs_ns.c:349 NSEI=8895 Tx NS RESET (NSVCI=8895, cause=O&M intervention)
 gprs_ns.c:878 NSVCI=8895 Rx NS RESET ACK (NSEI=8895, NSVCI=8895)
 gprs_ns.c:887 NS RESET ACK Discarding unexpected message for NS-VCI 8895 from SGSN NSEI=8895

Ticket: OW#1551
Sponsored-by: On-Waves ehf
2015-12-17 14:16:50 +01:00
..
Makefile.am remove our internal copy of talloc, use system libtalloc 2015-12-05 23:38:18 +01:00
common_vty.c Change license of libosmogb from AGPLv3+ to GPLv2+ 2014-10-26 20:50:19 +01:00
common_vty.h libosmogb: move files to proper location and fix build 2012-06-17 23:05:26 +08:00
gprs_bssgp.c stats: Limit reporting by class id 2015-11-02 15:39:31 +01:00
gprs_bssgp_bss.c bssgp: Fix IMSI buffer size (Coverity) 2015-06-19 20:54:28 +02:00
gprs_bssgp_util.c gprs: Add assertion for msg != NULL to bssgp_msgb_alloc (Coverity) 2015-04-10 08:44:35 +02:00
gprs_bssgp_vty.c bssgp: Fix output of the VTY 'show bssgp stats' command 2015-04-29 15:47:25 +02:00
gprs_ns.c ns: Force a defined state when sending NS RESET 2015-12-17 14:16:50 +01:00
gprs_ns_frgre.c Change license of libosmogb from AGPLv3+ to GPLv2+ 2014-10-26 20:50:19 +01:00
gprs_ns_vty.c ns: Add statistics for some events 2015-10-28 23:51:24 +01:00
libosmogb.map ns: Log when sending fails (Coverity) 2015-04-07 20:10:23 +02:00