Zbee(zc): Changing comment format(javadoc=>Doxygen)

Change-Id: Ic0b5d7139e324cbbe786cb4a0cf7d9f924acdf04
Reviewed-on: https://code.wireshark.org/review/12818
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Rishi Dev Singh 2015-12-22 11:43:31 +05:30 committed by Michael Mann
parent b978d25179
commit 3bd69dac73
6 changed files with 1019 additions and 1958 deletions

View File

@ -547,19 +547,12 @@ uat_key_record_free_cb(void *r)
}
}
/*FUNCTION:------------------------------------------------------
* NAME
* zbee_gp_security_parse_key
* DESCRIPTION
/**
*Parses a key string from left to right into a buffer with increasing (normal byte order) or decreasing (reverse
* byte order) address.
* PARAMETERS
* const gchar *key_str - pointer to the string
* guint8 *key_buf - destination buffer in memory
* gboolean byte_order - byte order
* RETURNS
* gboolean
*---------------------------------------------------------------
*
*@param key_str pointer to the string
*@param key_buf destination buffer in memory
*@param byte_order byte order
*/
static gboolean
zbee_gp_security_parse_key(const gchar *key_str, guint8 *key_buf, gboolean byte_order)
@ -637,20 +630,15 @@ uat_key_record_update_cb(void *r, char **err)
return TRUE;
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_nwk_gp_cmd_commissioning
* DESCRIPTION
/**
*Dissector for ZigBee Green Power commissioning.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_into *pinfo - pointer to packet information fields.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* zbee_nwk_green_power_packet *packet - packet data.
* guint offset - current payload offset.
* RETURNS
* guint - payload processed offset.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param packet packet data.
*@param offset current payload offset.
*@return payload processed offset.
*/
static guint
dissect_zbee_nwk_gp_cmd_commissioning(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
@ -745,20 +733,15 @@ dissect_zbee_nwk_gp_cmd_commissioning(tvbuff_t *tvb, packet_info *pinfo _U_, pro
return offset;
} /* dissect_zbee_nwk_gp_cmd_commissioning */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_nwk_gp_cmd_channel_request
* DESCRIPTION
/**
*Dissector for ZigBee Green Power channel request.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_into *pinfo - pointer to packet information fields.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* zbee_nwk_green_power_packet *packet - packet data.
* guint offset - current payload offset.
* RETURNS
* guint - payload processed offset.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param packet packet data.
*@param offset current payload offset.
*@return payload processed offset.
*/
static guint
dissect_zbee_nwk_gp_cmd_channel_request(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
@ -776,20 +759,15 @@ dissect_zbee_nwk_gp_cmd_channel_request(tvbuff_t *tvb, packet_info *pinfo _U_, p
return offset;
} /* dissect_zbee_nwk_gp_cmd_channel_request */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_nwk_gp_cmd_channel_configuration
* DESCRIPTION
/**
*Dissector for ZigBee Green Power channel configuration.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_into *pinfo - pointer to packet information fields.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* zbee_nwk_green_power_packet *packet - packet data.
* guint offset - current payload offset.
* RETURNS
* guint - payload processed offset.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param packet packet data.
*@param offset current payload offset.
*@return payload processed offset.
*/
static guint
dissect_zbee_nwk_gp_cmd_channel_configuration(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
@ -807,20 +785,15 @@ dissect_zbee_nwk_gp_cmd_channel_configuration(tvbuff_t *tvb, packet_info *pinfo
return offset;
} /* dissect_zbee_nwk_gp_cmd_channel_configuration */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_nwk_gp_cmd_attr_reporting
* DESCRIPTION
/**
*Dissector for ZigBee Green Power commands attrib reporting.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_into *pinfo - pointer to packet information fields.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* zbee_nwk_green_power_packet *packet - packet data.
* guint offset - current payload offset.
* RETURNS
* guint - payload processed offset.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param packet packet data.
*@param offset current payload offset.
*@return payload processed offset.
*/
static guint
dissect_zbee_nwk_gp_cmd_attr_reporting(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
@ -842,20 +815,15 @@ dissect_zbee_nwk_gp_cmd_attr_reporting(tvbuff_t *tvb, packet_info *pinfo _U_, pr
return offset;
} /* dissect_zbee_nwk_gp_cmd_attr_reporting */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_nwk_gp_cmd_commissioning_reply
* DESCRIPTION
/**
*Dissector for ZigBee Green Power comissioning reply.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_into *pinfo - pointer to packet information fields.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* zbee_nwk_green_power_packet *packet - packet data.
* guint offset - current payload offset.
* RETURNS
* guint - payload processed offset.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param packet packet data.
*@param offset current payload offset.
*@return payload processed offset.
*/
static guint
dissect_zbee_nwk_gp_cmd_commissioning_reply(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
@ -896,20 +864,15 @@ dissect_zbee_nwk_gp_cmd_commissioning_reply(tvbuff_t *tvb, packet_info *pinfo _U
return offset;
} /* dissect_zbee_nwk_gp_cmd_commissioning_reply */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_nwk_gp_cmd_move_color
* DESCRIPTION
/**
*Dissector for ZigBee Green Power Move Color.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_into *pinfo - pointer to packet information fields.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* zbee_nwk_green_power_packet *packet - packet data.
* guint offset - current payload offset.
* RETURNS
* guint - payload processed offset.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param packet packet data.
*@param offset current payload offset.
*@return payload processed offset.
*/
static guint
dissect_zbee_nwk_gp_cmd_move_color(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
@ -922,20 +885,15 @@ dissect_zbee_nwk_gp_cmd_move_color(tvbuff_t *tvb, packet_info *pinfo _U_, proto_
return offset;
} /* dissect_zbee_nwk_gp_cmd_move_color */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_nwk_gp_cmd_move_up_down
* DESCRIPTION
/**
*Dissector for ZigBee Green Power Move Up/Down.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_into *pinfo - pointer to packet information fields.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* zbee_nwk_green_power_packet *packet - packet data.
* guint offset - current payload offset.
* RETURNS
* guint - payload processed offset.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param packet packet data.
*@param offset current payload offset.
*@return payload processed offset.
*/
static guint
dissect_zbee_nwk_gp_cmd_move_up_down(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
@ -946,20 +904,15 @@ dissect_zbee_nwk_gp_cmd_move_up_down(tvbuff_t *tvb, packet_info *pinfo _U_, prot
return offset;
} /* dissect_zbee_nwk_gp_cmd_move_up_down */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_nwk_gp_cmd_step_color
* DESCRIPTION
/**
*Dissector for ZigBee Green Power Step Color.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_into *pinfo - pointer to packet information fields.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* zbee_nwk_green_power_packet *packet - packet data.
* guint offset - current payload offset.
* RETURNS
* guint - payload processed offset.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param packet packet data.
*@param offset current payload offset.
*@return payload processed offset.
*/
static guint
dissect_zbee_nwk_gp_cmd_step_color(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
@ -977,20 +930,15 @@ dissect_zbee_nwk_gp_cmd_step_color(tvbuff_t *tvb, packet_info *pinfo _U_, proto_
return offset;
} /* dissect_zbee_nwk_gp_cmd_step_color */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_nwk_gp_cmd_step_up_down
* DESCRIPTION
/**
*Dissector for ZigBee Green Power Step Up/Down.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_into *pinfo - pointer to packet information fields.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* zbee_nwk_green_power_packet *packet - packet data.
* guint offset - current payload offset.
* RETURNS
* guint - payload processed offset.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param packet packet data.
*@param offset current payload offset.
*@return payload processed offset.
*/
static guint
dissect_zbee_nwk_gp_cmd_step_up_down(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
@ -1003,19 +951,14 @@ dissect_zbee_nwk_gp_cmd_step_up_down(tvbuff_t *tvb, packet_info *pinfo _U_, prot
return offset;
} /* dissect_zbee_nwk_gp_cmd_step_up_down */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_nwk_gp_cmd
* DESCRIPTION
/**
*Dissector for ZigBee Green Power commands.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_into *pinfo - pointer to packet information fields.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* void *data - raw packet private data.
* RETURNS
* guint - payload processed offset
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param data raw packet private data.
*@return payload processed offset
*/
static guint
dissect_zbee_nwk_gp_cmd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
@ -1152,17 +1095,11 @@ dissect_zbee_nwk_gp_cmd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
return offset;
} /* dissect_zbee_nwk_gp_cmd */
/*FUNCTION:------------------------------------------------------
* NAME
* zbee_sec_make_nonce
* DESCRIPTION
/**
*Fills in ZigBee GP security nonce from the provided packet structure.
* PARAMETERS
* zbee_nwk_green_power_packet *packet - ZigBee NWK packet.
* gchar *nonce - nonce buffer.
* RETURNS
* void
*---------------------------------------------------------------
*
*@param packet ZigBee NWK packet.
*@param nonce nonce buffer.
*/
static void
zbee_gp_make_nonce(zbee_nwk_green_power_packet *packet, gchar *nonce)
@ -1192,22 +1129,16 @@ zbee_gp_make_nonce(zbee_nwk_green_power_packet *packet, gchar *nonce)
/* TODO: implement if application_id != ZB_ZGP_APP_ID_0000. */
}
/*FUNCTION:------------------------------------------------------
* NAME
* zbee_sec_decrypt_payload
* DESCRIPTION
/**
*Creates a nonce and decrypts secured ZigBee GP payload.
* PARAMETERS
* zbee_nwk_green_power_packet *packet - ZigBee NWK packet.
* const gchar *enc_buffer - encoded payload buffer.
* const gchar offset - payload offset.
* guint8 *dec_buffer - decoded payload buffer.
* guint payload_len - payload length.
* guint mic_len - MIC length.
* guint8 *key - key.
* RETURNS
* gboolean
*---------------------------------------------------------------
*
*@param packet ZigBee NWK packet.
*@param enc_buffer encoded payload buffer.
*@param offset payload offset.
*@param dec_buffer decoded payload buffer.
*@param payload_len payload length.
*@param mic_len MIC length.
*@param key key.
*/
static gboolean
zbee_gp_decrypt_payload(zbee_nwk_green_power_packet *packet, const gchar *enc_buffer, const gchar offset, guint8
@ -1225,19 +1156,13 @@ zbee_gp_decrypt_payload(zbee_nwk_green_power_packet *packet, const gchar *enc_bu
return FALSE;
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_nwk_gp
* DESCRIPTION
/**
*ZigBee NWK packet dissection routine for Green Power profile.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_into *pinfo - pointer to packet information fields.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* void *data - raw packet private data.
* RETURNS
* int
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param data raw packet private data.
*/
static int
dissect_zbee_nwk_gp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
@ -1390,19 +1315,13 @@ dissect_zbee_nwk_gp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *d
return tvb_captured_length(tvb);
} /* dissect_zbee_nwk_gp */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_nwk_heur_gp
* DESCRIPTION
/**
*Heuristic interpreter for the ZigBee Green Power dissectors.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_into *pinfo - pointer to packet information fields.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* void *data - raw packet private data.
* RETURNS
* Boolean value, whether it handles the packet or not.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param data raw packet private data.
*/
static gboolean
dissect_zbee_nwk_heur_gp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
@ -1435,16 +1354,9 @@ dissect_zbee_nwk_heur_gp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, vo
return FALSE;
} /* dissect_zbee_nwk_heur_gp */
/*FUNCTION:------------------------------------------------------
* NAME
* gp_init_zbee_security
* DESCRIPTION
/**
*Init routine for the ZigBee GP profile security.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
static void
gp_init_zbee_security(void)
@ -1484,16 +1396,9 @@ gp_cleanup_zbee_security(void)
zbee_gp_keyring = NULL;
}
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_nwk_gp
* DESCRIPTION
/**
*ZigBee NWK GP protocol registration routine.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
void
proto_register_zbee_nwk_gp(void)
@ -1784,16 +1689,9 @@ proto_register_zbee_nwk_gp(void)
register_dissector(ZBEE_PROTOABBREV_NWK_GP, dissect_zbee_nwk_gp, proto_zbee_nwk_gp);
} /* proto_register_zbee_nwk_gp */
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_nwk_gp
* DESCRIPTION
/**
*Registers the ZigBee dissector with Wireshark.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_nwk_gp(void)

View File

@ -203,18 +203,12 @@ static const value_string zbee_zcl_appl_idt_ceced_spec_ver_names[] = {
/* Function Bodies */
/*************************/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_appl_idt
* DESCRIPTION
/**
*ZigBee ZCL Appliance Identification cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*/
static int
dissect_zbee_zcl_appl_idt(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void* data _U_)
@ -222,21 +216,14 @@ dissect_zbee_zcl_appl_idt(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree
return tvb_captured_length(tvb);
} /*dissect_zbee_zcl_appl_idt*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_appl_idt_attr_data
* DESCRIPTION
* this function is called by ZCL foundation dissector in order to decode
* specific cluster attributes data.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint *offset - pointer to buffer offset
* guint16 attr_id - attribute identifier
* guint data_type - attribute data type
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called by ZCL foundation dissector in order to decode
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset pointer to buffer offset
*@param attr_id attribute identifier
*@param data_type attribute data type
*/
void
dissect_zcl_appl_idt_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type)
@ -296,17 +283,9 @@ dissect_zcl_appl_idt_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, g
} /*dissect_zcl_appl_idt_attr_data*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_appl_idt
* DESCRIPTION
* this function registers the ZCL Appliance Identification dissector
* and all its information.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function registers the ZCL Appliance Identification dissector
*
*/
void
proto_register_zbee_zcl_appl_idt(void)
@ -358,16 +337,9 @@ proto_register_zbee_zcl_appl_idt(void)
register_dissector(ZBEE_PROTOABBREV_ZCL_APPLIDT, dissect_zbee_zcl_appl_idt, proto_zbee_zcl_appl_idt);
} /*proto_register_zbee_zcl_appl_idt*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_appl_idt
* DESCRIPTION
/**
*Hands off the Zcl Appliance Identification dissector.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_appl_idt(void)
@ -492,18 +464,12 @@ static const value_string zbee_zcl_met_idt_data_quality_names[] = {
/* Function Bodies */
/*************************/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_met_idt
* DESCRIPTION
/**
*ZigBee ZCL Meter Identification cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*/
static int
dissect_zbee_zcl_met_idt(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void* data _U_)
@ -511,21 +477,14 @@ dissect_zbee_zcl_met_idt(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *
return tvb_captured_length(tvb);
} /*dissect_zbee_zcl_met_idt*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_met_idt_attr_data
* DESCRIPTION
* this function is called by ZCL foundation dissector in order to decode
* specific cluster attributes data.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint *offset - pointer to buffer offset
* guint16 attr_id - attribute identifier
* guint data_type - attribute data type
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called by ZCL foundation dissector in order to decode
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset pointer to buffer offset
*@param attr_id attribute identifier
*@param data_type attribute data type
*/
void
dissect_zcl_met_idt_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type)
@ -550,17 +509,9 @@ dissect_zcl_met_idt_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, gu
} /*dissect_zcl_met_idt_attr_data*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_met_idt
* DESCRIPTION
* this function registers the ZCL Meter Identification dissector
* and all its information.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function registers the ZCL Meter Identification dissector
*
*/
void
proto_register_zbee_zcl_met_idt(void)
@ -589,16 +540,9 @@ proto_register_zbee_zcl_met_idt(void)
register_dissector(ZBEE_PROTOABBREV_ZCL_METIDT, dissect_zbee_zcl_met_idt, proto_zbee_zcl_met_idt);
} /*proto_register_zbee_zcl_met_idt*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_met_idt
* DESCRIPTION
/**
*Hands off the Zcl Meter Identification dissector.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_met_idt(void)
@ -743,18 +687,12 @@ static const value_string zbee_zcl_appl_evtalt_status_names[] = {
/* Function Bodies */
/*************************/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_appl_evtalt
* DESCRIPTION
/**
*ZigBee ZCL Appliance Events and Alerts cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*/
static int
dissect_zbee_zcl_appl_evtalt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
@ -831,18 +769,12 @@ dissect_zbee_zcl_appl_evtalt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
return tvb_captured_length(tvb);
} /*dissect_zbee_zcl_appl_evtalt*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_appl_evtalt_alerts_struct
* DESCRIPTION
/**
*This function is called in order to decode alerts structure payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* guint *offset - offset in the tvb buffer
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset offset in the tvb buffer
*/
static void
dissect_zcl_appl_evtalt_alerts_struct(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -855,18 +787,12 @@ dissect_zcl_appl_evtalt_alerts_struct(tvbuff_t *tvb, proto_tree *tree, guint *of
*offset += 3;
} /*dissect_zcl_appl_evtalt_alerts_struct*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_appl_evtalt_get_alerts
* DESCRIPTION
/**
*This function is called in order to decode the GetAlertsRespose payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* guint *offset - offset in the tvb buffer
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset offset in the tvb buffer
*/
static void
dissect_zcl_appl_evtalt_get_alerts_rsp(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -892,18 +818,12 @@ dissect_zcl_appl_evtalt_get_alerts_rsp(tvbuff_t *tvb, proto_tree *tree, guint *o
}
} /*dissect_zcl_appl_evtalt_get_alerts_rsp*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_appl_evtalt_event_notif
* DESCRIPTION
/**
*This function is called in order to decode the EventNotification payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* guint *offset - offset in the tvb buffer
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset offset in the tvb buffer
*/
static void
dissect_zcl_appl_evtalt_event_notif(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -916,17 +836,9 @@ dissect_zcl_appl_evtalt_event_notif(tvbuff_t *tvb, proto_tree *tree, guint *offs
*offset += 1;
} /*dissect_zcl_appl_evtalt_event_notif*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_appl_evtalt
* DESCRIPTION
* this function registers the ZCL Appliance Events and Alert dissector
* and all its information.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function registers the ZCL Appliance Events and Alert dissector
*
*/
void
proto_register_zbee_zcl_appl_evtalt(void)
@ -1001,16 +913,9 @@ proto_register_zbee_zcl_appl_evtalt(void)
register_dissector(ZBEE_PROTOABBREV_ZCL_APPLEVTALT, dissect_zbee_zcl_appl_evtalt, proto_zbee_zcl_appl_evtalt);
} /*proto_register_zbee_zcl_appl_evtalt*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_appl_evtalt
* DESCRIPTION
/**
*Hands off the Zcl Appliance Events And Alerts dissector.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_appl_evtalt(void)
@ -1122,18 +1027,12 @@ static const value_string zbee_zcl_appl_stats_srv_tx_cmd_names[] = {
/* Function Bodies */
/*************************/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_appl_stats
* DESCRIPTION
/**
*ZigBee ZCL Appliance Statistics cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*/
static int
dissect_zbee_zcl_appl_stats (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
@ -1215,18 +1114,12 @@ dissect_zbee_zcl_appl_stats (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
return tvb_captured_length(tvb);
} /*dissect_zbee_zcl_appl_stats*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_appl_stats_log_req
* DESCRIPTION
* this function is called in order to decode "LogRequest" payload command.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* guint *offset - pointer to buffer offset
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called in order to decode "LogRequest" payload command.
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to buffer offset
*/
static void
dissect_zcl_appl_stats_log_req(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1236,19 +1129,12 @@ dissect_zcl_appl_stats_log_req(tvbuff_t *tvb, proto_tree *tree, guint *offset)
*offset += 4;
} /*dissect_zcl_appl_stats_log_req*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_appl_stats_log_rsp
* DESCRIPTION
* this function is called in order to decode "LogNotification" and
* "LogResponse" payload command.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* guint *offset - pointer to buffer offset
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called in order to decode "LogNotification" and
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to buffer offset
*/
static void
dissect_zcl_appl_stats_log_rsp(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1273,19 +1159,12 @@ dissect_zcl_appl_stats_log_rsp(tvbuff_t *tvb, proto_tree *tree, guint *offset)
*offset += log_len;
}/*dissect_zcl_appl_stats_log_rsp*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_appl_stats_log_queue_rsp
* DESCRIPTION
* this function is called in order to decode "LogQueueResponse" and
* "StatisticsAvailable" payload command.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* guint *offset - pointer to buffer offset
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called in order to decode "LogQueueResponse" and
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to buffer offset
*/
static void
dissect_zcl_appl_stats_log_queue_rsp(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1307,18 +1186,11 @@ dissect_zcl_appl_stats_log_queue_rsp(tvbuff_t *tvb, proto_tree *tree, guint *off
}
}/*dissect_zcl_appl_stats_log_queue_rsp*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_zcl_appl_stats_utc_time
* DESCRIPTION
* this function decodes utc time, with peculiarity case for
* appliance statitics specifications.
* PARAMETERS
* guint *s - string to display
* guint32 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes utc time, with peculiarity case for
*
*@param s string to display
*@param value value to decode
*/
static void
decode_zcl_appl_stats_utc_time(gchar *s, guint32 value)
@ -1334,17 +1206,9 @@ decode_zcl_appl_stats_utc_time(gchar *s, guint32 value)
}
} /* decode_zcl_appl_stats_utc_time */
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_appl_stats
* DESCRIPTION
* this function registers the ZCL Appliance Statistics dissector
* and all its information.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function registers the ZCL Appliance Statistics dissector
*
*/
void
proto_register_zbee_zcl_appl_stats(void)
@ -1407,16 +1271,9 @@ proto_register_zbee_zcl_appl_stats(void)
register_dissector(ZBEE_PROTOABBREV_ZCL_APPLSTATS, dissect_zbee_zcl_appl_stats, proto_zbee_zcl_appl_stats);
} /* proto_register_zbee_zcl_appl_stats */
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_appl_stats
* DESCRIPTION
/**
*Hands off the Zcl Appliance Statistics cluster dissector.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_appl_stats(void)

View File

@ -126,18 +126,12 @@ static const value_string zbee_zcl_illum_meas_sensor_type_names[] = {
/* Function Bodies */
/*************************/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_illum_meas
* DESCRIPTION
/**
*ZigBee ZCL Illuminance Measurement cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*/
static int
dissect_zbee_zcl_illum_meas(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void* data _U_)
@ -145,21 +139,14 @@ dissect_zbee_zcl_illum_meas(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tre
return tvb_captured_length(tvb);
} /*dissect_zbee_zcl_illum_meas*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_illum_meas_attr_data
* DESCRIPTION
* this function is called by ZCL foundation dissector in order to decode
* specific cluster attributes data.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint *offset - pointer to buffer offset
* guint16 attr_id - attribute identifier
* guint data_type - attribute data type
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called by ZCL foundation dissector in order to decode
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset pointer to buffer offset
*@param attr_id attribute identifier
*@param data_type attribute data type
*/
static void
dissect_zcl_illum_meas_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type)
@ -198,17 +185,11 @@ dissect_zcl_illum_meas_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset,
}
} /*dissect_zcl_illum_meas_attr_data*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_illum_meas_value
* DESCRIPTION
* this function decodes illuminance value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes illuminance value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_illum_meas_value(gchar *s, guint16 value)
@ -224,17 +205,11 @@ decode_illum_meas_value(gchar *s, guint16 value)
return;
} /*decode_illum_meas_value*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_illum_meas_min_value
* DESCRIPTION
* this function decodes minimum illuminance value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes minimum illuminance value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_illum_meas_min_value(gchar *s, guint16 value)
@ -248,17 +223,11 @@ decode_illum_meas_min_value(gchar *s, guint16 value)
return;
} /*decode_illum_meas_min_value*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_illum_meas_max_value
* DESCRIPTION
* this function decodes maximum illuminance value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes maximum illuminance value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_illum_meas_max_value(gchar *s, guint16 value)
@ -272,17 +241,11 @@ decode_illum_meas_max_value(gchar *s, guint16 value)
return;
} /*decode_illum_meas_max_value*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_illum_meas_tolerance
* DESCRIPTION
* this function decodes tolerance value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes tolerance value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_illum_meas_tolerance(gchar *s, guint16 value)
@ -295,17 +258,9 @@ decode_illum_meas_tolerance(gchar *s, guint16 value)
return;
} /*decode_illum_meas_tolerance*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_illum_meas
* DESCRIPTION
* this function registers the ZCL Illuminance Measurement dissector
* and all its information.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function registers the ZCL Illuminance Measurement dissector
*
*/
void
proto_register_zbee_zcl_illum_meas(void)
@ -348,16 +303,9 @@ proto_register_zbee_zcl_illum_meas(void)
} /*proto_register_zbee_zcl_illum_meas*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_illum_meas
* DESCRIPTION
/**
*Hands off the ZCL Illuminance Measurement dissector.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_illum_meas(void)
@ -455,18 +403,12 @@ static const value_string zbee_zcl_illum_level_sen_level_status_names[] = {
/* Function Bodies */
/*************************/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_illum_level_sen
* DESCRIPTION
/**
*ZigBee ZCL Illuminance Level Sensing cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*/
static int
dissect_zbee_zcl_illum_level_sen(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void* data _U_)
@ -474,21 +416,14 @@ dissect_zbee_zcl_illum_level_sen(tvbuff_t *tvb _U_, packet_info *pinfo _U_, prot
return tvb_captured_length(tvb);
} /*dissect_zbee_zcl_illum_level_sen*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_illum_level_sen_attr_data
* DESCRIPTION
* this function is called by ZCL foundation dissector in order to decode
* specific cluster attributes data.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint *offset - pointer to buffer offset
* guint16 attr_id - attribute identifier
* guint data_type - attribute data type
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called by ZCL foundation dissector in order to decode
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset pointer to buffer offset
*@param attr_id attribute identifier
*@param data_type attribute data type
*/
static void
dissect_zcl_illum_level_sen_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type)
@ -517,17 +452,11 @@ dissect_zcl_illum_level_sen_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *of
}
} /*dissect_zcl_illum_level_sen_attr_data*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_illum_level_sen_target_level
* DESCRIPTION
* this function decodes illuminance value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes illuminance value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_illum_level_sen_target_level(gchar *s, guint16 value)
@ -543,17 +472,9 @@ decode_illum_level_sen_target_level(gchar *s, guint16 value)
return;
} /*decode_illum_level_sen_value*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_illum_level_sen
* DESCRIPTION
* this function registers the ZCL Illuminance Level Sensing dissector
* and all its information.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function registers the ZCL Illuminance Level Sensing dissector
*
*/
void
proto_register_zbee_zcl_illum_level_sen(void)
@ -587,16 +508,9 @@ proto_register_zbee_zcl_illum_level_sen(void)
} /*proto_register_zbee_zcl_illum_level_sen*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_illum_level_sen
* DESCRIPTION
/**
*Hands off the ZCL Illuminance Level Sensing dissector.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_illum_level_sen(void)
@ -689,18 +603,12 @@ static const value_string zbee_zcl_temp_meas_attr_names[] = {
/* Function Bodies */
/*************************/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_temp_meas
* DESCRIPTION
/**
*ZigBee ZCL Temperature Measurement cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*/
static int
dissect_zbee_zcl_temp_meas(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void* data _U_)
@ -708,21 +616,14 @@ dissect_zbee_zcl_temp_meas(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree
return tvb_captured_length(tvb);
} /*dissect_zbee_zcl_temp_meas*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_temp_meas_attr_data
* DESCRIPTION
* this function is called by ZCL foundation dissector in order to decode
* specific cluster attributes data.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint *offset - pointer to buffer offset
* guint16 attr_id - attribute identifier
* guint data_type - attribute data type
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called by ZCL foundation dissector in order to decode
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset pointer to buffer offset
*@param attr_id attribute identifier
*@param data_type attribute data type
*/
static void
dissect_zcl_temp_meas_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type)
@ -757,17 +658,11 @@ dissect_zcl_temp_meas_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset,
} /*dissect_zcl_temp_meas_attr_data*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_temp_meas_value
* DESCRIPTION
* this function decodes temperature value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes temperature value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_temp_meas_value(gchar *s, gint16 value)
@ -780,17 +675,11 @@ decode_temp_meas_value(gchar *s, gint16 value)
return;
} /*decode_temp_meas_value*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_temp_meas_min_value
* DESCRIPTION
* this function decodes minimum temperature value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes minimum temperature value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_temp_meas_min_value(gchar *s, gint16 value)
@ -804,17 +693,11 @@ decode_temp_meas_min_value(gchar *s, gint16 value)
return;
} /*decode_temp_meas_min_value*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_temp_meas_max_value
* DESCRIPTION
* this function decodes maximum temperature value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes maximum temperature value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_temp_meas_max_value(gchar *s, gint16 value)
@ -827,17 +710,11 @@ decode_temp_meas_max_value(gchar *s, gint16 value)
return;
} /*decode_temp_meas_max_value*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_temp_meas_tolerance
* DESCRIPTION
* this function decodes tolerance value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes tolerance value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_temp_meas_tolerance(gchar *s, guint16 value)
@ -850,17 +727,9 @@ decode_temp_meas_tolerance(gchar *s, guint16 value)
return;
} /*decode_temp_meas_tolerance*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_temp_meas
* DESCRIPTION
* this function registers the ZCL Temperature Measurement dissector
* and all its information.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function registers the ZCL Temperature Measurement dissector
*
*/
void
proto_register_zbee_zcl_temp_meas(void)
@ -897,16 +766,9 @@ proto_register_zbee_zcl_temp_meas(void)
register_dissector(ZBEE_PROTOABBREV_ZCL_TEMPMEAS, dissect_zbee_zcl_temp_meas, proto_zbee_zcl_temp_meas);
} /*proto_register_zbee_zcl_temp_meas*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_temp_meas
* DESCRIPTION
/**
*Hands off the ZCL Temperature Measurement dissector.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_temp_meas(void)
@ -1016,18 +878,12 @@ static const value_string zbee_zcl_press_meas_attr_names[] = {
/* Function Bodies */
/*************************/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_press_meas
* DESCRIPTION
/**
*ZigBee ZCL Pressure Measurement cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*/
static int
dissect_zbee_zcl_press_meas(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void* data _U_)
@ -1035,21 +891,14 @@ dissect_zbee_zcl_press_meas(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tre
return tvb_captured_length(tvb);
} /*dissect_zbee_zcl_press_meas*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_press_meas_attr_data
* DESCRIPTION
* this function is called by ZCL foundation dissector in order to decode
* specific cluster attributes data.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint *offset - pointer to buffer offset
* guint16 attr_id - attribute identifier
* guint data_type - attribute data type
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called by ZCL foundation dissector in order to decode
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset pointer to buffer offset
*@param attr_id attribute identifier
*@param data_type attribute data type
*/
static void
dissect_zcl_press_meas_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type)
@ -1108,17 +957,11 @@ dissect_zcl_press_meas_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset,
}
} /*dissect_zcl_press_meas_attr_data*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_press_meas_value
* DESCRIPTION
* this function decodes pressure value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes pressure value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_press_meas_value(gchar *s, gint16 value)
@ -1133,17 +976,11 @@ decode_press_meas_value(gchar *s, gint16 value)
return;
} /*decode_press_meas_value*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_press_meas_min_value
* DESCRIPTION
* this function decodes minimum pressure value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes minimum pressure value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_press_meas_min_value(gchar *s, gint16 value)
@ -1156,17 +993,11 @@ decode_press_meas_min_value(gchar *s, gint16 value)
return;
} /*decode_press_meas_min_value*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_press_meas_max_value
* DESCRIPTION
* this function decodes maximum pressure value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes maximum pressure value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_press_meas_max_value(gchar *s, gint16 value)
@ -1179,17 +1010,11 @@ decode_press_meas_max_value(gchar *s, gint16 value)
return;
} /*decode_press_meas_max_value*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_press_meas_tolerance
* DESCRIPTION
* this function decodes tolerance value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes tolerance value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_press_meas_tolerance(gchar *s, guint16 value)
@ -1202,17 +1027,9 @@ decode_press_meas_tolerance(gchar *s, guint16 value)
return;
} /*decode_press_meas_tolerance*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_press_meas
* DESCRIPTION
* this function registers the ZCL Pressure Measurement dissector
* and all its information.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function registers the ZCL Pressure Measurement dissector
*
*/
void
proto_register_zbee_zcl_press_meas(void)
@ -1269,16 +1086,9 @@ proto_register_zbee_zcl_press_meas(void)
register_dissector(ZBEE_PROTOABBREV_ZCL_PRESSMEAS, dissect_zbee_zcl_press_meas, proto_zbee_zcl_press_meas);
} /*proto_register_zbee_zcl_press_meas*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_press_meas
* DESCRIPTION
/**
*Hands off the ZCL Pressure Measurement dissector.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_press_meas(void)
@ -1631,18 +1441,12 @@ static const value_string zbee_zcl_relhum_meas_attr_names[] = {
/* Function Bodies */
/*************************/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_relhum_meas
* DESCRIPTION
/**
*ZigBee ZCL Relative Humidity Measurement cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*/
static int
dissect_zbee_zcl_relhum_meas(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void* data _U_)
@ -1650,21 +1454,14 @@ dissect_zbee_zcl_relhum_meas(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tr
return tvb_captured_length(tvb);
} /*dissect_zbee_zcl_relhum_meas*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_relhum_meas_attr_data
* DESCRIPTION
* this function is called by ZCL foundation dissector in order to decode
* specific cluster attributes data.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint *offset - pointer to buffer offset
* guint16 attr_id - attribute identifier
* guint data_type - attribute data type
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called by ZCL foundation dissector in order to decode
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset pointer to buffer offset
*@param attr_id attribute identifier
*@param data_type attribute data type
*/
static void
dissect_zcl_relhum_meas_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type)
@ -1698,17 +1495,11 @@ dissect_zcl_relhum_meas_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset
}
} /*dissect_zcl_relhum_meas_attr_data*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_relhum_meas_value
* DESCRIPTION
* this function decodes relative humidity value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes relative humidity value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_relhum_meas_value(gchar *s, guint16 value)
@ -1721,17 +1512,11 @@ decode_relhum_meas_value(gchar *s, guint16 value)
return;
} /*decode_relhum_meas_value*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_relhum_meas_min_value
* DESCRIPTION
* this function decodes minimum relative humidity value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes minimum relative humidity value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_relhum_meas_min_value(gchar *s, guint16 value)
@ -1744,17 +1529,11 @@ decode_relhum_meas_min_value(gchar *s, guint16 value)
return;
} /*decode_relhum_meas_min_value*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_relhum_meas_max_value
* DESCRIPTION
* this function decodes maximum relative humidity value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes maximum relative humidity value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_relhum_meas_max_value(gchar *s, guint16 value)
@ -1767,17 +1546,11 @@ decode_relhum_meas_max_value(gchar *s, guint16 value)
return;
} /*decode_relhum_meas_max_value*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_relhum_meas_tolerance
* DESCRIPTION
* this function decodes tolerance value
* PARAMETERS
* guint *s - string to display
* guint16 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes tolerance value
*
*@param s string to display
*@param value value to decode
*/
static void
decode_relhum_meas_tolerance(gchar *s, guint16 value)
@ -1790,17 +1563,9 @@ decode_relhum_meas_tolerance(gchar *s, guint16 value)
return;
} /*decode_relhum_meas_tolerance*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_relhum_meas
* DESCRIPTION
* this function registers the ZCL Relative Humidity Measurement dissector
* and all its information.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function registers the ZCL Relative Humidity Measurement dissector
*
*/
void
proto_register_zbee_zcl_relhum_meas(void)
@ -1838,16 +1603,9 @@ proto_register_zbee_zcl_relhum_meas(void)
} /*proto_register_zbee_zcl_relhum_meas*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_relhum_meas
* DESCRIPTION
/**
*Hands off the ZCL Relative Humidity Measurement dissector.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_relhum_meas(void)

View File

@ -248,18 +248,12 @@ static int dissect_zcl_thermostat_schedule(proto_tree *tree, tvbuff_t *tvb, gui
static void dissect_zcl_thermostat_schedule_days(proto_tree *tree, tvbuff_t *tvb, guint offset);
static void dissect_zcl_thermostat_schedule_mode(proto_tree *tree, tvbuff_t *tvb, guint offset);
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_thermostat_schedule_days
* DESCRIPTION
/**
*Helper function to dissect a Thermostat scheduling days bitmask.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint offset - payload offset of the ZoneStatus value.
* RETURNS
* void
*---------------------------------------------------------------
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset payload offset of the ZoneStatus value.
*/
static void
dissect_zcl_thermostat_schedule_days(proto_tree *tree, tvbuff_t *tvb, guint offset)
@ -282,18 +276,12 @@ dissect_zcl_thermostat_schedule_days(proto_tree *tree, tvbuff_t *tvb, guint offs
} /* dissect_zcl_thermostat_schedule_days */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_thermostat_schedule_mode
* DESCRIPTION
/**
*Helper function to dissect a Thermostat scheduling mode bitmask.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint offset - payload offset of the ZoneStatus value.
* RETURNS
* void
*---------------------------------------------------------------
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset payload offset of the ZoneStatus value.
*/
static void
dissect_zcl_thermostat_schedule_mode(proto_tree *tree, tvbuff_t *tvb, guint offset)
@ -309,20 +297,13 @@ dissect_zcl_thermostat_schedule_mode(proto_tree *tree, tvbuff_t *tvb, guint offs
ett_zbee_zcl_thermostat_schedule_mode, thermostat_schedule_modes, ENC_NA);
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_thermostat_cmd_schedule
* DESCRIPTION
/**
*Helper function to dissect a Thermostat schedule, which has
* a common format in both the Set Weekly Schedule, and Get
* Weekly Schedule Response commands.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint offset - payload offset of the ZoneStatus value.
* RETURNS
* int - length of parsed data.
*---------------------------------------------------------------
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset payload offset of the ZoneStatus value.
*@return length of parsed data.
*/
static int
dissect_zcl_thermostat_schedule(proto_tree *tree, tvbuff_t *tvb, guint offset)
@ -370,19 +351,14 @@ dissect_zcl_thermostat_schedule(proto_tree *tree, tvbuff_t *tvb, guint offset)
return (offset - start);
} /* dissect_zcl_thermostat_cmd_schedule */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_thermostat
* DESCRIPTION
/**
*ZigBee ZCL Thermostat cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* void *data - pointer to ZCL packet structure.
* RETURNS
* int - length of parsed data.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*@param data pointer to ZCL packet structure.
*@return length of parsed data.
*/
static int
dissect_zbee_zcl_thermostat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
@ -466,21 +442,14 @@ dissect_zbee_zcl_thermostat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
return tvb_captured_length(tvb);
} /* dissect_zbee_zcl_thermostat */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_thermostat_attr_data
* DESCRIPTION
* this function is called by ZCL foundation dissector in order to decode
* specific cluster attributes data.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint *offset - pointer to buffer offset
* guint16 attr_id - attribute identifier
* guint data_type - attribute data type
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called by ZCL foundation dissector in order to decode
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset pointer to buffer offset
*@param attr_id attribute identifier
*@param data_type attribute data type
*/
static void
dissect_zcl_thermostat_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type)
@ -493,16 +462,9 @@ dissect_zcl_thermostat_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset,
}
} /*dissect_zcl_thermostat_attr_data*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_ias_zone
* DESCRIPTION
/**
*ZigBee ZCL IAS Zone cluste protocol registration.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
void
proto_register_zbee_zcl_thermostat(void)
@ -608,16 +570,9 @@ proto_register_zbee_zcl_thermostat(void)
register_dissector(ZBEE_PROTOABBREV_ZCL_THERMOSTAT, dissect_zbee_zcl_thermostat, proto_zbee_zcl_thermostat);
} /*proto_register_zbee_zcl_thermostat*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_thermostat
* DESCRIPTION
/**
*Hands off the ZCL Thermostat dissector.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_thermostat(void)
@ -811,18 +766,12 @@ static void dissect_zcl_ias_zone_attr_data (proto_tree *tree, tvbuff_t *tvb, gu
/* ZoneStatus bitmask helper */
static void dissect_zcl_ias_zone_status (proto_tree *tree, tvbuff_t *tvb, guint offset);
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_ias_zone_status
* DESCRIPTION
/**
*Helper function to dissect the IAS ZoneStatus bitmask.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint offset - payload offset of the ZoneStatus value.
* RETURNS
* int - length of parsed data.
*---------------------------------------------------------------
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset payload offset of the ZoneStatus value.
*/
static void
dissect_zcl_ias_zone_status(proto_tree *tree, tvbuff_t *tvb, guint offset)
@ -843,19 +792,14 @@ dissect_zcl_ias_zone_status(proto_tree *tree, tvbuff_t *tvb, guint offset)
} /* dissect_zcl_ias_zone_status */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_ias_zone
* DESCRIPTION
/**
*ZigBee ZCL IAS Zone cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* void *data - pointer to ZCL packet structure.
* RETURNS
* int - length of parsed data.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*@param data pointer to ZCL packet structure.
*@return length of parsed data.
*/
static int
dissect_zbee_zcl_ias_zone(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
@ -925,21 +869,14 @@ dissect_zbee_zcl_ias_zone(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, v
return tvb_reported_length(tvb);
} /* dissect_zbee_zcl_ias_zone */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_ias_zone_attr_data
* DESCRIPTION
* this function is called by ZCL foundation dissector in order to decode
* specific cluster attributes data.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint *offset - pointer to buffer offset
* guint16 attr_id - attribute identifier
* guint data_type - attribute data type
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called by ZCL foundation dissector in order to decode
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset pointer to buffer offset
*@param attr_id attribute identifier
*@param data_type attribute data type
*/
static void
dissect_zcl_ias_zone_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type)
@ -968,16 +905,9 @@ dissect_zcl_ias_zone_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, g
}
} /*dissect_zcl_ias_zone_attr_data*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_ias_zone
* DESCRIPTION
/**
*Hands off the ZCL IAS Zone dissector.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_ias_zone(void)
@ -998,16 +928,9 @@ proto_reg_handoff_zbee_zcl_ias_zone(void)
);
} /*proto_reg_handoff_zbee_zcl_ias_zone*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_ias_zone
* DESCRIPTION
/**
*ZigBee ZCL IAS Zone cluste protocol registration.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
void
proto_register_zbee_zcl_ias_zone(void)

View File

@ -196,21 +196,14 @@ static const value_string zbee_zcl_msg_ctrl_importance_names[] = {
/* Function Bodies */
/*************************/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_msg_attr_data
* DESCRIPTION
* this function is called by ZCL foundation dissector in order to decode
* specific cluster attributes data.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint *offset - pointer to buffer offset
* guint16 attr_id - attribute identifier
* guint data_type - attribute data type
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called by ZCL foundation dissector in order to decode
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset pointer to buffer offset
*@param attr_id attribute identifier
*@param data_type attribute data type
*/
static void
dissect_zcl_msg_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type)
@ -230,18 +223,12 @@ dissect_zcl_msg_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint1
}
} /*dissect_zcl_ias_zone_attr_data*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_msg
* DESCRIPTION
/**
*ZigBee ZCL Messaging cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*/
static int
dissect_zbee_zcl_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
@ -335,18 +322,12 @@ dissect_zbee_zcl_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void*
return tvb_captured_length(tvb);
} /*dissect_zbee_zcl_msg*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_msg_display
* DESCRIPTION
/**
*This function manages the Display Message payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_msg_display(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -402,18 +383,12 @@ dissect_zcl_msg_display(tvbuff_t *tvb, proto_tree *tree, guint *offset)
} /*dissect_zcl_msg_display*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_msg_cancel
* DESCRIPTION
/**
*This function manages the Cancel Message payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_msg_cancel(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint *offset)
@ -436,18 +411,12 @@ dissect_zcl_msg_cancel(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guin
} /* dissect_zcl_msg_cancel */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_msg_cancel_all
* DESCRIPTION
/**
*Send Cancel All command
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_msg_cancel_all(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -462,18 +431,12 @@ dissect_zcl_msg_cancel_all(tvbuff_t *tvb, proto_tree *tree, guint *offset)
} /* dissect_zcl_msg_cancel_all */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_msg_get_cancel
* DESCRIPTION
/**
*Send Cancel All command
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_msg_get_cancel(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -489,18 +452,12 @@ dissect_zcl_msg_get_cancel(tvbuff_t *tvb, proto_tree *tree, guint *offset)
} /* dissect_zcl_msg_get_cancel */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_msg_confirm
* DESCRIPTION
/**
*This function manages the Message Confirmation payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_msg_confirm(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -539,15 +496,9 @@ dissect_zcl_msg_confirm(tvbuff_t *tvb, proto_tree *tree, guint *offset)
} /* dissect_zcl_msg_confirm */
/*FUNCTION:------------------------------------------------------
* NAME
* decode_zcl_msg_duration
* DESCRIPTION
* this function decodes duration in minute type variable
* PARAMETERS
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes duration in minute type variable
*
*/
static void
decode_zcl_msg_duration(gchar *s, guint16 value)
@ -559,18 +510,11 @@ decode_zcl_msg_duration(gchar *s, guint16 value)
return;
} /*decode_zcl_msg_duration*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_zcl_msg_start_time
* DESCRIPTION
* this function decodes start time, with peculiarity case for
* messaging specifications.
* PARAMETERS
* guint *s - string to display
* guint32 value - value to decode
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes start time, with peculiarity case for
*
*@param s string to display
*@param value value to decode
*/
static void
decode_zcl_msg_start_time(gchar *s, guint32 value)
@ -586,17 +530,9 @@ decode_zcl_msg_start_time(gchar *s, guint32 value)
}
} /* decode_zcl_msg_start_time */
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_msg
* DESCRIPTION
* this function registers the ZCL Messaging dissector
* and all its information.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function registers the ZCL Messaging dissector
*
*/
void
proto_register_zbee_zcl_msg(void)
@ -726,16 +662,9 @@ proto_register_zbee_zcl_msg(void)
register_dissector(ZBEE_PROTOABBREV_ZCL_MSG, dissect_zbee_zcl_msg, proto_zbee_zcl_msg);
} /*proto_register_zbee_zcl_msg*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_msg
* DESCRIPTION
/**
*Hands off the Zcl Messaging dissector.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_msg(void)
@ -915,21 +844,14 @@ static const value_string zbee_zcl_tun_status_names[] = {
/* Function Bodies */
/*************************/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_tun_attr_data
* DESCRIPTION
* this function is called by ZCL foundation dissector in order to decode
* specific cluster attributes data.
* PARAMETERS
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint *offset - pointer to buffer offset
* guint16 attr_id - attribute identifier
* guint data_type - attribute data type
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function is called by ZCL foundation dissector in order to decode
*
*@param tree pointer to data tree Wireshark uses to display packet.
*@param tvb pointer to buffer containing raw packet.
*@param offset pointer to buffer offset
*@param attr_id attribute identifier
*@param data_type attribute data type
*/
static void
dissect_zcl_tun_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type)
@ -953,18 +875,12 @@ dissect_zcl_tun_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint1
}
} /*dissect_zcl_ias_zone_attr_data*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_tun_request_tunnel
* DESCRIPTION
/**
*This function manages the Display Message payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_tun_request_tunnel(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -982,18 +898,12 @@ dissect_zcl_tun_request_tunnel(tvbuff_t *tvb, proto_tree *tree, guint *offset)
*offset += 2;
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_tun_close_tunnel
* DESCRIPTION
/**
*This function manages the Display Message payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_tun_close_tunnel(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1002,18 +912,12 @@ dissect_zcl_tun_close_tunnel(tvbuff_t *tvb, proto_tree *tree, guint *offset)
*offset += 2;
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_tun_transfer_data
* DESCRIPTION
/**
*This function manages the Display Message payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_tun_transfer_data(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1028,18 +932,12 @@ dissect_zcl_tun_transfer_data(tvbuff_t *tvb, proto_tree *tree, guint *offset)
*offset += length;
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_tun_transfer_data_error
* DESCRIPTION
/**
*This function manages the Display Message payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_tun_transfer_data_error(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1051,18 +949,12 @@ dissect_zcl_tun_transfer_data_error(tvbuff_t *tvb, proto_tree *tree, guint *offs
*offset += 1;
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_tun_ack_transfer_data
* DESCRIPTION
/**
*This function manages the Display Message payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_tun_ack_transfer_data(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1074,18 +966,12 @@ dissect_zcl_tun_ack_transfer_data(tvbuff_t *tvb, proto_tree *tree, guint *offset
*offset += 2;
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_tun_ready_data
* DESCRIPTION
/**
*This function manages the Display Message payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_tun_ready_data(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1097,18 +983,12 @@ dissect_zcl_tun_ready_data(tvbuff_t *tvb, proto_tree *tree, guint *offset)
*offset += 2;
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_tun_get_supported
* DESCRIPTION
/**
*This function manages the Display Message payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_tun_get_supported(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1117,18 +997,12 @@ dissect_zcl_tun_get_supported(tvbuff_t *tvb, proto_tree *tree, guint *offset)
*offset += 2;
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_tun_request_tunnel_rsp
* DESCRIPTION
/**
*This function manages the Display Message payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_tun_request_tunnel_rsp(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1143,18 +1017,12 @@ dissect_zcl_tun_request_tunnel_rsp(tvbuff_t *tvb, proto_tree *tree, guint *offse
*offset += 2;
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_tun_get_supported_rsp
* DESCRIPTION
/**
*This function manages the Display Message payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_tun_get_supported_rsp(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1182,18 +1050,12 @@ dissect_zcl_tun_get_supported_rsp(tvbuff_t *tvb, proto_tree *tree, guint *offset
}
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_tun_closure_notify
* DESCRIPTION
/**
*This function manages the Display Message payload
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_tun_closure_notify(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1202,18 +1064,12 @@ dissect_zcl_tun_closure_notify(tvbuff_t *tvb, proto_tree *tree, guint *offset)
*offset += 2;
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_tun
* DESCRIPTION
/**
*ZigBee ZCL Messaging cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*/
static int
dissect_zbee_zcl_tun(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
@ -1335,17 +1191,9 @@ dissect_zbee_zcl_tun(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void*
return tvb_captured_length(tvb);
} /*dissect_zbee_zcl_tun*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_tun
* DESCRIPTION
* this function registers the ZCL Messaging dissector
* and all its information.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function registers the ZCL Messaging dissector
*
*/
void
proto_register_zbee_zcl_tun(void)
@ -1437,16 +1285,9 @@ proto_register_zbee_zcl_tun(void)
} /* proto_register_zbee_zcl_tun */
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_tun
* DESCRIPTION
/**
*Hands off the Zcl Messaging dissector.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_tun(void)
@ -1608,18 +1449,12 @@ static const value_string zbee_zcl_ke_status_names[] = {
/*************************/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_ke_suite1_certificate
* DESCRIPTION
/**
*This function dissects the Suite 1 Certificate
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_ke_suite1_certificate(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1638,18 +1473,12 @@ dissect_zcl_ke_suite1_certificate(tvbuff_t *tvb, proto_tree *tree, guint *offset
} /*dissect_zcl_ke_suite1_certificate*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_ke_suite2_certificate
* DESCRIPTION
/**
*This function dissects the Suite 2 Certificate
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_ke_suite2_certificate(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1706,18 +1535,12 @@ dissect_zcl_ke_suite2_certificate(tvbuff_t *tvb, proto_tree *tree, guint *offset
} /*dissect_zcl_ke_suite2_certificate*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_ke_initiate_req
* DESCRIPTION
/**
*This function manages the Initiate Key Establishment message
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_ke_initiate(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1754,18 +1577,12 @@ dissect_zcl_ke_initiate(tvbuff_t *tvb, proto_tree *tree, guint *offset)
}
} /* dissect_zcl_ke_initiate */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_ke_ephemeral_qeu
* DESCRIPTION
/**
*This function dissects the Ephemeral Data QEU
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static int
dissect_zcl_ke_ephemeral_qeu(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1780,18 +1597,12 @@ dissect_zcl_ke_ephemeral_qeu(tvbuff_t *tvb, proto_tree *tree, guint *offset)
return tvb_captured_length(tvb);
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_ke_ephemeral_qev
* DESCRIPTION
/**
*This function dissects the Ephemeral Data QEV
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static int
dissect_zcl_ke_ephemeral_qev(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1806,18 +1617,12 @@ dissect_zcl_ke_ephemeral_qev(tvbuff_t *tvb, proto_tree *tree, guint *offset)
return tvb_captured_length(tvb);
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_ke_confirm_macu
* DESCRIPTION
/**
*This function dissects the Confirm MACU
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static int
dissect_zcl_ke_confirm_macu(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1827,18 +1632,12 @@ dissect_zcl_ke_confirm_macu(tvbuff_t *tvb, proto_tree *tree, guint *offset)
return tvb_captured_length(tvb);
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_ke_confirm_macv
* DESCRIPTION
/**
*This function dissects the Confirm MACV
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static int
dissect_zcl_ke_confirm_macv(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1848,18 +1647,12 @@ dissect_zcl_ke_confirm_macv(tvbuff_t *tvb, proto_tree *tree, guint *offset)
return tvb_captured_length(tvb);
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_ke_terminate
* DESCRIPTION
/**
*This function dissects the Terminate Key Establishment message
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* offset - offset
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree Wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void
dissect_zcl_ke_terminate(tvbuff_t *tvb, proto_tree *tree, guint *offset)
@ -1874,18 +1667,12 @@ dissect_zcl_ke_terminate(tvbuff_t *tvb, proto_tree *tree, guint *offset)
*offset += 2;
}
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl_ke
* DESCRIPTION
/**
*ZigBee ZCL Key Establishment cluster dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* RETURNS
* none
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree Wireshark uses to display packet.
*/
static int
dissect_zbee_zcl_ke(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
@ -1975,17 +1762,9 @@ dissect_zbee_zcl_ke(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* d
} /*dissect_zbee_zcl_ke*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl_ke
* DESCRIPTION
* this function registers the ZCL Messaging dissector
* and all its information.
* PARAMETERS
* none
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function registers the ZCL Messaging dissector
*
*/
void
proto_register_zbee_zcl_ke(void)
@ -2105,16 +1884,9 @@ proto_register_zbee_zcl_ke(void)
register_dissector(ZBEE_PROTOABBREV_ZCL_KE, dissect_zbee_zcl_ke, proto_zbee_zcl_ke);
} /*proto_register_zbee_zcl_ke*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl_ke
* DESCRIPTION
/**
*Hands off the Zcl Key Establishment dissector.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
void
proto_reg_handoff_zbee_zcl_ke(void)

View File

@ -759,19 +759,13 @@ static const value_string zbee_zcl_dis_names[] = {
{ 0, NULL }
};
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zbee_zcl
* DESCRIPTION
/**
*ZigBee Cluster Library dissector for wireshark.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_into *pinfo - pointer to packet information fields.
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* void *data - raw packet private data.
* RETURNS
* void
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields.
*@param tree pointer to data tree wireshark uses to display packet.
*@param data raw packet private data.
*/
static int dissect_zbee_zcl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
{
@ -961,20 +955,14 @@ static int dissect_zbee_zcl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
return tvb_captured_length(tvb);
} /* dissect_zbee_zcl */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_read_attr
* DESCRIPTION
/**
*Helper dissector for ZCL Read Attributes and
* Write Attributes No Response commands.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - pointer to offset from caller
* RETURNS
* guint - offset after command dissection.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset pointer from caller.
*@param cluster_id cluster id
*/
void dissect_zcl_read_attr(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint *offset, guint16 cluster_id)
{
@ -989,19 +977,14 @@ void dissect_zcl_read_attr(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tr
return;
} /* dissect_zcl_read_attr */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_read_attr_resp
* DESCRIPTION
/**
*Helper dissector for ZCL Read Attributes Response command.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - pointer to offset from caller
* RETURNS
* guint - offset after command dissection.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset pointer to offset from caller
*@param cluster_id cluster id
*/
void dissect_zcl_read_attr_resp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint *offset, guint16 cluster_id)
{
@ -1032,19 +1015,14 @@ void dissect_zcl_read_attr_resp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tre
}
} /* dissect_zcl_read_attr_resp */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_write_attr
* DESCRIPTION
/**
*Helper dissector for ZCL Report Attribute commands.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - pointer to offset from caller
* RETURNS
* guint - offset after command dissection.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset pointer to offset from caller
*@param cluster_id cluster id
*/
void dissect_zcl_write_attr(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint *offset, guint16 cluster_id)
{
@ -1070,19 +1048,14 @@ void dissect_zcl_write_attr(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *t
}
} /* dissect_zcl_write_attr */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_write_attr_resp
* DESCRIPTION
/**
*Helper dissector for ZCL Write Attribute Response command.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - pointer to offset from caller
* RETURNS
* guint - offset after command dissection.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset pointer to offset from caller
*@param cluster_id cluster id
*/
static void dissect_zcl_write_attr_resp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint *offset, guint16 cluster_id)
{
@ -1109,17 +1082,13 @@ static void dissect_zcl_write_attr_resp(tvbuff_t *tvb, packet_info *pinfo _U_, p
} /* dissect_zcl_write_attr_resp */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_read_report_config_resp
* DESCRIPTION
/**
*Helper dissector for ZCL Report Attribute commands.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - pointer to offset from caller
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void dissect_zcl_read_report_config_resp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
guint *offset, guint16 cluster_id)
@ -1180,17 +1149,14 @@ static void dissect_zcl_read_report_config_resp(tvbuff_t *tvb, packet_info *pinf
} /* dissect_zcl_read_report_config_resp */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_config_report
* DESCRIPTION
/**
*Helper dissector for ZCL Report Attribute commands.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - pointer to offset from caller
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset pointer to offset from caller
*@param cluster_id cluster id
*/
static void dissect_zcl_config_report(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint *offset, guint16 cluster_id)
{
@ -1244,19 +1210,14 @@ static void dissect_zcl_config_report(tvbuff_t *tvb, packet_info *pinfo _U_, pro
} /* dissect_zcl_config_report */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_config_report_resp
* DESCRIPTION
/**
*Helper dissector for ZCL Report Attribute commands.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - pointer to offset from caller
* RETURNS
* guint - offset after command dissection.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset pointer to offset from caller
*@param cluster_id cluster id
*/
static void dissect_zcl_config_report_resp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
guint *offset, guint16 cluster_id)
@ -1285,19 +1246,14 @@ static void dissect_zcl_config_report_resp(tvbuff_t *tvb, packet_info *pinfo _U_
}
} /* dissect_zcl_config_report_resp */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_read_report_config
* DESCRIPTION
/**
*Helper dissector for ZCL Read Report Configuration command.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - pointer to offset from caller
* RETURNS
* guint - offset after command dissection.
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset pointer to offset from caller
*@param cluster_id cluster id
*/
static void dissect_zcl_read_report_config(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
guint *offset, guint16 cluster_id)
@ -1323,20 +1279,15 @@ static void dissect_zcl_read_report_config(tvbuff_t *tvb, packet_info *pinfo _U_
} /* dissect_zcl_read_report_config */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_default_resp
* DESCRIPTION
/**
*Helper dissector for ZCL Default Response command.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - pointer to offset from caller
* dir - direction
* RETURNS
* void
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset pointer to offset from caller.
*@param cluster_id cluster id.
*@param dir direction.
*/
static void dissect_zcl_default_resp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
guint *offset, guint16 cluster_id, guint8 dir)
@ -1359,19 +1310,13 @@ static void dissect_zcl_default_resp(tvbuff_t *tvb, packet_info *pinfo _U_, prot
dissect_zcl_attr_uint8(tvb, tree, offset, &hf_zbee_zcl_attr_status);
} /* dissect_zcl_default_resp */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_discover_attr
* DESCRIPTION
/**
*Helper dissector for ZCL Discover Attributes command.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - pointer to offset from caller
* RETURNS
* void
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset pointer to offset from caller
*/
static void dissect_zcl_discover_attr(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint *offset)
{
@ -1386,19 +1331,14 @@ static void dissect_zcl_discover_attr(tvbuff_t *tvb, packet_info *pinfo _U_, pro
} /* dissect_zcl_discover_attr */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_discover_attr_resp
* DESCRIPTION
/**
*Helper dissector for ZCL Discover Attributes command.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - pointer to offset from caller
* RETURNS
* void
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param pinfo pointer to packet information fields
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset pointer to offset from caller
*@param cluster_id cluster id
*/
static void dissect_zcl_discover_attr_resp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
guint *offset, guint16 cluster_id)
@ -1428,20 +1368,12 @@ static void dissect_zcl_discover_attr_resp(tvbuff_t *tvb, packet_info *pinfo _U_
} /* dissect_zcl_discover_attr_resp */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_attr_id
* DESCRIPTION
/**
*Dissects Attribute ID field. This could be done with the
* dissect_zcl_attr_uint16 function, but we leave it separate
* so we can dissect the attr_id with a hash in the future.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - offset into the tvb to begin dissection.
* RETURNS
* void
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset into the tvb to begin dissection.
*/
static void dissect_zcl_attr_id(tvbuff_t *tvb, proto_tree *tree, guint *offset, guint16 cluster_id)
{
@ -1457,18 +1389,12 @@ static void dissect_zcl_attr_id(tvbuff_t *tvb, proto_tree *tree, guint *offset,
*offset += 2;
} /* dissect_zcl_attr_id */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_attr_data_type_val
* DESCRIPTION
/**
*Helper dissector for ZCL Attribute commands.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - offset into the tvb to begin dissection.
* RETURNS
* void
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset into the tvb to begin dissection.
*/
static void dissect_zcl_attr_data_type_val(tvbuff_t *tvb, proto_tree *tree, guint *offset, guint16 attr_id, guint16 cluster_id)
{
@ -1487,20 +1413,15 @@ static void dissect_zcl_attr_data_type_val(tvbuff_t *tvb, proto_tree *tree, guin
} /* dissect_zcl_attr_data_type_val */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_attr_data_general
* DESCRIPTION
/**
*Helper dissector for ZCL Attribute commands.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - offset into the tvb to begin dissection.
* attr_id - attribute identification
* data_type - type of data
* RETURNS
* void
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset into the tvb to begin dissection.
*@param attr_id attribute identification
*@param data_type type of data
*@param cluster_id cluster id
*/
static void dissect_zcl_attr_data_general(tvbuff_t *tvb, proto_tree *tree, guint *offset, guint16 attr_id, guint data_type, guint16 cluster_id)
{
@ -1516,20 +1437,12 @@ static void dissect_zcl_attr_data_general(tvbuff_t *tvb, proto_tree *tree, guint
} /*dissect_zcl_attr_data_general*/
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_attr_data
* DESCRIPTION
/**
*Dissects the various types of ZCL attribute data.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* packet_info *pinfo - pointer to packet information fields
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - offset into the tvb to begin dissection.
* data_type - the type of ZCL data in the packet buffer
* RETURNS
* void
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset into the tvb to begin dissection.
*/
void dissect_zcl_attr_data(tvbuff_t *tvb, proto_tree *tree, guint *offset, guint data_type)
{
@ -1943,19 +1856,14 @@ void dissect_zcl_attr_data(tvbuff_t *tvb, proto_tree *tree, guint *offset, guint
} /* dissect_zcl_attr_data */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_attr_uint8
* DESCRIPTION
/**
*Helper dissector for ZCL Attribute commands.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - offset into the tvb to begin dissection.
* hf_zbee_zcl - pointer to header field index
* RETURNS
* guint - dissected data
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset into the tvb to begin dissection.
*@param hf_zbee_zcl pointer to header field index
*@return dissected data
*/
static guint dissect_zcl_attr_uint8(tvbuff_t *tvb, proto_tree *tree, guint *offset, int *hf_zbee_zcl)
{
@ -1968,20 +1876,14 @@ static guint dissect_zcl_attr_uint8(tvbuff_t *tvb, proto_tree *tree, guint *offs
return attr_uint;
} /* dissect_zcl_attr_uint8 */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_array_type
* DESCRIPTION
/**
*Helper dissector for ZCL attribute array type.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - offset into the tvb to begin dissection.
* elements_type - element type
* elements_num - elements number
* RETURNS
* void
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset into the tvb to begin dissection.
*@param elements_type element type
*@param elements_num elements number
*/
static void
dissect_zcl_array_type(tvbuff_t *tvb, proto_tree *tree, guint *offset, guint8 elements_type, guint16 elements_num)
@ -2009,20 +1911,14 @@ dissect_zcl_array_type(tvbuff_t *tvb, proto_tree *tree, guint *offset, guint8 el
}
} /* dissect_zcl_array_type */
/*FUNCTION:------------------------------------------------------
* NAME
* dissect_zcl_set_type
* DESCRIPTION
/**
*Helper dissector for ZCL attribute set and bag types.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* proto_tree *tree - pointer to data tree wireshark uses to display packet.
* offset - offset into the tvb to begin dissection.
* elements_type - element type
* elements_num - elements number
* RETURNS
* void
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param tree pointer to data tree wireshark uses to display packet.
*@param offset into the tvb to begin dissection.
*@param elements_type element type
*@param elements_num elements number
*/
static void
dissect_zcl_set_type(tvbuff_t *tvb, proto_tree *tree, guint *offset, guint8 elements_type, guint16 elements_num)
@ -2050,19 +1946,13 @@ dissect_zcl_set_type(tvbuff_t *tvb, proto_tree *tree, guint *offset, guint8 elem
}
} /* dissect_zcl_set_type */
/*FUNCTION:------------------------------------------------------
* NAME
* zcl_dump_data
* DESCRIPTION
/**
*Helper functions dumps any remaining data into the data dissector.
* PARAMETERS
* tvbuff_t *tvb - pointer to buffer containing raw packet.
* guint offset - offset after parsing last item.
* packet_info *pinfo - packet information structure.
* proto_tree *tree - pointer to data tree Wireshark uses to display packet.
* RETURNS
* void
*---------------------------------------------------------------
*
*@param tvb pointer to buffer containing raw packet.
*@param offset offset after parsing last item.
*@param pinfo packet information structure.
*@param tree pointer to data tree Wireshark uses to display packet.
*/
static void zcl_dump_data(tvbuff_t *tvb, guint offset, packet_info *pinfo, proto_tree *tree)
{
@ -2078,15 +1968,9 @@ static void zcl_dump_data(tvbuff_t *tvb, guint offset, packet_info *pinfo, proto
return;
} /* zcl_dump_data */
/*FUNCTION:------------------------------------------------------
* NAME
* decode_zcl_time_in_seconds
* DESCRIPTION
* this function decodes second time type variable
* PARAMETERS
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes second time type variable
*
*/
void decode_zcl_time_in_seconds(gchar *s, guint16 value)
{
@ -2094,15 +1978,9 @@ void decode_zcl_time_in_seconds(gchar *s, guint16 value)
return;
} /* decode_zcl_time_in_seconds*/
/*FUNCTION:------------------------------------------------------
* NAME
* decode_zcl_time_in_minutes
* DESCRIPTION
* this function decodes minute time type variable
* PARAMETERS
* RETURNS
* none
*---------------------------------------------------------------
/**
*This function decodes minute time type variable
*
*/
void decode_zcl_time_in_minutes(gchar *s, guint16 value)
{
@ -2110,16 +1988,9 @@ void decode_zcl_time_in_minutes(gchar *s, guint16 value)
return;
} /*decode_zcl_time_in_minutes*/
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_zbee_zcl
* DESCRIPTION
/**
*ZigBee ZCL protocol registration routine.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
void proto_register_zbee_zcl(void)
{
@ -2405,16 +2276,9 @@ void proto_register_zbee_zcl(void)
register_dissector(ZBEE_PROTOABBREV_ZCL, dissect_zbee_zcl, proto_zbee_zcl);
} /* proto_register_zbee_zcl */
/*FUNCTION:------------------------------------------------------
* NAME
* proto_reg_handoff_zbee_zcl
* DESCRIPTION
/**
*Finds the dissectors used in this module.
* PARAMETERS
* none
* RETURNS
* void
*---------------------------------------------------------------
*
*/
void proto_reg_handoff_zbee_zcl(void)
{
@ -2439,22 +2303,16 @@ void proto_reg_handoff_zbee_zcl(void)
} /* proto_reg_handoff_zbee_zcl */
/*FUNCTION:------------------------------------------------------
* NAME
* zbee_zcl_init_cluster
* DESCRIPTION
/**
*Register the specific cluster.
* PARAMETERS
* proto - dissector proto
* ett - ett proto (not used at the moment)
* cluster_id - cluster id
* hf_attr_id - cluster-specific attribute ID field.
* hf_cmd_rx_id - cluster-specific client-to-server command ID field, or -1.
* hf_cmd_tx_id - cluster-specific server-to-client command ID field, or -1.
* fn_attr_data - specific cluster attribute data decode function
* RETURNS
* void
*---------------------------------------------------------------
*
*@param proto dissector
*@param ett proto (not used at the moment)
*@param cluster_id cluster identification
*@param hf_attr_id cluster-specific attribute ID field.
*@param hf_cmd_rx_id cluster-specific client-to-server command ID field, or -1.
*@param hf_cmd_tx_id cluster-specific server-to-client command ID field, or -1.
*@param fn_attr_data specific cluster attribute data decode function
*/
void
zbee_zcl_init_cluster(int proto, gint ett, guint16 cluster_id, int hf_attr_id, int hf_cmd_rx_id, int hf_cmd_tx_id, zbee_zcl_fn_attr_data fn_attr_data)
@ -2477,16 +2335,11 @@ zbee_zcl_init_cluster(int proto, gint ett, guint16 cluster_id, int hf_attr_id, i
return;
}
/*FUNCTION:------------------------------------------------------
* NAME
* zbee_zcl_get_cluster_desc
* DESCRIPTION
/**
*Retrieves the registered specific cluster descriptor.
* PARAMETERS
* cluster_id - cluster id
* RETURNS
* zbee_zcl_cluster_desc - cluster descriptor pointer
*---------------------------------------------------------------
*
*@param cluster_id cluster identification
*@return cluster descriptor pointer
*/
zbee_zcl_cluster_desc
*zbee_zcl_get_cluster_desc(guint16 cluster_id)