return(0);
}
- /* pinfo is NULL only if dissect_componentstatusprotocol_message is called from dissect_error cause */
- if (pinfo) {
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "ComponentStatusProtocol");
- }
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "ComponentStatusProtocol");
+
/* In the interest of speed, if "tree" is NULL, don't do any work not
necessary to generate protocol tree items. */
if (tree) {
/* Initialize the subtree pointers */
static gint ett_fractalgeneratorprotocol = -1;
-static void
-dissect_fractalgeneratorprotocol_message(tvbuff_t *, packet_info *, proto_tree *);
-
-
/* Dissectors for messages. This is specific to FractalGeneratorProtocol */
#define MESSAGE_TYPE_LENGTH 1
#define MESSAGE_FLAGS_LENGTH 1
guint8 type;
type = tvb_get_guint8(message_tvb, MESSAGE_TYPE_OFFSET);
- if (pinfo && (check_col(pinfo->cinfo, COL_INFO))) {
+ if (check_col(pinfo->cinfo, COL_INFO)) {
col_add_fstr(pinfo->cinfo, COL_INFO, "%s ", val_to_str(type, message_type_values, "Unknown FractalGeneratorProtocol type"));
}
proto_tree_add_item(fractalgeneratorprotocol_tree, hf_message_type, message_tvb, MESSAGE_TYPE_OFFSET, MESSAGE_TYPE_LENGTH, ENC_BIG_ENDIAN);
proto_item *fractalgeneratorprotocol_item;
proto_tree *fractalgeneratorprotocol_tree;
- /* pinfo is NULL only if dissect_fractalgeneratorprotocol_message is called from dissect_error cause */
- if (pinfo)
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "FractalGeneratorProtocol");
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "FractalGeneratorProtocol");
/* In the interest of speed, if "tree" is NULL, don't do any work not
necessary to generate protocol tree items. */
guint8 type;
type = tvb_get_guint8(message_tvb, offset_message_type);
- if (pinfo && (check_col(pinfo->cinfo, COL_INFO))) {
+ if (check_col(pinfo->cinfo, COL_INFO)) {
col_add_fstr(pinfo->cinfo, COL_INFO, "%s ", val_to_str(type, message_type_values, "Unknown NetPerfMeterProtocol type"));
}
proto_item *npmp_item;
proto_tree *npmp_tree;
- /* pinfo is NULL only if dissect_npmp_message is called from dissect_error cause */
- if (pinfo)
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "NetPerfMeterProtocol");
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "NetPerfMeterProtocol");
/* In the interest of speed, if "tree" is NULL, don't do any work not
necessary to generate protocol tree items. */
/* Initialize the subtree pointers */
static gint ett_pingpongprotocol = -1;
-static void
-dissect_pingpongprotocol_message(tvbuff_t *, packet_info *, proto_tree *);
-
-
/* Dissectors for messages. This is specific to PingPongProtocol */
#define MESSAGE_TYPE_LENGTH 1
#define MESSAGE_FLAGS_LENGTH 1
guint8 type;
type = tvb_get_guint8(message_tvb, MESSAGE_TYPE_OFFSET);
- if (pinfo && (check_col(pinfo->cinfo, COL_INFO))) {
+ if (check_col(pinfo->cinfo, COL_INFO)) {
col_add_fstr(pinfo->cinfo, COL_INFO, "%s ", val_to_str(type, message_type_values, "Unknown PingPongProtocol type"));
}
proto_tree_add_item(pingpongprotocol_tree, hf_message_type, message_tvb, MESSAGE_TYPE_OFFSET, MESSAGE_TYPE_LENGTH, ENC_BIG_ENDIAN);
proto_item *pingpongprotocol_item;
proto_tree *pingpongprotocol_tree;
- /* pinfo is NULL only if dissect_pingpongprotocol_message is called from dissect_error cause */
- if (pinfo)
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "PingPongProtocol");
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "PingPongProtocol");
/* In the interest of speed, if "tree" is NULL, don't do any work not
necessary to generate protocol tree items. */
static gint ett_ssprotocol = -1;
static gint ett_environment_flags = -1;
-static guint
-dissect_ssprotocol_message(tvbuff_t *, packet_info *, proto_tree *);
-
-
/* Dissectors for messages. This is specific to ScriptingServiceProtocol */
#define MESSAGE_TYPE_LENGTH 1
#define MESSAGE_FLAGS_LENGTH 1
guint total_length;
type = tvb_get_guint8(message_tvb, MESSAGE_TYPE_OFFSET);
- if (pinfo && (check_col(pinfo->cinfo, COL_INFO))) {
+ if (check_col(pinfo->cinfo, COL_INFO)) {
col_add_fstr(pinfo->cinfo, COL_INFO, "%s ", val_to_str(type, message_type_values, "Unknown SSP type: %u"));
}
proto_tree_add_item(ssprotocol_tree, hf_message_type, message_tvb, MESSAGE_TYPE_OFFSET, MESSAGE_TYPE_LENGTH, ENC_BIG_ENDIAN);
proto_item *ssprotocol_item;
proto_tree *ssprotocol_tree;
- /* pinfo is NULL only if dissect_ssprotocol_message is called from dissect_error cause */
- if (pinfo)
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "SSP");
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "SSP");
/* In the interest of speed, if "tree" is NULL, don't do any work not
necessary to generate protocol tree items. */