osmo-pcu/src
Pau Espin bd1f01fd27 Fix mess with struct tbf types passed to LOGPTBF macro
It is quite common in all osmo-pcu code to have to convert between
parent class "tbf" and children "dl_tbf"/"ul_tbf", or other way around.
This commit adds new helper static inline functions to cast between
those while doing type checks.
This is used by new LOGPTBFDL and LOGPTBFUL macros to now expect the
proper subclass and cast securely inside the macro itself, hence sparing
all code calling those macros to have to cast explicitly the pointer to
the parent "tbf" class.

Change-Id: I7e4489ad4b93c9c8442213947e53c10b61fdc5e9
2022-10-28 15:14:44 +02:00
..
osmo-bts-litecell15 direct_phy: Fix condition dropping rx DATA.ind payload in in 2021-03-18 14:03:35 +01:00
osmo-bts-oc2g direct_phy: Fix condition dropping rx DATA.ind payload in in 2021-03-18 14:03:35 +01:00
osmo-bts-sysmo cosmetic: sysmo: Drop unneded comment line 2021-08-31 14:53:10 +02:00
.gitignore Adding .gitignore to source directory 2012-06-27 17:45:15 +02:00
Makefile.am {src,tests}/Makefile.am: $(COMMON_LA) is not definied 2022-08-09 16:05:35 +00:00
bts.cpp bts: bts_snd_dl_ass(): use GSM_TDMA_FN_SUM() macro 2022-10-26 20:39:24 +07:00
bts.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
bts_pch_timer.c bts_pch_timer: Avoid resend Paging Request over PCUIF if T3113 is armed 2021-11-08 18:54:12 +00:00
bts_pch_timer.h bts_pch_timer: Avoid resend Paging Request over PCUIF if T3113 is armed 2021-11-08 18:54:12 +00:00
coding_scheme.c treewide: remove FSF address 2021-12-14 12:19:13 +01:00
coding_scheme.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
csn1.c treewide: remove FSF address 2021-12-14 12:19:13 +01:00
csn1.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
csn1_dec.c treewide: remove FSF address 2021-12-14 12:19:13 +01:00
csn1_enc.c treewide: remove FSF address 2021-12-14 12:19:13 +01:00
cxx_linuxlist.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
decoding.cpp treewide: remove FSF address 2021-12-14 12:19:13 +01:00
decoding.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
egprs_rlc_compression.cpp Clean false positive in newer GCC version checking guard of else clause 2021-05-19 11:58:57 +02:00
egprs_rlc_compression.h egprs_rlc_compression: fix white spaces 2019-06-17 02:04:09 +02:00
encoding.cpp Use GSM48_MT_RR_IMM_ASS instead of hardcoded 0x3f value 2022-10-16 22:13:48 +02:00
encoding.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gprs_bssgp_pcu.c pdch is_enabled: Use API getter instead of accessing field directly 2022-04-05 10:43:39 +00:00
gprs_bssgp_pcu.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gprs_bssgp_rim.c treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gprs_bssgp_rim.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gprs_codel.c treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gprs_codel.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gprs_debug.cpp treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gprs_debug.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gprs_ms.c Fix mess with struct tbf types passed to LOGPTBF macro 2022-10-28 15:14:44 +02:00
gprs_ms.h Move LLC enqueuing and retransmit timer to MS object 2022-10-27 13:52:59 +02:00
gprs_ms_storage.cpp gprs_ms_stoage: Release all MS in ms_storage cleanup() 2022-05-09 17:47:34 +02:00
gprs_ms_storage.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gprs_pcu.c {ms,gprs_pcu}_talloc_destructor(): call osmo_timer_del() unconditionally 2022-08-08 20:22:41 +00:00
gprs_pcu.h bts: Add counter availablePDCHAllocatedTime 2021-11-15 11:40:07 +01:00
gprs_rlcmac.cpp treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gprs_rlcmac.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gprs_rlcmac_meas.cpp treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gprs_rlcmac_sched.cpp Make linter happy: fix coding style issues 2022-10-04 03:06:55 +07:00
gprs_rlcmac_ts_alloc.cpp treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gsm_rlcmac.c treewide: remove FSF address 2021-12-14 12:19:13 +01:00
gsm_rlcmac.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
llc.c llc_queue: Refactor to handle codel_state per prio queue internally 2022-04-05 11:16:17 +00:00
llc.h llc_queue: Refactor to handle codel_state per prio queue internally 2022-04-05 11:16:17 +00:00
mslot_class.c treewide: remove FSF address 2021-12-14 12:19:13 +01:00
mslot_class.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
nacc_fsm.c Fix mess with struct tbf types passed to LOGPTBF macro 2022-10-28 15:14:44 +02:00
nacc_fsm.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
neigh_cache.c neigh_cache: fix: properly convert from nanoseconds to microseconds 2022-07-20 00:12:46 +07:00
neigh_cache.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
osmobts_sock.c treewide: remove FSF address 2021-12-14 12:19:13 +01:00
pcu_l1_if.cpp pcuif_proto: cosmetic: rename gsm_pcu_if_info_ts to gsm_pcu_if_info_trx_ts 2022-10-27 15:28:51 +02:00
pcu_l1_if.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
pcu_main.cpp treewide: remove FSF address 2021-12-14 12:19:13 +01:00
pcu_utils.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
pcu_vty.c vty: Introduce command 'gsmtap-remote-host' and 'gsmtap-category enable-all' 2021-11-12 17:01:28 +01:00
pcu_vty.h vty: add attributes to VTY commands indicating when they apply 2020-10-08 07:16:31 +00:00
pcu_vty_functions.cpp Call ms_store->get_ms() with GSM_RESERVED_TMSI instead of 0 2022-10-21 14:31:05 +02:00
pcu_vty_functions.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
pdch.cpp bts: Add counter availablePDCHAllocatedTime 2021-11-15 11:40:07 +01:00
pdch.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
pdch_ul_controller.c Make linter happy: fix coding style issues 2022-10-04 03:06:55 +07:00
pdch_ul_controller.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
rlc.cpp treewide: remove FSF address 2021-12-14 12:19:13 +01:00
rlc.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
sba.c treewide: remove FSF address 2021-12-14 12:19:13 +01:00
sba.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
tbf.cpp Fix mess with struct tbf types passed to LOGPTBF macro 2022-10-28 15:14:44 +02:00
tbf.h Move LLC enqueuing and retransmit timer to MS object 2022-10-27 13:52:59 +02:00
tbf_dl.cpp tbf_dl: Make dl_tbf_alloc API available in C code 2022-10-28 13:05:04 +00:00
tbf_dl.h Fix mess with struct tbf types passed to LOGPTBF macro 2022-10-28 15:14:44 +02:00
tbf_dl_ass_fsm.c Fix mess with struct tbf types passed to LOGPTBF macro 2022-10-28 15:14:44 +02:00
tbf_dl_ass_fsm.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
tbf_fsm.c treewide: remove FSF address 2021-12-14 12:19:13 +01:00
tbf_fsm.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
tbf_ul.cpp llc: Convert to C 2022-03-31 19:42:15 +02:00
tbf_ul.h Fix mess with struct tbf types passed to LOGPTBF macro 2022-10-28 15:14:44 +02:00
tbf_ul_ack_fsm.c Fix mess with struct tbf types passed to LOGPTBF macro 2022-10-28 15:14:44 +02:00
tbf_ul_ack_fsm.h tbf_ul_ack_fsm: Pass ul_tbf instead of generic tbf 2022-10-27 13:53:03 +02:00
tbf_ul_ass_fsm.c Fix mess with struct tbf types passed to LOGPTBF macro 2022-10-28 15:14:44 +02:00
tbf_ul_ass_fsm.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00
wireshark_compat.h treewide: remove FSF address 2021-12-14 12:19:13 +01:00