aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/Makefile.am
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-07-12 05:00:55 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-07-28 12:18:23 +0200
commita07b6674531d201feeb628f0a51356eac9f11f0f (patch)
treeb30eb7a1d413c588e70fd32ce6dabac9832fdfd0 /src/osmo-bsc/Makefile.am
parent6d568ed7ff8f7ccc8b751671ff8a4a8793ebcac0 (diff)
vty: 'handover any': pick more random chans, use lchan_select_by_type()
The 'handover any' VTY command is only useful for testing. It is even more useful if it doesn't always pick the first used lchan but produces more random handovers. The algorithm takes a random number as input, iterates over used lchans once, and if the random number is larger, takes modulo of the nr of used lchans counted. A second iteration will then produce a match. Instead of figuring out the lchan type logic in bsc_vty.c, just use lchan_select_by_type(); Change-Id: I50b70e02d665b967e401db65581e110bc83101e7
Diffstat (limited to 'src/osmo-bsc/Makefile.am')
0 files changed, 0 insertions, 0 deletions