path: root/src/hnbap/IMSIDS41.c
diff options
authorStefan Sperling <ssperling@sysmocom.de>2018-02-19 17:02:12 +0100
committerStefan Sperling <ssperling@sysmocom.de>2018-02-22 11:43:45 +0100
commitcc6ed397a63df49316dde1fd5e2385ca83f51aaf (patch)
treedc524f200ef5bd117db0a106495d2305404f5a56 /src/hnbap/IMSIDS41.c
parente1c01a02624b12a5c6396d47902482fa97217b23 (diff)
ensure unique CellIDs in HNB-GW
If we receive a HNB-REGISTER-REQ with a cell ID which is already used by another registered NNB, log an error and send HNB-REGISTER-REJECT. Tested manually by running two 'hnb-test' programs concurrently (they need to listen on different telnet ports; this port is hard-coded so I compiled two different hnb-test binaries). Then I issued the 'hnbap hnb register' command on the telnet interface of each, and verified that the correct action is logged by osmo-hnbgw. Both hnb-test programs can connect, but only one of them can register at a time. Killing a registered 'hnb-test' program terminates its connection and allows the previously rejected one to register. The new rejection log message looks like this: hnbgw_hnbap.c:429 rejecting HNB-REGISTER-REQ with duplicate cell identity MCC=901,MNC=99,LAC=49406,RAC=66,SAC=43947,CID=182250155 from (r=<->l= Change-Id: Iffd441eb2b6b75dfbe001b49b01bea015ca6e11c Related: OS#2789
Diffstat (limited to 'src/hnbap/IMSIDS41.c')
0 files changed, 0 insertions, 0 deletions