From d12b0fdf51b76f906d5ee5f5b7f266fe791eb800 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 15 Dec 2009 21:36:05 +0100 Subject: introduce cache of 6 last recently received measurement reports for each lchan --- openbsc/include/openbsc/gsm_data.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbsc/include/openbsc/gsm_data.h') diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index 012481a5f..b21f8aa05 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -194,6 +194,10 @@ struct gsm_lchan { /* use count. how many users use this channel */ unsigned int use_count; + /* cache of last measurement reports on this lchan */ + struct gsm_meas_rep meas_rep[6]; + int meas_rep_idx; + struct { u_int32_t bound_ip; u_int16_t bound_port; @@ -564,4 +568,6 @@ const char *rrlp_mode_name(enum rrlp_mode mode); void gsm_trx_lock_rf(struct gsm_bts_trx *trx, int locked); +struct gsm_meas_rep *lchan_next_meas_rep(struct gsm_lchan *lchan); + #endif -- cgit v1.2.3