forked from cellular-infrastructure/osmo-pcu
444bc82081
The TBF object are currently created by using talloc_zero/talloc_free directly from plain functions. Therefore C++ constructors and destructors are not called. So the only initialisation that is done is setting every member to 0. Non POD members do not have their constructors called either, which makes it impossible to use the current LListHead class for real members when the LListHead::m_back member has to be set. This commit changes the TBF allocation functions to call the corresponding C++ constructor after the call to talloc_zero and to register the C++ destructor with the talloc context, so that is is called before talloc_free actually frees the memory. With this change, non-POD members and custom constructors/desctructors can be used with gprs_rlcmac_tbf, gprs_rlcmac_dl_tbf, and gprs_rlcmac_ul_tbf. Note that this change is only a single step of the plan to turn the TBF classes into real C++ classes. Sponsored-by: On-Waves ehf |
||
---|---|---|
contrib | ||
examples | ||
src | ||
tests | ||
.gitignore | ||
COPYING | ||
Makefile.am | ||
README | ||
TODO | ||
configure.ac | ||
git-version-gen | ||
osmoappdesc.py |
README
This is an implementation of Packet Control Unit (PCU) according to TS 04.60 The PCU is part of BSS, so it connects directly to SGSN. == Current limitations == * No PFC support * No fixed allocation support * No extended dynamic allocation support * No unacknowledged mode operation * No PCCCH/PBCCH support * Only single slot assignment on uplink direction * No half-duplex class support (only semi-duplex) * No handover support * No measurement support * No TA loop * No power loop * No CS loop * No EGPRS