/* This function is called by ZCL foundation dissector in order to decode */
static void dissect_zcl_ias_zone_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type)
/* This function is called by ZCL foundation dissector in order to decode */
static void dissect_zcl_ias_zone_attr_data(proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type)
{
    switch (attr_id) {
        case ZBEE_ZCL_ATTR_ID_IAS_ZONE_STATE:
            proto_tree_add_item(tree, hf_zbee_zcl_ias_zone_state, tvb, *offset, 1, ENC_NA);
            *offset += 1;
            break;
        case ZBEE_ZCL_ATTR_ID_IAS_ZONE_TYPE:
            proto_tree_add_item(tree, hf_zbee_zcl_ias_zone_type, tvb, *offset, 2, ENC_LITTLE_ENDIAN);
            *offset += 2;
            break;
        case ZBEE_ZCL_ATTR_ID_IAS_ZONE_STATUS:
            dissect_zcl_ias_zone_status(tree, tvb, *offset);
            *offset += 2;
            break;
        case ZBEE_ZCL_ATTR_ID_IAS_CIE_ADDRESS:
        default:
            dissect_zcl_attr_data(tvb, tree, offset, data_type);
            break;
    }
}