aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/bsc_msc.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-06-08 16:28:15 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-07-01 08:16:40 +0200
commit9705671025eba34b70d73e9d4e78813e4f2d31da (patch)
tree8bd643348c44f9d19f6e719b6197f33f121aa9a5 /openbsc/src/libbsc/bsc_msc.c
parentfce6971fe3673e8269414188fda0ce3b28b5cf03 (diff)
nat: Send 16 bytes of rand to the BSC and remember it
Generate 16 byte of random data to be used for A3A8 by the BSC in the response. We can't know which BSC it is at this point and I don't want to send another message once the token has been received so always send the data with an undefined code. The old BSCs don't parse the message and will happily ignore the RAND. /dev/urandom can give short reads on Linux so loop around it until the bytes have been read from the kernel.
Diffstat (limited to 'openbsc/src/libbsc/bsc_msc.c')
0 files changed, 0 insertions, 0 deletions