From 4011e728d22a9affbe41fb2bfc8e69c14bd706ab Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 5 Jul 2016 15:19:12 +0200 Subject: SGSN: use unique AUTH REQ reference MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The A&C reference number specified in 3GPP TS 24.008 ยง 10.5.5.19 identifies particular request sent by network with the related response sent by MS. The value transparently copied from request to response by MS: the spec do not specify what exactly should be in there so we use rand() to decrease chance for collisions. Note: variable named 'rand' clashes with standard function rand() so it was renamed. Change-Id: I3638821a9b4a0532b28dbbb50faa30c4082579f6 Related: OS#1582 --- openbsc/src/gprs/sgsn_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsc/src/gprs/sgsn_main.c') diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c index c852840db..44751363c 100644 --- a/openbsc/src/gprs/sgsn_main.c +++ b/openbsc/src/gprs/sgsn_main.c @@ -21,6 +21,7 @@ #include #include +#include #include #include #include @@ -306,6 +307,7 @@ int main(int argc, char **argv) struct gsm_network dummy_network; int rc; + srand(time(NULL)); tall_bsc_ctx = talloc_named_const(NULL, 0, "osmo_sgsn"); tall_msgb_ctx = talloc_named_const(tall_bsc_ctx, 0, "msgb"); -- cgit v1.2.3