Wireshark mailing list archives
[PATCH 2/3] tipc: SYN flag in named messages
From: <erik.hugne () ericsson com>
Date: Mon, 7 Oct 2013 10:09:51 +0200
From: Erik Hugne <erik.hugne () ericsson com> 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 () ericsson com> --- 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 ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- [PATCH 0/3] TIPC dissector updates erik.hugne (Oct 07)
- [PATCH 1/3] tipc: update discovery protocol header according to spec erik.hugne (Oct 07)
- [PATCH 2/3] tipc: SYN flag in named messages erik.hugne (Oct 07)
- [PATCH 3/3] tipc: update TIPC udp port according to IANA erik.hugne (Oct 07)
- Re: [PATCH 0/3] TIPC dissector updates Jeff Morriss (Oct 07)
- Re: [PATCH 0/3] TIPC dissector updates Erik Hugne (Oct 08)