osmo-msc/openbsc/src
Jacob Erlbeck 81ffb740f7 sgsn: Remove inactive LLME/MM after inactivity timeout
Currently old LLMEs and MM contexts that haven't been explicitly
detached or cancelled are not removed until another request with the
same IMSI is made. These stale entries may accumulate over time and
severely compromise the operation of the SGSN.

This patch implements age based LLME expiry, when the maximum age has
been reached, the corresponding MM context is cancelled. If such an MM
context doesn't exist, the LLME is unassigned directly.

The implementation works as follows.
 - llme->age_timestamp is reset on each received PTP LLC message
 - sgsn_llme_check_cb is invoked periodically (each 30s)
 - sgsn_llme_check_cb sets the age_timestamp to the current time if
   it has been reset
 - sgsn_llme_check_cb computes the age and expires the LLME if
   it exceeds gprs_max_time_to_idle()

Ticket: OW#1364
Sponsored-by: On-Waves ehf

[hfreyther: Fix typo in comment LMME -> LLME]
2015-01-26 08:51:50 +01:00
..
gprs sgsn: Remove inactive LLME/MM after inactivity timeout 2015-01-26 08:51:50 +01:00
ipaccess adopt recent IPA related symbol rename 2014-08-20 23:47:56 +02:00
libbsc RSL: Change "... is back in operation" to an INFO level message 2015-01-05 14:05:32 +01:00
libcommon Revert "debug.c: use new libosmocore features to print and save log filter" 2015-01-05 14:15:16 +01:00
libgb Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00
libmgcp mgcp: Honor the rtp IP_TOS settings for Osmux 2015-01-21 11:43:03 +01:00
libmsc SMS: Attempting to send SMS is not a NOTICEable event 2015-01-05 14:05:32 +01:00
libtrau rtp_proxy: Remove dead code 2015-01-01 12:20:21 +01:00
osmo-bsc logging: Only compare the subscr address 2015-01-02 11:43:06 +01:00
osmo-bsc_mgcp logging: Only compare the subscr address 2015-01-02 11:43:06 +01:00
osmo-bsc_nat osmux: Initialize the socket only once 2015-01-21 16:56:53 +01:00
osmo-nitb Fix most compiler warnings with gcc-4.9.2 2015-01-01 12:32:03 +01:00
utils meas: Unbreak the build once more 2015-01-10 09:54:30 +01:00
Makefile.am move libctrl from openbsc to libosmoctrl (libosmocore.git) 2014-08-21 15:34:28 +02:00