From: Erik Hugne <erik.hugne@xxxxxxxxxxxx>
Named messages are both used for connectionless
messaging and connection setup requests. A SYN
flag is now represented by the previously reserved
bit 18 in word 0 to differentiate named messages from
connection requests.
Signed-off-by: Erik Hugne <erik.hugne@xxxxxxxxxxxx>
---
epan/dissectors/packet-tipc.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/epan/dissectors/packet-tipc.c b/epan/dissectors/packet-tipc.c
index f5d0999..3ea8fec 100644
--- a/epan/dissectors/packet-tipc.c
+++ b/epan/dissectors/packet-tipc.c
@@ -174,9 +174,14 @@ static int hf_tipcv2_dist_scope = -1;
static int hf_tipcv2_name_dist_port_id_node = -1;
static int hf_tipcv2_media_id = -1;
+/* added in minor PV 1 */
+static int hf_tipcv2_syn = -1;
+
+
static gint ett_tipc_msg_fragment = -1;
static gint ett_tipc_msg_fragments = -1;
+
/* Initialize the subtree pointer */
static gint ett_tipc = -1;
static gint ett_tipc_data = -1;
@@ -1641,6 +1646,8 @@ dissect_tipc_v2(tvbuff_t *tipc_tvb, proto_tree *tipc_tree, packet_info *pinfo, i
proto_tree_add_item(tipc_tree, hf_tipc_destdrop, tipc_tvb, offset, 4, ENC_BIG_ENDIAN);
/* Source Droppable: 1 bit */
proto_tree_add_item(tipc_tree, hf_tipcv2_srcdrop, tipc_tvb, offset, 4, ENC_BIG_ENDIAN);
+ /* SYN: 1 bit */
+ proto_tree_add_item(tipc_tree, hf_tipcv2_syn, tipc_tvb, offset, 4, ENC_BIG_ENDIAN);
}
/* Reserved: 1 bits */
@@ -2552,6 +2559,11 @@ proto_register_tipc(void)
FT_UINT32, BASE_DEC, NULL, 0x00040000,
"Destination Droppable Bit", HFILL }
},
+ { &hf_tipcv2_syn,
+ { "Connection request (SYN)", "tipc.syn",
+ FT_UINT32, BASE_DEC, NULL, 0x00020000,
+ "Destination Droppable Bit", HFILL }
+ },
{ &hf_tipcv2_data_msg_type,
{ "Message type", "tipc.data_type",
FT_UINT32, BASE_DEC, VALS(tipc_data_msg_type_values), 0xe0000000,
--
1.7.9.5