Where to store the stack "state"

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/tetra@lists.osmocom.org/.

Sylvain Munaut 246tnt at gmail.com
Mon Apr 18 12:19:18 UTC 2011


Hi,

To add support for traffic extraction, it's necessary to introduce
some nothing of "state" in the MAC layer (since the DL_USAGE must be
'remembered' to know how to interpret further data) ...

Any suggestion how to achieve that as cleanly as possible ?

Having a global doesn't sound that nice, but passing a struct around either.
Maybe introduce a pointer to a 'tetra_state' in the primitive struct ?


Cheers,

    Sylvain




More information about the tetra mailing list