On 07/14/2015 01:32 PM, Holger Hans Peter Freyther wrote:
From: Holger Hans Peter Freyther
<holger(a)moiji-mobile.com>
In case foreign simcards are used we can not do authentication
and ciphering. In case a TMSI is re-used too early and we do
page using TMSI we can't know which of the two MS is responding
to us. We could change the "secure channel" routine to ask for
the IMSI and only then stop the paging.
As we don't have ciphering there is not much use in using the
TMSI. Add a mode "no assign-tmsi" that will not assign the TMSI
during LU. Now CM Service Request and Paging Response will
work using the IMSI. There can't be a clash with that.
[...]
static int config_write_nitb(struct vty *vty)
{
struct gsm_network *gsmnet = gsmnet_from_vty(vty);
vty_out(vty, "nitb%s", VTY_NEWLINE);
vty_out(vty, " %ssubscriber-create-on-demand%s",
gsmnet->create_subscriber ? "" : "no ", VTY_NEWLINE);
+ vty_out(vty, " %suse-tmsi%s",
+ gsmnet->avoid_tmsi ? "no" : "", VTY_NEWLINE);
return CMD_SUCCESS;
}
This part is broken. Whenever you try to set it it will put
"use-tmsi"
instead of "assign-tmsi". The moment you save it and restart, it barfs
on the "use-tmsi" line. If you put a no in front, it will be saved as
"nouse-tmsi". I fixed both problems with the attached patch.
Cheers
Ciaby