/* Assumes that COL_INFO will be set to the command name, command name will already be appended to the command subtree and protocol root. In addition, assumes that the command ID has already been parsed. */
static void dissect_ieee802154_gtsreq(tvbuff_t *, packet_info *, proto_tree *, ieee802154_packet *)
/* Assumes that COL_INFO will be set to the command name, command name will already be appended to the command subtree and protocol root. In addition, assumes that the command ID has already been parsed. */
static void dissect_ieee802154_gtsreq(tvbuff_t *, packet_info *, proto_tree *, ieee802154_packet *)
{
    proto_tree *subtree;
    static const int * characteristics[] = {
        &hf_ieee802154_gtsreq_len,
        &hf_ieee802154_gtsreq_dir,
        &hf_ieee802154_gtsreq_type,
        NULL
    };
    subtree = proto_tree_add_subtree(tree, tvb, 0, 1, ett_ieee802154_cmd, NULL,
                val_to_str_const(packet->command_id, ieee802154_cmd_names, "Unknown Command"));
    proto_tree_add_bitmask_list(subtree, tvb, 0, 1, characteristics, ENC_NA);
    if (tvb_reported_length(tvb) > 1) {
        call_data_dissector(tvb_new_subset_remaining(tvb, 1), pinfo, tree);
    }
}