pycrate_osmo.RRCTL: reserve a range for RRCTL protocol extensions

The idea is to group protocol extensions and have one message
type (with 4 variations: Req/Ind/Cnf/Err) per group.  Similar
to the stack and heap allocation model in Linux, new entries
shall be added to the 'RRCTLMsgType' enum as follows:

  * regular messages - from the bottom downward,
  * extension groups - from the end upward.

The mask '11xxxx'B gives us 16 unique messages, one is reserved.
This commit is contained in:
Vadim Yanitskiy 2022-01-31 19:34:21 +06:00 committed by Vadim Yanitskiy
parent 2520b19588
commit 768d6ec079
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ class RRCTLMsgType(enum.IntEnum):
Paging = 0x06
Param = 0x07
SecMode = 0x08
# RRCTL protocol extensions (0b11xxxx) follow
RFU = 0x3f # 0b111111
RRCTLMsgType_dict = { e.value : e.name for e in RRCTLMsgType }