Пример #1
0
/*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)
{
    dissector_handle_t msg_handle;

    /* Register our dissector with the ZigBee application dissectors. */
    msg_handle = find_dissector(ZBEE_PROTOABBREV_ZCL_MSG);
    dissector_add_uint("zbee.zcl.cluster", ZBEE_ZCL_CID_MESSAGE, msg_handle);

    zbee_zcl_init_cluster(  proto_zbee_zcl_msg,
                            ett_zbee_zcl_msg,
                            ZBEE_ZCL_CID_MESSAGE,
                            NULL,
                            NULL
                         );
} /*proto_reg_handoff_zbee_zcl_msg*/
Пример #2
0
/**
 *Hands off the ZCL IAS Zone dissector.
 *
*/
void
proto_reg_handoff_zbee_zcl_ias_zone(void)
{
    dissector_handle_t zone_handle;

    /* Register our dissector with the ZigBee application dissectors. */
    zone_handle = find_dissector(ZBEE_PROTOABBREV_ZCL_IAS_ZONE);
    dissector_add_uint("zbee.zcl.cluster", ZBEE_ZCL_CID_IAS_ZONE, zone_handle);

    zbee_zcl_init_cluster(  proto_zbee_zcl_ias_zone,
                            ett_zbee_zcl_ias_zone,
                            ZBEE_ZCL_CID_IAS_ZONE,
                            hf_zbee_zcl_ias_zone_attr_id,
                            hf_zbee_zcl_ias_zone_srv_rx_cmd_id,
                            hf_zbee_zcl_ias_zone_srv_tx_cmd_id,
                            (zbee_zcl_fn_attr_data)dissect_zcl_ias_zone_attr_data
                         );
} /*proto_reg_handoff_zbee_zcl_ias_zone*/
Пример #3
0
/**
 *Hands off the ZCL Thermostat dissector.
 *
*/
void
proto_reg_handoff_zbee_zcl_thermostat(void)
{
    dissector_handle_t thermostat_handle;

    /* Register our dissector with the ZigBee application dissectors. */
    thermostat_handle = find_dissector(ZBEE_PROTOABBREV_ZCL_THERMOSTAT);
    dissector_add_uint("zbee.zcl.cluster", ZBEE_ZCL_CID_THERMOSTAT, thermostat_handle);

    zbee_zcl_init_cluster(  proto_zbee_zcl_thermostat,
                            ett_zbee_zcl_thermostat,
                            ZBEE_ZCL_CID_THERMOSTAT,
                            hf_zbee_zcl_thermostat_attr_id,
                            hf_zbee_zcl_thermostat_srv_rx_cmd_id,
                            hf_zbee_zcl_thermostat_srv_tx_cmd_id,
                            (zbee_zcl_fn_attr_data)dissect_zcl_thermostat_attr_data
                         );
} /*proto_reg_handoff_zbee_zcl_thermostat*/