gsm_rlcmac: add dissection of NAS container
Port from wireshark.git 575e4df4aa3392ffd09ca372859573f09f0a5c57
Ported-by: Pau Espin Pedrol <pespin@sysmocom.de>
Change-Id: I2a05a057b6f441364502a96f9f34872c7e251a36
diff --git a/src/gsm_rlcmac.h b/src/gsm_rlcmac.h
index b05483c..461fda3 100644
--- a/src/gsm_rlcmac.h
+++ b/src/gsm_rlcmac.h
@@ -415,7 +415,6 @@
#define MAX_ALLOCATION_BITMAP_LENGTH 128 /* max length of Fixed Allocation bitmap in BITS (2^7) */
#define MAX_VAR_LENGTH_BITMAP_LENGTH 176 /* max length ever possible for variable length fixed allocation bitmap */
#define MAX_RRC_CONTAINER_LENGTH 255
-#define MAX_NAS_CONTAINER_LENGTH 127
typedef struct
@@ -4693,8 +4692,14 @@
typedef struct
{
guint8 NAS_ContainerLength;
- guint8 NAS_Container[MAX_NAS_CONTAINER_LENGTH];
-} NAS_Container_t;
+ guint8 Spare_1a;
+ guint8 Spare_1b;
+ guint8 Spare_1c;
+ guint8 Old_XID;
+ guint8 Spare_1e;
+ guint8 Type_of_Ciphering_Algo;
+ guint32 IOV_UI_value;
+} NAS_Container_For_PS_HO_t;
typedef struct
{
@@ -4740,7 +4745,7 @@
{
PHO_RadioResources_t PHO_RadioResources;
guint8 Exist_NAS_Container;
- NAS_Container_t NAS_Container;
+ NAS_Container_For_PS_HO_t NAS_Container;
} PS_HandoverTo_A_GB_ModePayload_t;
typedef struct