aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mac-lte.c
diff options
context:
space:
mode:
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2011-11-21 16:18:33 +0000
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2011-11-21 16:18:33 +0000
commit7e6bba5f522f18152d5294a6b71fe86f7ab9d9be (patch)
treea5bd2ae6488f699fc8198e2449fe310f3c543b86 /epan/dissectors/packet-mac-lte.c
parente8766df56005f16811a7e30e6726cc28f8e5e341 (diff)
Add the system frame number (SFN) to the context fields logged along with LTE MAC frames.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39971 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-mac-lte.c')
-rw-r--r--epan/dissectors/packet-mac-lte.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/epan/dissectors/packet-mac-lte.c b/epan/dissectors/packet-mac-lte.c
index bc04f31119..542d0da9e2 100644
--- a/epan/dissectors/packet-mac-lte.c
+++ b/epan/dissectors/packet-mac-lte.c
@@ -41,10 +41,6 @@
*/
-/* TODO:
- - ??
-*/
-
/* Initialize the protocol and registered fields. */
int proto_mac_lte = -1;
@@ -57,6 +53,7 @@ static int hf_mac_lte_context_direction = -1;
static int hf_mac_lte_context_rnti = -1;
static int hf_mac_lte_context_rnti_type = -1;
static int hf_mac_lte_context_ueid = -1;
+static int hf_mac_lte_context_sysframe_number = -1;
static int hf_mac_lte_context_subframe_number = -1;
static int hf_mac_lte_context_grant_subframe_number = -1;
static int hf_mac_lte_context_predefined_frame = -1;
@@ -3359,6 +3356,9 @@ void dissect_mac_lte(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
return;
}
+ ti = proto_tree_add_uint(context_tree, hf_mac_lte_context_sysframe_number,
+ tvb, 0, 0, p_mac_lte_info->sysframeNumber);
+ PROTO_ITEM_SET_GENERATED(ti);
ti = proto_tree_add_uint(context_tree, hf_mac_lte_context_subframe_number,
tvb, 0, 0, p_mac_lte_info->subframeNumber);
@@ -3701,6 +3701,12 @@ void proto_register_mac_lte(void)
"User Equipment Identifier associated with message", HFILL
}
},
+ { &hf_mac_lte_context_sysframe_number,
+ { "System Frame Number",
+ "mac-lte.sfn", FT_UINT16, BASE_DEC, 0, 0x0,
+ "System Frame Number associated with message", HFILL
+ }
+ },
{ &hf_mac_lte_context_subframe_number,
{ "Subframe",
"mac-lte.subframe", FT_UINT16, BASE_DEC, 0, 0x0,