2005-04-19 11:20:46 +00:00
|
|
|
/* packet-netsync.c
|
|
|
|
* Routines for Monotone Netsync packet disassembly
|
|
|
|
*
|
|
|
|
* Copyright (c) 2005 by Erwin Rol <erwin@erwinrol.com>
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2005-04-19 11:20:46 +00:00
|
|
|
* Copyright 1999 Gerald Combs
|
|
|
|
*
|
2018-02-12 11:23:27 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2005-04-19 11:20:46 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Include files */
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <epan/packet.h>
|
|
|
|
#include <epan/prefs.h>
|
2006-03-20 10:52:53 +00:00
|
|
|
#include "packet-tcp.h"
|
2005-04-19 11:20:46 +00:00
|
|
|
|
2013-12-14 16:09:57 +00:00
|
|
|
void proto_register_netsync(void);
|
|
|
|
void proto_reg_handoff_netsync(void);
|
|
|
|
|
2005-04-19 11:20:46 +00:00
|
|
|
/*
|
|
|
|
* See
|
|
|
|
*
|
2017-04-21 03:29:16 +00:00
|
|
|
* http://www.monotone.ca
|
2005-04-19 11:20:46 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Define TCP ports for Monotone netsync */
|
|
|
|
|
|
|
|
#define TCP_PORT_NETSYNC 5253
|
|
|
|
|
|
|
|
#define NETSYNC_ROLE_SOURCE 1
|
|
|
|
#define NETSYNC_ROLE_SINK 2
|
|
|
|
#define NETSYNC_ROLE_BOTH 3
|
|
|
|
|
|
|
|
static const value_string netsync_role_vals[] = {
|
|
|
|
{ NETSYNC_ROLE_SOURCE, "Source" },
|
|
|
|
{ NETSYNC_ROLE_SINK, "Sink" },
|
|
|
|
{ NETSYNC_ROLE_BOTH, "Both" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#define NETSYNC_CMD_ERROR 0
|
|
|
|
#define NETSYNC_CMD_BYE 1
|
|
|
|
#define NETSYNC_CMD_HELLO 2
|
|
|
|
#define NETSYNC_CMD_ANONYMOUS 3
|
|
|
|
#define NETSYNC_CMD_AUTH 4
|
|
|
|
#define NETSYNC_CMD_CONFIRM 5
|
|
|
|
#define NETSYNC_CMD_REFINE 6
|
|
|
|
#define NETSYNC_CMD_DONE 7
|
|
|
|
#define NETSYNC_CMD_SEND_DATA 8
|
|
|
|
#define NETSYNC_CMD_SEND_DELTA 9
|
|
|
|
#define NETSYNC_CMD_DATA 10
|
|
|
|
#define NETSYNC_CMD_DELTA 11
|
2008-12-20 00:09:02 +00:00
|
|
|
#define NETSYNC_CMD_NONEXISTENT 12
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
static const value_string netsync_cmd_vals[] = {
|
|
|
|
{ NETSYNC_CMD_ERROR, "Error" },
|
|
|
|
{ NETSYNC_CMD_BYE, "Bye" },
|
|
|
|
{ NETSYNC_CMD_HELLO, "Hello" },
|
|
|
|
{ NETSYNC_CMD_ANONYMOUS, "Anonymous" },
|
|
|
|
{ NETSYNC_CMD_AUTH, "Auth" },
|
|
|
|
{ NETSYNC_CMD_CONFIRM, "Confirm" },
|
|
|
|
{ NETSYNC_CMD_REFINE, "Refine" },
|
|
|
|
{ NETSYNC_CMD_DONE, "Done" },
|
|
|
|
{ NETSYNC_CMD_SEND_DATA, "Send Data" },
|
|
|
|
{ NETSYNC_CMD_SEND_DELTA, "Send Delta" },
|
|
|
|
{ NETSYNC_CMD_DATA, "Data" },
|
|
|
|
{ NETSYNC_CMD_DELTA, "Delta" },
|
2008-12-20 00:09:02 +00:00
|
|
|
{ NETSYNC_CMD_NONEXISTENT, "Nonexistent" },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
#define NETSNYC_MERKLE_HASH_LENGTH 20
|
|
|
|
|
|
|
|
/* Define the monotone netsync proto */
|
|
|
|
static int proto_netsync = -1;
|
|
|
|
|
|
|
|
static int hf_netsync_version = -1;
|
|
|
|
static int hf_netsync_command = -1;
|
|
|
|
static int hf_netsync_size = -1;
|
|
|
|
static int hf_netsync_data = -1;
|
|
|
|
static int hf_netsync_checksum = -1;
|
|
|
|
|
|
|
|
static int hf_netsync_cmd_done_level = -1;
|
|
|
|
static int hf_netsync_cmd_done_type = -1;
|
|
|
|
|
|
|
|
static int hf_netsync_cmd_hello_keyname = -1;
|
|
|
|
static int hf_netsync_cmd_hello_key = -1;
|
|
|
|
static int hf_netsync_cmd_nonce = -1;
|
|
|
|
|
|
|
|
static int hf_netsync_cmd_anonymous_role = -1;
|
|
|
|
static int hf_netsync_cmd_anonymous_collection = -1;
|
|
|
|
|
|
|
|
static int hf_netsync_cmd_send_data_type = -1;
|
|
|
|
static int hf_netsync_cmd_send_data_id = -1;
|
|
|
|
|
|
|
|
static int hf_netsync_cmd_error_msg = -1;
|
|
|
|
|
|
|
|
|
|
|
|
static int hf_netsync_cmd_confirm_sig = -1;
|
|
|
|
|
|
|
|
static int hf_netsync_cmd_auth_role = -1;
|
|
|
|
static int hf_netsync_cmd_auth_collection = -1;
|
|
|
|
static int hf_netsync_cmd_auth_id = -1;
|
|
|
|
static int hf_netsync_cmd_auth_nonce1 = -1;
|
|
|
|
static int hf_netsync_cmd_auth_nonce2 = -1;
|
|
|
|
static int hf_netsync_cmd_auth_sig = -1;
|
|
|
|
|
|
|
|
static int hf_netsync_cmd_data_type = -1;
|
|
|
|
static int hf_netsync_cmd_data_id = -1;
|
|
|
|
static int hf_netsync_cmd_data_compressed = -1;
|
|
|
|
static int hf_netsync_cmd_data_payload = -1;
|
|
|
|
|
|
|
|
static int hf_netsync_cmd_delta_type = -1;
|
|
|
|
static int hf_netsync_cmd_delta_base_id = -1;
|
|
|
|
static int hf_netsync_cmd_delta_ident_id = -1;
|
|
|
|
static int hf_netsync_cmd_delta_compressed = -1;
|
|
|
|
static int hf_netsync_cmd_delta_payload = -1;
|
|
|
|
|
|
|
|
static int hf_netsync_cmd_refine_tree_node = -1;
|
|
|
|
|
|
|
|
static int hf_netsync_cmd_send_delta_type = -1;
|
|
|
|
static int hf_netsync_cmd_send_delta_base_id = -1;
|
|
|
|
static int hf_netsync_cmd_send_delta_ident_id = -1;
|
|
|
|
|
2008-12-20 00:09:02 +00:00
|
|
|
static int hf_netsync_cmd_nonexistent_type = -1;
|
|
|
|
static int hf_netsync_cmd_nonexistent_id = -1;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
/* Define the tree for netsync */
|
|
|
|
static int ett_netsync = -1;
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Here are the global variables associated with the preferences
|
|
|
|
* for monotone netsync
|
|
|
|
*/
|
|
|
|
|
|
|
|
static gboolean netsync_desegment = TRUE;
|
|
|
|
|
2007-07-19 13:05:39 +00:00
|
|
|
static gint dissect_netsync_cmd_error( tvbuff_t *tvb, gint offset, proto_tree *tree, guint size _U_)
|
2005-04-19 11:20:46 +00:00
|
|
|
{
|
2013-10-23 01:36:49 +00:00
|
|
|
guint64 len = 0;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
2017-12-24 07:29:50 +00:00
|
|
|
offset += tvb_get_varint( tvb, offset, FT_VARINT_MAX_LEN, &len, ENC_VARINT_PROTOBUF );
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_error_msg, tvb,
|
2013-10-23 01:56:52 +00:00
|
|
|
offset, (gint)len, ENC_ASCII|ENC_NA );
|
|
|
|
offset += (gint)len;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
static gint dissect_netsync_cmd_bye(tvbuff_t *tvb _U_, gint offset, proto_tree *tree _U_, guint size _U_)
|
|
|
|
{
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static gint dissect_netsync_cmd_hello(tvbuff_t *tvb, gint offset, proto_tree *tree, guint size _U_)
|
|
|
|
{
|
2013-10-23 01:36:49 +00:00
|
|
|
guint64 len = 0;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
2017-12-24 07:29:50 +00:00
|
|
|
offset += tvb_get_varint( tvb, offset, FT_VARINT_MAX_LEN, &len, ENC_VARINT_PROTOBUF );
|
2005-04-19 11:20:46 +00:00
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_hello_keyname, tvb,
|
2013-10-23 01:56:52 +00:00
|
|
|
offset, (gint)len, ENC_ASCII|ENC_NA );
|
|
|
|
offset += (gint)len;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
|
2017-12-24 07:29:50 +00:00
|
|
|
offset += tvb_get_varint( tvb, offset, FT_VARINT_MAX_LEN, &len, ENC_VARINT_PROTOBUF );
|
2005-04-19 11:20:46 +00:00
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_hello_key, tvb,
|
2013-10-23 01:56:52 +00:00
|
|
|
offset, (gint)len, ENC_NA );
|
|
|
|
offset += (gint)len;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_nonce, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, NETSNYC_MERKLE_HASH_LENGTH, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += NETSNYC_MERKLE_HASH_LENGTH;
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static gint dissect_netsync_cmd_anonymous(tvbuff_t *tvb, gint offset, proto_tree *tree, guint size _U_)
|
|
|
|
{
|
2013-10-23 01:36:49 +00:00
|
|
|
guint64 len = 0;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_anonymous_role, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += 1;
|
|
|
|
|
2017-12-24 07:29:50 +00:00
|
|
|
offset += tvb_get_varint( tvb, offset, FT_VARINT_MAX_LEN, &len, ENC_VARINT_PROTOBUF );
|
2005-04-19 11:20:46 +00:00
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_anonymous_collection, tvb,
|
2013-10-23 01:56:52 +00:00
|
|
|
offset, (gint)len, ENC_ASCII|ENC_NA );
|
|
|
|
offset += (gint)len;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_nonce, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, NETSNYC_MERKLE_HASH_LENGTH, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += NETSNYC_MERKLE_HASH_LENGTH;
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static gint dissect_netsync_cmd_auth(tvbuff_t *tvb, gint offset, proto_tree *tree, guint size _U_)
|
|
|
|
{
|
2013-10-23 01:36:49 +00:00
|
|
|
guint64 len = 0;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_auth_role, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
|
2017-12-24 07:29:50 +00:00
|
|
|
offset += tvb_get_varint( tvb, offset, FT_VARINT_MAX_LEN, &len, ENC_VARINT_PROTOBUF );
|
2005-04-19 11:20:46 +00:00
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_auth_collection, tvb,
|
2013-10-23 01:56:52 +00:00
|
|
|
offset, (gint)len, ENC_ASCII|ENC_NA );
|
|
|
|
offset += (gint)len;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_auth_id, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, NETSNYC_MERKLE_HASH_LENGTH, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += NETSNYC_MERKLE_HASH_LENGTH;
|
|
|
|
|
2013-10-23 01:56:52 +00:00
|
|
|
offset += (gint)len;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_auth_nonce1, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, NETSNYC_MERKLE_HASH_LENGTH, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += NETSNYC_MERKLE_HASH_LENGTH;
|
|
|
|
|
2013-10-23 01:56:52 +00:00
|
|
|
offset += (gint)len;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_auth_nonce2, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, NETSNYC_MERKLE_HASH_LENGTH, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += NETSNYC_MERKLE_HASH_LENGTH;
|
|
|
|
|
2017-12-24 07:29:50 +00:00
|
|
|
offset += tvb_get_varint( tvb, offset, FT_VARINT_MAX_LEN, &len, ENC_VARINT_PROTOBUF );
|
2005-04-19 11:20:46 +00:00
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_auth_sig, tvb,
|
2013-10-23 01:56:52 +00:00
|
|
|
offset, (gint)len, ENC_NA );
|
|
|
|
offset += (gint)len;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static gint dissect_netsync_cmd_confirm(tvbuff_t *tvb, gint offset, proto_tree *tree, guint size _U_)
|
|
|
|
{
|
2013-10-23 01:36:49 +00:00
|
|
|
guint64 len = 0;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
2017-12-24 07:29:50 +00:00
|
|
|
offset += tvb_get_varint( tvb, offset, FT_VARINT_MAX_LEN, &len, ENC_VARINT_PROTOBUF );
|
2005-04-19 11:20:46 +00:00
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_confirm_sig, tvb,
|
2013-10-23 01:56:52 +00:00
|
|
|
offset, (gint)len, ENC_NA );
|
|
|
|
offset += (gint)len;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static gint dissect_netsync_cmd_refine(tvbuff_t *tvb, gint offset, proto_tree *tree, guint size)
|
|
|
|
{
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_refine_tree_node, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, size, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += size;
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static gint dissect_netsync_cmd_done(tvbuff_t *tvb, gint offset, proto_tree *tree, guint size _U_)
|
|
|
|
{
|
2017-10-12 01:55:55 +00:00
|
|
|
gint bytes = 0;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
2017-10-12 01:55:55 +00:00
|
|
|
proto_tree_add_item_ret_length(tree, hf_netsync_cmd_done_level, tvb,
|
|
|
|
offset, -1, ENC_LITTLE_ENDIAN|ENC_VARINT_PROTOBUF, &bytes);
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += bytes;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_done_type, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static gint dissect_netsync_cmd_send_data(tvbuff_t *tvb, gint offset, proto_tree *tree, guint size _U_)
|
|
|
|
{
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_send_data_type, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN );
|
2014-09-30 20:59:17 +00:00
|
|
|
offset += 1;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_send_data_id, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, NETSNYC_MERKLE_HASH_LENGTH, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += NETSNYC_MERKLE_HASH_LENGTH;
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static gint dissect_netsync_cmd_send_delta(tvbuff_t *tvb, gint offset, proto_tree *tree, guint size _U_)
|
|
|
|
{
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_send_delta_type, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN );
|
2014-09-30 20:59:17 +00:00
|
|
|
offset += 1;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_send_delta_base_id, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, NETSNYC_MERKLE_HASH_LENGTH, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += NETSNYC_MERKLE_HASH_LENGTH;
|
|
|
|
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_send_delta_ident_id, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, NETSNYC_MERKLE_HASH_LENGTH, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += NETSNYC_MERKLE_HASH_LENGTH;
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static gint dissect_netsync_cmd_data(tvbuff_t *tvb, gint offset, proto_tree *tree, guint size _U_)
|
|
|
|
{
|
2013-10-23 01:36:49 +00:00
|
|
|
guint64 len = 0;
|
2007-07-19 13:05:39 +00:00
|
|
|
|
2005-04-19 11:20:46 +00:00
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_data_type, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_data_id, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, NETSNYC_MERKLE_HASH_LENGTH, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += NETSNYC_MERKLE_HASH_LENGTH;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_data_compressed, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += 1;
|
|
|
|
|
2017-12-24 07:29:50 +00:00
|
|
|
offset += tvb_get_varint( tvb, offset, FT_VARINT_MAX_LEN, &len, ENC_VARINT_PROTOBUF );
|
2005-04-19 11:20:46 +00:00
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_data_payload, tvb,
|
2013-10-23 01:56:52 +00:00
|
|
|
offset, (gint)len, ENC_NA );
|
|
|
|
offset += (gint)len;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static gint dissect_netsync_cmd_delta(tvbuff_t *tvb, gint offset, proto_tree *tree, guint size _U_)
|
|
|
|
{
|
2013-10-23 01:36:49 +00:00
|
|
|
guint64 len = 0;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_delta_type, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_delta_base_id, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, NETSNYC_MERKLE_HASH_LENGTH, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += NETSNYC_MERKLE_HASH_LENGTH;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_delta_ident_id, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, NETSNYC_MERKLE_HASH_LENGTH, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += NETSNYC_MERKLE_HASH_LENGTH;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_delta_compressed, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += 1;
|
|
|
|
|
2017-12-24 07:29:50 +00:00
|
|
|
offset += tvb_get_varint( tvb, offset, FT_VARINT_MAX_LEN, &len, ENC_VARINT_PROTOBUF );
|
2005-04-19 11:20:46 +00:00
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_delta_payload, tvb,
|
2013-10-23 01:56:52 +00:00
|
|
|
offset, (gint)len, ENC_NA );
|
|
|
|
offset += (gint)len;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-12-20 00:09:02 +00:00
|
|
|
static gint dissect_netsync_cmd_nonexistent(tvbuff_t *tvb, gint offset, proto_tree *tree, guint size _U_)
|
2005-04-19 11:20:46 +00:00
|
|
|
{
|
2008-12-20 00:09:02 +00:00
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_nonexistent_type, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += 1;
|
|
|
|
|
2008-12-20 00:09:02 +00:00
|
|
|
proto_tree_add_item(tree, hf_netsync_cmd_nonexistent_id, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, NETSNYC_MERKLE_HASH_LENGTH, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += NETSNYC_MERKLE_HASH_LENGTH;
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
static guint
|
2015-01-25 19:30:13 +00:00
|
|
|
get_netsync_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset, void *data _U_)
|
2005-04-19 11:20:46 +00:00
|
|
|
{
|
2013-10-23 01:36:49 +00:00
|
|
|
guint64 size = 0;
|
|
|
|
guint size_bytes;
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
/* skip version and command */
|
|
|
|
offset += 2;
|
2007-07-19 13:05:39 +00:00
|
|
|
|
2017-12-24 07:29:50 +00:00
|
|
|
size_bytes = tvb_get_varint( tvb, offset, FT_VARINT_MAX_LEN, &size, ENC_VARINT_PROTOBUF );
|
2007-07-19 13:05:39 +00:00
|
|
|
|
2005-04-19 11:20:46 +00:00
|
|
|
/* the calculated size if for the data only, this doesn't
|
2007-07-19 13:05:39 +00:00
|
|
|
* include the version (1 byte), command (1 byte),
|
|
|
|
* length (size_bytes bytes) and checksum (4 bytes)
|
2005-04-19 11:20:46 +00:00
|
|
|
*/
|
|
|
|
|
2013-10-23 01:56:52 +00:00
|
|
|
return 1 + 1 + size_bytes + (guint)size + 4;
|
2005-04-19 11:20:46 +00:00
|
|
|
}
|
|
|
|
|
2013-11-09 17:46:28 +00:00
|
|
|
static int
|
|
|
|
dissect_netsync_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
|
2005-04-19 11:20:46 +00:00
|
|
|
{
|
|
|
|
gint offset = 0;
|
|
|
|
guint8 tmp;
|
|
|
|
guint8 cmd, version;
|
|
|
|
guint32 size, size_bytes, shift;
|
|
|
|
proto_tree *ti,*netsync_tree=NULL;
|
|
|
|
|
|
|
|
/* Set the protocol column */
|
2009-08-09 07:59:51 +00:00
|
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "Netsync");
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
if (tree == NULL)
|
2015-06-23 18:24:48 +00:00
|
|
|
return tvb_captured_length(tvb);
|
2007-07-19 13:05:39 +00:00
|
|
|
|
2005-04-19 11:20:46 +00:00
|
|
|
while (tvb_reported_length_remaining(tvb, offset) > 0) {
|
2011-10-21 02:10:19 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_netsync, tvb, offset, -1, ENC_NA);
|
2005-04-19 11:20:46 +00:00
|
|
|
netsync_tree = proto_item_add_subtree(ti, ett_netsync);
|
|
|
|
|
|
|
|
version = tvb_get_guint8(tvb, offset);
|
|
|
|
proto_tree_add_item(netsync_tree, hf_netsync_version, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
cmd = tvb_get_guint8(tvb, offset);
|
|
|
|
proto_tree_add_item(netsync_tree, hf_netsync_command, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
|
|
|
|
/* get size */
|
|
|
|
size = 0;
|
|
|
|
size_bytes = 0;
|
|
|
|
shift = 0;
|
|
|
|
do {
|
|
|
|
tmp = tvb_get_guint8(tvb, offset + size_bytes);
|
|
|
|
size_bytes += 1;
|
2007-07-19 13:05:39 +00:00
|
|
|
|
2005-04-19 11:20:46 +00:00
|
|
|
size |= (tmp & 0x7F) << shift;
|
2007-07-19 13:05:39 +00:00
|
|
|
shift += 7;
|
2017-04-27 13:58:14 +00:00
|
|
|
} while ((tmp & 0x80) && (shift < 32));
|
2007-07-19 13:05:39 +00:00
|
|
|
|
|
|
|
|
2005-04-19 11:20:46 +00:00
|
|
|
proto_tree_add_uint(netsync_tree, hf_netsync_size, tvb,
|
2014-09-30 20:59:17 +00:00
|
|
|
offset, size_bytes, size );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += size_bytes;
|
|
|
|
|
|
|
|
switch (cmd) {
|
|
|
|
case NETSYNC_CMD_DONE:
|
|
|
|
dissect_netsync_cmd_done( tvb, offset, netsync_tree, size );
|
|
|
|
break;
|
|
|
|
|
|
|
|
case NETSYNC_CMD_ERROR:
|
|
|
|
dissect_netsync_cmd_error( tvb, offset, netsync_tree, size );
|
|
|
|
break;
|
|
|
|
|
|
|
|
case NETSYNC_CMD_BYE:
|
|
|
|
dissect_netsync_cmd_bye( tvb, offset, netsync_tree, size );
|
|
|
|
break;
|
|
|
|
|
|
|
|
case NETSYNC_CMD_HELLO:
|
|
|
|
dissect_netsync_cmd_hello( tvb, offset, netsync_tree, size );
|
|
|
|
break;
|
|
|
|
|
|
|
|
case NETSYNC_CMD_ANONYMOUS:
|
|
|
|
dissect_netsync_cmd_anonymous( tvb, offset, netsync_tree, size );
|
|
|
|
break;
|
|
|
|
|
|
|
|
case NETSYNC_CMD_AUTH:
|
|
|
|
dissect_netsync_cmd_auth( tvb, offset, netsync_tree, size );
|
|
|
|
break;
|
|
|
|
|
|
|
|
case NETSYNC_CMD_CONFIRM:
|
|
|
|
dissect_netsync_cmd_confirm( tvb, offset, netsync_tree, size );
|
|
|
|
break;
|
|
|
|
|
|
|
|
case NETSYNC_CMD_REFINE:
|
|
|
|
dissect_netsync_cmd_refine( tvb, offset, netsync_tree, size );
|
|
|
|
break;
|
|
|
|
|
|
|
|
case NETSYNC_CMD_SEND_DATA:
|
|
|
|
dissect_netsync_cmd_send_data( tvb, offset, netsync_tree, size );
|
|
|
|
break;
|
|
|
|
|
|
|
|
case NETSYNC_CMD_SEND_DELTA:
|
|
|
|
dissect_netsync_cmd_send_delta( tvb, offset, netsync_tree, size );
|
|
|
|
break;
|
|
|
|
|
|
|
|
case NETSYNC_CMD_DATA:
|
|
|
|
dissect_netsync_cmd_data( tvb, offset, netsync_tree, size );
|
|
|
|
break;
|
|
|
|
|
|
|
|
case NETSYNC_CMD_DELTA:
|
|
|
|
dissect_netsync_cmd_delta( tvb, offset, netsync_tree, size );
|
|
|
|
break;
|
|
|
|
|
2008-12-20 00:09:02 +00:00
|
|
|
case NETSYNC_CMD_NONEXISTENT:
|
|
|
|
dissect_netsync_cmd_nonexistent( tvb, offset, netsync_tree, size );
|
2005-04-19 11:20:46 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
proto_tree_add_item(netsync_tree, hf_netsync_data, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, size, ENC_NA );
|
2005-04-19 11:20:46 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
offset += size;
|
|
|
|
|
2016-07-11 03:47:28 +00:00
|
|
|
proto_tree_add_checksum(netsync_tree, tvb, offset, hf_netsync_checksum,
|
|
|
|
-1, NULL, pinfo, 0, ENC_BIG_ENDIAN, PROTO_CHECKSUM_NO_FLAGS );
|
2005-04-19 11:20:46 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
|
2007-07-19 13:05:39 +00:00
|
|
|
proto_item_append_text(netsync_tree, " V%d, Cmd: %s (%d), Size: %d",
|
|
|
|
version, val_to_str(cmd, netsync_cmd_vals, "(0x%x)"), cmd, size );
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
proto_item_set_len(netsync_tree, 1+1+size_bytes+size+4);
|
|
|
|
}
|
2013-11-09 17:46:28 +00:00
|
|
|
|
2015-06-23 18:24:48 +00:00
|
|
|
return tvb_captured_length(tvb);
|
2005-04-19 11:20:46 +00:00
|
|
|
}
|
|
|
|
|
2013-11-09 17:46:28 +00:00
|
|
|
static int
|
|
|
|
dissect_netsync(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
|
2005-04-19 11:20:46 +00:00
|
|
|
{
|
|
|
|
tcp_dissect_pdus(tvb, pinfo, tree, netsync_desegment, 7, get_netsync_pdu_len,
|
2013-11-09 17:46:28 +00:00
|
|
|
dissect_netsync_pdu, data);
|
2015-06-23 18:24:48 +00:00
|
|
|
return tvb_captured_length(tvb);
|
2005-04-19 11:20:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2007-07-19 13:05:39 +00:00
|
|
|
proto_register_netsync(void)
|
2005-04-19 11:20:46 +00:00
|
|
|
{
|
|
|
|
static hf_register_info hf[] = {
|
|
|
|
/* General */
|
|
|
|
{ &hf_netsync_version,
|
|
|
|
{ "Version", "netsync.version",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_command,
|
|
|
|
{ "Command", "netsync.command",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(netsync_cmd_vals), 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_size,
|
|
|
|
{ "Size", "netsync.size",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_data,
|
|
|
|
{ "Data", "netsync.data",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_checksum,
|
|
|
|
{ "Checksum", "netsync.checksum",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_hello_keyname,
|
|
|
|
{ "Key Name", "netsync.cmd.hello.keyname",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_hello_key,
|
|
|
|
{ "Key", "netsync.cmd.hello.key",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_nonce,
|
|
|
|
{ "Nonce", "netsync.cmd.nonce",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_anonymous_role,
|
|
|
|
{ "Role", "netsync.cmd.anonymous.role",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(netsync_role_vals), 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_anonymous_collection,
|
|
|
|
{ "Collection", "netsync.cmd.anonymous.collection",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_confirm_sig,
|
|
|
|
{ "Signature", "netsync.cmd.confirm.signature",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_send_data_type,
|
|
|
|
{ "Type", "netsync.cmd.send_data.type",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_send_data_id,
|
|
|
|
{ "ID", "netsync.cmd.send_data.id",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_error_msg,
|
|
|
|
{ "Message", "netsync.cmd.error.msg",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
{ &hf_netsync_cmd_done_level,
|
|
|
|
{ "Level", "netsync.cmd.done.level",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_auth_role,
|
|
|
|
{ "Role", "netsync.cmd.auth.role",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(netsync_role_vals), 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_auth_collection,
|
|
|
|
{ "Collection", "netsync.cmd.auth.collection",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_auth_id,
|
|
|
|
{ "ID", "netsync.cmd.auth.id",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_auth_nonce1,
|
|
|
|
{ "Nonce 1", "netsync.cmd.auth.nonce1",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_auth_nonce2,
|
|
|
|
{ "Nonce 2", "netsync.cmd.auth.nonce2",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_auth_sig,
|
|
|
|
{ "Signature", "netsync.cmd.auth.sig",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_data_type,
|
|
|
|
{ "Type", "netsync.cmd.data.type",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_data_id,
|
|
|
|
{ "ID", "netsync.cmd.data.id",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_data_compressed,
|
|
|
|
{ "Compressed", "netsync.cmd.data.compressed",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_data_payload,
|
|
|
|
{ "Payload", "netsync.cmd.data.payload",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_delta_type,
|
|
|
|
{ "Type", "netsync.cmd.delta.type",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_delta_base_id,
|
|
|
|
{ "Base ID", "netsync.cmd.delta.base_id",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_delta_ident_id,
|
|
|
|
{ "Ident ID", "netsync.cmd.delta.ident_id",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_delta_compressed,
|
|
|
|
{ "Compressed", "netsync.cmd.delta.compressed",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_delta_payload,
|
|
|
|
{ "Payload", "netsync.cmd.delta.payload",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_refine_tree_node,
|
|
|
|
{ "Tree Node", "netsync.cmd.refine.tree_node",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_send_delta_type,
|
|
|
|
{ "Type", "netsync.cmd.send_delta.type",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_send_delta_base_id,
|
|
|
|
{ "Base ID", "netsync.cmd.send_delta.base_id",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_send_delta_ident_id,
|
|
|
|
{ "Ident ID", "netsync.cmd.send_delta.ident_id",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2008-12-20 00:09:02 +00:00
|
|
|
{ &hf_netsync_cmd_nonexistent_id,
|
|
|
|
{ "ID", "netsync.cmd.nonexistent.id",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL } },
|
2008-12-20 00:09:02 +00:00
|
|
|
{ &hf_netsync_cmd_nonexistent_type,
|
|
|
|
{ "Type", "netsync.cmd.nonexistent.type",
|
2005-04-19 11:20:46 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } },
|
2005-04-19 11:20:46 +00:00
|
|
|
{ &hf_netsync_cmd_done_type,
|
|
|
|
{ "Type", "netsync.cmd.done.type",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL } }
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
static gint *ett[] = {
|
|
|
|
&ett_netsync,
|
|
|
|
};
|
|
|
|
|
|
|
|
module_t *netsync_module;
|
|
|
|
|
|
|
|
proto_netsync = proto_register_protocol("Monotone Netsync", "Netsync", "netsync");
|
|
|
|
proto_register_field_array(proto_netsync, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
|
|
|
|
2016-10-07 20:25:01 +00:00
|
|
|
netsync_module = prefs_register_protocol(proto_netsync, NULL);
|
2005-04-19 11:20:46 +00:00
|
|
|
|
|
|
|
prefs_register_bool_preference(netsync_module, "desegment_netsync_messages",
|
|
|
|
"Reassemble Netsync messages spanning multiple TCP segments",
|
|
|
|
"Whether the Netsync dissector should reassemble messages spanning multiple TCP segments."
|
|
|
|
" To use this option, you must also enable \"Allow subdissectors to reassemble TCP streams\" in the TCP protocol settings.",
|
|
|
|
&netsync_desegment);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2007-07-19 13:05:39 +00:00
|
|
|
proto_reg_handoff_netsync(void)
|
2005-04-19 11:20:46 +00:00
|
|
|
{
|
2016-10-07 20:25:01 +00:00
|
|
|
dissector_handle_t netsync_handle;
|
|
|
|
|
|
|
|
netsync_handle = create_dissector_handle(dissect_netsync, proto_netsync);
|
2005-04-19 11:20:46 +00:00
|
|
|
|
2016-10-07 20:25:01 +00:00
|
|
|
dissector_add_uint_with_preference("tcp.port", TCP_PORT_NETSYNC, netsync_handle);
|
2005-04-19 11:20:46 +00:00
|
|
|
}
|
|
|
|
|
2014-09-30 20:59:17 +00:00
|
|
|
/*
|
|
|
|
* Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
*
|
|
|
|
* Local variables:
|
|
|
|
* c-basic-offset: 8
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: t
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
|
|
* :indentSize=8:tabSize=8:noTabs=false:
|
|
|
|
*/
|