osmo-bsc/openbsc/src
Holger Hans Peter Freyther 012a7eec29 gprs_llc: Lookup lle based on the real TLLI
During the GPRS Attach procedure we might have a foreign tlli and
in the RX create a LLME on the fly for this tlli. The GMM GPRS
Attach handling code will then assign a new TLLI and keep the
foreign tlli as the llme->old_tlli.

When the GMM is sending the identity request the msgb_tlli will
point to the foreign tlli. The GPRS LLC code will then try to find
that foreign tlli but due the conversion this will not be found.
Instead a new ad-hoc LLE/LLME will be created on the fly for
each message (this means there are duplicate LLE/LLMEs in the
list).

Make the code more strict and remove the tlli_foreign2local change
from the look-up routine. This will make the GPRS LLC code find
the right LLE/LLME and the N(U) will be handled correctly.

This partially reverts:
  f0901f0067

Addresses:
  <0012> gprs_llc.c:773 LLC RX: unknown TLLI 0xadf11820, creating LLME on the fly
  ...
  <0012> gprs_llc.c:357 LLC TX: unknown TLLI 0xedf11820, creating LLME on the fly

Reproducable:
  Use pcu_emu (gprs attach) and observe with wireshark.
2013-07-31 14:57:21 +02:00
..
gprs gprs_llc: Lookup lle based on the real TLLI 2013-07-31 14:57:21 +02:00
ipaccess ipaccess: The proxy code checked the array but not the element 2013-07-14 09:04:50 +02:00
libbsc expiration: Allow to disable the periodic location updating procedure 2013-07-27 22:02:24 +02:00
libcommon oml: Add a missing break switch for NM_OC_BS11 2013-07-18 12:03:31 +02:00
libctrl ctrlif: Flush/Clear write_queue when closing the control socket 2013-06-24 10:59:40 +02:00
libgb Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00
libmgcp libmgcp: add enum mgcp_type and use it 2013-07-08 16:46:06 +02:00
libmsc expiration: Allow to disable the periodic location updating procedure 2013-07-27 22:02:24 +02:00
libtrau Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00
osmo-bsc misc: Fix compilation warnings 2013-07-27 20:03:08 +02:00
osmo-bsc_mgcp Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00
osmo-bsc_nat nat: The con variable is not assigned at this point 2013-07-05 08:22:03 +02:00
osmo-nitb Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00
utils misc: Fix compilation warnings 2013-07-27 20:03:08 +02:00
Makefile.am Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00