wireshark/epan/dissectors/packet-openflow_v6.c

10745 lines
457 KiB
C

/* packet-openflow_v6.c
* Routines for OpenFlow dissection
* Copyright 2013, Anders Broman <anders.broman@ericsson.com>
* Copyright 2013, Zoltan Lajos Kis <zoltan.lajos.kis@ericsson.com>
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* Ref https://www.opennetworking.org/sdn-resources/onf-specifications/openflow
*/
#include "config.h"
#include <epan/packet.h>
#include <epan/etypes.h>
#include <epan/expert.h>
#include <epan/ipproto.h>
#include <epan/addr_resolv.h>
#include <wsutil/ws_roundup.h>
void proto_register_openflow_v6(void);
void proto_reg_handoff_openflow_v6(void);
static int dissect_openflow_message_v6(tvbuff_t *, packet_info *, proto_tree *, int);
static dissector_handle_t eth_withoutfcs_handle;
static int proto_openflow_v6 = -1;
static int hf_openflow_v6_version = -1;
static int hf_openflow_v6_type = -1;
static int hf_openflow_v6_length = -1;
static int hf_openflow_v6_xid = -1;
static int hf_openflow_v6_oxm_class = -1;
static int hf_openflow_v6_oxm_field = -1;
static int hf_openflow_v6_oxm_field_basic = -1;
static int hf_openflow_v6_oxm_hm = -1;
static int hf_openflow_v6_oxm_length = -1;
static int hf_openflow_v6_oxm_experimenter_experimenter = -1;
static int hf_openflow_v6_oxm_value = -1;
static int hf_openflow_v6_oxm_value_etheraddr = -1;
static int hf_openflow_v6_oxm_value_vlan_present = -1;
static int hf_openflow_v6_oxm_value_vlan_vid = -1;
static int hf_openflow_v6_oxm_value_ethertype = -1;
static int hf_openflow_v6_oxm_value_ipv4addr = -1;
static int hf_openflow_v6_oxm_value_ipv6addr = -1;
static int hf_openflow_v6_oxm_value_ipproto = -1;
static int hf_openflow_v6_oxm_value_uint16 = -1;
static int hf_openflow_v6_oxm_value_uint24 = -1;
static int hf_openflow_v6_oxm_value_uint32 = -1;
static int hf_openflow_v6_oxm_mask = -1;
static int hf_openflow_v6_oxm_mask_etheraddr = -1;
static int hf_openflow_v6_oxm_mask_ipv4addr = -1;
static int hf_openflow_v6_oxm_mask_ipv6addr = -1;
static int hf_openflow_v6_oxm_mask_vlan = -1;
static int hf_openflow_v6_match_type = -1;
static int hf_openflow_v6_match_length = -1;
static int hf_openflow_v6_match_pad = -1;
static int hf_openflow_v6_action_type = -1;
static int hf_openflow_v6_action_length = -1;
static int hf_openflow_v6_action_experimenter_experimenter = -1;
static int hf_openflow_v6_oxm_experimenter_value = -1;
static int hf_openflow_v6_oxm_register = -1;
static int hf_openflow_v6_action_output_port = -1;
static int hf_openflow_v6_action_output_max_len = -1;
static int hf_openflow_v6_action_output_pad = -1;
static int hf_openflow_v6_action_copy_ttl_out_pad = -1;
static int hf_openflow_v6_action_copy_ttl_in_pad = -1;
static int hf_openflow_v6_action_set_mpls_ttl_ttl = -1;
static int hf_openflow_v6_action_set_mpls_ttl_pad = -1;
static int hf_openflow_v6_action_dec_mpls_ttl_pad = -1;
static int hf_openflow_v6_action_push_vlan_ethertype = -1;
static int hf_openflow_v6_action_push_vlan_pad = -1;
static int hf_openflow_v6_action_pop_vlan_pad = -1;
static int hf_openflow_v6_action_push_mpls_ethertype = -1;
static int hf_openflow_v6_action_push_mpls_pad = -1;
static int hf_openflow_v6_action_pop_mpls_ethertype = -1;
static int hf_openflow_v6_action_pop_mpls_pad = -1;
static int hf_openflow_v6_action_set_queue_queue_id = -1;
static int hf_openflow_v6_action_group_group_id = -1;
static int hf_openflow_v6_action_set_nw_ttl_ttl = -1;
static int hf_openflow_v6_action_set_nw_ttl_pad = -1;
static int hf_openflow_v6_action_dec_nw_ttl_pad = -1;
static int hf_openflow_v6_action_set_field_pad = -1;
static int hf_openflow_v6_action_push_pbb_ethertype = -1;
static int hf_openflow_v6_action_push_pbb_pad = -1;
static int hf_openflow_v6_action_pop_pbb_pad = -1;
static int hf_openflow_v6_action_copy_field_n_bits = -1;
static int hf_openflow_v6_action_copy_field_src_offset = -1;
static int hf_openflow_v6_action_copy_field_dst_offset = -1;
static int hf_openflow_v6_action_copy_field_pad = -1;
static int hf_openflow_v6_action_meter_id = -1;
static int hf_openflow_v6_instruction_type = -1;
static int hf_openflow_v6_instruction_length = -1;
static int hf_openflow_v6_instruction_experimenter_experimenter = -1;
static int hf_openflow_v6_instruction_goto_table_table_id = -1;
static int hf_openflow_v6_instruction_goto_table_pad = -1;
static int hf_openflow_v6_instruction_write_metadata_pad = -1;
static int hf_openflow_v6_instruction_write_metadata_value = -1;
static int hf_openflow_v6_instruction_write_metadata_mask = -1;
static int hf_openflow_v6_instruction_actions_pad = -1;
static int hf_openflow_v6_port_desc_prop_type = -1;
static int hf_openflow_v6_port_desc_prop_length = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_pad = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_10mb_hd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_10mb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_100mb_hd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_100mb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_1gb_hd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_1gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_10gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_40gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_100gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_1tb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_other = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_copper = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_fiber = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_autoneg = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_pause = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_pause_asym = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_current_reserved = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_10mb_hd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_10mb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_100mb_hd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_100mb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_1gb_hd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_1gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_10gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_40gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_100gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_1tb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_other = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_copper = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_fiber = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_autoneg = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_pause = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_pause_asym = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_advertised_reserved = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_10mb_hd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_10mb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_100mb_hd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_100mb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_1gb_hd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_1gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_10gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_40gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_100gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_1tb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_other = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_copper = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_fiber = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_autoneg = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_pause = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_pause_asym = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_supported_reserved = -1;
static int hf_openflow_v6_port_desc_prop_optical_pad = -1;
static int hf_openflow_v6_port_desc_prop_optical_supported = -1;
static int hf_openflow_v6_port_desc_prop_optical_supported_rx_tune = -1;
static int hf_openflow_v6_port_desc_prop_optical_supported_tx_tune = -1;
static int hf_openflow_v6_port_desc_prop_optical_supported_tx_pwr = -1;
static int hf_openflow_v6_port_desc_prop_optical_supported_use_freq = -1;
static int hf_openflow_v6_port_desc_prop_optical_tx_min_freq_lmda = -1;
static int hf_openflow_v6_port_desc_prop_optical_tx_max_freq_lmda = -1;
static int hf_openflow_v6_port_desc_prop_optical_tx_grid_freq_lmda = -1;
static int hf_openflow_v6_port_desc_prop_optical_rx_min_freq_lmda = -1;
static int hf_openflow_v6_port_desc_prop_optical_rx_max_freq_lmda = -1;
static int hf_openflow_v6_port_desc_prop_optical_rx_grid_freq_lmda = -1;
static int hf_openflow_v6_port_desc_prop_optical_tx_pwr_min = -1;
static int hf_openflow_v6_port_desc_prop_optical_tx_pwr_max = -1;
static int hf_openflow_v6_port_desc_prop_experimenter_experimenter = -1;
static int hf_openflow_v6_port_desc_prop_experimenter_exp_type = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_10mb_hd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_10mb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_100mb_hd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_100mb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_1gb_hd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_1gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_10gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_40gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_100gb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_1tb_fd = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_other = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_copper = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_fiber = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_autoneg = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_pause = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_pause_asym = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_peer_reserved = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_curr_speed = -1;
static int hf_openflow_v6_port_desc_prop_ethernet_max_speed = -1;
static int hf_openflow_v6_port_stats_prop_type = -1;
static int hf_openflow_v6_port_stats_prop_length = -1;
static int hf_openflow_v6_port_stats_prop_ethernet_pad = -1;
static int hf_openflow_v6_port_stats_prop_ethernet_rx_frame_err = -1;
static int hf_openflow_v6_port_stats_prop_ethernet_rx_over_err = -1;
static int hf_openflow_v6_port_stats_prop_ethernet_rx_crc_err = -1;
static int hf_openflow_v6_port_stats_prop_ethernet_collisions = -1;
static int hf_openflow_v6_port_stats_prop_optical_pad = -1;
static int hf_openflow_v6_port_stats_prop_optical_flags = -1;
static int hf_openflow_v6_port_stats_prop_optical_flags_rx_tune = -1;
static int hf_openflow_v6_port_stats_prop_optical_flags_tx_tune = -1;
static int hf_openflow_v6_port_stats_prop_optical_flags_tx_pwr = -1;
static int hf_openflow_v6_port_stats_prop_optical_flags_rx_pwr = -1;
static int hf_openflow_v6_port_stats_prop_optical_flags_tx_bias = -1;
static int hf_openflow_v6_port_stats_prop_optical_flags_tx_temp = -1;
static int hf_openflow_v6_port_stats_prop_optical_tx_freq_lmda = -1;
static int hf_openflow_v6_port_stats_prop_optical_tx_offset = -1;
static int hf_openflow_v6_port_stats_prop_optical_tx_grid_span = -1;
static int hf_openflow_v6_port_stats_prop_optical_rx_freq_lmda = -1;
static int hf_openflow_v6_port_stats_prop_optical_rx_offset = -1;
static int hf_openflow_v6_port_stats_prop_optical_rx_grid_span = -1;
static int hf_openflow_v6_port_stats_prop_optical_tx_pwr = -1;
static int hf_openflow_v6_port_stats_prop_optical_rx_pwr = -1;
static int hf_openflow_v6_port_stats_prop_optical_bias_current = -1;
static int hf_openflow_v6_port_stats_prop_optical_temperature = -1;
static int hf_openflow_v6_port_stats_prop_experimenter_experimenter = -1;
static int hf_openflow_v6_port_stats_prop_experimenter_exp_type = -1;
static int hf_openflow_v6_port_port_no = -1;
static int hf_openflow_v6_port_length = -1;
static int hf_openflow_v6_port_pad = -1;
static int hf_openflow_v6_port_hw_addr = -1;
static int hf_openflow_v6_port_pad2 = -1;
static int hf_openflow_v6_port_name = -1;
static int hf_openflow_v6_port_config = -1;
static int hf_openflow_v6_port_config_port_down = -1;
static int hf_openflow_v6_port_config_no_recv = -1;
static int hf_openflow_v6_port_config_no_fwd = -1;
static int hf_openflow_v6_port_config_no_packet_in = -1;
static int hf_openflow_v6_port_state = -1;
static int hf_openflow_v6_port_state_link_down = -1;
static int hf_openflow_v6_port_state_blocked = -1;
static int hf_openflow_v6_port_state_live = -1;
static int hf_openflow_v6_meter_band_type = -1;
static int hf_openflow_v6_meter_band_len = -1;
static int hf_openflow_v6_meter_band_rate = -1;
static int hf_openflow_v6_meter_band_burst_size = -1;
static int hf_openflow_v6_meter_band_drop_pad = -1;
static int hf_openflow_v6_meter_band_dscp_remark_prec_level = -1;
static int hf_openflow_v6_meter_band_dscp_remark_pad= -1;
static int hf_openflow_v6_meter_band_experimenter_experimenter = -1;
static int hf_openflow_v6_hello_element_type = -1;
static int hf_openflow_v6_hello_element_length = -1;
static int hf_openflow_v6_hello_element_version_bitmap = -1;
static int hf_openflow_v6_hello_element_pad = -1;
static int hf_openflow_v6_error_type = -1;
static int hf_openflow_v6_error_hello_failed_code = -1;
static int hf_openflow_v6_error_bad_request_code = -1;
static int hf_openflow_v6_error_bad_action_code = -1;
static int hf_openflow_v6_error_bad_instruction_code = -1;
static int hf_openflow_v6_error_bad_match_code = -1;
static int hf_openflow_v6_error_flow_mod_failed_code = -1;
static int hf_openflow_v6_error_group_mod_failed_code = -1;
static int hf_openflow_v6_error_port_mod_failed_code = -1;
static int hf_openflow_v6_error_table_mod_failed_code = -1;
static int hf_openflow_v6_error_queue_op_failed_code = -1;
static int hf_openflow_v6_error_switch_config_failed_code = -1;
static int hf_openflow_v6_error_role_request_failed_code = -1;
static int hf_openflow_v6_error_meter_mod_failed_code = -1;
static int hf_openflow_v6_error_table_features_failed_code = -1;
static int hf_openflow_v6_error_bad_property_code = -1;
static int hf_openflow_v6_error_async_config_failed_code = -1;
static int hf_openflow_v6_error_flow_monitor_failed_code = -1;
static int hf_openflow_v6_error_bundle_failed_code = -1;
static int hf_openflow_v6_error_code = -1;
static int hf_openflow_v6_error_data_text = -1;
static int hf_openflow_v6_error_data_body = -1;
static int hf_openflow_v6_error_experimenter = -1;
static int hf_openflow_v6_echo_data = -1;
static int hf_openflow_v6_experimenter_experimenter = -1;
static int hf_openflow_v6_experimenter_exp_type = -1;
static int hf_openflow_v6_switch_features_datapath_id = -1;
static int hf_openflow_v6_switch_features_n_buffers = -1;
static int hf_openflow_v6_switch_features_n_tables = -1;
static int hf_openflow_v6_switch_features_auxiliary_id = -1;
static int hf_openflow_v6_switch_features_pad = -1;
static int hf_openflow_v6_switch_features_capabilities = -1;
static int hf_openflow_v6_switch_features_capabilities_flow_stats = -1;
static int hf_openflow_v6_switch_features_capabilities_table_stats = -1;
static int hf_openflow_v6_switch_features_capabilities_port_stats = -1;
static int hf_openflow_v6_switch_features_capabilities_group_stats = -1;
static int hf_openflow_v6_switch_features_capabilities_ip_reasm = -1;
static int hf_openflow_v6_switch_features_capabilities_queue_stats = -1;
static int hf_openflow_v6_switch_features_capabilities_port_blocked = -1;
static int hf_openflow_v6_switch_features_capabilities_bundles = -1;
static int hf_openflow_v6_switch_features_capabilities_flow_monitoring = -1;
static int hf_openflow_v6_switch_features_reserved = -1;
static int hf_openflow_v6_switch_config_flags = -1;
static int hf_openflow_v6_switch_config_flags_fragments = -1;
static int hf_openflow_v6_switch_config_miss_send_len = -1;
static int hf_openflow_v6_packet_in_buffer_id = -1;
static int hf_openflow_v6_packet_in_total_len = -1;
static int hf_openflow_v6_packet_in_reason = -1;
static int hf_openflow_v6_packet_in_table_id = -1;
static int hf_openflow_v6_packet_in_cookie = -1;
static int hf_openflow_v6_packet_in_pad = -1;
static int hf_openflow_v6_flow_removed_cookie = -1;
static int hf_openflow_v6_flow_removed_priority = -1;
static int hf_openflow_v6_flow_removed_reason = -1;
static int hf_openflow_v6_flow_removed_table_id = -1;
static int hf_openflow_v6_flow_removed_idle_timeout = -1;
static int hf_openflow_v6_flow_removed_hard_timeout = -1;
static int hf_openflow_v6_port_status_reason = -1;
static int hf_openflow_v6_port_status_pad = -1;
static int hf_openflow_v6_packet_out_buffer_id = -1;
static int hf_openflow_v6_packet_out_acts_len = -1;
static int hf_openflow_v6_packet_out_pad = -1;
static int hf_openflow_v6_flowmod_cookie = -1;
static int hf_openflow_v6_flowmod_cookie_mask = -1;
static int hf_openflow_v6_flowmod_table_id = -1;
static int hf_openflow_v6_flowmod_command = -1;
static int hf_openflow_v6_flowmod_idle_timeout = -1;
static int hf_openflow_v6_flowmod_hard_timeout = -1;
static int hf_openflow_v6_flowmod_priority = -1;
static int hf_openflow_v6_flowmod_buffer_id = -1;
static int hf_openflow_v6_flowmod_out_port = -1;
static int hf_openflow_v6_flowmod_out_group = -1;
static int hf_openflow_v6_flowmod_flags = -1;
static int hf_openflow_v6_flowmod_flags_send_flow_rem = -1;
static int hf_openflow_v6_flowmod_flags_check_overlap = -1;
static int hf_openflow_v6_flowmod_flags_reset_counts = -1;
static int hf_openflow_v6_flowmod_flags_no_packet_counts = -1;
static int hf_openflow_v6_flowmod_flags_no_byte_counts = -1;
static int hf_openflow_v6_flowmod_importance = -1;
static int hf_openflow_v6_bucket_length = -1;
static int hf_openflow_v6_bucket_weight = -1;
static int hf_openflow_v6_bucket_watch_port = -1;
static int hf_openflow_v6_bucket_watch_group = -1;
static int hf_openflow_v6_bucket_pad = -1;
static int hf_openflow_v6_groupmod_command = -1;
static int hf_openflow_v6_groupmod_type = -1;
static int hf_openflow_v6_groupmod_pad = -1;
static int hf_openflow_v6_groupmod_group_id = -1;
static int hf_openflow_v6_groupmod_bucket_array_len = -1;
static int hf_openflow_v6_groupmod_command_bucket_id = -1;
static int hf_openflow_v6_portmod_prop_type = -1;
static int hf_openflow_v6_portmod_prop_length = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_10mb_hd = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_10mb_fd = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_100mb_hd = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_100mb_fd = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_1gb_hd = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_1gb_fd = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_10gb_fd = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_40gb_fd = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_100gb_fd = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_1tb_fd = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_other = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_copper = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_fiber = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_autoneg = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_pause = -1;
static int hf_openflow_v6_portmod_prop_ethernet_advertise_pause_asym = -1;
static int hf_openflow_v6_portmod_prop_optical_configure = -1;
static int hf_openflow_v6_portmod_prop_optical_configure_rx_tune = -1;
static int hf_openflow_v6_portmod_prop_optical_configure_tx_tune = -1;
static int hf_openflow_v6_portmod_prop_optical_configure_tx_pwr = -1;
static int hf_openflow_v6_portmod_prop_optical_configure_use_freq = -1;
static int hf_openflow_v6_portmod_prop_optical_freq_lmda = -1;
static int hf_openflow_v6_portmod_prop_optical_fl_offset = -1;
static int hf_openflow_v6_portmod_prop_optical_grid_span = -1;
static int hf_openflow_v6_portmod_prop_optical_tx_pwr = -1;
static int hf_openflow_v6_portmod_prop_experimenter_experimenter = -1;
static int hf_openflow_v6_portmod_prop_experimenter_exp_type = -1;
static int hf_openflow_v6_portmod_port_no = -1;
static int hf_openflow_v6_portmod_pad = -1;
static int hf_openflow_v6_portmod_hw_addr = -1;
static int hf_openflow_v6_portmod_pad2 = -1;
static int hf_openflow_v6_portmod_config = -1;
static int hf_openflow_v6_portmod_config_port_down = -1;
static int hf_openflow_v6_portmod_config_no_recv = -1;
static int hf_openflow_v6_portmod_config_no_fwd = -1;
static int hf_openflow_v6_portmod_config_no_packet_in = -1;
static int hf_openflow_v6_portmod_mask = -1;
static int hf_openflow_v6_portmod_mask_port_down = -1;
static int hf_openflow_v6_portmod_mask_no_recv = -1;
static int hf_openflow_v6_portmod_mask_no_fwd = -1;
static int hf_openflow_v6_portmod_mask_no_packet_in = -1;
static int hf_openflow_v6_tablemod_table_id = -1;
static int hf_openflow_v6_tablemod_pad = -1;
static int hf_openflow_v6_tablemod_config = -1;
static int hf_openflow_v6_tablemod_config_eviction = -1;
static int hf_openflow_v6_tablemod_config_vacancy_events = -1;
static int hf_openflow_v6_tablemod_prop_type = -1;
static int hf_openflow_v6_tablemod_prop_length = -1;
static int hf_openflow_v6_tablemod_prop_eviction_flags = -1;
static int hf_openflow_v6_tablemod_prop_eviction_flags_other = -1;
static int hf_openflow_v6_tablemod_prop_eviction_flags_importance = -1;
static int hf_openflow_v6_tablemod_prop_eviction_flags_lifetime = -1;
static int hf_openflow_v6_tablemod_prop_vacancy_vacancy_down = -1;
static int hf_openflow_v6_tablemod_prop_vacancy_vacancy_up = -1;
static int hf_openflow_v6_tablemod_prop_vacancy_vacancy = -1;
static int hf_openflow_v6_tablemod_prop_vacancy_pad = -1;
static int hf_openflow_v6_tablemod_prop_experimenter_experimenter = -1;
static int hf_openflow_v6_tablemod_prop_experimenter_exp_type = -1;
static int hf_openflow_v6_flow_stats_request_table_id = -1;
static int hf_openflow_v6_flow_stats_request_pad = -1;
static int hf_openflow_v6_flow_stats_request_out_port = -1;
static int hf_openflow_v6_flow_stats_request_out_group = -1;
static int hf_openflow_v6_flow_stats_request_pad2 = -1;
static int hf_openflow_v6_flow_stats_request_cookie = -1;
static int hf_openflow_v6_flow_stats_request_cookie_mask = -1;
static int hf_openflow_v6_aggregate_stats_request_table_id = -1;
static int hf_openflow_v6_aggregate_stats_request_pad = -1;
static int hf_openflow_v6_aggregate_stats_request_out_port = -1;
static int hf_openflow_v6_aggregate_stats_request_out_group = -1;
static int hf_openflow_v6_aggregate_stats_request_pad2 = -1;
static int hf_openflow_v6_aggregate_stats_request_cookie = -1;
static int hf_openflow_v6_aggregate_stats_request_cookie_mask = -1;
static int hf_openflow_v6_table_feature_prop_type = -1;
static int hf_openflow_v6_table_feature_prop_length = -1;
static int hf_openflow_v6_table_feature_prop_next_tables_next_table_id = -1;
static int hf_openflow_v6_table_feature_prop_table_sync_from_table_id = -1;
static int hf_openflow_v6_table_feature_prop_experimenter_experimenter = -1;
static int hf_openflow_v6_table_feature_prop_experimenter_exp_type = -1;
static int hf_openflow_v6_table_feature_prop_pad = -1;
static int hf_openflow_v6_table_features_length = -1;
static int hf_openflow_v6_table_features_table_id = -1;
static int hf_openflow_v6_table_features_pad = -1;
static int hf_openflow_v6_table_features_name = -1;
static int hf_openflow_v6_table_features_metadata_match = -1;
static int hf_openflow_v6_table_features_metadata_write = -1;
static int hf_openflow_v6_table_features_capabilities = -1;
static int hf_openflow_v6_table_features_capabilities_eviction = -1;
static int hf_openflow_v6_table_features_capabilities_vacancy_events = -1;
static int hf_openflow_v6_table_features_max_entries = -1;
static int hf_openflow_v6_port_stats_request_port_no = -1;
static int hf_openflow_v6_port_stats_request_pad = -1;
static int hf_openflow_v6_queue_stats_request_port_no = -1;
static int hf_openflow_v6_queue_stats_request_queue_id = -1;
static int hf_openflow_v6_group_stats_request_group_id = -1;
static int hf_openflow_v6_group_stats_request_pad = -1;
static int hf_openflow_v6_meter_stats_request_meter_id = -1;
static int hf_openflow_v6_meter_stats_request_pad = -1;
static int hf_openflow_v6_meter_desc_request_meter_id = -1;
static int hf_openflow_v6_meter_desc_request_pad = -1;
static int hf_openflow_v6_queue_desc_request_port_no = -1;
static int hf_openflow_v6_queue_desc_request_queue_id = -1;
static int hf_openflow_v6_flow_monitor_request_monitor_id = -1;
static int hf_openflow_v6_flow_monitor_request_out_port = -1;
static int hf_openflow_v6_flow_monitor_request_out_group = -1;
static int hf_openflow_v6_flow_monitor_request_flags = -1;
static int hf_openflow_v6_flow_monitor_request_flags_initial = -1;
static int hf_openflow_v6_flow_monitor_request_flags_add = -1;
static int hf_openflow_v6_flow_monitor_request_flags_removed = -1;
static int hf_openflow_v6_flow_monitor_request_flags_modify = -1;
static int hf_openflow_v6_flow_monitor_request_flags_instructions = -1;
static int hf_openflow_v6_flow_monitor_request_flags_no_abbrev = -1;
static int hf_openflow_v6_flow_monitor_request_flags_only_own = -1;
static int hf_openflow_v6_flow_monitor_request_table_id = -1;
static int hf_openflow_v6_flow_monitor_request_command = -1;
static int hf_openflow_v6_multipart_request_type = -1;
static int hf_openflow_v6_multipart_request_flags = -1;
static int hf_openflow_v6_multipart_request_flags_more = -1;
static int hf_openflow_v6_multipart_request_pad = -1;
static int hf_openflow_v6_multipart_request_experimenter_experimenter = -1;
static int hf_openflow_v6_multipart_request_experimenter_exp_type = -1;
static int hf_openflow_v6_switch_description_mfr_desc = -1;
static int hf_openflow_v6_switch_description_hw_desc = -1;
static int hf_openflow_v6_switch_description_sw_desc = -1;
static int hf_openflow_v6_switch_description_serial_num = -1;
static int hf_openflow_v6_switch_description_dp_desc = -1;
static int hf_openflow_v6_flow_stats_length = -1;
static int hf_openflow_v6_flow_stats_table_id = -1;
static int hf_openflow_v6_flow_stats_duration_sec = -1;
static int hf_openflow_v6_flow_stats_duration_nsec = -1;
static int hf_openflow_v6_flow_stats_priority = -1;
static int hf_openflow_v6_flow_stats_pad2 = -1;
static int hf_openflow_v6_table_stats_table_id = -1;
static int hf_openflow_v6_table_stats_pad = -1;
static int hf_openflow_v6_table_stats_active_count = -1;
static int hf_openflow_v6_table_stats_lookup_count = -1;
static int hf_openflow_v6_table_stats_match_count = -1;
static int hf_openflow_v6_port_stats_length = -1;
static int hf_openflow_v6_port_stats_pad = -1;
static int hf_openflow_v6_port_stats_port_no = -1;
static int hf_openflow_v6_port_stats_duration_sec = -1;
static int hf_openflow_v6_port_stats_duration_nsec = -1;
static int hf_openflow_v6_port_stats_rx_packets = -1;
static int hf_openflow_v6_port_stats_tx_packets = -1;
static int hf_openflow_v6_port_stats_rx_bytes = -1;
static int hf_openflow_v6_port_stats_tx_bytes = -1;
static int hf_openflow_v6_port_stats_rx_dropped = -1;
static int hf_openflow_v6_port_stats_tx_dropped = -1;
static int hf_openflow_v6_port_stats_rx_errors = -1;
static int hf_openflow_v6_port_stats_tx_errors = -1;
static int hf_openflow_v6_queue_stats_length = -1;
static int hf_openflow_v6_queue_stats_pad = -1;
static int hf_openflow_v6_queue_stats_port_no = -1;
static int hf_openflow_v6_queue_stats_queue_id = -1;
static int hf_openflow_v6_queue_stats_tx_bytes = -1;
static int hf_openflow_v6_queue_stats_tx_packets = -1;
static int hf_openflow_v6_queue_stats_tx_errors = -1;
static int hf_openflow_v6_queue_stats_duration_sec = -1;
static int hf_openflow_v6_queue_stats_duration_nsec = -1;
static int hf_openflow_v6_queue_stats_prop_type = -1;
static int hf_openflow_v6_queue_stats_prop_length = -1;
static int hf_openflow_v6_queue_stats_prop_experimenter_experimenter = -1;
static int hf_openflow_v6_queue_stats_prop_experimenter_exp_type = -1;
static int hf_openflow_v6_bucket_counter_packet_count = -1;
static int hf_openflow_v6_bucket_counter_byte_count = -1;
static int hf_openflow_v6_group_stats_length = -1;
static int hf_openflow_v6_group_stats_pad = -1;
static int hf_openflow_v6_group_stats_group_id = -1;
static int hf_openflow_v6_group_stats_ref_count = -1;
static int hf_openflow_v6_group_stats_pad2 = -1;
static int hf_openflow_v6_group_stats_packet_count = -1;
static int hf_openflow_v6_group_stats_byte_count = -1;
static int hf_openflow_v6_group_desc_length = -1;
static int hf_openflow_v6_group_desc_type = -1;
static int hf_openflow_v6_group_desc_pad = -1;
static int hf_openflow_v6_group_desc_group_id = -1;
static int hf_openflow_v6_group_features_types = -1;
static int hf_openflow_v6_group_features_types_all = -1;
static int hf_openflow_v6_group_features_types_select = -1;
static int hf_openflow_v6_group_features_types_indirect = -1;
static int hf_openflow_v6_group_features_types_ff = -1;
static int hf_openflow_v6_group_features_capabilities = -1;
static int hf_openflow_v6_group_features_capabilities_select_weight = -1;
static int hf_openflow_v6_group_features_capabilities_select_liveness = -1;
static int hf_openflow_v6_group_features_capabilities_chaining = -1;
static int hf_openflow_v6_group_features_capabilities_chaining_checks = -1;
static int hf_openflow_v6_group_features_max_groups_all = -1;
static int hf_openflow_v6_group_features_max_groups_select = -1;
static int hf_openflow_v6_group_features_max_groups_indirect = -1;
static int hf_openflow_v6_group_features_max_groups_ff = -1;
static int hf_openflow_v6_group_features_actions_all = -1;
static int hf_openflow_v6_group_features_actions_all_output = -1;
static int hf_openflow_v6_group_features_actions_all_copy_ttl_out = -1;
static int hf_openflow_v6_group_features_actions_all_copy_ttl_in = -1;
static int hf_openflow_v6_group_features_actions_all_set_mpls_ttl = -1;
static int hf_openflow_v6_group_features_actions_all_dec_mpls_ttl = -1;
static int hf_openflow_v6_group_features_actions_all_push_vlan = -1;
static int hf_openflow_v6_group_features_actions_all_pop_vlan = -1;
static int hf_openflow_v6_group_features_actions_all_push_mpls = -1;
static int hf_openflow_v6_group_features_actions_all_pop_mpls = -1;
static int hf_openflow_v6_group_features_actions_all_set_queue = -1;
static int hf_openflow_v6_group_features_actions_all_group = -1;
static int hf_openflow_v6_group_features_actions_all_set_nw_ttl = -1;
static int hf_openflow_v6_group_features_actions_all_dec_nw_ttl = -1;
static int hf_openflow_v6_group_features_actions_all_set_field = -1;
static int hf_openflow_v6_group_features_actions_all_push_pbb = -1;
static int hf_openflow_v6_group_features_actions_all_pop_pbb = -1;
static int hf_openflow_v6_group_features_actions_all_copy_field = -1;
static int hf_openflow_v6_group_features_actions_all_meter = -1;
static int hf_openflow_v6_group_features_actions_select = -1;
static int hf_openflow_v6_group_features_actions_select_output = -1;
static int hf_openflow_v6_group_features_actions_select_copy_ttl_out = -1;
static int hf_openflow_v6_group_features_actions_select_copy_ttl_in = -1;
static int hf_openflow_v6_group_features_actions_select_set_mpls_ttl = -1;
static int hf_openflow_v6_group_features_actions_select_dec_mpls_ttl = -1;
static int hf_openflow_v6_group_features_actions_select_push_vlan = -1;
static int hf_openflow_v6_group_features_actions_select_pop_vlan = -1;
static int hf_openflow_v6_group_features_actions_select_push_mpls = -1;
static int hf_openflow_v6_group_features_actions_select_pop_mpls = -1;
static int hf_openflow_v6_group_features_actions_select_set_queue = -1;
static int hf_openflow_v6_group_features_actions_select_group = -1;
static int hf_openflow_v6_group_features_actions_select_set_nw_ttl = -1;
static int hf_openflow_v6_group_features_actions_select_dec_nw_ttl = -1;
static int hf_openflow_v6_group_features_actions_select_set_field = -1;
static int hf_openflow_v6_group_features_actions_select_push_pbb = -1;
static int hf_openflow_v6_group_features_actions_select_pop_pbb = -1;
static int hf_openflow_v6_group_features_actions_select_copy_field = -1;
static int hf_openflow_v6_group_features_actions_select_meter = -1;
static int hf_openflow_v6_group_features_actions_indirect = -1;
static int hf_openflow_v6_group_features_actions_indirect_output = -1;
static int hf_openflow_v6_group_features_actions_indirect_copy_ttl_out = -1;
static int hf_openflow_v6_group_features_actions_indirect_copy_ttl_in = -1;
static int hf_openflow_v6_group_features_actions_indirect_set_mpls_ttl = -1;
static int hf_openflow_v6_group_features_actions_indirect_dec_mpls_ttl = -1;
static int hf_openflow_v6_group_features_actions_indirect_push_vlan = -1;
static int hf_openflow_v6_group_features_actions_indirect_pop_vlan = -1;
static int hf_openflow_v6_group_features_actions_indirect_push_mpls = -1;
static int hf_openflow_v6_group_features_actions_indirect_pop_mpls = -1;
static int hf_openflow_v6_group_features_actions_indirect_set_queue = -1;
static int hf_openflow_v6_group_features_actions_indirect_group = -1;
static int hf_openflow_v6_group_features_actions_indirect_set_nw_ttl = -1;
static int hf_openflow_v6_group_features_actions_indirect_dec_nw_ttl = -1;
static int hf_openflow_v6_group_features_actions_indirect_set_field = -1;
static int hf_openflow_v6_group_features_actions_indirect_push_pbb = -1;
static int hf_openflow_v6_group_features_actions_indirect_pop_pbb = -1;
static int hf_openflow_v6_group_features_actions_indirect_copy_field = -1;
static int hf_openflow_v6_group_features_actions_indirect_meter = -1;
static int hf_openflow_v6_group_features_actions_ff = -1;
static int hf_openflow_v6_group_features_actions_ff_output = -1;
static int hf_openflow_v6_group_features_actions_ff_copy_ttl_out = -1;
static int hf_openflow_v6_group_features_actions_ff_copy_ttl_in = -1;
static int hf_openflow_v6_group_features_actions_ff_set_mpls_ttl = -1;
static int hf_openflow_v6_group_features_actions_ff_dec_mpls_ttl = -1;
static int hf_openflow_v6_group_features_actions_ff_push_vlan = -1;
static int hf_openflow_v6_group_features_actions_ff_pop_vlan = -1;
static int hf_openflow_v6_group_features_actions_ff_push_mpls = -1;
static int hf_openflow_v6_group_features_actions_ff_pop_mpls = -1;
static int hf_openflow_v6_group_features_actions_ff_set_queue = -1;
static int hf_openflow_v6_group_features_actions_ff_group = -1;
static int hf_openflow_v6_group_features_actions_ff_set_nw_ttl = -1;
static int hf_openflow_v6_group_features_actions_ff_dec_nw_ttl = -1;
static int hf_openflow_v6_group_features_actions_ff_set_field = -1;
static int hf_openflow_v6_group_features_actions_ff_push_pbb = -1;
static int hf_openflow_v6_group_features_actions_ff_pop_pbb = -1;
static int hf_openflow_v6_group_features_actions_ff_copy_field = -1;
static int hf_openflow_v6_group_features_actions_ff_meter = -1;
static int hf_openflow_v6_meter_band_stats_packet_band_count = -1;
static int hf_openflow_v6_meter_band_stats_byte_band_count = -1;
static int hf_openflow_v6_meter_stats_meter_id = -1;
static int hf_openflow_v6_meter_stats_len = -1;
static int hf_openflow_v6_meter_stats_pad = -1;
static int hf_openflow_v6_meter_stats_flow_count = -1;
static int hf_openflow_v6_meter_stats_packet_in_count = -1;
static int hf_openflow_v6_meter_stats_byte_in_count = -1;
static int hf_openflow_v6_meter_stats_duration_sec = -1;
static int hf_openflow_v6_meter_stats_duration_nsec = -1;
static int hf_openflow_v6_meter_desc_len = -1;
static int hf_openflow_v6_meter_desc_flags = -1;
static int hf_openflow_v6_meter_desc_flags_kbps = -1;
static int hf_openflow_v6_meter_desc_flags_pktps = -1;
static int hf_openflow_v6_meter_desc_flags_burst = -1;
static int hf_openflow_v6_meter_desc_flags_stats = -1;
static int hf_openflow_v6_meter_desc_meter_id = -1;
static int hf_openflow_v6_meter_features_max_meter = -1;
static int hf_openflow_v6_meter_features_band_types = -1;
static int hf_openflow_v6_meter_features_band_types_drop = -1;
static int hf_openflow_v6_meter_features_band_types_dscp_remark = -1;
static int hf_openflow_v6_meter_features_capabilities = -1;
static int hf_openflow_v6_meter_features_capabilities_kbps = -1;
static int hf_openflow_v6_meter_features_capabilities_pktps = -1;
static int hf_openflow_v6_meter_features_capabilities_burst = -1;
static int hf_openflow_v6_meter_features_capabilities_stats = -1;
static int hf_openflow_v6_meter_features_max_bands = -1;
static int hf_openflow_v6_meter_features_max_color = -1;
static int hf_openflow_v6_meter_features_pad = -1;
static int hf_openflow_v6_flow_update_length = -1;
static int hf_openflow_v6_flow_update_event = -1;
static int hf_openflow_v6_flow_update_full_table_id = -1;
static int hf_openflow_v6_flow_update_full_reason = -1;
static int hf_openflow_v6_flow_update_full_zero = -1;
static int hf_openflow_v6_flow_update_full_idle_timeout = -1;
static int hf_openflow_v6_flow_update_full_hard_timeout = -1;
static int hf_openflow_v6_flow_update_full_priority = -1;
static int hf_openflow_v6_flow_update_full_zeros = -1;
static int hf_openflow_v6_flow_update_full_cookie = -1;
static int hf_openflow_v6_flow_update_abbrev_xid = -1;
static int hf_openflow_v6_flow_update_paused_zeros = -1;
static int hf_openflow_v6_multipart_reply_type = -1;
static int hf_openflow_v6_multipart_reply_flags = -1;
static int hf_openflow_v6_multipart_reply_flags_more = -1;
static int hf_openflow_v6_multipart_reply_pad = -1;
static int hf_openflow_v6_multipart_reply_experimenter_experimenter = -1;
static int hf_openflow_v6_multipart_reply_experimenter_exp_type = -1;
static int hf_openflow_v6_table_desc_length = -1;
static int hf_openflow_v6_table_desc_table_id = -1;
static int hf_openflow_v6_table_desc_pad = -1;
static int hf_openflow_v6_table_desc_config = -1;
static int hf_openflow_v6_table_desc_config_eviction = -1;
static int hf_openflow_v6_table_desc_config_vacancy_events = -1;
static int hf_openflow_v6_queue_desc_port_no = -1;
static int hf_openflow_v6_queue_desc_queue_id = -1;
static int hf_openflow_v6_queue_desc_len = -1;
static int hf_openflow_v6_queue_desc_pad = -1;
static int hf_openflow_v6_queue_desc_prop_property = -1;
static int hf_openflow_v6_queue_desc_prop_len = -1;
static int hf_openflow_v6_queue_desc_prop_pad = -1;
static int hf_openflow_v6_queue_desc_prop_min_rate_rate = -1;
static int hf_openflow_v6_queue_desc_prop_min_rate_pad = -1;
static int hf_openflow_v6_queue_desc_prop_max_rate_rate = -1;
static int hf_openflow_v6_queue_desc_prop_max_rate_pad = -1;
static int hf_openflow_v6_queue_desc_prop_experimenter_experimenter = -1;
static int hf_openflow_v6_queue_desc_prop_experimenter_exp_type = -1;
static int hf_openflow_v6_role_request_role = -1;
static int hf_openflow_v6_role_request_pad = -1;
static int hf_openflow_v6_role_request_generation_id = -1;
static int hf_openflow_v6_role_reply_role = -1;
static int hf_openflow_v6_role_reply_pad = -1;
static int hf_openflow_v6_role_reply_generation_id = -1;
static int hf_openflow_v6_async_config_prop_type = -1;
static int hf_openflow_v6_async_config_prop_length = -1;
static int hf_openflow_v6_async_config_prop_reason_packet_in_mask = -1;
static int hf_openflow_v6_async_config_prop_reason_packet_in_mask_table_miss = -1;
static int hf_openflow_v6_async_config_prop_reason_packet_in_mask_apply_action = -1;
static int hf_openflow_v6_async_config_prop_reason_packet_in_mask_invalid_ttl = -1;
static int hf_openflow_v6_async_config_prop_reason_packet_in_mask_action_set = -1;
static int hf_openflow_v6_async_config_prop_reason_packet_in_mask_group = -1;
static int hf_openflow_v6_async_config_prop_reason_packet_in_mask_packet_out = -1;
static int hf_openflow_v6_async_config_prop_reason_port_status_mask = -1;
static int hf_openflow_v6_async_config_prop_reason_port_status_mask_add = -1;
static int hf_openflow_v6_async_config_prop_reason_port_status_mask_delete = -1;
static int hf_openflow_v6_async_config_prop_reason_port_status_mask_modify = -1;
static int hf_openflow_v6_async_config_prop_reason_flow_removed_mask = -1;
static int hf_openflow_v6_async_config_prop_reason_flow_removed_mask_idle_timeout = -1;
static int hf_openflow_v6_async_config_prop_reason_flow_removed_mask_hard_timeout = -1;
static int hf_openflow_v6_async_config_prop_reason_flow_removed_mask_delete = -1;
static int hf_openflow_v6_async_config_prop_reason_flow_removed_mask_group_delete = -1;
static int hf_openflow_v6_async_config_prop_reason_flow_removed_mask_meter_delete = -1;
static int hf_openflow_v6_async_config_prop_reason_flow_removed_mask_eviction = -1;
static int hf_openflow_v6_async_config_prop_reason_role_status_mask = -1;
static int hf_openflow_v6_async_config_prop_reason_role_status_mask_master_request = -1;
static int hf_openflow_v6_async_config_prop_reason_role_status_mask_config = -1;
static int hf_openflow_v6_async_config_prop_reason_role_status_mask_experimenter = -1;
static int hf_openflow_v6_async_config_prop_reason_table_status_mask = -1;
static int hf_openflow_v6_async_config_prop_reason_table_status_mask_vacancy_down = -1;
static int hf_openflow_v6_async_config_prop_reason_table_status_mask_vacancy_up = -1;
static int hf_openflow_v6_async_config_prop_reason_requestforward_mask = -1;
static int hf_openflow_v6_async_config_prop_reason_requestforward_mask_group_mod = -1;
static int hf_openflow_v6_async_config_prop_reason_requestforward_mask_meter_mod = -1;
static int hf_openflow_v6_async_config_prop_experimenter_experimenter = -1;
static int hf_openflow_v6_async_config_prop_experimenter_exp_type = -1;
static int hf_openflow_v6_metermod_command = -1;
static int hf_openflow_v6_metermod_flags = -1;
static int hf_openflow_v6_metermod_flags_kbps = -1;
static int hf_openflow_v6_metermod_flags_pktps = -1;
static int hf_openflow_v6_metermod_flags_burst = -1;
static int hf_openflow_v6_metermod_flags_stats = -1;
static int hf_openflow_v6_metermod_meter_id = -1;
static int hf_openflow_v6_role_status_role = -1;
static int hf_openflow_v6_role_status_reason = -1;
static int hf_openflow_v6_role_status_pad = -1;
static int hf_openflow_v6_role_status_generation_id = -1;
static int hf_openflow_v6_table_status_reason = -1;
static int hf_openflow_v6_table_status_pad = -1;
static int hf_openflow_v6_bundle_control_bundle_id = -1;
static int hf_openflow_v6_bundle_control_type = -1;
static int hf_openflow_v6_bundle_control_flags = -1;
static int hf_openflow_v6_bundle_control_flags_atomic = -1;
static int hf_openflow_v6_bundle_control_flags_ordered = -1;
static int hf_openflow_v6_bundle_prop_type = -1;
static int hf_openflow_v6_bundle_prop_length = -1;
static int hf_openflow_v6_bundle_prop_experimenter_experimenter = -1;
static int hf_openflow_v6_bundle_prop_experimenter_exp_type = -1;
static int hf_openflow_v6_bundle_add_bundle_id = -1;
static int hf_openflow_v6_bundle_add_pad = -1;
static int hf_openflow_v6_bundle_add_flags = -1;
static int hf_openflow_v6_bundle_add_flags_atomic = -1;
static int hf_openflow_v6_bundle_add_flags_ordered = -1;
static int hf_openflow_v6_oxs_class = -1;
static int hf_openflow_v6_oxs_field = -1;
static int hf_openflow_v6_oxs_reserved = -1;
static int hf_openflow_v6_oxs_length = -1;
static int hf_openflow_v6_oxs_basic_duration_sec = -1;
static int hf_openflow_v6_oxs_basic_duration_nsec = -1;
static int hf_openflow_v6_oxs_basic_idle_sec = -1;
static int hf_openflow_v6_oxs_basic_idle_nsec = -1;
static int hf_openflow_v6_oxs_basic_flow_count = -1;
static int hf_openflow_v6_oxs_basic_packet_count = -1;
static int hf_openflow_v6_oxs_basic_byte_count = -1;
static int hf_openflow_v6_oxs_experimenter_experimenter = -1;
static int hf_openflow_v6_oxs_experimenter_value = -1;
static int hf_openflow_v6_instruction_stat_trigger_flags = -1;
static int hf_openflow_v6_instruction_stat_triffer_flags_periodic = -1;
static int hf_openflow_v6_instruction_stat_triffer_flags_only_first = -1;
static int hf_openflow_v6_instruction_stat_triffer_flags_reserved = -1;
static int hf_openflow_v6_port_desc_prop_recirculate_port_no = -1;
static int hf_openflow_v6_bundle_features_request_flags = -1;
static int hf_openflow_v6_bundle_features_request_pad = -1;
static int hf_openflow_v6_stats_reserved = -1;
static int hf_openflow_v6_stats_length = -1;
static int hf_openflow_v6_stats_pad = -1;
static int hf_openflow_v6_flow_desc_length = -1;
static int hf_openflow_v6_flow_desc_pad2 = -1;
static int hf_openflow_v6_flow_desc_table_id = -1;
static int hf_openflow_v6_flow_desc_pad = -1;
static int hf_openflow_v6_flow_desc_priority = -1;
static int hf_openflow_v6_flow_desc_idle_timeout = -1;
static int hf_openflow_v6_flow_desc_hard_timeout = -1;
static int hf_openflow_v6_flow_desc_flags = -1;
static int hf_openflow_v6_flow_desc_flags_send_flow_rem = -1;
static int hf_openflow_v6_flow_desc_flags_check_overlap = -1;
static int hf_openflow_v6_flow_desc_flags_reset_counts = -1;
static int hf_openflow_v6_flow_desc_flags_no_packet_counts = -1;
static int hf_openflow_v6_flow_desc_flags_no_byte_counts = -1;
static int hf_openflow_v6_flow_desc_importance = -1;
static int hf_openflow_v6_flow_desc_cookie = -1;
static int hf_openflow_v6_controller_status_length = -1;
static int hf_openflow_v6_controller_status_short_id = -1;
static int hf_openflow_v6_controller_status_role = -1;
static int hf_openflow_v6_controller_status_reason = -1;
static int hf_openflow_v6_controller_status_channel_status = -1;
static int hf_openflow_v6_controller_status_pad = -1;
static int hf_openflow_v6_time_seconds = -1;
static int hf_openflow_v6_time_nanoseconds = -1;
static int hf_openflow_v6_time_pad = -1;
static int hf_openflow_v6_bundle_feature_prop_type = -1;
static int hf_openflow_v6_bundle_feature_prop_length = -1;
static int hf_openflow_v6_bundle_feature_prop_time_pad = -1;
static int hf_openflow_v6_bundle_feature_prop_experimenter_experimenter = -1;
static int hf_openflow_v6_bundle_feature_prop_experimenter_exp_type = -1;
static int hf_openflow_v6_bundle_feature_prop_pad = -1;
static int hf_openflow_v6_controller_status_prop_type = -1;
static int hf_openflow_v6_controller_status_prop_length = -1;
static int hf_openflow_v6_controller_status_prop_experimenter_experimenter = -1;
static int hf_openflow_v6_controller_status_prop_experimenter_exp_type = -1;
static int hf_openflow_v6_controller_status_prop_pad = -1;
static int hf_openflow_v6_flow_stats_reason = -1;
static int hf_openflow_v6_controller_status_prop_uri = -1;
static gint ett_openflow_v6 = -1;
static gint ett_openflow_v6_flowmod_flags = -1;
static gint ett_openflow_v6_bucket = -1;
static gint ett_openflow_v6_oxm = -1;
static gint ett_openflow_v6_match = -1;
static gint ett_openflow_v6_action = -1;
static gint ett_openflow_v6_instruction = -1;
static gint ett_openflow_v6_port_desc_prop = -1;
static gint ett_openflow_v6_port_desc_prop_ethernet_current = -1;
static gint ett_openflow_v6_port_desc_prop_ethernet_advertised = -1;
static gint ett_openflow_v6_port_desc_prop_ethernet_supported = -1;
static gint ett_openflow_v6_port_desc_prop_ethernet_peer = -1;
static gint ett_openflow_v6_port_desc_prop_optical_supported = -1;
static gint ett_openflow_v6_port_stats_prop = -1;
static gint ett_openflow_v6_port_stats_prop_optical_flags = -1;
static gint ett_openflow_v6_port = -1;
static gint ett_openflow_v6_port_config = -1;
static gint ett_openflow_v6_port_state = -1;
static gint ett_openflow_v6_meter_band = -1;
static gint ett_openflow_v6_hello_element = -1;
static gint ett_openflow_v6_error_data = -1;
static gint ett_openflow_v6_switch_features_capabilities = -1;
static gint ett_openflow_v6_switch_config_flags = -1;
static gint ett_openflow_v6_packet_in_data = -1;
static gint ett_openflow_v6_packet_out_data = -1;
static gint ett_openflow_v6_portmod_prop = -1;
static gint ett_openflow_v6_portmod_prop_ethernet_advertise = -1;
static gint ett_openflow_v6_portmod_prop_optical_configure = -1;
static gint ett_openflow_v6_portmod_config = -1;
static gint ett_openflow_v6_portmod_mask = -1;
static gint ett_openflow_v6_tablemod_config = -1;
static gint ett_openflow_v6_tablemod_prop = -1;
static gint ett_openflow_v6_tablemod_prop_eviction_flags = -1;
static gint ett_openflow_v6_table_features = -1;
static gint ett_openflow_v6_table_features_capabilities = -1;
static gint ett_openflow_v6_table_feature_prop = -1;
static gint ett_openflow_v6_table_feature_prop_instruction_id = -1;
static gint ett_openflow_v6_table_feature_prop_action_id = -1;
static gint ett_openflow_v6_table_feature_prop_oxm_id = -1;
static gint ett_openflow_v6_flow_monitor_request_flags = -1;
static gint ett_openflow_v6_multipart_request_flags = -1;
static gint ett_openflow_v6_flow_stats = -1;
static gint ett_openflow_v6_table_stats = -1;
static gint ett_openflow_v6_port_stats = -1;
static gint ett_openflow_v6_queue_stats = -1;
static gint ett_openflow_v6_queue_stats_prop = -1;
static gint ett_openflow_v6_bucket_counter = -1;
static gint ett_openflow_v6_group_stats = -1;
static gint ett_openflow_v6_group_desc = -1;
static gint ett_openflow_v6_group_features_types = -1;
static gint ett_openflow_v6_group_features_capabilities = -1;
static gint ett_openflow_v6_group_features_actions_all = -1;
static gint ett_openflow_v6_group_features_actions_select = -1;
static gint ett_openflow_v6_group_features_actions_indirect = -1;
static gint ett_openflow_v6_group_features_actions_ff = -1;
static gint ett_openflow_v6_meter_band_stats = -1;
static gint ett_openflow_v6_meter_stats = -1;
static gint ett_openflow_v6_meter_desc = -1;
static gint ett_openflow_v6_meter_desc_flags = -1;
static gint ett_openflow_v6_meter_features_band_types = -1;
static gint ett_openflow_v6_meter_features_capabilities = -1;
static gint ett_openflow_v6_flow_update = -1;
static gint ett_openflow_v6_multipart_reply_flags = -1;
static gint ett_openflow_v6_table_desc = -1;
static gint ett_openflow_v6_table_desc_config = -1;
static gint ett_openflow_v6_queue_desc = -1;
static gint ett_openflow_v6_queue_desc_prop = -1;
static gint ett_openflow_v6_async_config_prop = -1;
static gint ett_openflow_v6_async_config_prop_reason_packet_in_mask = -1;
static gint ett_openflow_v6_async_config_prop_reason_port_status_mask = -1;
static gint ett_openflow_v6_async_config_prop_reason_flow_removed_mask = -1;
static gint ett_openflow_v6_async_config_prop_reason_role_status_mask = -1;
static gint ett_openflow_v6_async_config_prop_reason_table_status_mask = -1;
static gint ett_openflow_v6_async_config_prop_reason_requestforward_mask = -1;
static gint ett_openflow_v6_metermod_flags = -1;
static gint ett_openflow_v6_requestforward_request = -1;
static gint ett_openflow_v6_bundle_control_flags = -1;
static gint ett_openflow_v6_bundle_prop = -1;
static gint ett_openflow_v6_bundle_add_flags = -1;
static gint ett_openflow_v6_bundle_add_message = -1;
static gint ett_openflow_v6_instruction_stat_trigger_flags = -1;
static gint ett_openflow_v6_flow_desc = -1;
static gint ett_openflow_v6_flow_desc_flags = -1;
static gint ett_openflow_v6_bundle_feature_prop = -1;
static gint ett_openflow_v6_controller_status_prop = -1;
static expert_field ei_openflow_v6_match_undecoded = EI_INIT;
static expert_field ei_openflow_v6_oxm_undecoded = EI_INIT;
static expert_field ei_openflow_v6_action_undecoded = EI_INIT;
static expert_field ei_openflow_v6_instruction_undecoded = EI_INIT;
static expert_field ei_openflow_v6_port_desc_prop_undecoded = EI_INIT;
static expert_field ei_openflow_v6_port_stats_prop_undecoded = EI_INIT;
static expert_field ei_openflow_v6_meter_band_undecoded = EI_INIT;
static expert_field ei_openflow_v6_hello_element_undecoded = EI_INIT;
static expert_field ei_openflow_v6_error_undecoded = EI_INIT;
static expert_field ei_openflow_v6_experimenter_undecoded = EI_INIT;
static expert_field ei_openflow_v6_portmod_prop_undecoded = EI_INIT;
static expert_field ei_openflow_v6_tablemod_prop_undecoded = EI_INIT;
static expert_field ei_openflow_v6_table_feature_prop_undecoded = EI_INIT;
static expert_field ei_openflow_v6_multipart_request_undecoded = EI_INIT;
static expert_field ei_openflow_v6_queue_stats_prop_undecoded = EI_INIT;
static expert_field ei_openflow_v6_flow_update_undecoded = EI_INIT;
static expert_field ei_openflow_v6_multipart_reply_undecoded = EI_INIT;
static expert_field ei_openflow_v6_queue_desc_prop_undecoded = EI_INIT;
static expert_field ei_openflow_v6_async_config_prop_undecoded = EI_INIT;
static expert_field ei_openflow_v6_bundle_prop_undecoded = EI_INIT;
static expert_field ei_openflow_v6_message_undecoded = EI_INIT;
static expert_field ei_openflow_v6_length_too_short = EI_INIT;
static expert_field ei_openflow_v6_bundle_feature_prop_undecoded = EI_INIT;
static expert_field ei_openflow_v6_controller_status_prop_undecoded = EI_INIT;
static const value_string openflow_v6_version_values[] = {
{ 0x06, "1.5" },
{ 0, NULL }
};
#define OFPT_HELLO 0
#define OFPT_ERROR 1
#define OFPT_ECHO_REQUEST 2
#define OFPT_ECHO_REPLY 3
#define OFPT_EXPERIMENTER 4
#define OFPT_FEATURES_REQUEST 5
#define OFPT_FEATURES_REPLY 6
#define OFPT_GET_CONFIG_REQUEST 7
#define OFPT_GET_CONFIG_REPLY 8
#define OFPT_SET_CONFIG 9
#define OFPT_PACKET_IN 10
#define OFPT_FLOW_REMOVED 11
#define OFPT_PORT_STATUS 12
#define OFPT_PACKET_OUT 13
#define OFPT_FLOW_MOD 14
#define OFPT_GROUP_MOD 15
#define OFPT_PORT_MOD 16
#define OFPT_TABLE_MOD 17
#define OFPT_MULTIPART_REQUEST 18
#define OFPT_MULTIPART_REPLY 19
#define OFPT_BARRIER_REQUEST 20
#define OFPT_BARRIER_REPLY 21
#define OFPT_ROLE_REQUEST 24
#define OFPT_ROLE_REPLY 25
#define OFPT_GET_ASYNC_REQUEST 26
#define OFPT_GET_ASYNC_REPLY 27
#define OFPT_SET_ASYNC 28
#define OFPT_METER_MOD 29
#define OFPT_ROLE_STATUS 30
#define OFPT_TABLE_STATUS 31
#define OFPT_REQUESTFORWARD 32
#define OFPT_BUNDLE_CONTROL 33
#define OFPT_BUNDLE_ADD_MESSAGE 34
#define OFPT_CONTROLLER_STATUS 35
static const value_string openflow_v6_type_values[] = {
{ OFPT_HELLO, "OFPT_HELLO" },
{ OFPT_ERROR, "OFPT_ERROR" },
{ OFPT_ECHO_REQUEST, "OFPT_ECHO_REQUEST" },
{ OFPT_ECHO_REPLY, "OFPT_ECHO_REPLY" },
{ OFPT_EXPERIMENTER, "OFPT_EXPERIMENTER" },
{ OFPT_FEATURES_REQUEST, "OFPT_FEATURES_REQUEST" },
{ OFPT_FEATURES_REPLY, "OFPT_FEATURES_REPLY" },
{ OFPT_GET_CONFIG_REQUEST, "OFPT_GET_CONFIG_REQUEST" },
{ OFPT_GET_CONFIG_REPLY, "OFPT_GET_CONFIG_REPLY" },
{ OFPT_SET_CONFIG, "OFPT_SET_CONFIG" },
{ OFPT_PACKET_IN, "OFPT_PACKET_IN" },
{ OFPT_FLOW_REMOVED, "OFPT_FLOW_REMOVED" },
{ OFPT_PORT_STATUS, "OFPT_PORT_STATUS" },
{ OFPT_PACKET_OUT, "OFPT_PACKET_OUT" },
{ OFPT_FLOW_MOD, "OFPT_FLOW_MOD" },
{ OFPT_GROUP_MOD, "OFPT_GROUP_MOD" },
{ OFPT_PORT_MOD, "OFPT_PORT_MOD" },
{ OFPT_TABLE_MOD, "OFPT_TABLE_MOD" },
{ OFPT_MULTIPART_REQUEST, "OFPT_MULTIPART_REQUEST" },
{ OFPT_MULTIPART_REPLY, "OFPT_MULTIPART_REPLY" },
{ OFPT_BARRIER_REQUEST, "OFPT_BARRIER_REQUEST" },
{ OFPT_BARRIER_REPLY, "OFPT_BARRIER_REPLY" },
{ OFPT_ROLE_REQUEST, "OFPT_ROLE_REQUEST" },
{ OFPT_ROLE_REPLY, "OFPT_ROLE_REPLY" },
{ OFPT_GET_ASYNC_REQUEST, "OFPT_GET_ASYNC_REQUEST" },
{ OFPT_GET_ASYNC_REPLY, "OFPT_GET_ASYNC_REPLY" },
{ OFPT_SET_ASYNC, "OFPT_SET_ASYNC" },
{ OFPT_METER_MOD, "OFPT_METER_MOD" },
{ OFPT_ROLE_STATUS, "OFPT_ROLE_STATUS" },
{ OFPT_TABLE_STATUS, "OFPT_TABLE_STATUS" },
{ OFPT_REQUESTFORWARD, "OFPT_REQUESTFORWARD" },
{ OFPT_BUNDLE_CONTROL, "OFPT_BUNDLE_CONTROL" },
{ OFPT_BUNDLE_ADD_MESSAGE, "OFPT_BUNDLE_ADD_MESSAGE" },
{ OFPT_CONTROLLER_STATUS, "OFPT_CONTROLLER_STATUS" },
{ 0, NULL }
};
static value_string_ext openflow_v6_type_values_ext = VALUE_STRING_EXT_INIT(openflow_v6_type_values);
static int
dissect_openflow_header_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint8_t version; */
proto_tree_add_item(tree, hf_openflow_v6_version, tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
/* uint8_t type; */
proto_tree_add_item(tree, hf_openflow_v6_type, tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
/* uint16_t length; */
proto_tree_add_item(tree, hf_openflow_v6_length, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint32_t xid; */
proto_tree_add_item(tree, hf_openflow_v6_xid, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
return offset;
}
#define OFPP_MAX 0xffffff00 /* Last usable port number. */
static const value_string openflow_v6_port_reserved_values[] = {
{ 0xfffffff8, "OFPP_IN_PORT" },
{ 0xfffffff9, "OFPP_TABLE" },
{ 0xfffffffa, "OFPP_NORMAL" },
{ 0xfffffffb, "OFPP_FLOOD" },
{ 0xfffffffc, "OFPP_ALL" },
{ 0xfffffffd, "OFPP_CONTROLLER" },
{ 0xfffffffe, "OFPP_LOCAL" },
{ 0xffffffff, "OFPP_ANY" },
{ 0, NULL }
};
#define OFPG_MAX 0xffffff00 /* Last usable group number. */
static const value_string openflow_v6_group_reserved_values[] = {
{ 0xfffffffc, "OFPG_ALL" },
{ 0xffffffff, "OFPG_ANY" },
{ 0, NULL }
};
#define OFPTT_MAX 254 /* Last usable table number. */
static const value_string openflow_v6_table_reserved_values[] = {
{ 255, "OFPTT_ALL"},
{ 0, NULL}
};
#define OFP_NO_BUFFER 0xffffffff /* No buffering. */
static const value_string openflow_v6_buffer_reserved_values[] = {
{ 0xffffffff, "OFP_NO_BUFFER" },
{ 0, NULL}
};
/*
* OXS
*/
#define OFPXSC_OPENFLOW_BASIC 0x8002
#define OFPXSC_EXPERIMENTER 0xFFFF
static const value_string openflow_v6_oxs_class_values[] = {
{ OFPXSC_OPENFLOW_BASIC, "OFPXSC_OPENFLOW_BASIC" },
{ OFPXSC_EXPERIMENTER, "OFPXSC_EXPERIMENTER" },
{ 0, NULL }
};
#define OFPXST_OFB_DURATION 0 /* Time flow entry has been alive. */
#define OFPXST_OFB_IDLE_TIME 1 /* Time flow entry has been idle. */
#define OFPXST_OFB_FLOW_COUNT 3 /* Number of aggregated flow entries. */
#define OFPXST_OFB_PACKET_COUNT 4 /* Number of packets in flow entry. */
#define OFPXST_OFB_BYTE_COUNT 5 /* Number of bytes in flow entry. */
static const value_string openflow_v6_oxs_basic_field_values[] = {
{ OFPXST_OFB_DURATION, "OFPXST_OFB_DURATION" },
{ OFPXST_OFB_IDLE_TIME, "OFPXST_OFB_IDLE_TIME" },
{ OFPXST_OFB_FLOW_COUNT, "OFPXST_OFB_FLOW_COUNT" },
{ OFPXST_OFB_PACKET_COUNT, "OFPXST_OFB_PACKET_COUNT" },
{ OFPXST_OFB_BYTE_COUNT, "OFPXST_OFB_BYTE_COUNT" },
{ 0, NULL }
};
#define OXS_FIELD_MASK 0xfe
#define OXS_RESERVED_MASK 0x01
static int
dissect_openflow_v6_oxs(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
guint32 oxs_class;
guint32 oxs_field;
guint32 oxs_payload_length;
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_oxs_class, tvb, offset, 2, ENC_BIG_ENDIAN, &oxs_class);
offset+=2;
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_oxs_field, tvb, offset, 1, ENC_BIG_ENDIAN, &oxs_field);
proto_tree_add_item(tree, hf_openflow_v6_oxs_reserved, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_oxs_length, tvb, offset, 1, ENC_BIG_ENDIAN, &oxs_payload_length);
offset+=1;
if (oxs_class == OFPXSC_OPENFLOW_BASIC) {
switch (oxs_field) {
case OFPXST_OFB_DURATION:
proto_tree_add_item(tree, hf_openflow_v6_oxs_basic_duration_sec, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_openflow_v6_oxs_basic_duration_nsec, tvb, offset+4, 4, ENC_BIG_ENDIAN);
break;
case OFPXST_OFB_IDLE_TIME:
proto_tree_add_item(tree, hf_openflow_v6_oxs_basic_idle_sec, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_openflow_v6_oxs_basic_idle_nsec, tvb, offset+4, 4, ENC_BIG_ENDIAN);
break;
case OFPXST_OFB_FLOW_COUNT:
proto_tree_add_item(tree, hf_openflow_v6_oxs_basic_flow_count, tvb, offset, 4, ENC_BIG_ENDIAN);
break;
case OFPXST_OFB_PACKET_COUNT:
proto_tree_add_item(tree, hf_openflow_v6_oxs_basic_packet_count, tvb, offset, 8, ENC_BIG_ENDIAN);
break;
case OFPXST_OFB_BYTE_COUNT:
proto_tree_add_item(tree, hf_openflow_v6_oxs_basic_byte_count, tvb, offset, 8, ENC_BIG_ENDIAN);
break;
}
} else if (oxs_class == OFPXSC_EXPERIMENTER) {
proto_tree_add_item(tree, hf_openflow_v6_oxs_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_openflow_v6_oxs_experimenter_value, tvb, offset+4, oxs_payload_length - 4, ENC_NA);
}
offset+=oxs_payload_length;
return offset;
}
static int
dissect_openflow_stats_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
guint32 stats_length;
int oxs_end;
guint32 padding;
proto_tree_add_item(tree, hf_openflow_v6_stats_reserved, tvb, offset, 2, ENC_NA);
ti = proto_tree_add_item_ret_uint(tree, hf_openflow_v6_stats_length, tvb, offset+2, 2, ENC_BIG_ENDIAN, &stats_length);
oxs_end = offset + stats_length;
offset+=4;
if (stats_length < 4) {
expert_add_info(pinfo, ti, &ei_openflow_v6_length_too_short);
return offset;
}
while (offset < oxs_end) {
offset = dissect_openflow_v6_oxs(tvb, pinfo, tree, offset, oxs_end - offset);
}
if (offset > oxs_end) {
// XXX EI if offset > oxs_end?
offset = oxs_end;
}
padding = WS_ROUNDUP_8(stats_length) - stats_length;
if (padding) {
proto_tree_add_item(tree, hf_openflow_v6_stats_pad, tvb, oxs_end, padding, ENC_NA);
offset += padding;
}
return offset;
}
/*
* OXM
*/
#define OFPXMC_NXM_0 0x0000 /* Backward compatibility with NXM */
#define OFPXMC_NXM_1 0x0001 /* Backward compatibility with NXM */
#define OFPXMC_OPENFLOW_BASIC 0x8000 /* Basic class for OpenFlow */
#define OFPXMC_PACKET_REGS 0x8001 /* Packet registers (pipeline fields). */
#define OFPXMC_EXPERIMENTER 0xFFFF /* Experimenter class */
static const value_string openflow_v6_oxm_class_values[] = {
{ 0x0000, "OFPXMC_NMX_0" },
{ 0x0001, "OFPXMC_NXM_1" },
{ 0x8000, "OFPXMC_OPENFLOW_BASIC" },
{ 0x8001, "OFPXMC_PACKET_REGS" },
{ 0xFFFF, "OFPXMC_EXPERIMENTER" },
{ 0, NULL}
};
#define OFPXMT_OFB_IN_PORT 0
#define OFPXMT_OFB_IN_PHY_PORT 1
#define OFPXMT_OFB_METADATA 2
#define OFPXMT_OFB_ETH_DST 3
#define OFPXMT_OFB_ETH_SRC 4
#define OFPXMT_OFB_ETH_TYPE 5
#define OFPXMT_OFB_VLAN_VID 6
#define OFPXMT_OFB_VLAN_PCP 7
#define OFPXMT_OFB_IP_DSCP 8
#define OFPXMT_OFB_IP_ECN 9
#define OFPXMT_OFB_IP_PROTO 10
#define OFPXMT_OFB_IPV4_SRC 11
#define OFPXMT_OFB_IPV4_DST 12
#define OFPXMT_OFB_TCP_SRC 13
#define OFPXMT_OFB_TCP_DST 14
#define OFPXMT_OFB_UDP_SRC 15
#define OFPXMT_OFB_UDP_DST 16
#define OFPXMT_OFB_SCTP_SRC 17
#define OFPXMT_OFB_SCTP_DST 18
#define OFPXMT_OFB_ICMPV4_TYPE 19
#define OFPXMT_OFB_ICMPV4_CODE 20
#define OFPXMT_OFB_ARP_OP 21
#define OFPXMT_OFB_ARP_SPA 22
#define OFPXMT_OFB_ARP_TPA 23
#define OFPXMT_OFB_ARP_SHA 24
#define OFPXMT_OFB_ARP_THA 25
#define OFPXMT_OFB_IPV6_SRC 26
#define OFPXMT_OFB_IPV6_DST 27
#define OFPXMT_OFB_IPV6_FLABEL 28
#define OFPXMT_OFB_ICMPV6_TYPE 29
#define OFPXMT_OFB_ICMPV6_CODE 30
#define OFPXMT_OFB_IPV6_ND_TARGET 31
#define OFPXMT_OFB_IPV6_ND_SLL 32
#define OFPXMT_OFB_IPV6_ND_TLL 33
#define OFPXMT_OFB_MPLS_LABEL 34
#define OFPXMT_OFB_MPLS_TC 35
#define OFPXMT_OFP_MPLS_BOS 36
#define OFPXMT_OFB_PBB_ISID 37
#define OFPXMT_OFB_TUNNEL_ID 38
#define OFPXMT_OFB_IPV6_EXTHDR 39
#define OFPXMT_OFB_PBB_UCA 41
#define OFPXMT_OFB_TCP_FLAGS 42
#define OFPXMT_OFB_ACTSET_OUTPUT 43
#define OFPXMT_OFB_PACKET_TYPE 44
static const value_string openflow_v6_oxm_basic_field_values[] = {
{ 0, "OFPXMT_OFB_IN_PORT" },
{ 1, "OFPXMT_OFB_IN_PHY_PORT" },
{ 2, "OFPXMT_OFB_METADATA" },
{ 3, "OFPXMT_OFB_ETH_DST" },
{ 4, "OFPXMT_OFB_ETH_SRC" },
{ 5, "OFPXMT_OFB_ETH_TYPE" },
{ 6, "OFPXMT_OFB_VLAN_VID" },
{ 7, "OFPXMT_OFB_VLAN_PCP" },
{ 8, "OFPXMT_OFB_IP_DSCP" },
{ 9, "OFPXMT_OFB_IP_ECN" },
{ 10, "OFPXMT_OFB_IP_PROTO" },
{ 11, "OFPXMT_OFB_IPV4_SRC" },
{ 12, "OFPXMT_OFB_IPV4_DST" },
{ 13, "OFPXMT_OFB_TCP_SRC" },
{ 14, "OFPXMT_OFB_TCP_DST" },
{ 15, "OFPXMT_OFB_UDP_SRC" },
{ 16, "OFPXMT_OFB_UDP_DST" },
{ 17, "OFPXMT_OFB_SCTP_SRC" },
{ 18, "OFPXMT_OFB_SCTP_DST" },
{ 19, "OFPXMT_OFB_ICMPV4_TYPE" },
{ 20, "OFPXMT_OFB_ICMPV4_CODE" },
{ 21, "OFPXMT_OFB_ARP_OP" },
{ 22, "OFPXMT_OFB_ARP_SPA" },
{ 23, "OFPXMT_OFB_ARP_TPA" },
{ 24, "OFPXMT_OFB_ARP_SHA" },
{ 25, "OFPXMT_OFB_ARP_THA" },
{ 26, "OFPXMT_OFB_IPV6_SRC" },
{ 27, "OFPXMT_OFB_IPV6_DST" },
{ 28, "OFPXMT_OFB_IPV6_FLABEL" },
{ 29, "OFPXMT_OFB_ICMPV6_TYPE" },
{ 30, "OFPXMT_OFB_ICMPV6_CODE" },
{ 31, "OFPXMT_OFB_IPV6_ND_TARGET" },
{ 32, "OFPXMT_OFB_IPV6_ND_SLL" },
{ 33, "OFPXMT_OFB_IPV6_ND_TLL" },
{ 34, "OFPXMT_OFB_MPLS_LABEL" },
{ 35, "OFPXMT_OFB_MPLS_TC" },
{ 36, "OFPXMT_OFP_MPLS_BOS" },
{ 37, "OFPXMT_OFB_PBB_ISID" },
{ 38, "OFPXMT_OFB_TUNNEL_ID" },
{ 39, "OFPXMT_OFB_IPV6_EXTHDR" },
{ 41, "OFPXMT_OFB_PBB_UCA" },
{ 42, "OFPXMT_OFB_TCP_FLAGS" },
{ 43, "OFPXMT_OFB_ACTSET_OUTPUT" },
{ 44, "OFPXMT_OFB_PACKET_TYPE" },
{ 0, NULL }
};
static value_string_ext openflow_v6_oxm_basic_field_values_ext = VALUE_STRING_EXT_INIT(openflow_v6_oxm_basic_field_values);
#define OFPHTN_ONF 0
#define OFPHTN_ETHERTYPE 1
#define OFPHTN_IP_PROTO 2
#define OFPHTN_UDP_TCP_PORT 3
#define OFPHTN_IPV4_OPTION 4
static const value_string openflow_v6_header_type_namespace_values[] = {
{ OFPHTN_ONF, "OFPHTN_ONF" },
{ OFPHTN_ETHERTYPE, "OFPHTN_ETHERTYPE" },
{ OFPHTN_IP_PROTO, "OFPHTN_IP_PROTO" },
{ OFPHTN_UDP_TCP_PORT, "OFPHTN_UDP_TCP_PORT" },
{ OFPHTN_IPV4_OPTION, "OFPHTN_IPV4_OPTION" },
{ 0, NULL }
};
#define OXM_FIELD_MASK 0xfe
#define OXM_HM_MASK 0x01
typedef struct oxm_header {
guint32 oxm_class;
gboolean oxm_hm;
guint32 oxm_field;
guint32 oxm_length;
} oxm_header;
static int
dissect_openflow_oxm_header_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_, oxm_header *retval)
{
guint32 oxm_class;
gboolean oxm_hm;
guint32 oxm_field;
guint32 oxm_length;
/* oxm_class */
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_oxm_class, tvb, offset, 2, ENC_BIG_ENDIAN, &oxm_class);
offset+=2;
/* oxm_field */
switch (oxm_class) {
case OFPXMC_OPENFLOW_BASIC:
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_oxm_field_basic, tvb, (offset * 8), 7, ENC_NA, &oxm_field);
break;
case OFPXMC_PACKET_REGS:
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_oxm_register, tvb, offset, 1, ENC_BIG_ENDIAN, &oxm_field);
break;
default:
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_oxm_field, tvb, offset, 1, ENC_BIG_ENDIAN, &oxm_field);
break;
}
/* oxm_hm */
proto_tree_add_item_ret_boolean(tree, hf_openflow_v6_oxm_hm, tvb, offset, 1, ENC_BIG_ENDIAN, &oxm_hm);
offset+=1;
/* oxm_length */
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_oxm_length, tvb, offset, 1, ENC_BIG_ENDIAN, &oxm_length);
offset+=1;
if (retval) {
retval->oxm_class = oxm_class;
retval->oxm_hm = oxm_hm;
retval->oxm_field = oxm_field;
retval->oxm_length = oxm_length;
}
return offset;
}
#define OFPVID_PRESENT 0x1000
static int
dissect_openflow_oxm_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *oxm_tree;
guint16 oxm_end;
oxm_header header;
guint8 field_length;
guint32 packet_type_namespace;
proto_item *ti;
header.oxm_length = tvb_get_guint8(tvb, offset + 3);
oxm_tree = proto_tree_add_subtree(tree, tvb, offset, header.oxm_length + 4, ett_openflow_v6_oxm, NULL, "OXM field");
offset = dissect_openflow_oxm_header_v6(tvb, pinfo, oxm_tree, offset, length, &header);
oxm_end = offset + 4 + header.oxm_length;
field_length = (header.oxm_hm == 0) ? header.oxm_length : (header.oxm_length / 2);
if (header.oxm_class == OFPXMC_OPENFLOW_BASIC) {
switch(header.oxm_field) {
case OFPXMT_OFB_IN_PORT:
case OFPXMT_OFB_IN_PHY_PORT:
case OFPXMT_OFB_ACTSET_OUTPUT:
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value_uint32, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
break;
case OFPXMT_OFB_ETH_DST:
case OFPXMT_OFB_ETH_SRC:
case OFPXMT_OFB_ARP_SHA:
case OFPXMT_OFB_ARP_THA:
case OFPXMT_OFB_IPV6_ND_SLL: /*The source link-layer address option in an IPv6 Neighbor Discovery message */
case OFPXMT_OFB_IPV6_ND_TLL: /*The target link-layer address option in an IPv6 Neighbor Discovery message */
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value_etheraddr, tvb, offset, 6, ENC_NA);
offset+=6;
if (header.oxm_hm) {
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_mask_etheraddr, tvb, offset, 6, ENC_NA);
offset+=6;
}
break;
case OFPXMT_OFB_ETH_TYPE:
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value_ethertype, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
break;
case OFPXMT_OFB_VLAN_VID:
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value_vlan_present, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value_vlan_vid, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
if (header.oxm_hm) {
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_mask_vlan, tvb, offset, 2, ENC_NA);
offset+=2;
}
break;
case OFPXMT_OFB_IP_PROTO:
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value_ipproto, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
break;
case OFPXMT_OFB_IPV4_SRC:
case OFPXMT_OFB_IPV4_DST:
case OFPXMT_OFB_ARP_SPA:
case OFPXMT_OFB_ARP_TPA:
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value_ipv4addr, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
if (header.oxm_hm) {
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_mask_ipv4addr, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
}
break;
case OFPXMT_OFB_TCP_SRC:
case OFPXMT_OFB_TCP_DST:
case OFPXMT_OFB_UDP_SRC:
case OFPXMT_OFB_UDP_DST:
case OFPXMT_OFB_SCTP_SRC:
case OFPXMT_OFB_SCTP_DST:
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value_uint16, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
break;
case OFPXMT_OFB_IPV6_SRC:
case OFPXMT_OFB_IPV6_DST:
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value_ipv6addr, tvb, offset, 16, ENC_NA);
offset+=16;
if (header.oxm_hm) {
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_mask_ipv6addr, tvb, offset, 16, ENC_NA);
offset+=16;
}
break;
case OFPXMT_OFB_MPLS_LABEL:
/* size differs in specification and header file */
if (field_length == 3) {
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value_uint24, tvb, offset, 3, ENC_BIG_ENDIAN);
offset+=3;
} else if (field_length == 4) {
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value_uint32, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
}
break;
case OFPXMT_OFB_PACKET_TYPE:
ti = proto_tree_add_item_ret_uint(oxm_tree, hf_openflow_v6_oxm_value_uint16, tvb, offset, 2, ENC_BIG_ENDIAN, &packet_type_namespace);
proto_item_append_text(ti, " (%s)", val_to_str_const(packet_type_namespace, openflow_v6_header_type_namespace_values, "Unknown"));
offset+=2;
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value_uint16, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
break;
default:
/* value */
if (field_length > 0) {
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value, tvb, offset, field_length, ENC_NA);
offset += field_length;
}
/* mask */
if (field_length > 0 && header.oxm_hm != 0) {
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_mask, tvb, offset, field_length, ENC_NA);
offset += field_length;
}
break;
}
if(oxm_end > offset){
proto_tree_add_expert_format(oxm_tree, pinfo, &ei_openflow_v6_oxm_undecoded,
tvb, offset, oxm_end-offset, "Undecoded Data");
offset = oxm_end;
}
} else if (header.oxm_class == OFPXMC_PACKET_REGS) {
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_value, tvb, offset, 8, ENC_NA);
offset+=8;
if (header.oxm_hm) {
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_mask, tvb, offset, 8, ENC_NA);
offset+=8;
}
} else if (header.oxm_class == OFPXMC_EXPERIMENTER) {
/* uint32_t experimenter; */
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
proto_tree_add_item(oxm_tree, hf_openflow_v6_oxm_experimenter_value, tvb, offset, header.oxm_length - 4, ENC_NA);
offset+=(header.oxm_length - 4);
} else {
proto_tree_add_expert_format(oxm_tree, pinfo, &ei_openflow_v6_oxm_undecoded,
tvb, offset, header.oxm_length, "Unknown OXM body.");
offset+=header.oxm_length;
}
return offset;
}
#define OFPMT_STANDARD 0 /* Standard Match. Deprecated. */
#define OFPMT_OXM 1 /* OpenFlow Extensible Match */
static const value_string openflow_v6_match_type_values[] = {
{ 0, "OFPMT_STANDARD" },
{ 1, "OFPMT_OXM" },
{ 0, NULL }
};
static int
dissect_openflow_match_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *match_tree;
guint32 match_type;
guint16 match_length;
gint32 fields_end;
guint16 pad_length;
match_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_match, &ti, "Match");
/* uint16_t type; */
proto_tree_add_item_ret_uint(match_tree, hf_openflow_v6_match_type, tvb, offset, 2, ENC_BIG_ENDIAN, &match_type);
offset+=2;
/* uint16_t length; (excluding padding) */
match_length = tvb_get_ntohs(tvb, offset);
pad_length = (match_length + 7)/8*8 - match_length;
proto_item_set_len(ti, match_length + pad_length);
ti = proto_tree_add_item(match_tree, hf_openflow_v6_match_length, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
if (match_length < 4) {
expert_add_info(pinfo, ti, &ei_openflow_v6_length_too_short);
return offset;
}
/* body */
switch (match_type) {
case OFPMT_STANDARD:
proto_tree_add_expert_format(match_tree, pinfo, &ei_openflow_v6_match_undecoded,
tvb, offset, match_length - 4, "Standard match body (deprecated).");
offset+=match_length-4;
break;
case OFPMT_OXM:
fields_end = offset + match_length - 4;
while(offset < fields_end) {
offset = dissect_openflow_oxm_v6(tvb, pinfo, match_tree, offset, length);
}
break;
default:
proto_tree_add_expert_format(match_tree, pinfo, &ei_openflow_v6_match_undecoded,
tvb, offset, match_length - 4, "Unknown match body.");
offset+=match_length-4;
break;
}
/* pad; Exactly ((length + 7)/8*8 - length) (between 0 and 7) bytes of all-zero bytes. */
if (pad_length > 0) {
proto_tree_add_item(match_tree, hf_openflow_v6_match_pad, tvb, offset, pad_length, ENC_NA);
offset+=pad_length;
}
return offset;
}
#define OFPM_MAX 0xffffff00 /* Last usable meter number. */
static const value_string openflow_v6_meter_id_reserved_values[] = {
{ 0xfffffffd, "OFPM_SLOWPATH" },
{ 0xfffffffe, "OFPM_CONTROLLER" },
{ 0xffffffff, "OFPM_ALL" },
{ 0, NULL }
};
#define OFPMBT_DROP 1
#define OFPMBT_DSCP_REMARK 2
#define OFPMBT_EXPERIMENTER 0xFFFF
static const value_string openflow_v6_meter_band_type_values[] = {
{ OFPMBT_DROP, "OFPMBT_DROP" },
{ OFPMBT_DSCP_REMARK, "OFPMBT_DSCP_REMARK" },
{ OFPMBT_EXPERIMENTER, "OFPMBT_EXPERIMENTER" },
{ 0, NULL }
};
#define OFPMF_KBPS 1 << 0
#define OFPMF_PKTPS 1 << 1
#define OFPMF_BURST 1 << 2
#define OFPMF_STATS 1 << 3
static int
dissect_openflow_meter_band_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *band_tree;
guint32 band_type;
guint16 band_len;
band_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_meter_band, &ti, "Meter band");
/* uint16_t type; */
proto_tree_add_item_ret_uint(band_tree, hf_openflow_v6_meter_band_type, tvb, offset, 2, ENC_BIG_ENDIAN, &band_type);
offset+=2;
/* uint16_t len; */
band_len = tvb_get_ntohs(tvb, offset);
proto_item_set_len(ti, band_len);
ti = proto_tree_add_item(band_tree, hf_openflow_v6_meter_band_len, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint32_t rate; */
proto_tree_add_item(band_tree, hf_openflow_v6_meter_band_rate, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t burst_size; */
proto_tree_add_item(band_tree, hf_openflow_v6_meter_band_burst_size, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
if (band_len < 12) {
expert_add_info(pinfo, ti, &ei_openflow_v6_length_too_short);
return offset;
}
switch (band_type) {
case OFPMBT_DROP:
/* uint8_t pad[4]; */
proto_tree_add_item(band_tree, hf_openflow_v6_meter_band_drop_pad, tvb, offset, 4, ENC_NA);
offset+=4;
break;
case OFPMBT_DSCP_REMARK:
/* uint8_t prec_level; */
proto_tree_add_item(band_tree, hf_openflow_v6_meter_band_dscp_remark_prec_level, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[3]; */
proto_tree_add_item(band_tree, hf_openflow_v6_meter_band_dscp_remark_pad, tvb, offset, 3, ENC_NA);
offset+=3;
break;
case OFPMBT_EXPERIMENTER:
/* uint32_t experimenter; */
proto_tree_add_item(band_tree, hf_openflow_v6_meter_band_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t experimenter_data[0]; */
proto_tree_add_expert_format(band_tree, pinfo, &ei_openflow_v6_meter_band_undecoded,
tvb, offset, offset - 16 + band_len, "Experimenter meter band body.");
offset+=band_len-16;
break;
default:
proto_tree_add_expert_format(band_tree, pinfo, &ei_openflow_v6_meter_band_undecoded,
tvb, offset, offset - 12 + band_len, "Unknown meter band body.");
offset+=band_len-12;
break;
}
return offset;
}
#define OFPHET_VERSIONBITMAP 1
static const value_string openflow_v6_hello_element_type_values[] = {
{ 1, "OFPHET_VERSIONBITMAP" },
{ 0, NULL }
};
static int
dissect_openflow_hello_element_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
proto_tree *elem_tree;
guint32 elem_type;
guint16 elem_length;
guint16 pad_length;
elem_tree = proto_tree_add_subtree(tree, tvb, offset, length - offset, ett_openflow_v6_hello_element, NULL, "Element");
/* uint16_t type; */
proto_tree_add_item_ret_uint(elem_tree, hf_openflow_v6_hello_element_type, tvb, offset, 2, ENC_BIG_ENDIAN, &elem_type);
offset+=2;
/* uint16_t length; */
elem_length = tvb_get_ntohs(tvb, offset);
pad_length = (elem_length + 7)/8*8 - elem_length;
proto_tree_add_item(elem_tree, hf_openflow_v6_hello_element_length, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
if (elem_length >= 4) {
elem_length -= 4;
/* Otherwise expert info? */
}
switch (elem_type) {
case OFPHET_VERSIONBITMAP:
/* bitmap */
proto_tree_add_item(elem_tree, hf_openflow_v6_hello_element_version_bitmap, tvb, offset, elem_length, ENC_NA);
offset += elem_length;
break;
default:
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_hello_element_undecoded,
tvb, offset, elem_length, "Unknown hello element body.");
offset += elem_length;
break;
}
if (pad_length > 0) {
proto_tree_add_item(tree, hf_openflow_v6_hello_element_pad, tvb, offset, pad_length, ENC_NA);
offset+=pad_length;
}
return offset;
}
static void
dissect_openflow_hello_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
while (offset < length) {
offset = dissect_openflow_hello_element_v6(tvb, pinfo, tree, offset, length);
}
}
#define OFPET_HELLO_FAILED 0
#define OFPET_BAD_REQUEST 1
#define OFPET_BAD_ACTION 2
#define OFPET_BAD_INSTRUCTION 3
#define OFPET_BAD_MATCH 4
#define OFPET_FLOW_MOD_FAILED 5
#define OFPET_GROUP_MOD_FAILED 6
#define OFPET_PORT_MOD_FAILED 7
#define OFPET_TABLE_MOD_FAILED 8
#define OFPET_QUEUE_OP_FAILED 9
#define OFPET_SWITCH_CONFIG_FAILED 10
#define OFPET_ROLE_REQUEST_FAILED 11
#define OFPET_METER_MOD_FAILED 12
#define OFPET_TABLE_FEATURES_FAILED 13
#define OFPET_BAD_PROPERTY 14
#define OFPET_ASYNC_CONFIG_FAILED 15
#define OFPET_FLOW_MONITOR_FAILED 16
#define OFPET_BUNDLE_FAILED 17
#define OFPET_EXPERIMENTER 0xffff
static const value_string openflow_v6_error_type_values[] = {
{ 0, "OFPET_HELLO_FAILED" },
{ 1, "OFPET_BAD_REQUEST" },
{ 2, "OFPET_BAD_ACTION" },
{ 3, "OFPET_BAD_INSTRUCTION" },
{ 4, "OFPET_BAD_MATCH" },
{ 5, "OFPET_FLOW_MOD_FAILED" },
{ 6, "OFPET_GROUP_MOD_FAILED" },
{ 7, "OFPET_PORT_MOD_FAILED" },
{ 8, "OFPET_TABLE_MOD_FAILED" },
{ 9, "OFPET_QUEUE_OP_FAILED" },
{ 10, "OFPET_SWITCH_CONFIG_FAILED" },
{ 11, "OFPET_ROLE_REQUEST_FAILED" },
{ 12, "OFPET_METER_MOD_FAILED" },
{ 13, "OFPET_TABLE_FEATURES_FAILED" },
{ 14, "OFPET_BAD_PROPERTY" },
{ 15, "OFPET_ASYNC_CONFIG_FAILED" },
{ 16, "OFPET_FLOW_MONITOR_FAILED" },
{ 17, "OFPET_BUNDLE_FAILED" },
{ 0xffff, "OFPET_EXPERIMENTER" },
{ 0, NULL}
};
static const value_string openflow_v6_error_hello_failed_code_values[] = {
{ 0, "OFPHFC_INCOMPATIBLE" },
{ 1, "OFPHFC_EPERM" },
{ 0, NULL }
};
static const value_string openflow_v6_error_bad_request_code_values[] = {
{ 0, "OFPBRC_BAD_VERSION" },
{ 1, "OFPBRC_BAD_TYPE" },
{ 2, "OFPBRC_BAD_MULTIPART" },
{ 3, "OFPBRC_BAD_EXPERIMENTER" },
{ 4, "OFPBRC_BAD_EXP_TYPE" },
{ 5, "OFPBRC_EPERM" },
{ 6, "OFPBRC_BAD_LEN" },
{ 7, "OFPBRC_BUFFER_EMPTY" },
{ 8, "OFPBRC_BUFFER_UNKNOWN" },
{ 9, "OFPBRC_BAD_TABLE_ID" },
{ 10, "OFPBRC_IS_SLAVE" },
{ 11, "OFPBRC_BAD_PORT" },
{ 12, "OFPBRC_BAD_PACKET" },
{ 13, "OFPBRC_MULTIPART_BUFFER_OVERFLOW" },
{ 14, "OFPBRC_MULTIPART_REQUEST_TIMEOUT" },
{ 15, "OFPBRC_MULTIPART_REPLY_TIMEOUT" },
{ 0, NULL }
};
static const value_string openflow_v6_error_bad_action_code_values[] = {
{ 0, "OFPBAC_BAD_TYPE" },
{ 1, "OFPBAC_BAD_LEN" },
{ 2, "OFPBAC_BAD_EXPERIMENTER" },
{ 3, "OFPBAC_BAD_EXP_TYPE" },
{ 4, "OFPBAC_BAD_OUT_PORT" },
{ 5, "OFPBAC_BAD_ARGUMENT" },
{ 6, "OFPBAC_EPERM" },
{ 7, "OFPBAC_TOO_MANY" },
{ 8, "OFPBAC_BAD_QUEUE" },
{ 9, "OFPBAC_BAD_OUT_GROUP" },
{ 10, "OFPBAC_MATCH_INCONSISTENT" },
{ 11, "OFPBAC_UNSUPPORTED_ORDER" },
{ 12, "OFPBAC_BAD_TAG" },
{ 13, "OFPBAC_BAD_SET_TYPE" },
{ 14, "OFPBAC_BAD_SET_LEN" },
{ 15, "OFPBAC_BAD_SET_ARGUMENT" },
{ 16, "OFPBAC_BAD_SET_MASK" },
{ 17, "OFPBAC_BAD_SET_METER" },
{ 0, NULL }
};
static const value_string openflow_v6_error_bad_instruction_code_values[] = {
{ 0, "OFPBIC_UNKNOWN_INST" },
{ 1, "OFPBIC_UNSUP_INST" },
{ 2, "OFPBIC_BAD_TABLE_ID" },
{ 3, "OFPBIC_UNSUP_METADATA" },
{ 4, "OFPBIC_UNSUP_METADATA_MASK" },
{ 5, "OFPBIC_BAD_EXPERIMENTER" },
{ 6, "OFPBIC_BAD_EXP_TYPE" },
{ 7, "OFPBIC_BAD_LEN" },
{ 8, "OFPBIC_EPERM" },
{ 9, "OFPBIC_DUP_INST" },
{ 0, NULL }
};
static const value_string openflow_v6_error_bad_match_code_values[] = {
{ 0, "OFPBMC_BAD_TYPE" },
{ 1, "OFPBMC_BAD_LEN" },
{ 2, "OFPBMC_BAD_TAG" },
{ 3, "OFPBMC_BAD_DL_ADDR_MASK" },
{ 4, "OFPBMC_BAD_NW_ADDR_MASK" },
{ 5, "OFPBMC_BAD_WILDCARDS" },
{ 6, "OFPBMC_BAD_FIELD" },
{ 7, "OFPBMC_BAD_VALUE" },
{ 8, "OFPBMC_BAD_MASK" },
{ 9, "OFPBMC_BAD_PREREQ" },
{ 10, "OFPBMC_DUP_FIELD" },
{ 11, "OFPBMC_EPERM" },
{ 0, NULL }
};
static const value_string openflow_v6_error_flow_mod_failed_code_values[] = {
{ 0, "OFPFMFC_UNKNOWN" },
{ 1, "OFPFMFC_TABLE_FULL" },
{ 2, "OFPFMFC_BAD_TABLE_ID" },
{ 3, "OFPFMFC_OVERLAP" },
{ 4, "OFPFMFC_EPERM" },
{ 5, "OFPFMFC_BAD_TIMEOUT" },
{ 6, "OFPFMFC_BAD_COMMAND" },
{ 7, "OFPFMFC_BAD_FLAGS" },
{ 8, "OFPFMFC_CANT_SYNC" },
{ 9, "OFPFMFC_BAD_PRIORITY" },
{ 0, NULL }
};
static const value_string openflow_v6_error_group_mod_failed_code_values[] = {
{ 0, "OFPGMFC_GROUP_EXISTS" },
{ 1, "OFPGMFC_INVALID_GROUP" },
{ 2, "OFPGMFC_WEIGHT_UNSUPPORTED" },
{ 3, "OFPGMFC_OUT_OF_GROUPS" },
{ 4, "OFPGMFC_OUT_OF_BUCKETS" },
{ 5, "OFPGMFC_CHAINING_UNSUPPORTED" },
{ 6, "OFPGMFC_WATCH_UNSUPPORTED" },
{ 7, "OFPGMFC_LOOP" },
{ 8, "OFPGMFC_UNKNOWN_GROUP" },
{ 9, "OFPGMFC_CHAINED_GROUP" },
{ 10, "OFPGMFC_BAD_TYPE" },
{ 11, "OFPGMFC_BAD_COMMAND" },
{ 12, "OFPGMFC_BAD_BUCKET" },
{ 13, "OFPGMFC_BAD_WATCH" },
{ 14, "OFPGMFC_EPERM" },
{ 0, NULL }
};
static const value_string openflow_v6_error_port_mod_failed_code_values[] = {
{ 0, "OFPPMFC_BAD_PORT" },
{ 1, "OFPPMFC_BAD_HW_ADDR" },
{ 2, "OFPPMFC_BAD_CONFIG" },
{ 3, "OFPPMFC_BAD_ADVERTISE" },
{ 4, "OFPPMFC_EPERM" },
{ 0, NULL }
};
static const value_string openflow_v6_error_table_mod_failed_code_values[] = {
{ 0, "OFPTMFC_BAD_TABLE" },
{ 1, "OFPTMFC_BAD_CONFIG" },
{ 2, "OFPTMFC_EPERM" },
{ 0, NULL }
};
static const value_string openflow_v6_error_queue_op_failed_code_values[] = {
{ 0, "OFPQOFC_BAD_PORT" },
{ 1, "OFPQOFC_BAD_QUEUE" },
{ 2, "OFPQOFC_EPERM" },
{ 0, NULL }
};
static const value_string openflow_v6_error_switch_config_failed_code_values[] = {
{ 0, "OFPSCFC_BAD_FLAGS" },
{ 1, "OFPSCFC_BAD_LEN" },
{ 2, "OFPQCFC_EPERM" },
{ 0, NULL }
};
static const value_string openflow_v6_error_role_request_failed_code_values[] = {
{ 0, "OFPRRFC_STALE" },
{ 1, "OFPRRFC_UNSUP" },
{ 2, "OFPRRFC_BAD_ROLE" },
{ 0, NULL }
};
static const value_string openflow_v6_error_meter_mod_failed_code_values[] = {
{ 0, "OFPMMFC_UNKNOWN" },
{ 1, "OFPMMFC_METER_EXISTS" },
{ 2, "OFPMMFC_INVALID_METER" },
{ 3, "OFPMMFC_UNKNOWN_METER" },
{ 4, "OFPMMFC_BAD_COMMAND" },
{ 5, "OFPMMFC_BAD_FLAGS" },
{ 6, "OFPMMFC_BAD_RATE" },
{ 7, "OFPMMFC_BAD_BURST" },
{ 8, "OFPMMFC_BAD_BAND" },
{ 9, "OFPMMFC_BAD_BAND_VALUE" },
{ 10, "OFPMMFC_OUT_OF_METERS" },
{ 11, "OFPMMFC_OUT_OF_BANDS" },
{ 0, NULL }
};
static const value_string openflow_v6_error_table_features_failed_code_values[] = {
{ 0, "OFPTFFC_BAD_TABLE" },
{ 1, "OFPTFFC_BAD_METADATA" },
{ 5, "OFPTFFC_EPERM" },
{ 0, NULL }
};
static const value_string openflow_v6_error_bad_property_code_values[] = {
{ 0, "OFPBPC_BAD_TYPE" },
{ 1, "OFPBPC_BAD_LEN" },
{ 2, "OFPBPC_BAD_VALUE" },
{ 3, "OFPBPC_TOO_MANY" },
{ 4, "OFPBPC_DUP_TYPE" },
{ 5, "OFPBPC_BAD_EXPERIMENTER" },
{ 6, "OFPBPC_BAD_EXP_TYPE" },
{ 7, "OFPBPC_BAD_EXP_VALUE" },
{ 8, "OFPBPC_EPERM" },
{ 0, NULL }
};
static const value_string openflow_v6_error_async_config_failed_code_values[] = {
{ 0, "OFPACFC_INVALID" },
{ 1, "OFPACFC_UNSUPPORTED" },
{ 2, "OFPACFC_EPERM" },
{ 0, NULL }
};
static const value_string openflow_v6_error_flow_monitor_failed_code_values[] = {
{ 0, "OFPMOFC_UNKNOWN" },
{ 1, "OFPMOFC_MONITOR_EXISTS" },
{ 2, "OFPMOFC_INVALID_MONITOR" },
{ 3, "OFPMOFC_UNKNOWN_MONITOR" },
{ 4, "OFPMOFC_BAD_COMMAND" },
{ 5, "OFPMOFC_BAD_FLAGS" },
{ 6, "OFPMOFC_BAD_TABLE_ID" },
{ 7, "OFPMOFC_BAD_OUT" },
{ 0, NULL }
};
static const value_string openflow_v6_error_bundle_failed_code_values[] = {
{ 0, "OFPBFC_UNKNOWN" },
{ 1, "OFPBFC_EPERM" },
{ 2, "OFPBFC_BAD_ID" },
{ 3, "OFPBFC_BUNDLE_EXIST" },
{ 4, "OFPBFC_BUNDLE_CLOSED" },
{ 5, "OFPBFC_OUT_OF_BUNDLES" },
{ 6, "OFPBFC_BAD_TYPE" },
{ 7, "OFPBFC_BAD_FLAGS" },
{ 8, "OFPBFC_MSG_BAD_LEN" },
{ 9, "OFPBFC_MSG_BAD_XID" },
{ 10, "OFPBFC_MSG_UNSUP" },
{ 11, "OFPBFC_MSG_CONFLICT" },
{ 12, "OFPBFC_MSG_TOO_MANY" },
{ 13, "OFPBFC_MSG_FAILED" },
{ 14, "OFPBFC_TIMEOUT" },
{ 15, "OFPBFC_BUNDLE_IN_PROGRESS" },
{ 0, NULL }
};
static void
dissect_openflow_error_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
proto_tree *data_tree;
proto_item *data_ti;
guint32 error_type;
/* uint16_t type; */
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_error_type, tvb, offset, 2, ENC_BIG_ENDIAN, &error_type);
offset +=2;
/* uint16_t code; */
switch(error_type) {
case OFPET_HELLO_FAILED:
proto_tree_add_item(tree, hf_openflow_v6_error_hello_failed_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_BAD_REQUEST:
proto_tree_add_item(tree, hf_openflow_v6_error_bad_request_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_BAD_ACTION:
proto_tree_add_item(tree, hf_openflow_v6_error_bad_action_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_BAD_INSTRUCTION:
proto_tree_add_item(tree, hf_openflow_v6_error_bad_instruction_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_BAD_MATCH:
proto_tree_add_item(tree, hf_openflow_v6_error_bad_match_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_FLOW_MOD_FAILED:
proto_tree_add_item(tree, hf_openflow_v6_error_flow_mod_failed_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_GROUP_MOD_FAILED:
proto_tree_add_item(tree, hf_openflow_v6_error_group_mod_failed_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_PORT_MOD_FAILED:
proto_tree_add_item(tree, hf_openflow_v6_error_port_mod_failed_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_TABLE_MOD_FAILED:
proto_tree_add_item(tree, hf_openflow_v6_error_table_mod_failed_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_QUEUE_OP_FAILED:
proto_tree_add_item(tree, hf_openflow_v6_error_queue_op_failed_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_SWITCH_CONFIG_FAILED:
proto_tree_add_item(tree, hf_openflow_v6_error_switch_config_failed_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_ROLE_REQUEST_FAILED:
proto_tree_add_item(tree, hf_openflow_v6_error_role_request_failed_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_METER_MOD_FAILED:
proto_tree_add_item(tree, hf_openflow_v6_error_meter_mod_failed_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_TABLE_FEATURES_FAILED:
proto_tree_add_item(tree, hf_openflow_v6_error_table_features_failed_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_BAD_PROPERTY:
proto_tree_add_item(tree, hf_openflow_v6_error_bad_property_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_ASYNC_CONFIG_FAILED:
proto_tree_add_item(tree, hf_openflow_v6_error_async_config_failed_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_FLOW_MONITOR_FAILED:
proto_tree_add_item(tree, hf_openflow_v6_error_flow_monitor_failed_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_BUNDLE_FAILED:
proto_tree_add_item(tree, hf_openflow_v6_error_bundle_failed_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
case OFPET_EXPERIMENTER:
default:
proto_tree_add_item(tree, hf_openflow_v6_error_code, tvb, offset, 2, ENC_BIG_ENDIAN);
break;
}
offset +=2;
switch(error_type) {
case OFPET_HELLO_FAILED:
/* uint8_t data[0]; contains an ASCII text string */
proto_tree_add_item(tree, hf_openflow_v6_error_data_text, tvb, offset, length - 12, ENC_NA|ENC_ASCII);
/*offset += length - 12;*/
break;
case OFPET_BAD_REQUEST:
case OFPET_BAD_ACTION:
case OFPET_BAD_INSTRUCTION:
case OFPET_BAD_MATCH:
case OFPET_FLOW_MOD_FAILED:
case OFPET_GROUP_MOD_FAILED:
case OFPET_PORT_MOD_FAILED:
case OFPET_TABLE_MOD_FAILED:
case OFPET_QUEUE_OP_FAILED:
case OFPET_SWITCH_CONFIG_FAILED:
case OFPET_ROLE_REQUEST_FAILED:
case OFPET_METER_MOD_FAILED:
case OFPET_TABLE_FEATURES_FAILED: {
/* uint8_t data[0]; contains at least the first 64 bytes of the failed request. */
gboolean save_in_error_pkt;
data_ti = proto_tree_add_item(tree, hf_openflow_v6_error_data_body, tvb, offset, length - 20, ENC_NA);
data_tree = proto_item_add_subtree(data_ti, ett_openflow_v6_error_data);
/* Save error pkt */
save_in_error_pkt = pinfo->flags.in_error_pkt;
pinfo->flags.in_error_pkt = TRUE;
/* Disable update/change of column info */
col_set_writable(pinfo->cinfo, -1, FALSE);
dissect_openflow_message_v6(tvb, pinfo, data_tree, offset);
/* Restore the "we're inside an error packet" flag. */
pinfo->flags.in_error_pkt = save_in_error_pkt;
/* Restore the capability of update/change column info */
col_set_writable(pinfo->cinfo, -1, TRUE);
/*offset += length - 12;*/
}
break;
case OFPET_EXPERIMENTER:
/* uint32_t experimenter */
proto_tree_add_item(tree, hf_openflow_v6_error_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t data[0]; */
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_error_undecoded,
tvb, offset, length - 16, "Experimenter error body.");
/*offset += length - 16;*/
break;
default:
/* uint8_t data[0]; */
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_error_undecoded,
tvb, offset, length - 12, "Unknown error body.");
/*offset += length - 12;*/
break;
}
}
static void
dissect_openflow_echo_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
/* data */
if (offset < length) {
proto_tree_add_item(tree, hf_openflow_v6_echo_data, tvb, offset, length - offset, ENC_NA);
}
}
static void
dissect_openflow_experimenter_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
/* uint32_t experimenter; */
proto_tree_add_item(tree, hf_openflow_v6_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(tree, hf_openflow_v6_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* data */
if (offset < length) {
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_experimenter_undecoded,
tvb, offset, length - 16, "Experimenter body.");
}
}
#define OFPC_FLOW_STATS 1<<0 /* Flow statistics. */
#define OFPC_TABLE_STATS 1<<1 /* Table statistics. */
#define OFPC_PORT_STATS 1<<2 /* Port statistics. */
#define OFPC_GROUP_STATS 1<<3 /* Group statistics. */
#define OFPC_IP_REASM 1<<5 /* Can reassemble IP fragments. */
#define OFPC_QUEUE_STATS 1<<6 /* Queue statistics. */
#define OFPC_PORT_BLOCKED 1<<8 /* Switch will block looping ports. */
#define OFPC_BUNDLES 1<<9 /* Switch supports bundles. */
#define OFPC_FLOW_MONITORING 1<<10 /* Switch supports flow monitoring. */
static void
dissect_openflow_switch_features_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *cap_tree;
/* uint64_t datapath_id; */
proto_tree_add_item(tree, hf_openflow_v6_switch_features_datapath_id, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint32_t n_buffers; */
proto_tree_add_item(tree, hf_openflow_v6_switch_features_n_buffers, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t n_tables; */
proto_tree_add_item(tree, hf_openflow_v6_switch_features_n_tables, tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
/* uint8_t auxiliary_id; */
proto_tree_add_item(tree, hf_openflow_v6_switch_features_auxiliary_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
/* uint8_t pad[2]; */
proto_tree_add_item(tree, hf_openflow_v6_switch_features_pad, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint32_t capabilities; */
ti = proto_tree_add_item(tree, hf_openflow_v6_switch_features_capabilities, tvb, offset, 4, ENC_BIG_ENDIAN);
cap_tree = proto_item_add_subtree(ti, ett_openflow_v6_switch_features_capabilities);
proto_tree_add_item(cap_tree, hf_openflow_v6_switch_features_capabilities_flow_stats, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(cap_tree, hf_openflow_v6_switch_features_capabilities_table_stats, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(cap_tree, hf_openflow_v6_switch_features_capabilities_port_stats, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(cap_tree, hf_openflow_v6_switch_features_capabilities_group_stats, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(cap_tree, hf_openflow_v6_switch_features_capabilities_ip_reasm, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(cap_tree, hf_openflow_v6_switch_features_capabilities_queue_stats, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(cap_tree, hf_openflow_v6_switch_features_capabilities_port_blocked, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(cap_tree, hf_openflow_v6_switch_features_capabilities_bundles, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(cap_tree, hf_openflow_v6_switch_features_capabilities_flow_monitoring, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t reserved; */
proto_tree_add_item(tree, hf_openflow_v6_switch_features_reserved, tvb, offset, 4, ENC_BIG_ENDIAN);
/*offset+=4;*/
}
static const value_string openflow_v6_switch_config_fragments_values[] = {
{ 0, "OFPC_FRAG_NORMAL" },
{ 1, "OFPC_FRAG_DROP" },
{ 2, "OFPC_FRAG_REASM" },
{ 0, NULL }
};
#define OFPCML_MAX 0xffe5 /* Maximum max_len value. */
static const value_string openflow_v6_controller_max_len_reserved_values[] = {
{ 0xffff, "OFPCML_NO_BUFFER" },
{ 0, NULL }
};
static void
dissect_openflow_switch_config_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *flags_tree;
/* uint16_t flags; */
ti = proto_tree_add_item(tree, hf_openflow_v6_switch_config_flags, tvb, offset, 2, ENC_BIG_ENDIAN);
flags_tree = proto_item_add_subtree(ti, ett_openflow_v6_switch_config_flags);
/* fragments */
proto_tree_add_bits_item(flags_tree, hf_openflow_v6_switch_config_flags_fragments, tvb, (offset * 8) + 14, 2, ENC_NA);
offset+=2;
/* uint16_t miss_send_len; */
proto_tree_add_item(tree, hf_openflow_v6_switch_config_miss_send_len, tvb, offset, 2, ENC_BIG_ENDIAN);
/*offset+=2;*/
}
#define OFPR_TABLE_MISS 0
#define OFPR_APPLY_ACTION 1
#define OFPR_INVALID_TTL 2
#define OFPR_ACTION_SET 3
#define OFPR_GROUP 4
#define OFPR_PACKET_OUT 5
static const value_string openflow_v6_packet_in_reason_values[] = {
{ OFPR_TABLE_MISS, "OFPR_TABLE_MISS" },
{ OFPR_APPLY_ACTION, "OFPR_APPLY_ACTION" },
{ OFPR_INVALID_TTL, "OFPR_INVALID_TTL" },
{ OFPR_ACTION_SET, "OFPR_ACTION_SET" },
{ OFPR_GROUP, "OFPR_GROUP " },
{ OFPR_PACKET_OUT, "OFPR_PACKET_OUT" },
{ 0, NULL }
};
static void
dissect_openflow_packet_in_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *data_tree;
tvbuff_t *next_tvb;
gboolean save_writable;
gboolean save_in_error_pkt;
address save_dl_src, save_dl_dst, save_net_src, save_net_dst, save_src, save_dst;
/* uint32_t buffer_id; */
proto_tree_add_item(tree, hf_openflow_v6_packet_in_buffer_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint16_t total_len; */
proto_tree_add_item(tree, hf_openflow_v6_packet_in_total_len, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t reason; */
proto_tree_add_item(tree, hf_openflow_v6_packet_in_reason, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t table_id; */
proto_tree_add_item(tree, hf_openflow_v6_packet_in_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint64_t cookie; */
proto_tree_add_item(tree, hf_openflow_v6_packet_in_cookie, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* struct ofp_match match; */
offset = dissect_openflow_match_v6(tvb, pinfo, tree, offset, length);
/* uint8_t pad[2]; */
proto_tree_add_item(tree, hf_openflow_v6_packet_in_pad, tvb, offset, 2, ENC_NA);
offset+=2;
/* uint8_t data[0]; */
if (offset < length) {
data_tree = proto_tree_add_subtree(tree, tvb, offset, length - offset, ett_openflow_v6_packet_in_data, NULL, "Data");
/* save some state */
save_writable = col_get_writable(pinfo->cinfo, -1);
save_in_error_pkt = pinfo->flags.in_error_pkt;
copy_address_shallow(&save_dl_src, &pinfo->dl_src);
copy_address_shallow(&save_dl_dst, &pinfo->dl_dst);
copy_address_shallow(&save_net_src, &pinfo->net_src);
copy_address_shallow(&save_net_dst, &pinfo->net_dst);
copy_address_shallow(&save_src, &pinfo->src);
copy_address_shallow(&save_dst, &pinfo->dst);
/* dissect data */
col_set_writable(pinfo->cinfo, -1, FALSE);
next_tvb = tvb_new_subset_length(tvb, offset, length - offset);
call_dissector(eth_withoutfcs_handle, next_tvb, pinfo, data_tree);
/* restore saved state */
col_set_writable(pinfo->cinfo, -1, save_writable);
pinfo->flags.in_error_pkt = save_in_error_pkt;
copy_address_shallow(&pinfo->dl_src, &save_dl_src);
copy_address_shallow(&pinfo->dl_dst, &save_dl_dst);
copy_address_shallow(&pinfo->net_src, &save_net_src);
copy_address_shallow(&pinfo->net_dst, &save_net_dst);
copy_address_shallow(&pinfo->src, &save_src);
copy_address_shallow(&pinfo->dst, &save_dst);
}
}
#define OFPRR_IDLE_TIMEOUT 0
#define OFPRR_HARD_TIMEOUT 1
#define OFPRR_DELETE 2
#define OFPRR_GROUP_DELETE 3
#define OFPRR_METER_DELETE 4
#define OFPRR_EVICTION 5
static const value_string openflow_v6_flow_removed_reason_values[] = {
{ OFPRR_IDLE_TIMEOUT, "OFPRR_IDLE_TIMEOUT" },
{ OFPRR_HARD_TIMEOUT, "OFPRR_HARD_TIMEOUT" },
{ OFPRR_DELETE, "OFPRR_DELETE" },
{ OFPRR_GROUP_DELETE, "OFPRR_GROUP_DELETE" },
{ OFPRR_METER_DELETE, "OFPRR_METER_DELETE" },
{ OFPRR_EVICTION, "OFPRR_EVICTION" },
{ 0, NULL }
};
static void
dissect_openflow_flow_removed_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint8_t table_id; */
proto_tree_add_item(tree, hf_openflow_v6_flow_removed_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t reason; */
proto_tree_add_item(tree, hf_openflow_v6_flow_removed_reason, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint16_t priority; */
proto_tree_add_item(tree, hf_openflow_v6_flow_removed_priority, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t idle_timeout; */
proto_tree_add_item(tree, hf_openflow_v6_flow_removed_idle_timeout, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t hard_timeout; */
proto_tree_add_item(tree, hf_openflow_v6_flow_removed_hard_timeout, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint64_t cookie; */
proto_tree_add_item(tree, hf_openflow_v6_flow_removed_cookie, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* struct ofp_match match; */
offset = dissect_openflow_match_v6(tvb, pinfo, tree, offset, length);
/* struct ofp_stats */
dissect_openflow_stats_v6(tvb, pinfo, tree, offset, length);
}
#define OFPAT_OUTPUT 0 /* Output to switch port. */
#define OFPAT_COPY_TTL_OUT 11 /* Copy TTL "outwards" */
#define OFPAT_COPY_TTL_IN 12 /* Copy TTL "inwards" */
#define OFPAT_SET_MPLS_TTL 15 /* MPLS TTL */
#define OFPAT_DEC_MPLS_TTL 16 /* Decrement MPLS TTL */
#define OFPAT_PUSH_VLAN 17 /* Push a new VLAN tag */
#define OFPAT_POP_VLAN 18 /* Pop the outer VLAN tag */
#define OFPAT_PUSH_MPLS 19 /* Push a new MPLS tag */
#define OFPAT_POP_MPLS 20 /* Pop the outer MPLS tag */
#define OFPAT_SET_QUEUE 21 /* Set queue id when outputting to a port */
#define OFPAT_GROUP 22 /* Apply group. */
#define OFPAT_SET_NW_TTL 23 /* IP TTL. */
#define OFPAT_DEC_NW_TTL 24 /* Decrement IP TTL. */
#define OFPAT_SET_FIELD 25 /* Set a header field using OXM TLV format. */
#define OFPAT_PUSH_PBB 26 /* Push a new PBB service tag (I-TAG) */
#define OFPAT_POP_PBB 27 /* Pop the outer PBB service tag (I-TAG) */
#define OFPAT_COPY_FIELD 28 /* Copy value between header and register. */
#define OFPAT_METER 29 /* Apply meter (rate limiter) */
#define OFPAT_EXPERIMENTER 0xffff
static const value_string openflow_v6_action_type_values[] = {
{ 0, "OFPAT_OUTPUT" },
{ 11, "OFPAT_COPY_TTL_OUT" },
{ 12, "OFPAT_COPY_TTL_IN" },
{ 15, "OFPAT_SET_MPLS_TTL" },
{ 16, "OFPAT_DEC_MPLS_TTL" },
{ 17, "OFPAT_PUSH_VLAN" },
{ 18, "OFPAT_POP_VLAN" },
{ 19, "OFPAT_PUSH_MPLS" },
{ 20, "OFPAT_POP_MPLS" },
{ 21, "OFPAT_SET_QUEUE" },
{ 22, "OFPAT_GROUP" },
{ 23, "OFPAT_SET_NW_TTL" },
{ 24, "OFPAT_DEC_NW_TTL" },
{ 25, "OFPAT_SET_FIELD" },
{ 26, "OFPAT_PUSH_PBB" },
{ 27, "OFPAT_POP_PBB" },
{ 28, "OFPAT_COPY_FIELD" },
{ 29, "OFPAT_METER" },
{ 0xffff, "OFPAT_EXPERIMENTER" },
{ 0, NULL}
};
static int
dissect_openflow_action_header_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
guint32 act_type;
/* uint16_t type; */
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_action_type, tvb, offset, 2, ENC_BIG_ENDIAN, &act_type);
offset+=2;
/* uint16_t length; */
proto_tree_add_item(tree, hf_openflow_v6_action_length, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
if (act_type == OFPAT_EXPERIMENTER) {
/* uint32_t experimenter; */
proto_tree_add_item(tree, hf_openflow_v6_action_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
}
return offset;
}
static int
dissect_openflow_action_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *act_tree;
guint16 act_type;
guint16 act_length;
gint32 act_end;
act_type = tvb_get_ntohs(tvb, offset);
act_length = tvb_get_ntohs(tvb, offset + 2);
act_end = offset + act_length;
act_tree = proto_tree_add_subtree(tree, tvb, offset, act_length, ett_openflow_v6_action, NULL, "Action");
offset = dissect_openflow_action_header_v6(tvb, pinfo, act_tree, offset, length);
switch (act_type) {
case OFPAT_OUTPUT:
/* uint32_t port; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_output_port, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint16_t max_len; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_output_max_len, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t pad[6]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_output_pad, tvb, offset, 6, ENC_NA);
offset+=6;
break;
case OFPAT_COPY_TTL_OUT:
/* uint8_t pad[4]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_copy_ttl_out_pad, tvb, offset, 4, ENC_NA);
offset+=4;
break;
case OFPAT_COPY_TTL_IN:
/* uint8_t pad[4]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_copy_ttl_in_pad, tvb, offset, 4, ENC_NA);
offset+=4;
break;
case OFPAT_SET_MPLS_TTL:
/* uint8_t mpls_ttl; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_set_mpls_ttl_ttl, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[3]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_set_mpls_ttl_pad, tvb, offset, 3, ENC_NA);
offset+=3;
break;
case OFPAT_DEC_MPLS_TTL:
/* uint8_t pad[4]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_dec_mpls_ttl_pad, tvb, offset, 4, ENC_NA);
offset+=4;
break;
case OFPAT_PUSH_VLAN:
/* uint16_t ethertype; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_push_vlan_ethertype, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t pad[2]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_push_vlan_pad, tvb, offset, 2, ENC_NA);
offset+=2;
break;
case OFPAT_POP_VLAN:
/* uint8_t pad[4]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_pop_vlan_pad, tvb, offset, 4, ENC_NA);
offset+=4;
break;
case OFPAT_PUSH_MPLS:
/* uint16_t ethertype; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_push_mpls_ethertype, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t pad[2]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_push_mpls_pad, tvb, offset, 2, ENC_NA);
offset+=2;
break;
case OFPAT_POP_MPLS:
/* uint16_t ethertype; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_pop_mpls_ethertype, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t pad[2]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_pop_mpls_pad, tvb, offset, 2, ENC_NA);
offset+=2;
break;
case OFPAT_SET_QUEUE:
/* uint32_t queue_id; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_set_queue_queue_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
break;
case OFPAT_GROUP:
/* uint32_t group_id; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_group_group_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
break;
case OFPAT_SET_NW_TTL:
/* uint8_t nw_ttl; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_set_nw_ttl_ttl, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[3]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_set_nw_ttl_pad, tvb, offset, 3, ENC_NA);
offset+=3;
break;
case OFPAT_DEC_NW_TTL:
/* uint8_t pad[4]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_dec_nw_ttl_pad, tvb, offset, 4, ENC_NA);
offset+=4;
break;
case OFPAT_SET_FIELD:
offset = dissect_openflow_oxm_v6(tvb, pinfo, act_tree, offset, length);
/* padded to 64 bits */
if (offset < act_end) {
proto_tree_add_item(act_tree, hf_openflow_v6_action_set_field_pad, tvb, offset, act_end - offset, ENC_NA);
offset = act_end;
}
break;
case OFPAT_PUSH_PBB:
/* uint16_t ethertype; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_push_pbb_ethertype, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t pad[2]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_push_pbb_pad, tvb, offset, 2, ENC_NA);
offset+=2;
break;
case OFPAT_POP_PBB:
/* uint8_t pad[4]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_pop_pbb_pad, tvb, offset, 4, ENC_NA);
offset+=4;
break;
case OFPAT_COPY_FIELD:
/* uint16_t n_bits; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_copy_field_n_bits, tvb, offset, 2, ENC_NA);
offset+=2;
/* uint16_t src_offset; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_copy_field_src_offset, tvb, offset, 2, ENC_NA);
offset+=2;
/* uint16_t dst_offset; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_copy_field_dst_offset, tvb, offset, 2, ENC_NA);
offset+=2;
/* uint8_t pad[2]; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_copy_field_pad, tvb, offset, 2, ENC_NA);
offset+=2;
break;
case OFPAT_METER:
/* uint32_t meter_id; */
proto_tree_add_item(act_tree, hf_openflow_v6_action_meter_id, tvb, offset, 4, ENC_NA);
offset+=4;
break;
case OFPAT_EXPERIMENTER:
proto_tree_add_expert_format(act_tree, pinfo, &ei_openflow_v6_action_undecoded,
tvb, offset, act_length - 8, "Experimenter action body.");
offset += act_length - 8;
break;
default:
proto_tree_add_expert_format(act_tree, pinfo, &ei_openflow_v6_action_undecoded,
tvb, offset, act_length - 4, "Unknown action body.");
offset += act_length - 4;
break;
}
return offset;
}
#define OFPPF_10MB_HD 1 << 0
#define OFPPF_10MB_FD 1 << 1
#define OFPPF_100MB_HD 1 << 2
#define OFPPF_100MB_FD 1 << 3
#define OFPPF_1GB_HD 1 << 4
#define OFPPF_1GB_FD 1 << 5
#define OFPPF_10GB_FD 1 << 6
#define OFPPF_40GB_FD 1 << 7
#define OFPPF_100GB_FD 1 << 8
#define OFPPF_1TB_FD 1 << 9
#define OFPPF_OTHER 1 << 10
#define OFPPF_COPPER 1 << 11
#define OFPPF_FIBER 1 << 12
#define OFPPF_AUTONEG 1 << 13
#define OFPPF_PAUSE 1 << 14
#define OFPPF_PAUSE_ASYM 1 << 15
#define OFPPF_RESERVED 0xFFFF0000
static int
dissect_openflow_port_desc_prop_ethernet_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *curr_tree, *adv_tree, *supp_tree, *peer_tree;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_ethernet_pad, tvb, offset, 2, ENC_NA);
offset+=4;
/* uint32_t curr; */
ti = proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_ethernet_current, tvb, offset, 4, ENC_BIG_ENDIAN);
curr_tree = proto_item_add_subtree(ti, ett_openflow_v6_port_desc_prop_ethernet_current);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_10mb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_10mb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_100mb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_100mb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_1gb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_1gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_10gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_40gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_100gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_1tb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_other, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_copper, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_fiber, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_autoneg, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_pause, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_pause_asym, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(curr_tree, hf_openflow_v6_port_desc_prop_ethernet_current_reserved, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t advertised; */
ti = proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_ethernet_advertised, tvb, offset, 4, ENC_BIG_ENDIAN);
adv_tree = proto_item_add_subtree(ti, ett_openflow_v6_port_desc_prop_ethernet_advertised);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_10mb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_10mb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_100mb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_100mb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_1gb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_1gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_10gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_40gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_100gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_1tb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_other, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_copper, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_fiber, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_autoneg, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_pause, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_pause_asym, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_port_desc_prop_ethernet_advertised_reserved, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t supported; */
ti = proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_ethernet_supported, tvb, offset, 4, ENC_BIG_ENDIAN);
supp_tree = proto_item_add_subtree(ti, ett_openflow_v6_port_desc_prop_ethernet_supported);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_10mb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_10mb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_100mb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_100mb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_1gb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_1gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_10gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_40gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_100gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_1tb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_other, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_copper, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_fiber, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_autoneg, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_pause, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_pause_asym, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_ethernet_supported_reserved, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t peer; */
ti = proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_ethernet_peer, tvb, offset, 4, ENC_BIG_ENDIAN);
peer_tree = proto_item_add_subtree(ti, ett_openflow_v6_port_desc_prop_ethernet_peer);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_10mb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_10mb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_100mb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_100mb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_1gb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_1gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_10gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_40gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_100gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_1tb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_other, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_copper, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_fiber, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_autoneg, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_pause, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_pause_asym, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(peer_tree, hf_openflow_v6_port_desc_prop_ethernet_peer_reserved, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t curr_speed; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_ethernet_curr_speed, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_item_append_text(tree, " Speed: %u Mb", tvb_get_ntohl(tvb, offset)/1000);
offset+=4;
/* uint32_t max_speed; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_ethernet_max_speed, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
return offset;
}
#define OFPOPF_RX_TUNE 1<<0
#define OFPOPF_TX_TUNE 1<<1
#define OFPOPF_TX_PWR 1<<2
#define OFPOPF_USE_FREQ 1<<3
static int
dissect_openflow_port_desc_prop_optical_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *supp_tree;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_pad, tvb, offset, 2, ENC_NA);
offset+=4;
/* uint32_t supported; */
ti = proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_supported, tvb, offset, 4, ENC_BIG_ENDIAN);
supp_tree = proto_item_add_subtree(ti, ett_openflow_v6_port_desc_prop_optical_supported);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_optical_supported_rx_tune, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_optical_supported_tx_tune, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_optical_supported_tx_pwr, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(supp_tree, hf_openflow_v6_port_desc_prop_optical_supported_use_freq, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t tx_min_freq_lmda; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_tx_min_freq_lmda, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t tx_max_freq_lmda; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_tx_max_freq_lmda, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t tx_grid_freq_lmda; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_tx_grid_freq_lmda, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t rx_min_freq_lmda; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_rx_min_freq_lmda, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t rx_max_freq_lmda; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_rx_max_freq_lmda, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t rx_grid_freq_lmda; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_rx_grid_freq_lmda, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint16_t tx_pwr_min; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_tx_pwr_min, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t tx_pwr_max; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_optical_tx_pwr_max, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
return offset;
}
#define OFPPDPT_ETHERNET 0
#define OFPPDPT_OPTICAL 1
#define OFPPDPT_PIPELINE_INPUT 2
#define OFPPDPT_PIPELINE_OUTPUT 3
#define OFPPDPT_RECIRCULATE 4
#define OFPPDPT_EXPERIMENTER 0xFFFF
static const value_string openflow_v6_port_desc_prop_type_values[] = {
{ OFPPDPT_ETHERNET, "OFPPDPT_ETHERNET" },
{ OFPPDPT_OPTICAL, "OFPPDPT_OPTICAL" },
{ OFPPDPT_PIPELINE_INPUT, "OFPPDPT_PIPELINE_INPUT" },
{ OFPPDPT_PIPELINE_OUTPUT, "OFPPDPT_PIPELINE_OUTPUT" },
{ OFPPDPT_RECIRCULATE, "OFPPDPT_RECIRCULATE" },
{ OFPPDPT_EXPERIMENTER, "OFPPDPT_EXPERIMENTER" },
{ 0, NULL }
};
static int
dissect_openflow_port_desc_prop_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *prop_tree;
proto_item *prop_item;
guint32 prop_type;
guint32 prop_length;
int fields_end;
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_port_desc_prop, NULL, "Port desc. property");
/* uint16_t type; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_port_desc_prop_type, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_type);
offset+=2;
/* uint16_t len; */
prop_item = proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_port_desc_prop_length, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_length);
offset+=2;
switch (prop_type) {
case OFPPDPT_ETHERNET:
offset = dissect_openflow_port_desc_prop_ethernet_v6(tvb, pinfo, prop_tree, offset, length);
break;
case OFPPDPT_OPTICAL:
offset = dissect_openflow_port_desc_prop_optical_v6(tvb, pinfo, prop_tree, offset, length);
break;
case OFPPDPT_PIPELINE_INPUT:
case OFPPDPT_PIPELINE_OUTPUT:
fields_end = offset + prop_length - 4;
while(offset < fields_end) {
offset = dissect_openflow_oxm_v6(tvb, pinfo, prop_tree, offset, length);
}
offset+=WS_ROUNDUP_8(prop_length) - prop_length;
break;
case OFPPDPT_RECIRCULATE:
fields_end = offset + prop_length - 4;
while(offset < fields_end) {
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_recirculate_port_no, tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
}
offset+=WS_ROUNDUP_8(prop_length) - prop_length;
break;
case OFPPDPT_EXPERIMENTER:
if (prop_length <= 12) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
/* uint32_t experimenter; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(tree, hf_openflow_v6_port_desc_prop_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_port_desc_prop_undecoded,
tvb, offset, prop_length - 12, "Experimenter port desc. property.");
offset += prop_length - 12;
break;
default:
if (prop_length <= 4) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_port_desc_prop_undecoded,
tvb, offset, prop_length - 4, "Unknown port desc. property.");
offset += prop_length - 4;
break;
}
return offset;
}
#define OFPPC_PORT_DOWN 1 << 0
#define OFPPC_NO_RECV 1 << 2
#define OFPPC_NO_FWD 1 << 5
#define OFPPC_NO_PACKET_IN 1 << 6
#define OFPPS_LINK_DOWN 1 << 0
#define OFPPS_BLOCKED 1 << 1
#define OFPPS_LIVE 1 << 2
#define OFP_ETH_ALEN 6
#define OFP_MAX_PORT_NAME_LEN 16
static int
dissect_openflow_port_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *port_tree, *conf_tree, *state_tree;
guint32 port_length;
guint16 port_end;
port_tree = proto_tree_add_subtree(tree, tvb, offset, 64, ett_openflow_v6_port, NULL, "Port");
/* uint32_t port_no; */
proto_tree_add_item(port_tree, hf_openflow_v6_port_port_no, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint16_t length; */
proto_tree_add_item_ret_uint(port_tree, hf_openflow_v6_port_length, tvb, offset, 2, ENC_BIG_ENDIAN, &port_length);
port_end = port_length + offset - 4;
offset+=2;
/* uint8_t pad[2]; */
proto_tree_add_item(port_tree, hf_openflow_v6_port_pad, tvb, offset, 2, ENC_NA);
offset+=2;
/* uint8_t hw_addr[OFP_ETH_ALEN]; */
proto_tree_add_item(port_tree, hf_openflow_v6_port_hw_addr, tvb, offset, OFP_ETH_ALEN, ENC_NA);
proto_item_append_text(port_tree, ": %s", tvb_ether_to_str(pinfo->pool, tvb, offset));
offset+=OFP_ETH_ALEN;
/* uint8_t pad2[2]; */
proto_tree_add_item(port_tree, hf_openflow_v6_port_pad2, tvb, offset, 2, ENC_NA);
offset+=2;
/* char name[OFP_MAX_PORT_NAME_LEN]; Null-terminated */
proto_tree_add_item(port_tree, hf_openflow_v6_port_name, tvb, offset, OFP_MAX_PORT_NAME_LEN, ENC_ASCII);
proto_item_append_text(port_tree, " (%s)", tvb_get_string_enc(pinfo->pool, tvb, offset, OFP_ETH_ALEN, ENC_ASCII));
offset+=OFP_MAX_PORT_NAME_LEN;
/* uint32_t config; */
ti = proto_tree_add_item(port_tree, hf_openflow_v6_port_config, tvb, offset, 4, ENC_BIG_ENDIAN);
conf_tree = proto_item_add_subtree(ti, ett_openflow_v6_port_config);
proto_tree_add_item(conf_tree, hf_openflow_v6_port_config_port_down, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(conf_tree, hf_openflow_v6_port_config_no_recv, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(conf_tree, hf_openflow_v6_port_config_no_fwd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(conf_tree, hf_openflow_v6_port_config_no_packet_in, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t state; */
ti = proto_tree_add_item(port_tree, hf_openflow_v6_port_state, tvb, offset, 4, ENC_BIG_ENDIAN);
state_tree = proto_item_add_subtree(ti, ett_openflow_v6_port_state);
proto_tree_add_item(state_tree, hf_openflow_v6_port_state_link_down, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(state_tree, hf_openflow_v6_port_state_blocked, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(state_tree, hf_openflow_v6_port_state_live, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* struct ofp_port_desc_prop_header properties[0]; */
while (offset < port_end) {
offset = dissect_openflow_port_desc_prop_v6(tvb, pinfo, tree, offset, length);
}
return offset;
}
#define OFPPR_ADD 0
#define OFPPR_DELETE 1
#define OFPPR_MODIFY 2
static const value_string openflow_v6_port_status_reason_values[] = {
{ OFPPR_ADD, "OFPPR_ADD" },
{ OFPPR_DELETE, "OFPPR_DELETE" },
{ OFPPR_MODIFY, "OFPPR_MODIFY" },
{ 0, NULL }
};
static void
dissect_openflow_port_status_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint8_t reason; */
proto_tree_add_item(tree, hf_openflow_v6_port_status_reason, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[7]; */
proto_tree_add_item(tree, hf_openflow_v6_port_status_pad, tvb, offset, 7, ENC_NA);
offset+=7;
/* struct ofp_port desc; */
dissect_openflow_port_v6(tvb, pinfo, tree, offset, length);
}
static void
dissect_openflow_packet_out_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *data_tree;
guint32 acts_len;
gint32 acts_end;
tvbuff_t *next_tvb;
gboolean save_writable;
gboolean save_in_error_pkt;
address save_dl_src, save_dl_dst, save_net_src, save_net_dst, save_src, save_dst;
/* uint32_t buffer_id; */
proto_tree_add_item(tree, hf_openflow_v6_packet_out_buffer_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint16_t actions_len; */
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_packet_out_acts_len, tvb, offset, 2, ENC_BIG_ENDIAN, &acts_len);
offset+=2;
/* uint8_t pad[2]; */
proto_tree_add_item(tree, hf_openflow_v6_packet_out_pad, tvb, offset, 2, ENC_NA);
offset+=2;
/* struct ofp_match match; */
offset = dissect_openflow_match_v6(tvb, pinfo, tree, offset, length);
/* struct ofp_action_header actions[0]; */
acts_end = offset + acts_len;
while (offset < acts_end) {
offset = dissect_openflow_action_v6(tvb, pinfo, tree, offset, length);
}
/* uint8_t data[0]; */
if (offset < length) {
data_tree = proto_tree_add_subtree(tree, tvb, offset, length - offset, ett_openflow_v6_packet_out_data, NULL, "Data");
/* save some state */
save_writable = col_get_writable(pinfo->cinfo, -1);
save_in_error_pkt = pinfo->flags.in_error_pkt;
copy_address_shallow(&save_dl_src, &pinfo->dl_src);
copy_address_shallow(&save_dl_dst, &pinfo->dl_dst);
copy_address_shallow(&save_net_src, &pinfo->net_src);
copy_address_shallow(&save_net_dst, &pinfo->net_dst);
copy_address_shallow(&save_src, &pinfo->src);
copy_address_shallow(&save_dst, &pinfo->dst);
/* dissect data */
col_set_writable(pinfo->cinfo, -1, FALSE);
next_tvb = tvb_new_subset_length(tvb, offset, length - offset);
call_dissector(eth_withoutfcs_handle, next_tvb, pinfo, data_tree);
/* restore saved state */
col_set_writable(pinfo->cinfo, -1, save_writable);
pinfo->flags.in_error_pkt = save_in_error_pkt;
copy_address_shallow(&pinfo->dl_src, &save_dl_src);
copy_address_shallow(&pinfo->dl_dst, &save_dl_dst);
copy_address_shallow(&pinfo->net_src, &save_net_src);
copy_address_shallow(&pinfo->net_dst, &save_net_dst);
copy_address_shallow(&pinfo->src, &save_src);
copy_address_shallow(&pinfo->dst, &save_dst);
}
}
#define OFPIT_GOTO_TABLE 1 /* Setup the next table in the lookup */
#define OFPIT_WRITE_METADATA 2 /* Setup the metadata field for use later in */
#define OFPIT_WRITE_ACTIONS 3 /* Write the action(s) onto the datapath action */
#define OFPIT_APPLY_ACTIONS 4 /* Applies the action(s) immediately */
#define OFPIT_CLEAR_ACTIONS 5 /* Clears all actions from the datapath */
#define OFPIT_METER 6 /* Apply meter (rate limiter) */
#define OFPIT_STAT_TRIGGER 7 /* Statistics triggers */
#define OFPIT_EXPERIMENTER 0xFFFF /* Experimenter instruction */
static const value_string openflow_v6_instruction_type_values[] = {
{ 0x0001, "OFPIT_GOTO_TABLE" },
{ 0x0002, "OFPIT_WRITE_METADATA" },
{ 0x0003, "OFPIT_WRITE_ACTIONS" },
{ 0x0004, "OFPIT_APPLY_ACTIONS" },
{ 0x0005, "OFPIT_CLEAR_ACTIONS" },
{ 0x0006, "OFPIT_METER (Deprecated)" },
{ 0x0007, "OFPIT_STAT_TRIGGER" },
{ 0xffff, "OFPIT_EXPERIMENTER = 0xFFFF" },
{ 0, NULL }
};
typedef struct inst_header {
guint32 type;
guint32 length;
} inst_header;
static int
dissect_openflow_instruction_header_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_, inst_header *retval)
{
guint32 inst_type;
guint32 inst_length;
/* uint16_t type; */
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_instruction_type, tvb, offset, 2, ENC_BIG_ENDIAN, &inst_type);
offset+=2;
/* uint16_t length; */
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_instruction_length, tvb, offset, 2, ENC_BIG_ENDIAN, &inst_length);
offset+=2;
if (inst_type == OFPIT_EXPERIMENTER) {
/* uint32_t experimenter; */
proto_tree_add_item(tree, hf_openflow_v6_instruction_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
}
if (retval) {
retval->type = inst_type;
retval->length = inst_length;
}
return offset;
}
#define OFPSTF_PERIODIC 1 << 0
#define OFPSTF_ONLY_FIRST 1 << 1
static int
dissect_openflow_instruction_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *inst_tree, *flags_tree;
inst_header header;
gint32 inst_end;
inst_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_instruction, &ti, "Instruction");
offset = dissect_openflow_instruction_header_v6(tvb, pinfo, inst_tree, offset, length, &header);
proto_item_set_len(ti, header.length);
if (header.length < 8) {
// XXX Shouldn't it be reported with an expert info?
header.length = 8;
}
inst_end = offset + header.length - 4;
switch (header.type) {
case OFPIT_GOTO_TABLE:
/* uint8_t table_id; */
proto_tree_add_item(inst_tree, hf_openflow_v6_instruction_goto_table_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[3]; */
proto_tree_add_item(inst_tree, hf_openflow_v6_instruction_goto_table_pad, tvb, offset, 3, ENC_NA);
offset+=3;
break;
case OFPIT_WRITE_METADATA:
/* uint8_t pad[4]; */
proto_tree_add_item(inst_tree, hf_openflow_v6_instruction_write_metadata_pad, tvb, offset, 4, ENC_NA);
offset+=4;
/* uint64_t metadata; */
proto_tree_add_item(inst_tree, hf_openflow_v6_instruction_write_metadata_value, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t metadata_mask; */
proto_tree_add_item(inst_tree, hf_openflow_v6_instruction_write_metadata_mask, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
break;
case OFPIT_WRITE_ACTIONS:
case OFPIT_APPLY_ACTIONS:
case OFPIT_CLEAR_ACTIONS:
proto_tree_add_item(inst_tree, hf_openflow_v6_instruction_actions_pad, tvb, offset, 4, ENC_NA);
offset+=4;
while (offset < inst_end) {
offset = dissect_openflow_action_v6(tvb, pinfo, inst_tree, offset, length);
}
break;
case OFPIT_STAT_TRIGGER:
ti = proto_tree_add_item(inst_tree, hf_openflow_v6_instruction_stat_trigger_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
flags_tree = proto_item_add_subtree(ti, ett_openflow_v6_instruction_stat_trigger_flags);
proto_tree_add_item(flags_tree, hf_openflow_v6_instruction_stat_triffer_flags_periodic, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_instruction_stat_triffer_flags_only_first, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_instruction_stat_triffer_flags_reserved, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
while (offset < inst_end) {
offset = dissect_openflow_stats_v6(tvb, pinfo, inst_tree, offset, length);
}
break;
case OFPIT_EXPERIMENTER:
proto_tree_add_expert_format(inst_tree, pinfo, &ei_openflow_v6_instruction_undecoded,
tvb, offset, header.length - 8, "Experimenter instruction body.");
offset += header.length - 8;
break;
default:
proto_tree_add_expert_format(inst_tree, pinfo, &ei_openflow_v6_instruction_undecoded,
tvb, offset, header.length - 4, "Unknown instruction body.");
offset += header.length - 4;
break;
}
return offset;
}
static const value_string openflow_v6_flowmod_command_values[] = {
{ 0, "OFPFC_ADD" },
{ 1, "OFPFC_MODIFY" },
{ 2, "OFPFC_MODIFY_STRICT" },
{ 3, "OFPFC_DELETE" },
{ 4, "OFPFC_DELETE_STRICT" },
{ 0, NULL }
};
#define OFPFF_SEND_FLOW_REM 1 << 0 /* Send flow removed message when flow expires or is deleted. */
#define OFPFF_CHECK_OVERLAP 1 << 1 /* Check for overlapping entries first. */
#define OFPFF_RESET_COUNTS 1 << 2 /* Reset flow packet and byte counts. */
#define OFPFF_NO_PKT_COUNTS 1 << 3 /* Don't keep track of packet count. */
#define OFPFF_NO_BYT_COUNTS 1 << 4 /* Don't keep track of byte count. */
static void
dissect_openflow_flowmod_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
proto_item *ti;
proto_tree *flags_tree;
/* uint64_t cookie; */
proto_tree_add_item(tree, hf_openflow_v6_flowmod_cookie, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t cookie_mask; */
proto_tree_add_item(tree, hf_openflow_v6_flowmod_cookie_mask, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint8_t table_id; */
proto_tree_add_item(tree, hf_openflow_v6_flowmod_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t command; */
proto_tree_add_item(tree, hf_openflow_v6_flowmod_command, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint16_t idle_timeout; */
proto_tree_add_item(tree, hf_openflow_v6_flowmod_idle_timeout, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t hard_timeout; */
proto_tree_add_item(tree, hf_openflow_v6_flowmod_hard_timeout, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t priority; */
proto_tree_add_item(tree, hf_openflow_v6_flowmod_priority, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint32_t buffer_id; */
proto_tree_add_item(tree, hf_openflow_v6_flowmod_buffer_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t out_port; */
proto_tree_add_item(tree, hf_openflow_v6_flowmod_out_port, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t out_group; */
proto_tree_add_item(tree, hf_openflow_v6_flowmod_out_group, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint16_t flags; */
ti = proto_tree_add_item(tree, hf_openflow_v6_flowmod_flags, tvb, offset, 2, ENC_BIG_ENDIAN);
flags_tree = proto_item_add_subtree(ti, ett_openflow_v6_flowmod_flags);
proto_tree_add_item(flags_tree, hf_openflow_v6_flowmod_flags_send_flow_rem, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flowmod_flags_check_overlap, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flowmod_flags_reset_counts, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flowmod_flags_no_packet_counts, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flowmod_flags_no_byte_counts, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t importance; */
proto_tree_add_item(tree, hf_openflow_v6_flowmod_importance, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* struct ofp_match match; */
offset = dissect_openflow_match_v6(tvb, pinfo, tree, offset, length);
/* struct ofp_instruction instructions[0]; */
while (offset < length) {
offset = dissect_openflow_instruction_v6(tvb, pinfo, tree, offset, length);
}
}
static int
dissect_openflow_bucket_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
proto_item *ti;
proto_tree *bucket_tree;
guint16 bucket_length;
gint32 acts_end;
bucket_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_bucket, &ti, "Bucket");
/* uint16_t len; */
bucket_length = tvb_get_ntohs(tvb, offset);
proto_item_set_len(ti, bucket_length);
proto_tree_add_item(bucket_tree, hf_openflow_v6_bucket_length, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
if (bucket_length < 16) {
bucket_length = 16;
}
/* uint16_t weight; */
proto_tree_add_item(bucket_tree, hf_openflow_v6_bucket_weight, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint32_t watch_port; */
proto_tree_add_item(bucket_tree, hf_openflow_v6_bucket_watch_port, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t watch_group; */
proto_tree_add_item(bucket_tree, hf_openflow_v6_bucket_watch_group, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad[4]; */
proto_tree_add_item(bucket_tree, hf_openflow_v6_bucket_pad, tvb, offset, 4, ENC_NA);
offset+=4;
/*struct ofp_action_header actions[0]; */
acts_end = offset + bucket_length - 16;
while (offset < acts_end) {
offset = dissect_openflow_action_v6(tvb, pinfo, bucket_tree, offset, length);
}
return offset;
}
static const value_string openflow_v6_groupmod_command_values[] = {
{ 0, "OFPGC_ADD" },
{ 1, "OFPGC_MODIFY" },
{ 2, "OFPGC_DELETE" },
{ 3, "OFPGC_INSERT_BUCKET" },
{ 5, "OFPGC_DELETE_BUCKET" },
{ 0, NULL }
};
#define OFPGT_ALL 0
#define OFPGT_SELECT 1
#define OFPGT_INDIRECT 2
#define OFPGT_FF 3
static const value_string openflow_v6_group_type_values[] = {
{ OFPGT_ALL, "OFPGT_ALL" },
{ OFPGT_SELECT, "OFPGT_SELECT" },
{ OFPGT_INDIRECT, "OFPGT_INDIRECT" },
{ OFPGT_FF, "OFPGT_FF" },
{ 0, NULL }
};
static void
dissect_openflow_groupmod_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
/* uint16_t command; */
proto_tree_add_item(tree, hf_openflow_v6_groupmod_command, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t type; */
proto_tree_add_item(tree, hf_openflow_v6_groupmod_type, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad; */
proto_tree_add_item(tree, hf_openflow_v6_groupmod_pad, tvb, offset, 1, ENC_NA);
offset+=1;
/* uint32_t group_id; */
proto_tree_add_item(tree, hf_openflow_v6_groupmod_group_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint16_t bucket_array_len; */
proto_tree_add_item(tree, hf_openflow_v6_groupmod_bucket_array_len, tvb, offset, 2, ENC_NA);
offset+=2;
/* uint8_t pad2[2]; */
proto_tree_add_item(tree, hf_openflow_v6_groupmod_pad, tvb, offset, 2, ENC_NA);
offset+=2;
/* uint32_t command_bucket_id; */
proto_tree_add_item(tree, hf_openflow_v6_groupmod_command_bucket_id, tvb, offset, 4, ENC_NA);
offset+=4;
/* struct ofp_bucket buckets[0]; */
while (offset < length) {
offset = dissect_openflow_bucket_v6(tvb, pinfo, tree, offset, length);
}
}
static int
dissect_openflow_portmod_prop_ethernet_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *adv_tree;
/* uint32_t advertise; */
ti = proto_tree_add_item(tree, hf_openflow_v6_portmod_prop_ethernet_advertise, tvb, offset, 4, ENC_BIG_ENDIAN);
adv_tree = proto_item_add_subtree(ti, ett_openflow_v6_portmod_prop_ethernet_advertise);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_10mb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_10mb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_100mb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_100mb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_1gb_hd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_1gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_10gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_40gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_100gb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_1tb_fd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_other, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_copper, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_fiber, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_autoneg, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_pause, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(adv_tree, hf_openflow_v6_portmod_prop_ethernet_advertise_pause_asym, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
return offset;
}
static int
dissect_openflow_portmod_prop_optical_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *conf_tree;
/* uint32_t configure; */
ti = proto_tree_add_item(tree, hf_openflow_v6_portmod_prop_optical_configure, tvb, offset, 4, ENC_BIG_ENDIAN);
conf_tree = proto_item_add_subtree(ti, ett_openflow_v6_portmod_prop_optical_configure);
proto_tree_add_item(conf_tree, hf_openflow_v6_portmod_prop_optical_configure_rx_tune, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(conf_tree, hf_openflow_v6_portmod_prop_optical_configure_tx_tune, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(conf_tree, hf_openflow_v6_portmod_prop_optical_configure_tx_pwr, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(conf_tree, hf_openflow_v6_portmod_prop_optical_configure_use_freq, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t freq_lmda; */
proto_tree_add_item(tree, hf_openflow_v6_portmod_prop_optical_freq_lmda, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* int32_t fl_offset; */
proto_tree_add_item(tree, hf_openflow_v6_portmod_prop_optical_fl_offset, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t grid_span; */
proto_tree_add_item(tree, hf_openflow_v6_portmod_prop_optical_grid_span, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t tx_pwr; */
proto_tree_add_item(tree, hf_openflow_v6_portmod_prop_optical_tx_pwr, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
return offset;
}
#define OFPPMPT_ETHERNET 0
#define OFPPMPT_OPTICAL 1
#define OFPPMPT_EXPERIMENTER 0xFFFF
static const value_string openflow_v6_portmod_prop_type_values[] = {
{ OFPPMPT_ETHERNET, "OFPPMPT_ETHERNET" },
{ OFPPMPT_OPTICAL, "OFPPMPT_OPTICAL" },
{ OFPPMPT_EXPERIMENTER, "OFPPMPT_EXPERIMENTER" },
{ 0, NULL }
};
static int
dissect_openflow_portmod_prop_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *prop_tree;
proto_item *prop_item, *ti;
guint32 prop_type;
guint32 prop_length;
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_portmod_prop, &ti, "Portmod property");
/* uint16_t type; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_portmod_prop_type, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_type);
offset+=2;
/* uint16_t len; */
prop_item = proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_portmod_prop_length, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_length);
proto_item_set_len(ti, prop_length);
offset+=2;
switch (prop_type) {
case OFPPMPT_ETHERNET:
offset = dissect_openflow_portmod_prop_ethernet_v6(tvb, pinfo, prop_tree, offset, length);
break;
case OFPPMPT_OPTICAL:
offset = dissect_openflow_portmod_prop_optical_v6(tvb, pinfo, prop_tree, offset, length);
break;
case OFPPMPT_EXPERIMENTER:
if (prop_length <= 12) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
/* uint32_t experimenter; */
proto_tree_add_item(tree, hf_openflow_v6_portmod_prop_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(tree, hf_openflow_v6_portmod_prop_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_portmod_prop_undecoded,
tvb, offset, prop_length - 12, "Experimenter port desc. property.");
offset += prop_length - 12;
break;
default:
if (prop_length <= 4) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_portmod_prop_undecoded,
tvb, offset, prop_length - 4, "Unknown port desc. property.");
offset += prop_length - 4;
break;
}
return offset;
}
static void
dissect_openflow_portmod_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *conf_tree, *mask_tree;
/* uint32_t port_no; */
proto_tree_add_item(tree, hf_openflow_v6_portmod_port_no, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_portmod_pad, tvb, offset, 4, ENC_NA);
offset+=4;
/* uint8_t hw_addr[OFP_ETH_ALEN]; */
proto_tree_add_item(tree, hf_openflow_v6_portmod_hw_addr, tvb, offset, OFP_ETH_ALEN, ENC_NA);
offset+=OFP_ETH_ALEN;
/* uint8_t pad2[2]; */
proto_tree_add_item(tree, hf_openflow_v6_portmod_pad2, tvb, offset, 2, ENC_NA);
offset+=2;
/* uint32_t config; */
ti = proto_tree_add_item(tree, hf_openflow_v6_portmod_config, tvb, offset, 4, ENC_BIG_ENDIAN);
conf_tree = proto_item_add_subtree(ti, ett_openflow_v6_portmod_config);
proto_tree_add_item(conf_tree, hf_openflow_v6_portmod_config_port_down, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(conf_tree, hf_openflow_v6_portmod_config_no_recv, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(conf_tree, hf_openflow_v6_portmod_config_no_fwd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(conf_tree, hf_openflow_v6_portmod_config_no_packet_in, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t mask; */
ti = proto_tree_add_item(tree, hf_openflow_v6_portmod_mask, tvb, offset, 4, ENC_BIG_ENDIAN);
mask_tree = proto_item_add_subtree(ti, ett_openflow_v6_portmod_mask);
proto_tree_add_item(mask_tree, hf_openflow_v6_portmod_mask_port_down, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(mask_tree, hf_openflow_v6_portmod_mask_no_recv, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(mask_tree, hf_openflow_v6_portmod_mask_no_fwd, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(mask_tree, hf_openflow_v6_portmod_mask_no_packet_in, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* struct ofp_port_mod_prop_header properties[0]; */
while (offset < length) {
offset = dissect_openflow_portmod_prop_v6(tvb, pinfo, tree, offset, length);
}
}
#define OFPTMPT_EVICTION 0x2
#define OFPTMPT_VACANCY 0x3
#define OFPTMPT_EXPERIMENTER 0xFFFF
static const value_string openflow_v6_tablemod_prop_type_values[] = {
{ OFPTMPT_EVICTION, "OFPTMPT_EVICTION" },
{ OFPTMPT_VACANCY, "OFPTMPT_VACANCY" },
{ OFPTMPT_EXPERIMENTER, "OFPTMPT_EXPERIMENTER" },
{ 0, NULL }
};
#define OFPTMPEF_OTHER 1<<0
#define OFPTMPEF_IMPORTANCE 1<<1
#define OFPTMPEF_LIFETIME 1<<2
static int
dissect_openflow_tablemod_prop_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti, *prop_item;
proto_tree *prop_tree, *flags_tree;
guint32 prop_type;
guint32 prop_length;
prop_length = tvb_get_ntohs(tvb, offset + 2);
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_tablemod_prop, &ti, "Tablemod property");
/* uint16_t type; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_tablemod_prop_type, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_type);
offset+=2;
/* uint16_t len; */
prop_item = proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_tablemod_prop_length, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_length);
proto_item_set_len(ti, prop_length);
offset+=2;
switch (prop_type) {
case OFPTMPT_EVICTION:
/* uint32_t flags; */
ti = proto_tree_add_item(prop_tree, hf_openflow_v6_tablemod_prop_eviction_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
flags_tree = proto_item_add_subtree(ti, ett_openflow_v6_tablemod_prop_eviction_flags);
proto_tree_add_item(flags_tree, hf_openflow_v6_tablemod_prop_eviction_flags_other, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_tablemod_prop_eviction_flags_importance, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_tablemod_prop_eviction_flags_lifetime, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
break;
case OFPTMPT_VACANCY:
/* uint8_t vacancy_down; */
proto_tree_add_item(tree, hf_openflow_v6_tablemod_prop_vacancy_vacancy_down, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t vacancy_up; */
proto_tree_add_item(tree, hf_openflow_v6_tablemod_prop_vacancy_vacancy_up, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t vacancy; */
proto_tree_add_item(tree, hf_openflow_v6_tablemod_prop_vacancy_vacancy, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[1]; */
proto_tree_add_item(tree, hf_openflow_v6_tablemod_prop_vacancy_pad, tvb, offset, 1, ENC_NA);
offset+=1;
break;
case OFPTMPT_EXPERIMENTER:
if (prop_length <= 12) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
/* uint32_t experimenter; */
proto_tree_add_item(tree, hf_openflow_v6_tablemod_prop_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(tree, hf_openflow_v6_tablemod_prop_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_tablemod_prop_undecoded,
tvb, offset, prop_length - 12, "Experimenter table mod. property.");
offset += prop_length - 12;
break;
default:
if (prop_length <= 4) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_tablemod_prop_undecoded,
tvb, offset, prop_length - 4, "Unknown table mod. property.");
offset += prop_length - 4;
break;
}
return offset;
}
#define OFPTC_EVICTION 1<<2
#define OFPTC_VACANCY_EVENTS 1<<3
static void
dissect_openflow_tablemod_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *conf_tree;
int save_offset;
/* uint8_t table_id; */
proto_tree_add_item(tree, hf_openflow_v6_tablemod_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[3]; */
proto_tree_add_item(tree, hf_openflow_v6_tablemod_pad, tvb, offset, 3, ENC_NA);
offset+=3;
/* uint32_t config; */
ti = proto_tree_add_item(tree, hf_openflow_v6_tablemod_config, tvb, offset, 4, ENC_NA);
conf_tree = proto_item_add_subtree(ti, ett_openflow_v6_tablemod_config);
proto_tree_add_item(conf_tree, hf_openflow_v6_tablemod_config_eviction, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(conf_tree, hf_openflow_v6_tablemod_config_vacancy_events, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* struct ofp_table_mod_prop_header properties[0]; */
while (offset < length) {
save_offset = offset;
offset = dissect_openflow_tablemod_prop_v6(tvb, pinfo, tree, offset, length);
if (offset <= save_offset) {
/* We don't need to go backwards or introduce an infinite loop */
break;
}
}
}
static void
dissect_openflow_flow_stats_request_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
/* uint8_t table_id; */
proto_tree_add_item(tree, hf_openflow_v6_flow_stats_request_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[3]; */
proto_tree_add_item(tree, hf_openflow_v6_flow_stats_request_pad, tvb, offset, 3, ENC_NA);
offset+=3;
/* uint32_t out_port; */
proto_tree_add_item(tree, hf_openflow_v6_flow_stats_request_out_port, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t out_group; */
proto_tree_add_item(tree, hf_openflow_v6_flow_stats_request_out_group, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad2[4]; */
proto_tree_add_item(tree, hf_openflow_v6_flow_stats_request_pad2, tvb, offset, 4, ENC_NA);
offset+=4;
/* uint64_t cookie; */
proto_tree_add_item(tree, hf_openflow_v6_flow_stats_request_cookie, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t cookie_mask; */
proto_tree_add_item(tree, hf_openflow_v6_flow_stats_request_cookie_mask, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* struct ofp_match match; */
dissect_openflow_match_v6(tvb, pinfo, tree, offset, length);
}
static void
dissect_openflow_aggregate_stats_request_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
/* uint8_t table_id; */
proto_tree_add_item(tree, hf_openflow_v6_aggregate_stats_request_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[3]; */
proto_tree_add_item(tree, hf_openflow_v6_aggregate_stats_request_pad, tvb, offset, 3, ENC_NA);
offset+=3;
/* uint32_t out_port; */
proto_tree_add_item(tree, hf_openflow_v6_aggregate_stats_request_out_port, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t out_group; */
proto_tree_add_item(tree, hf_openflow_v6_aggregate_stats_request_out_group, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad2[4]; */
proto_tree_add_item(tree, hf_openflow_v6_aggregate_stats_request_pad2, tvb, offset, 4, ENC_NA);
offset+=4;
/* uint64_t cookie; */
proto_tree_add_item(tree, hf_openflow_v6_aggregate_stats_request_cookie, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t cookie_mask; */
proto_tree_add_item(tree, hf_openflow_v6_aggregate_stats_request_cookie_mask, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* struct ofp_match match; */
dissect_openflow_match_v6(tvb, pinfo, tree, offset, length);
}
#define OFPTFPT_INSTRUCTIONS 0
#define OFPTFPT_INSTRUCTIONS_MISS 1
#define OFPTFPT_NEXT_TABLES 2
#define OFPTFPT_NEXT_TABLES_MISS 3
#define OFPTFPT_WRITE_ACTIONS 4
#define OFPTFPT_WRITE_ACTIONS_MISS 5
#define OFPTFPT_APPLY_ACTIONS 6
#define OFPTFPT_APPLY_ACTIONS_MISS 7
#define OFPTFPT_MATCH 8
#define OFPTFPT_WILDCARDS 10
#define OFPTFPT_WRITE_SETFIELD 12
#define OFPTFPT_WRITE_SETFIELD_MISS 13
#define OFPTFPT_APPLY_SETFIELD 14
#define OFPTFPT_APPLY_SETFIELD_MISS 15
#define OFPTFPT_TABLE_SYNC_FROM 16
#define OFPTFPT_WRITE_COPYFIELD 18
#define OFPTFPT_WRITE_COPYFIELD_MISS 19
#define OFPTFPT_APPLY_COPYFIELD 20
#define OFPTFPT_APPLY_COPYFIELD_MISS 21
#define OFPTFPT_PACKET_TYPES 22
#define OFPTFPT_EXPERIMENTER 0xFFFE
#define OFPTFPT_EXPERIMENTER_MISS 0xFFFF
static const value_string openflow_v6_table_feature_prop_type_values[] = {
{ OFPTFPT_INSTRUCTIONS, "OFPTFPT_INSTRUCTIONS" },
{ OFPTFPT_INSTRUCTIONS_MISS, "OFPTFPT_INSTRUCTIONS_MISS" },
{ OFPTFPT_NEXT_TABLES, "OFPTFPT_NEXT_TABLES" },
{ OFPTFPT_NEXT_TABLES_MISS, "OFPTFPT_NEXT_TABLES_MISS" },
{ OFPTFPT_WRITE_ACTIONS, "OFPTFPT_WRITE_ACTIONS" },
{ OFPTFPT_WRITE_ACTIONS_MISS, "OFPTFPT_WRITE_ACTIONS_MISS" },
{ OFPTFPT_APPLY_ACTIONS, "OFPTFPT_APPLY_ACTIONS" },
{ OFPTFPT_APPLY_ACTIONS_MISS, "OFPTFPT_APPLY_ACTIONS_MISS" },
{ OFPTFPT_MATCH, "OFPTFPT_MATCH" },
{ OFPTFPT_WILDCARDS, "OFPTFPT_WILDCARDS" },
{ OFPTFPT_WRITE_SETFIELD, "OFPTFPT_WRITE_SETFIELD" },
{ OFPTFPT_WRITE_SETFIELD_MISS, "OFPTFPT_WRITE_SETFIELD_MISS" },
{ OFPTFPT_APPLY_SETFIELD, "OFPTFPT_APPLY_SETFIELD" },
{ OFPTFPT_APPLY_SETFIELD_MISS, "OFPTFPT_APPLY_SETFIELD_MISS" },
{ OFPTFPT_EXPERIMENTER, "OFPTFPT_EXPERIMENTER" },
{ OFPTFPT_EXPERIMENTER_MISS, "OFPTFPT_EXPERIMENTER_MISS" },
{ OFPTFPT_TABLE_SYNC_FROM, "OFPTFPT_TABLE_SYNC_FROM" },
{ OFPTFPT_WRITE_COPYFIELD, "OFPTFPT_WRITE_COPYFIELD" },
{ OFPTFPT_WRITE_COPYFIELD_MISS,"OFPTFPT_WRITE_COPYFIELD_MISS" },
{ OFPTFPT_APPLY_COPYFIELD, "OFPTFPT_APPLY_COPYFIELD" },
{ OFPTFPT_APPLY_COPYFIELD_MISS,"OFPTFPT_APPLY_COPYFIELD_MISS" },
{ OFPTFPT_PACKET_TYPES, "OFPTFPT_PACKET_TYPES" },
{ OFPTFPT_EXPERIMENTER, "OFPTFPT_EXPERIMENTER" },
{ OFPTFPT_EXPERIMENTER_MISS, "OFPTFPT_EXPERIMENTER_MISS" },
{ 0, NULL }
};
static int
dissect_openflow_table_feature_prop_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
proto_item *ti;
proto_tree *prop_tree, *elem_tree;
guint32 prop_type;
guint32 prop_length;
guint16 elem_begin;
gint32 body_end;
guint16 pad_length;
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_table_feature_prop, &ti, "Table feature property");
/* uint16_t type; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_table_feature_prop_type, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_type);
offset+=2;
/* uint16_t length; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_table_feature_prop_length, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_length);
proto_item_set_len(ti, prop_length);
offset+=2;
if (prop_length < 4) {
prop_length = 4;
}
body_end = offset + prop_length - 4;
/* body */
switch (prop_type) {
case OFPTFPT_INSTRUCTIONS:
case OFPTFPT_INSTRUCTIONS_MISS:
while (offset < body_end) {
elem_begin = offset;
elem_tree = proto_tree_add_subtree(prop_tree, tvb, offset, -1, ett_openflow_v6_table_feature_prop_instruction_id, &ti, "Instruction ID");
offset = dissect_openflow_instruction_header_v6(tvb, pinfo, elem_tree, offset, length, NULL);
proto_item_set_len(ti, offset - elem_begin);
}
break;
case OFPTFPT_NEXT_TABLES:
case OFPTFPT_NEXT_TABLES_MISS:
while (offset < body_end) {
proto_tree_add_item(prop_tree, hf_openflow_v6_table_feature_prop_next_tables_next_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
}
break;
case OFPTFPT_WRITE_ACTIONS:
case OFPTFPT_WRITE_ACTIONS_MISS:
case OFPTFPT_APPLY_ACTIONS:
case OFPTFPT_APPLY_ACTIONS_MISS:
while (offset < body_end) {
elem_begin = offset;
elem_tree = proto_tree_add_subtree(prop_tree, tvb, offset, -1, ett_openflow_v6_table_feature_prop_action_id, &ti, "Action ID");
offset = dissect_openflow_action_header_v6(tvb, pinfo, elem_tree, offset, length);
proto_item_set_len(ti, offset - elem_begin);
}
break;
case OFPTFPT_MATCH:
case OFPTFPT_WILDCARDS:
case OFPTFPT_WRITE_SETFIELD:
case OFPTFPT_WRITE_SETFIELD_MISS:
case OFPTFPT_APPLY_SETFIELD:
case OFPTFPT_APPLY_SETFIELD_MISS:
case OFPTFPT_WRITE_COPYFIELD:
case OFPTFPT_WRITE_COPYFIELD_MISS:
case OFPTFPT_APPLY_COPYFIELD:
case OFPTFPT_APPLY_COPYFIELD_MISS:
while (offset < body_end) {
elem_begin = offset;
elem_tree = proto_tree_add_subtree(prop_tree, tvb, offset, -1, ett_openflow_v6_table_feature_prop_oxm_id, &ti, "OXM ID");
offset = dissect_openflow_oxm_header_v6(tvb, pinfo, elem_tree, offset, length, NULL);
proto_item_set_len(ti, offset - elem_begin);
}
break;
case OFPTFPT_TABLE_SYNC_FROM:
while (offset < body_end) {
proto_tree_add_item(prop_tree, hf_openflow_v6_table_feature_prop_table_sync_from_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
}
break;
case OFPTFPT_PACKET_TYPES:
while (offset < body_end) {
elem_begin = offset;
elem_tree = proto_tree_add_subtree(prop_tree, tvb, offset, -1, ett_openflow_v6_table_feature_prop_oxm_id, &ti, "OXM ID");
offset = dissect_openflow_oxm_v6(tvb, pinfo, elem_tree, offset, length);
proto_item_set_len(ti, offset - elem_begin);
}
break;
case OFPTFPT_EXPERIMENTER:
case OFPTFPT_EXPERIMENTER_MISS:
/* uint32_t experimenter; */
proto_tree_add_item(prop_tree, hf_openflow_v6_table_feature_prop_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(prop_tree, hf_openflow_v6_table_feature_prop_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t experimenter_data[0]; */
proto_tree_add_expert_format(prop_tree, pinfo, &ei_openflow_v6_table_feature_prop_undecoded,
tvb, offset, body_end - offset, "Experimenter table property body.");
offset = body_end;
break;
default:
proto_tree_add_expert_format(prop_tree, pinfo, &ei_openflow_v6_table_feature_prop_undecoded,
tvb, offset, body_end - offset, "Unknown table property body.");
offset = body_end;
break;
};
pad_length = (prop_length + 7)/8*8 - prop_length;
if (pad_length > 0) {
proto_tree_add_item(prop_tree, hf_openflow_v6_table_feature_prop_pad, tvb, offset, pad_length, ENC_NA);
offset+=pad_length;
}
return offset;
}
#define OFP_MAX_TABLE_NAME_LEN 32
static int
dissect_openflow_table_features_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
proto_item *ti;
proto_tree *feat_tree, *caps_tree;
guint32 feat_length;
gint32 feat_end;
feat_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_table_features, &ti, "Table features");
/* uint16_t length; */
proto_tree_add_item_ret_uint(feat_tree, hf_openflow_v6_table_features_length, tvb, offset, 2, ENC_BIG_ENDIAN, &feat_length);
feat_end = offset + feat_length;
proto_item_set_len(ti, feat_length);
offset+=2;
/* uint8_t table_id; */
proto_tree_add_item(feat_tree, hf_openflow_v6_table_features_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[5]; */
proto_tree_add_item(feat_tree, hf_openflow_v6_table_features_pad, tvb, offset, 5, ENC_NA);
offset+=5;
/* char name[OFP_MAX_TABLE_NAME_LEN]; */
proto_tree_add_item(feat_tree, hf_openflow_v6_table_features_name, tvb, offset, OFP_MAX_TABLE_NAME_LEN, ENC_ASCII);
offset+=OFP_MAX_TABLE_NAME_LEN;
/* uint64_t metadata_match; */
proto_tree_add_item(feat_tree, hf_openflow_v6_table_features_metadata_match, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t metadata_write; */
proto_tree_add_item(feat_tree, hf_openflow_v6_table_features_metadata_write, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint32_t capabilities; */
ti = proto_tree_add_item(feat_tree, hf_openflow_v6_table_features_capabilities, tvb, offset, 4, ENC_BIG_ENDIAN);
caps_tree = proto_item_add_subtree(ti, ett_openflow_v6_table_features_capabilities);
proto_tree_add_item(caps_tree, hf_openflow_v6_table_features_capabilities_eviction, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(caps_tree, hf_openflow_v6_table_features_capabilities_vacancy_events, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t max_entries; */
proto_tree_add_item(feat_tree, hf_openflow_v6_table_features_max_entries, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* struct ofp_table_feature_prop_header properties[0]; */
while (offset < feat_end) {
offset = dissect_openflow_table_feature_prop_v6(tvb, pinfo, feat_tree, offset, length);
}
return offset;
}
static void
dissect_openflow_port_stats_request_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint32_t port_no; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_request_port_no, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_request_pad, tvb, offset, 4, ENC_NA);
/*offset+=4;*/
}
#define OFPQ_ALL 0xffffffff
static const value_string openflow_v6_queue_reserved_values[] = {
{ OFPQ_ALL, "OFPQ_ALL" },
{ 0, NULL }
};
static void
dissect_openflow_queue_stats_request_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint32_t port_no; */
proto_tree_add_item(tree, hf_openflow_v6_queue_stats_request_port_no, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t queue_id; */
proto_tree_add_item(tree, hf_openflow_v6_queue_stats_request_queue_id, tvb, offset, 4, ENC_BIG_ENDIAN);
/*offset+=4;*/
}
static void
dissect_openflow_group_stats_request_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint32_t group_id; */
proto_tree_add_item(tree, hf_openflow_v6_group_stats_request_group_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_group_stats_request_pad, tvb, offset, 4, ENC_NA);
/*offset+=4;*/
}
static void
dissect_openflow_meter_stats_request_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint32_t meter_id; */
proto_tree_add_item(tree, hf_openflow_v6_meter_stats_request_meter_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_meter_stats_request_pad, tvb, offset, 4, ENC_NA);
/*offset+=4;*/
}
static void
dissect_openflow_meter_desc_request_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint32_t meter_id; */
proto_tree_add_item(tree, hf_openflow_v6_meter_desc_request_meter_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_meter_desc_request_pad, tvb, offset, 4, ENC_NA);
/*offset+=4;*/
}
static void
dissect_openflow_queue_desc_request_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint32_t port_no; */
proto_tree_add_item(tree, hf_openflow_v6_queue_desc_request_port_no, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t queue_id; */
proto_tree_add_item(tree, hf_openflow_v6_queue_desc_request_queue_id, tvb, offset, 4, ENC_BIG_ENDIAN);
/*offset+=4;*/
}
#define OFPFMF_INITIAL 1<<0
#define OFPFMF_ADD 1<<1
#define OFPFMF_REMOVED 1<<2
#define OFPFMF_MODIFY 1<<3
#define OFPFMF_INSTRUCTIONS 1<<4
#define OFPFMF_NO_ABBREV 1<<5
#define OFPFMF_ONLY_OWN 1<<6
#define OFPFMC_ADD 0
#define OFPFMC_MODIFY 1
#define OFPFMC_DELETE 2
static const value_string openflow_v6_flow_monitor_request_command_values[] = {
{ OFPFMC_ADD, "OFPFMC_ADD" },
{ OFPFMC_MODIFY, "OFPFMC_MODIFY" },
{ OFPFMC_DELETE, "OFPFMC_DELETE" },
{ 0, NULL }
};
static void
dissect_openflow_flow_monitor_request_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *flags_tree;
/* uint32_t monitor_id; */
proto_tree_add_item(tree, hf_openflow_v6_flow_monitor_request_monitor_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t out_port; */
proto_tree_add_item(tree, hf_openflow_v6_flow_monitor_request_out_port, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t out_group; */
proto_tree_add_item(tree, hf_openflow_v6_flow_monitor_request_out_group, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint16_t flags; */
ti = proto_tree_add_item(tree, hf_openflow_v6_flow_monitor_request_flags, tvb, offset, 2, ENC_BIG_ENDIAN);
flags_tree = proto_item_add_subtree(ti, ett_openflow_v6_flow_monitor_request_flags);
proto_tree_add_item(flags_tree, hf_openflow_v6_flow_monitor_request_flags_initial, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flow_monitor_request_flags_add, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flow_monitor_request_flags_removed, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flow_monitor_request_flags_modify, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flow_monitor_request_flags_instructions, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flow_monitor_request_flags_no_abbrev, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flow_monitor_request_flags_only_own, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t table_id; */
proto_tree_add_item(tree, hf_openflow_v6_flow_monitor_request_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t command; */
proto_tree_add_item(tree, hf_openflow_v6_flow_monitor_request_command, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* struct ofp_match match; */
dissect_openflow_match_v6(tvb, pinfo, tree, offset, length);
}
static int
dissect_openflow_time_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint64_t seconds; */
proto_tree_add_item(tree, hf_openflow_v6_time_seconds, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint32_t nanoseconds; */
proto_tree_add_item(tree, hf_openflow_v6_time_nanoseconds, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_time_pad, tvb, offset, 4, ENC_NA);
offset+=4;
return offset;
}
#define OFPTMPBF_TIME_CAPABILITY 1
#define OFPTMPBF_EXPERIMENTER 0xFFFF
static const value_string openflow_v6_bundle_feature_prop_type_values[] = {
{ OFPTMPBF_TIME_CAPABILITY, "OFPTMPBF_TIME_CAPABILITY" },
{ OFPTMPBF_EXPERIMENTER, "OFPTMPBF_EXPERIMENTER" },
{ 0, NULL }
};
static int
dissect_openflow_bundle_feature_prop_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
proto_item *ti;
proto_tree *prop_tree;
guint32 prop_type;
guint32 prop_length;
gint32 body_end;
guint16 pad_length;
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_bundle_feature_prop, &ti, "Bundle feature property");
/* uint16_t type; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_bundle_feature_prop_type, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_type);
offset+=2;
/* uint16_t length; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_bundle_feature_prop_length, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_length);
proto_item_set_len(ti, prop_length);
offset+=2;
if (prop_length < 4) {
prop_length = 4;
}
body_end = offset + prop_length - 4;
/* body */
switch (prop_type) {
case OFPTMPBF_TIME_CAPABILITY:
/* uint8_t pad[4]; */
proto_tree_add_item(prop_tree, hf_openflow_v6_bundle_feature_prop_time_pad, tvb, offset, 4, ENC_NA);
offset+=4;
/* struct ofp_time sched_accuracy; */
offset = dissect_openflow_time_v6(tvb, pinfo, tree, offset, length);
/* struct ofp_time sched_max_future; */
offset = dissect_openflow_time_v6(tvb, pinfo, tree, offset, length);
/* struct ofp_time sched_max_past; */
offset = dissect_openflow_time_v6(tvb, pinfo, tree, offset, length);
/* struct ofp_time timestamp; */
offset = dissect_openflow_time_v6(tvb, pinfo, tree, offset, length);
break;
case OFPTMPBF_EXPERIMENTER:
/* uint32_t experimenter; */
proto_tree_add_item(prop_tree, hf_openflow_v6_bundle_feature_prop_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(prop_tree, hf_openflow_v6_bundle_feature_prop_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t experimenter_data[0]; */
proto_tree_add_expert_format(prop_tree, pinfo, &ei_openflow_v6_bundle_feature_prop_undecoded,
tvb, offset, body_end - offset, "Experimenter bundle property body.");
offset = body_end;
break;
default:
proto_tree_add_expert_format(prop_tree, pinfo, &ei_openflow_v6_bundle_feature_prop_undecoded,
tvb, offset, body_end - offset, "Unknown bundle property body.");
offset = body_end;
break;
};
pad_length = (prop_length + 7)/8*8 - prop_length;
if (pad_length > 0) {
proto_tree_add_item(prop_tree, hf_openflow_v6_bundle_feature_prop_pad, tvb, offset, pad_length, ENC_NA);
offset+=pad_length;
}
return offset;
}
static void
dissect_openflow_bundle_features_request_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint32_t feature_request_flags; */
proto_tree_add_item(tree, hf_openflow_v6_bundle_features_request_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_bundle_features_request_pad, tvb, offset, 4, ENC_NA);
offset+=4;
/* struct ofp_bundle_features_prop_header properties[0]; */
while (offset < length) {
offset = dissect_openflow_bundle_feature_prop_v6(tvb, pinfo, tree, offset, length);
}
}
#define OFPMP_DESC 0
#define OFPMP_FLOW_DESC 1
#define OFPMP_AGGREGATE_STATS 2
#define OFPMP_TABLE_STATS 3
#define OFPMP_PORT_STATS 4
#define OFPMP_QUEUE_STATS 5
#define OFPMP_GROUP_STATS 6
#define OFPMP_GROUP_DESC 7
#define OFPMP_GROUP_FEATURES 8
#define OFPMP_METER_STATS 9
#define OFPMP_METER_DESC 10
#define OFPMP_METER_FEATURES 11
#define OFPMP_TABLE_FEATURES 12
#define OFPMP_PORT_DESC 13
#define OFPMP_TABLE_DESC 14
#define OFPMP_QUEUE_DESC 15
#define OFPMP_FLOW_MONITOR 16
#define OFPMP_FLOW_STATS 17
#define OFPMP_CONTROLLER_STATUS 18
#define OFPMP_BUNDLE_FEATURES 19
#define OFPMP_EXPERIMENTER 0xffff
static const value_string openflow_v6_multipart_type_values[] = {
{ OFPMP_DESC, "OFPMP_DESC" },
{ OFPMP_FLOW_DESC, "OFPMP_FLOW_DESC" },
{ OFPMP_AGGREGATE_STATS, "OFPMP_AGGREGATE_STATS" },
{ OFPMP_TABLE_STATS, "OFPMP_TABLE_STATS" },
{ OFPMP_PORT_STATS, "OFPMP_PORT_STATS" },
{ OFPMP_QUEUE_STATS, "OFPMP_QUEUE_STATS" },
{ OFPMP_GROUP_STATS, "OFPMP_GROUP_STATS" },
{ OFPMP_GROUP_DESC, "OFPMP_GROUP_DESC" },
{ OFPMP_GROUP_FEATURES, "OFPMP_GROUP_FEATURES" },
{ OFPMP_METER_STATS, "OFPMP_METER_STATS" },
{ OFPMP_METER_DESC, "OFPMP_METER_DESC" },
{ OFPMP_METER_FEATURES, "OFPMP_METER_FEATURES" },
{ OFPMP_TABLE_FEATURES, "OFPMP_TABLE_FEATURES" },
{ OFPMP_PORT_DESC, "OFPMP_PORT_DESC" },
{ OFPMP_TABLE_DESC, "OFPMP_TABLE_DESC" },
{ OFPMP_QUEUE_DESC, "OFPMP_QUEUE_DESC" },
{ OFPMP_FLOW_MONITOR, "OFPMP_FLOW_MONITOR" },
{ OFPMP_FLOW_STATS, "OFPMP_FLOW_STATS" },
{ OFPMP_CONTROLLER_STATUS, "OFPMP_CONTROLLER_STATUS" },
{ OFPMP_BUNDLE_FEATURES, "OFPMP_BUNDLE_FEATURES" },
{ OFPMP_EXPERIMENTER, "OFPMP_EXPERIMENTER" },
{ 0, NULL }
};
#define OFPMPF_REQ_MORE 1 << 0
static void
dissect_openflow_multipart_request_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
proto_item *ti;
proto_tree *flags_tree;
guint32 type;
/* uint16_t type; */
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_multipart_request_type , tvb, offset, 2, ENC_BIG_ENDIAN, &type);
offset+=2;
/* uint16_t flags; */
ti = proto_tree_add_item(tree, hf_openflow_v6_multipart_request_flags, tvb, offset, 2, ENC_BIG_ENDIAN);
flags_tree = proto_item_add_subtree(ti, ett_openflow_v6_multipart_request_flags);
proto_tree_add_item(flags_tree, hf_openflow_v6_multipart_request_flags_more, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_multipart_request_pad, tvb, offset, 4, ENC_NA);
offset+=4;
/* uint8_t body[0]; */
switch (type) {
case OFPMP_DESC:
/* The request body is empty. */
break;
case OFPMP_FLOW_DESC:
dissect_openflow_flow_stats_request_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_AGGREGATE_STATS:
dissect_openflow_aggregate_stats_request_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_TABLE_STATS:
/* The request body is empty. */
break;
case OFPMP_PORT_STATS:
dissect_openflow_port_stats_request_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_QUEUE_STATS:
dissect_openflow_queue_stats_request_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_GROUP_STATS:
dissect_openflow_group_stats_request_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_GROUP_DESC:
/* The request body is empty. */
break;
case OFPMP_GROUP_FEATURES:
/* The request body is empty. */
break;
case OFPMP_METER_STATS:
dissect_openflow_meter_stats_request_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_METER_DESC:
dissect_openflow_meter_desc_request_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_METER_FEATURES:
/* The request body is empty. */
break;
case OFPMP_TABLE_FEATURES:
while (offset < length) {
offset = dissect_openflow_table_features_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_PORT_DESC:
/* The request body is empty. */
break;
case OFPMP_TABLE_DESC:
/* The request body is empty. */
break;
case OFPMP_QUEUE_DESC:
dissect_openflow_queue_desc_request_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_FLOW_MONITOR:
dissect_openflow_flow_monitor_request_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_FLOW_STATS:
dissect_openflow_flow_stats_request_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_CONTROLLER_STATUS:
/* The request body is empty. */
break;
case OFPMP_BUNDLE_FEATURES:
dissect_openflow_bundle_features_request_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_EXPERIMENTER:
/* uint32_t experimenter; */
proto_tree_add_item(tree, hf_openflow_v6_multipart_request_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(tree, hf_openflow_v6_multipart_request_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t experimenter_data[0]; */
if (offset < length) {
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_multipart_request_undecoded,
tvb, offset, length - offset, "Experimenter multipart request body.");
}
break;
default:
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_multipart_request_undecoded,
tvb, offset, length - offset, "Unknown multipart request body.");
break;
}
}
#define DESC_STR_LEN 256
#define SERIAL_NUM_LEN 32
static void
dissect_openflow_switch_description_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* char mfr_desc[DESC_STR_LEN]; */
proto_tree_add_item(tree, hf_openflow_v6_switch_description_mfr_desc, tvb, offset, DESC_STR_LEN, ENC_ASCII);
offset+=DESC_STR_LEN;
/* char hw_desc[DESC_STR_LEN]; */
proto_tree_add_item(tree, hf_openflow_v6_switch_description_hw_desc, tvb, offset, DESC_STR_LEN, ENC_ASCII);
offset+=DESC_STR_LEN;
/* char sw_desc[DESC_STR_LEN]; */
proto_tree_add_item(tree, hf_openflow_v6_switch_description_sw_desc, tvb, offset, DESC_STR_LEN, ENC_ASCII);
offset+=DESC_STR_LEN;
/* char serial_num[SERIAL_NUM_LEN]; */
proto_tree_add_item(tree, hf_openflow_v6_switch_description_serial_num, tvb, offset, SERIAL_NUM_LEN, ENC_ASCII);
offset+=SERIAL_NUM_LEN;
/* char dp_desc[DESC_STR_LEN]; */
proto_tree_add_item(tree, hf_openflow_v6_switch_description_dp_desc, tvb, offset, DESC_STR_LEN, ENC_ASCII);
/*offset+=DESC_STR_LEN;*/
}
static int
dissect_openflow_flow_desc_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *desc_tree, *flags_tree;
guint32 desc_len;
gint32 desc_end;
desc_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_flow_desc, &ti, "Flow desc");
/* uint16_t length; */
proto_tree_add_item_ret_uint(desc_tree, hf_openflow_v6_flow_desc_length, tvb, offset, 2, ENC_BIG_ENDIAN, &desc_len);
desc_end = offset + desc_len;
proto_item_set_len(ti, desc_len);
offset+=2;
/* uint8_t pad2[2]; */
proto_tree_add_item(desc_tree, hf_openflow_v6_flow_desc_pad2, tvb, offset, 2, ENC_NA);
offset+=2;
/* uint8_t table_id; */
proto_tree_add_item(desc_tree, hf_openflow_v6_flow_desc_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad; */
proto_tree_add_item(desc_tree, hf_openflow_v6_flow_desc_pad, tvb, offset, 1, ENC_NA);
offset+=1;
/* uint16_t priority; */
proto_tree_add_item(desc_tree, hf_openflow_v6_flow_desc_priority, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t idle_timeout; */
proto_tree_add_item(desc_tree, hf_openflow_v6_flow_desc_idle_timeout, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t hard_timeout; */
proto_tree_add_item(desc_tree, hf_openflow_v6_flow_desc_hard_timeout, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t flags; */
ti = proto_tree_add_item(desc_tree, hf_openflow_v6_flow_desc_flags, tvb, offset, 2, ENC_BIG_ENDIAN);
flags_tree = proto_item_add_subtree(ti, ett_openflow_v6_flow_desc_flags);
proto_tree_add_item(flags_tree, hf_openflow_v6_flow_desc_flags_send_flow_rem, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flow_desc_flags_check_overlap, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flow_desc_flags_reset_counts, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flow_desc_flags_no_packet_counts, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_flow_desc_flags_no_byte_counts, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t importance; */
proto_tree_add_item(desc_tree, hf_openflow_v6_flow_desc_importance, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint64_t cookie; */
proto_tree_add_item(desc_tree, hf_openflow_v6_flow_desc_cookie, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* struct ofp_match match; */
offset = dissect_openflow_match_v6(tvb, pinfo, desc_tree, offset, length);
/* struct ofp_stats stats; */
offset = dissect_openflow_stats_v6(tvb, pinfo, desc_tree, offset, length);
/* struct ofp_instruction instructions[0]; */
while (offset < desc_end) {
offset = dissect_openflow_instruction_v6(tvb, pinfo, desc_tree, offset, length);
}
if (desc_end < length)
return dissect_openflow_flow_desc_v6(tvb, pinfo, tree, offset, length);
return offset;
}
#define OFPFSR_STATS_REQUEST 0
#define OFPFSR_STAT_TRIGGER 1
static const value_string openflow_v6_flow_stats_reason_values[] = {
{ OFPFSR_STATS_REQUEST, "OFPFSR_STATS_REQUEST" },
{ OFPFSR_STAT_TRIGGER, "OFPFSR_STAT_TRIGGER" },
{ 0, NULL }
};
static int
dissect_openflow_flow_stats_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *stats_tree;
guint32 stats_len;
stats_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_flow_stats, &ti, "Flow stats");
/* uint16_t length; */
proto_tree_add_item_ret_uint(stats_tree, hf_openflow_v6_flow_stats_length, tvb, offset, 2, ENC_BIG_ENDIAN, &stats_len);
proto_item_set_len(ti, stats_len);
offset+=2;
/* uint8_t pad2[2]; */
proto_tree_add_item(stats_tree, hf_openflow_v6_flow_stats_pad2, tvb, offset, 2, ENC_NA);
offset+=1;
/* uint8_t table_id; */
proto_tree_add_item(stats_tree, hf_openflow_v6_flow_stats_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t reason; */
proto_tree_add_item(stats_tree, hf_openflow_v6_flow_stats_reason, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint16_t priority; */
proto_tree_add_item(stats_tree, hf_openflow_v6_flow_stats_priority, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* struct ofp_match match; */
offset = dissect_openflow_match_v6(tvb, pinfo, stats_tree, offset, length);
/* struct ofp_stats stats; */
offset = dissect_openflow_stats_v6(tvb, pinfo, stats_tree, offset, length);
return offset;
}
static void
dissect_openflow_aggregate_stats_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
dissect_openflow_stats_v6(tvb, pinfo, tree, offset, length);
}
static int
dissect_openflow_table_stats_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *stats_tree;
stats_tree = proto_tree_add_subtree(tree, tvb, offset, 24, ett_openflow_v6_table_stats, NULL, "Table stats");
/* uint8_t table_id; */
proto_tree_add_item(stats_tree, hf_openflow_v6_table_stats_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[3]; */
proto_tree_add_item(stats_tree, hf_openflow_v6_table_stats_pad, tvb, offset, 3, ENC_NA);
offset+=3;
/* uint32_t active_count; */
proto_tree_add_item(stats_tree, hf_openflow_v6_table_stats_active_count, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint64_t lookup_count; */
proto_tree_add_item(stats_tree, hf_openflow_v6_table_stats_lookup_count, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t matched_count; */
proto_tree_add_item(stats_tree, hf_openflow_v6_table_stats_match_count, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
return offset;
}
static int
dissect_openflow_port_stats_prop_ethernet_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_ethernet_pad, tvb, offset, 4, ENC_NA);
offset+=4;
/* uint64_t rx_frame_error; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_ethernet_rx_frame_err, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t rx_over_error; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_ethernet_rx_over_err, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t rx_crc_error; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_ethernet_rx_crc_err, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t collisions; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_ethernet_collisions, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
return offset;
}
#define OFPOSF_RX_TUNE 1<<0
#define OFPOSF_TX_TUNE 1<<1
#define OFPOSF_TX_PWR 1<<2
#define OFPOSF_RX_PWR 1<<4
#define OFPOSF_TX_BIAS 1<<5
#define OFPOSF_TX_TEMP 1<<6
static int
dissect_openflow_port_stats_prop_optical_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *flags_tree;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_optical_pad, tvb, offset, 4, ENC_NA);
offset+=4;
/* uint32_t flags; */
ti = proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_optical_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
flags_tree = proto_item_add_subtree(ti, ett_openflow_v6_port_stats_prop_optical_flags);
proto_tree_add_item(flags_tree, hf_openflow_v6_port_stats_prop_optical_flags_rx_tune, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_port_stats_prop_optical_flags_tx_tune, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_port_stats_prop_optical_flags_tx_pwr, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_port_stats_prop_optical_flags_rx_pwr, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_port_stats_prop_optical_flags_tx_bias, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_port_stats_prop_optical_flags_tx_temp, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t tx_freq_lmda; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_optical_tx_freq_lmda, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t tx_offset; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_optical_tx_offset, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t tx_grid_span; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_optical_tx_grid_span, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t rx_freq_lmda; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_optical_rx_freq_lmda, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t rx_offset; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_optical_rx_offset, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t rx_grid_span; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_optical_rx_grid_span, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint16_t tx_pwr; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_optical_tx_pwr, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t rx_pwr; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_optical_rx_pwr, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t bias_current; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_optical_bias_current, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t temperature; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_optical_temperature, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
return offset;
}
#define OFPPSPT_ETHERNET 0
#define OFPPSPT_OPTICAL 1
#define OFPPSPT_EXPERIMENTER 0xFFFF
static const value_string openflow_v6_port_stats_prop_type_values[] = {
{ OFPPSPT_ETHERNET, "OFPPSPT_ETHERNET" },
{ OFPPSPT_OPTICAL, "OFPPSPT_OPTICAL" },
{ OFPPSPT_EXPERIMENTER, "OFPPSPT_EXPERIMENTER" },
{ 0, NULL }
};
static int
dissect_openflow_port_stats_prop_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *prop_tree;
proto_item *ti, *prop_item;
guint32 prop_type;
guint32 prop_length;
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_port_stats_prop, &ti, "Port stats. property");
/* uint16_t type; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_port_stats_prop_type, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_type);
offset+=2;
/* uint16_t len; */
prop_item = proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_port_stats_prop_length, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_length);
proto_item_set_len(ti, prop_length);
offset+=2;
switch (prop_type) {
case OFPPSPT_ETHERNET:
offset = dissect_openflow_port_stats_prop_ethernet_v6(tvb, pinfo, prop_tree, offset, length);
break;
case OFPPSPT_OPTICAL:
offset = dissect_openflow_port_stats_prop_optical_v6(tvb, pinfo, prop_tree, offset, length);
break;
case OFPPSPT_EXPERIMENTER:
if (prop_length <= 12) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
/* uint32_t experimenter; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(tree, hf_openflow_v6_port_stats_prop_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_port_stats_prop_undecoded,
tvb, offset, prop_length - 12, "Experimenter port stats. property.");
offset += prop_length - 12;
break;
default:
if (prop_length <= 4) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_port_stats_prop_undecoded,
tvb, offset, prop_length - 4, "Unknown port stats. property.");
offset += prop_length - 4;
break;
}
return offset;
}
static int
dissect_openflow_port_stats_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *stats_tree;
guint32 stats_length;
guint16 stats_end;
stats_tree = proto_tree_add_subtree(tree, tvb, offset, 112, ett_openflow_v6_port_stats, NULL, "Port stats");
/* uint16_t length; */
proto_tree_add_item_ret_uint(stats_tree, hf_openflow_v6_port_stats_length, tvb, offset, 2, ENC_BIG_ENDIAN, &stats_length);
stats_end = stats_length + offset - 4;
offset+=2;
/* uint8_t pad[2]; */
proto_tree_add_item(stats_tree, hf_openflow_v6_port_stats_pad, tvb, offset, 2, ENC_NA);
offset+=2;
/* uint8_t port_no; */
proto_tree_add_item(stats_tree, hf_openflow_v6_port_stats_port_no, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t duration_sec; */
proto_tree_add_item(stats_tree, hf_openflow_v6_port_stats_duration_sec, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t duration_nsec; */
proto_tree_add_item(stats_tree, hf_openflow_v6_port_stats_duration_nsec, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint64_t rx_packets; */
proto_tree_add_item(stats_tree, hf_openflow_v6_port_stats_rx_packets, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t tx_packets; */
proto_tree_add_item(stats_tree, hf_openflow_v6_port_stats_tx_packets, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t rx_bytes; */
proto_tree_add_item(stats_tree, hf_openflow_v6_port_stats_rx_bytes, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t tx_bytes; */
proto_tree_add_item(stats_tree, hf_openflow_v6_port_stats_tx_bytes, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t rx_dropped; */
proto_tree_add_item(stats_tree, hf_openflow_v6_port_stats_rx_dropped, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t tx_dropped; */
proto_tree_add_item(stats_tree, hf_openflow_v6_port_stats_tx_dropped, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t rx_errors; */
proto_tree_add_item(stats_tree, hf_openflow_v6_port_stats_rx_errors, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t tx_errors; */
proto_tree_add_item(stats_tree, hf_openflow_v6_port_stats_tx_errors, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* struct ofp_port_stats_prop_header properties[0]; */
while (offset < stats_end) {
offset = dissect_openflow_port_stats_prop_v6(tvb, pinfo, tree, offset, length);
}
return offset;
}
static int
dissect_openflow_table_desc_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *desc_tree, *conf_tree;
guint32 desc_length;
gint32 desc_end;
desc_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_table_desc, &ti, "Table desc");
/* uint16_t length; */
proto_tree_add_item_ret_uint(desc_tree, hf_openflow_v6_table_desc_length, tvb, offset, 2, ENC_BIG_ENDIAN, &desc_length);
proto_item_set_len(ti, desc_length);
desc_end = offset + desc_length;
offset+=2;
/* uint8_t table_id; */
proto_tree_add_item(desc_tree, hf_openflow_v6_table_desc_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[1]; */
proto_tree_add_item(desc_tree, hf_openflow_v6_table_desc_pad, tvb, offset, 1, ENC_NA);
offset+=1;
/* uint32_t config; */
ti = proto_tree_add_item(desc_tree, hf_openflow_v6_table_desc_config, tvb, offset, 4, ENC_NA);
conf_tree = proto_item_add_subtree(ti, ett_openflow_v6_table_desc_config);
proto_tree_add_item(conf_tree, hf_openflow_v6_table_desc_config_eviction, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(conf_tree, hf_openflow_v6_table_desc_config_vacancy_events, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* struct ofp_table_mod_prop_header properties[0]; */
while (offset < desc_end) {
offset = dissect_openflow_tablemod_prop_v6(tvb, pinfo, desc_tree, offset, length);
}
return offset;
}
#define OFPQSPT_EXPERIMENTER 0xffff
static const value_string openflow_v6_queue_stats_prop_type_values[] = {
{ OFPQSPT_EXPERIMENTER, "OFPQSPT_EXPERIMENTER" },
{ 0, NULL }
};
static int
dissect_openflow_queue_stats_prop_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *prop_tree;
proto_item *prop_item;
guint32 prop_type;
guint16 prop_length;
prop_length = tvb_get_ntohs(tvb, offset + 2);
prop_tree = proto_tree_add_subtree(tree, tvb, offset, prop_length, ett_openflow_v6_queue_stats_prop, NULL, "Queue stats property");
/* uint16_t type; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_queue_stats_prop_type, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_type);
offset+=2;
/* uint16_t len; */
prop_item = proto_tree_add_item(prop_tree, hf_openflow_v6_queue_stats_prop_length, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
switch (prop_type) {
case OFPMP_EXPERIMENTER:
if (prop_length <= 12) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
/* uint32_t experimenter; */
proto_tree_add_item(tree, hf_openflow_v6_queue_stats_prop_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(tree, hf_openflow_v6_queue_stats_prop_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t experimenter_data[0]; */
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_queue_stats_prop_undecoded,
tvb, offset, length - 12, "Experimenter queue stats prop body.");
offset += prop_length - 12;
break;
default:
if (prop_length <= 4) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_queue_stats_prop_undecoded,
tvb, offset, length - 4, "Unknown queue stats prop body.");
offset += prop_length - 4;
break;
}
return offset;
}
static int
dissect_openflow_queue_stats_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *stats_tree;
guint16 stats_len;
gint32 stats_end;
stats_len = tvb_get_ntohs(tvb, offset);
stats_end = offset + stats_len;
stats_tree = proto_tree_add_subtree(tree, tvb, offset, stats_len, ett_openflow_v6_queue_stats, NULL, "Queue stats");
/* uint16_t length; */
proto_tree_add_item(stats_tree, hf_openflow_v6_queue_stats_length, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t pad[6]; */
proto_tree_add_item(stats_tree, hf_openflow_v6_queue_stats_pad, tvb, offset, 2, ENC_NA);
offset+=2;
/* uint32_t port_no; */
proto_tree_add_item(stats_tree, hf_openflow_v6_queue_stats_port_no, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t queue_id; */
proto_tree_add_item(stats_tree, hf_openflow_v6_queue_stats_queue_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint64_t tx_bytes; */
proto_tree_add_item(stats_tree, hf_openflow_v6_queue_stats_tx_bytes, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t tx_packets; */
proto_tree_add_item(stats_tree, hf_openflow_v6_queue_stats_tx_packets, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t tx_errors; */
proto_tree_add_item(stats_tree, hf_openflow_v6_queue_stats_tx_errors, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint32_t duration_sec; */
proto_tree_add_item(stats_tree, hf_openflow_v6_queue_stats_duration_sec, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t duration_nsec; */
proto_tree_add_item(stats_tree, hf_openflow_v6_queue_stats_duration_nsec, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* struct ofp_queue_stats_prop_header properties[0]; */
while (offset < stats_end) {
offset = dissect_openflow_queue_stats_prop_v6(tvb, pinfo, stats_tree, offset, length);
}
return offset;
}
static int
dissect_openflow_bucket_counter_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *counter_tree;
counter_tree = proto_tree_add_subtree(tree, tvb, offset, 16, ett_openflow_v6_bucket_counter, NULL, "Bucket counter");
/* uint64_t packet_count; */
proto_tree_add_item(counter_tree, hf_openflow_v6_bucket_counter_packet_count, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t byte_count; */
proto_tree_add_item(counter_tree, hf_openflow_v6_bucket_counter_byte_count, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
return offset;
}
static int
dissect_openflow_group_stats_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *stats_tree;
guint16 stats_len;
gint32 stats_end;
stats_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_group_stats, &ti, "Group stats");
/* uint16_t length; */
stats_len = tvb_get_ntohs(tvb, offset);
stats_end = offset + stats_len;
proto_item_set_len(ti, stats_len);
proto_tree_add_item(stats_tree, hf_openflow_v6_group_stats_length, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t pad[2]; */
proto_tree_add_item(stats_tree, hf_openflow_v6_group_stats_pad, tvb, offset, 2, ENC_NA);
offset+=2;
/* uint32_t group_id; */
proto_tree_add_item(stats_tree, hf_openflow_v6_group_stats_group_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t ref_count; */
proto_tree_add_item(stats_tree, hf_openflow_v6_group_stats_ref_count, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad2[4]; */
proto_tree_add_item(stats_tree, hf_openflow_v6_group_stats_pad2, tvb, offset, 4, ENC_NA);
offset+=4;
/* uint64_t packet_count; */
proto_tree_add_item(stats_tree, hf_openflow_v6_group_stats_packet_count, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t byte_count; */
proto_tree_add_item(stats_tree, hf_openflow_v6_group_stats_byte_count, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint32_t duration_sec; */
proto_tree_add_item(stats_tree, hf_openflow_v6_flow_stats_duration_sec, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t duration_nsec; */
proto_tree_add_item(stats_tree, hf_openflow_v6_flow_stats_duration_nsec, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* struct ofp_bucket_counter bucket_stats[0]; */
while (offset < stats_end) {
offset = dissect_openflow_bucket_counter_v6(tvb, pinfo, stats_tree, offset, length);
}
return offset;
}
static int
dissect_openflow_group_desc_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
proto_item *ti;
proto_tree *desc_tree;
guint16 desc_len;
gint32 desc_end;
desc_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_group_desc, &ti, "Group description");
/* uint16_t length; */
desc_len = tvb_get_ntohs(tvb, offset);
desc_end = offset + desc_len;
proto_item_set_len(ti, desc_len);
proto_tree_add_item(desc_tree, hf_openflow_v6_group_desc_length, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t type; */
proto_tree_add_item(desc_tree, hf_openflow_v6_group_desc_type, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad; */
proto_tree_add_item(desc_tree, hf_openflow_v6_group_desc_pad, tvb, offset, 1, ENC_NA);
offset+=1;
/* uint32_t group_id; */
proto_tree_add_item(desc_tree, hf_openflow_v6_group_desc_group_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* struct ofp_bucket buckets[0]; */
while (offset < desc_end) {
offset = dissect_openflow_bucket_v6(tvb, pinfo, desc_tree, offset, length);
}
return offset;
}
#define OFPGFC_SELECT_WEIGHT 1 << 0
#define OFPGFC_SELECT_LIVENESS 1 << 1
#define OFPGFC_CHAINING 1 << 2
#define OFPGFC_CHAINING_CHECKS 1 << 3
static void
dissect_openflow_group_features_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *types_tree, *caps_tree, *acts_tree;
/* uint32_t types; */
ti = proto_tree_add_item(tree, hf_openflow_v6_group_features_types, tvb, offset, 4, ENC_BIG_ENDIAN);
types_tree = proto_item_add_subtree(ti, ett_openflow_v6_group_features_types);
proto_tree_add_item(types_tree, hf_openflow_v6_group_features_types_all, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(types_tree, hf_openflow_v6_group_features_types_select, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(types_tree, hf_openflow_v6_group_features_types_indirect, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(types_tree, hf_openflow_v6_group_features_types_ff, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t capabilities; */
ti = proto_tree_add_item(tree, hf_openflow_v6_group_features_capabilities, tvb, offset, 4, ENC_BIG_ENDIAN);
caps_tree = proto_item_add_subtree(ti, ett_openflow_v6_group_features_capabilities);
proto_tree_add_item(caps_tree, hf_openflow_v6_group_features_capabilities_select_weight, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(caps_tree, hf_openflow_v6_group_features_capabilities_select_liveness, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(caps_tree, hf_openflow_v6_group_features_capabilities_chaining, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(caps_tree, hf_openflow_v6_group_features_capabilities_chaining_checks, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* max_groups[4]; */
proto_tree_add_item(tree, hf_openflow_v6_group_features_max_groups_all, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
proto_tree_add_item(tree, hf_openflow_v6_group_features_max_groups_select, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
proto_tree_add_item(tree, hf_openflow_v6_group_features_max_groups_indirect, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
proto_tree_add_item(tree, hf_openflow_v6_group_features_max_groups_ff, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t actions[4]; */
ti = proto_tree_add_item(tree, hf_openflow_v6_group_features_actions_all, tvb, offset, 4, ENC_BIG_ENDIAN);
acts_tree = proto_item_add_subtree(ti, ett_openflow_v6_group_features_actions_all);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_output, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_copy_ttl_out, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_copy_ttl_in, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_set_mpls_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_dec_mpls_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_push_vlan, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_pop_vlan, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_push_mpls, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_pop_mpls, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_set_queue, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_group, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_set_nw_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_dec_nw_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_set_field, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_push_pbb, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_pop_pbb, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_copy_field, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_all_meter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
ti = proto_tree_add_item(tree, hf_openflow_v6_group_features_actions_select, tvb, offset, 4, ENC_BIG_ENDIAN);
acts_tree = proto_item_add_subtree(ti, ett_openflow_v6_group_features_actions_select);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_output, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_copy_ttl_out, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_copy_ttl_in, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_set_mpls_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_dec_mpls_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_push_vlan, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_pop_vlan, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_push_mpls, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_pop_mpls, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_set_queue, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_group, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_set_nw_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_dec_nw_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_set_field, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_push_pbb, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_pop_pbb, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_copy_field, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_select_meter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
ti = proto_tree_add_item(tree, hf_openflow_v6_group_features_actions_indirect, tvb, offset, 4, ENC_BIG_ENDIAN);
acts_tree = proto_item_add_subtree(ti, ett_openflow_v6_group_features_actions_indirect);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_output, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_copy_ttl_out, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_copy_ttl_in, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_set_mpls_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_dec_mpls_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_push_vlan, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_pop_vlan, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_push_mpls, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_pop_mpls, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_set_queue, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_group, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_set_nw_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_dec_nw_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_set_field, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_push_pbb, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_pop_pbb, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_copy_field, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_indirect_meter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
ti = proto_tree_add_item(tree, hf_openflow_v6_group_features_actions_ff, tvb, offset, 4, ENC_BIG_ENDIAN);
acts_tree = proto_item_add_subtree(ti, ett_openflow_v6_group_features_actions_ff);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_output, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_copy_ttl_out, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_copy_ttl_in, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_set_mpls_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_dec_mpls_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_push_vlan, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_pop_vlan, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_push_mpls, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_pop_mpls, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_set_queue, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_group, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_set_nw_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_dec_nw_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_set_field, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_push_pbb, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_pop_pbb, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_copy_field, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(acts_tree, hf_openflow_v6_group_features_actions_ff_meter, tvb, offset, 4, ENC_BIG_ENDIAN);
/*offset+=4;*/
}
static int
dissect_openflow_meter_band_stats_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *stats_tree;
stats_tree = proto_tree_add_subtree(tree, tvb, offset, 16, ett_openflow_v6_meter_band_stats, NULL, "Meter band stats");
/* uint64_t packet_band_count; */
proto_tree_add_item(stats_tree, hf_openflow_v6_meter_band_stats_packet_band_count, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t byte_band_count; */
proto_tree_add_item(stats_tree, hf_openflow_v6_meter_band_stats_byte_band_count, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
return offset;
}
static int
dissect_openflow_meter_stats_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *stats_tree;
guint16 stats_len;
guint16 stats_end;
stats_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_meter_stats, &ti, "Meter stats");
/* uint32_t meter_id; */
proto_tree_add_item(stats_tree, hf_openflow_v6_meter_stats_meter_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint16_t len; */
stats_len = tvb_get_ntohs(tvb, offset);
stats_end = offset - 4 + stats_len;
proto_item_set_len(ti, stats_len);
proto_tree_add_item(stats_tree, hf_openflow_v6_meter_stats_len, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t pad[6]; */
proto_tree_add_item(stats_tree, hf_openflow_v6_meter_stats_pad, tvb, offset, 6, ENC_NA);
offset+=6;
/* uint32_t flow_count; */
proto_tree_add_item(stats_tree, hf_openflow_v6_meter_stats_flow_count, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint64_t packet_in_count; */
proto_tree_add_item(stats_tree, hf_openflow_v6_meter_stats_packet_in_count, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint64_t byte_in_count; */
proto_tree_add_item(stats_tree, hf_openflow_v6_meter_stats_byte_in_count, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* uint32_t duration_sec; */
proto_tree_add_item(stats_tree, hf_openflow_v6_meter_stats_duration_sec, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t duration_nsec; */
proto_tree_add_item(stats_tree, hf_openflow_v6_meter_stats_duration_nsec, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* struct ofp_meter_band_stats band_stats[0]; */
while (offset < stats_end) {
offset = dissect_openflow_meter_band_stats_v6(tvb, pinfo, stats_tree, offset, length);
}
return offset;
}
static int
dissect_openflow_meter_desc_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *conf_tree, *flags_tree;
guint16 config_len;
gint32 config_end;
conf_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_meter_desc, &ti, "Meter desc");
/* uint16_t len; */
config_len = tvb_get_ntohs(tvb, offset);
config_end = offset + config_len;
proto_item_set_len(ti, config_len);
proto_tree_add_item(conf_tree, hf_openflow_v6_meter_desc_len, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t flags; */
ti = proto_tree_add_item(conf_tree, hf_openflow_v6_meter_desc_flags, tvb, offset, 2, ENC_BIG_ENDIAN);
flags_tree = proto_item_add_subtree(ti, ett_openflow_v6_meter_desc_flags);
proto_tree_add_item(flags_tree, hf_openflow_v6_meter_desc_flags_kbps, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_meter_desc_flags_pktps, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_meter_desc_flags_burst, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_meter_desc_flags_stats, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint32_t meter_id; */
proto_tree_add_item(conf_tree, hf_openflow_v6_meter_desc_meter_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* struct ofp_meter_band_header bands[0]; */
while (offset < config_end) {
offset = dissect_openflow_meter_band_v6(tvb, pinfo, conf_tree, offset, length);
}
return offset;
}
#define OFPMF_KBPS 1 << 0
#define OFPMF_PKTPS 1 << 1
#define OFPMF_BURST 1 << 2
#define OFPMF_STATS 1 << 3
static void
dissect_openflow_meter_features_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *bands_tree, *caps_tree;
/* uint32_t max_meter; */
proto_tree_add_item(tree, hf_openflow_v6_meter_features_max_meter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t band_types; */
ti = proto_tree_add_item(tree, hf_openflow_v6_meter_features_band_types, tvb, offset, 4, ENC_BIG_ENDIAN);
bands_tree = proto_item_add_subtree(ti, ett_openflow_v6_meter_features_band_types);
proto_tree_add_item(bands_tree, hf_openflow_v6_meter_features_band_types_drop, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(bands_tree, hf_openflow_v6_meter_features_band_types_dscp_remark, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t capabilities; */
ti = proto_tree_add_item(tree, hf_openflow_v6_meter_features_capabilities, tvb, offset, 4, ENC_BIG_ENDIAN);
caps_tree = proto_item_add_subtree(ti, ett_openflow_v6_meter_features_capabilities);
proto_tree_add_item(caps_tree, hf_openflow_v6_meter_features_capabilities_kbps, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(caps_tree, hf_openflow_v6_meter_features_capabilities_pktps, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(caps_tree, hf_openflow_v6_meter_features_capabilities_burst, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(caps_tree, hf_openflow_v6_meter_features_capabilities_stats, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t max_bands; */
proto_tree_add_item(tree, hf_openflow_v6_meter_features_max_bands, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t max_color; */
proto_tree_add_item(tree, hf_openflow_v6_meter_features_max_color, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[2]; */
proto_tree_add_item(tree, hf_openflow_v6_meter_features_pad, tvb, offset, 2, ENC_NA);
/*offset+=2;*/
}
#define OFPQDP_MIN_RATE_MAX 1000
static const value_string openflow_v6_queue_desc_prop_min_rate_reserved_values[] = {
{ 0xffff, "OFPQDP_MIN_RATE_UNCFG" },
{ 0, NULL }
};
#define OFPQDP_MAX_RATE_MAX 1000
static const value_string openflow_v6_queue_desc_prop_max_rate_reserved_values[] = {
{ 0xffff, "OFPQDP_MAX_RATE_UNCFG" },
{ 0, NULL }
};
#define OFPQDPT_MIN_RATE 1
#define OFPQDPT_MAX_RATE 2
#define OFPQDPT_EXPERIMENTER 0xffff
static const value_string openflow_v6_queue_desc_prop_property_values[] = {
{ OFPQDPT_MIN_RATE, "OFPQDPT_MIN_RATE" },
{ OFPQDPT_MAX_RATE, "OFPQDPT_MAX_RATE" },
{ OFPQDPT_EXPERIMENTER, "OFPQDPT_EXPERIMENTER" },
{ 0, NULL },
};
static int
dissect_openflow_queue_desc_prop_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *prop_tree;
guint32 prop_type;
guint16 prop_len;
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_queue_desc_prop, &ti, "Queue property");
/* uint16_t property; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_queue_desc_prop_property, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_type);
offset+=2;
/* uint16_t len; */
prop_len = tvb_get_ntohs(tvb, offset);
proto_item_set_len(ti, prop_len);
ti = proto_tree_add_item(prop_tree, hf_openflow_v6_queue_desc_prop_len, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t pad[4]; */
proto_tree_add_item(prop_tree, hf_openflow_v6_queue_desc_prop_pad, tvb, offset, 4, ENC_NA);
offset+=4;
if (prop_len < 8) {
expert_add_info(pinfo, ti, &ei_openflow_v6_length_too_short);
return offset;
}
switch (prop_type) {
case OFPQDPT_MIN_RATE:
/* uint16_t rate; */
proto_tree_add_item(prop_tree, hf_openflow_v6_queue_desc_prop_min_rate_rate, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t pad[6]; */
proto_tree_add_item(prop_tree, hf_openflow_v6_queue_desc_prop_min_rate_pad, tvb, offset, 6, ENC_NA);
offset+=6;
break;
case OFPQDPT_MAX_RATE:
/* uint16_t rate; */
proto_tree_add_item(prop_tree, hf_openflow_v6_queue_desc_prop_max_rate_rate, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t pad[6]; */
proto_tree_add_item(prop_tree, hf_openflow_v6_queue_desc_prop_max_rate_pad, tvb, offset, 6, ENC_NA);
offset+=6;
break;
case OFPQDPT_EXPERIMENTER:
if (prop_len <= 16) {
expert_add_info(pinfo, ti, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
/* uint32_t experimenter; */
proto_tree_add_item(prop_tree, hf_openflow_v6_queue_desc_prop_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(prop_tree, hf_openflow_v6_queue_desc_prop_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t experimenter_data[0]; */
proto_tree_add_expert_format(prop_tree, pinfo, &ei_openflow_v6_queue_desc_prop_undecoded,
tvb, offset, prop_len - 16, "Experimenter queue property body.");
offset+=prop_len-16;
break;
default:
if (prop_len <= 8) {
expert_add_info(pinfo, ti, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
proto_tree_add_expert_format(prop_tree, pinfo, &ei_openflow_v6_queue_desc_prop_undecoded,
tvb, offset, prop_len - 8, "Unknown queue property body.");
offset+=prop_len-8;
break;
}
return offset;
}
#define OFPQ_ALL 0xffffffff
#if 0
static const value_string openflow_v6_queue_id_reserved_values[] = {
{ OFPQ_ALL, "OFPQ_ALL" },
{ 0, NULL }
};
#endif
static int
dissect_openflow_queue_desc_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *desc_tree;
guint16 desc_len;
gint32 desc_end;
desc_len = tvb_get_ntohs(tvb, offset + 8);
desc_end = offset + desc_len;
desc_tree = proto_tree_add_subtree(tree, tvb, offset, desc_len, ett_openflow_v6_queue_desc, NULL, "Queue desc");
/* uint32_t port_no; */
proto_tree_add_item(tree, hf_openflow_v6_queue_desc_port_no, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t queue_id; */
proto_tree_add_item(desc_tree, hf_openflow_v6_queue_desc_queue_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint16_t len; */
proto_tree_add_item(desc_tree, hf_openflow_v6_queue_desc_len, tvb, offset, 2, ENC_BIG_ENDIAN);
/* uint8_t pad[6]; */
proto_tree_add_item(desc_tree, hf_openflow_v6_queue_desc_pad, tvb, offset, 6, ENC_NA);
offset+=6;
/* struct ofp_queue_desc_prop_header properties[0]; */
while (offset < desc_end) {
offset = dissect_openflow_queue_desc_prop_v6(tvb, pinfo, desc_tree, offset, length);
}
return offset;
}
#define OFPCSPT_URI 0
#define OFPCSPT_EXPERIMENTER 0xFFFF
static const value_string openflow_v6_controller_status_prop_type_values[] = {
{ OFPCSPT_URI, "OFPCSPT_URI" },
{ OFPCSPT_EXPERIMENTER, "OFPCSPT_EXPERIMENTER" },
{ 0, NULL }
};
static int
dissect_openflow_controller_status_prop_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *prop_tree;
guint32 prop_type;
guint32 prop_length;
gint32 body_end;
guint16 pad_length;
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_controller_status_prop, &ti, "Controller status property");
/* uint16_t type; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_controller_status_prop_type, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_type);
offset+=2;
/* uint16_t length; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_controller_status_prop_length, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_length);
proto_item_set_len(ti, prop_length);
offset+=2;
if (prop_length < 4) {
prop_length = 4;
}
body_end = offset + prop_length - 4;
/* body */
switch (prop_type) {
case OFPCSPT_URI:
/* uint8_t uri[0]; */
proto_tree_add_item(tree, hf_openflow_v6_controller_status_prop_uri, tvb, offset, prop_length - 4, ENC_ASCII);
offset += body_end;
break;
case OFPCSPT_EXPERIMENTER:
/* uint32_t experimenter; */
proto_tree_add_item(prop_tree, hf_openflow_v6_controller_status_prop_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(prop_tree, hf_openflow_v6_controller_status_prop_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t experimenter_data[0]; */
proto_tree_add_expert_format(prop_tree, pinfo, &ei_openflow_v6_controller_status_prop_undecoded,
tvb, offset, body_end - offset, "Experimenter controller property body.");
offset = body_end;
break;
default:
proto_tree_add_expert_format(prop_tree, pinfo, &ei_openflow_v6_controller_status_prop_undecoded,
tvb, offset, body_end - offset, "Unknown controller property body.");
offset = body_end;
break;
};
pad_length = (prop_length + 7)/8*8 - prop_length;
if (pad_length > 0) {
proto_tree_add_item(prop_tree, hf_openflow_v6_controller_status_prop_pad, tvb, offset, pad_length, ENC_NA);
offset+=pad_length;
}
return offset;
}
#define OFPCSR_REQUEST 0
#define OFPCSR_CHANNEL_STATUS 1
#define OFPCSR_ROLE 2
#define OFPCSR_CONTROLLER_ADDED 3
#define OFPCSR_CONTROLLER_REMOVED 4
#define OFPCSR_SHORT_ID 5
#define OFPCSR_EXPERIMENTER 6
static const value_string openflow_v6_controller_status_reason_values[] = {
{ OFPCSR_REQUEST, "OFPCSR_REQUEST" },
{ OFPCSR_CHANNEL_STATUS, "OFPCSR_CHANNEL_STATUS" },
{ OFPCSR_ROLE, "OFPCSR_ROLE" },
{ OFPCSR_CONTROLLER_ADDED, "OFPCSR_CONTROLLER_ADDED" },
{ OFPCSR_CONTROLLER_REMOVED, "OFPCSR_CONTROLLER_REMOVED" },
{ OFPCSR_SHORT_ID, "OFPCSR_SHORT_ID" },
{ OFPCSR_EXPERIMENTER, "OFPCSR_EXPERIMENTER" },
{ 0, NULL }
};
#define OFPCT_STATUS_UP 0
#define OFPCT_STATUS_DOWN 1
static const value_string openflow_v6_controller_status_channel_status_values[] = {
{ OFPCT_STATUS_UP, "OFPCT_STATUS_UP" },
{ OFPCT_STATUS_DOWN, "OFPCT_STATUS_DOWN" },
{ 0, NULL }
};
static int
dissect_openflow_controller_status_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint16_t length; */
proto_tree_add_item(tree, hf_openflow_v6_controller_status_length, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t short_id; */
proto_tree_add_item(tree, hf_openflow_v6_controller_status_short_id, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint32_t role; */
proto_tree_add_item(tree, hf_openflow_v6_controller_status_role, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t reason; */
proto_tree_add_item(tree, hf_openflow_v6_controller_status_reason, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t channel_status; */
proto_tree_add_item(tree, hf_openflow_v6_controller_status_channel_status, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[6]; */
proto_tree_add_item(tree, hf_openflow_v6_controller_status_pad, tvb, offset, 6, ENC_NA);
offset+=6;
/* struct ofp_controller_status_prop_header properties[0]; */
// XXX Should it be a while loop?
dissect_openflow_controller_status_prop_v6(tvb, pinfo, tree, offset, length);
return offset;
}
#define OFPFME_INITIAL 0
#define OFPFME_ADDED 1
#define OFPFME_REMOVED 2
#define OFPFME_MODIFIED 3
#define OFPFME_ABBREV 4
#define OFPFME_PAUSED 5
#define OFPFME_RESUMED 6
static const value_string openflow_v6_flow_monitor_events[] = {
{ OFPFME_INITIAL, "OFPFME_INITIAL" },
{ OFPFME_ADDED, "OFPFME_ADDED" },
{ OFPFME_REMOVED, "OFPFME_REMOVED" },
{ OFPFME_MODIFIED, "OFPFME_MODIFIED" },
{ OFPFME_ABBREV, "OFPFME_ABBREV" },
{ OFPFME_PAUSED, "OFPFME_PAUSED" },
{ OFPFME_RESUMED, "OFPFME_RESUMED" },
{ 0, NULL }
};
static int
dissect_openflow_flow_update_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_tree *update_tree;
guint32 update_len;
guint32 update_event;
gint32 update_end;
proto_item *ti;
update_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_flow_update, &ti, "Flow update");
/* uint16_t length; */
proto_tree_add_item_ret_uint(update_tree, hf_openflow_v6_flow_update_length, tvb, offset, 2, ENC_BIG_ENDIAN, &update_len);
update_end = offset + update_len;
proto_item_set_len(ti, update_len);
offset+=2;
/* uint16_t event; */
ti = proto_tree_add_item_ret_uint(update_tree, hf_openflow_v6_flow_update_event, tvb, offset, 2, ENC_BIG_ENDIAN, &update_event);
offset+=2;
if (update_len < 4) {
expert_add_info(pinfo, ti, &ei_openflow_v6_length_too_short);
return offset;
}
switch (update_event) {
case OFPFME_INITIAL:
case OFPFME_ADDED:
case OFPFME_REMOVED:
case OFPFME_MODIFIED:
/* uint8_t table_id; */
proto_tree_add_item(update_tree, hf_openflow_v6_flow_update_full_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
if (update_event == OFPFME_REMOVED) {
/* uint8_t reason; */
proto_tree_add_item(update_tree, hf_openflow_v6_flow_update_full_reason, tvb, offset, 1, ENC_BIG_ENDIAN);
} else {
/* uint8_t zero; */
proto_tree_add_item(update_tree, hf_openflow_v6_flow_update_full_zero, tvb, offset, 1, ENC_NA);
}
offset+=1;
/* uint16_t idle_timeout; */
proto_tree_add_item(update_tree, hf_openflow_v6_flow_update_full_idle_timeout, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t hard_timeout; */
proto_tree_add_item(update_tree, hf_openflow_v6_flow_update_full_hard_timeout, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t priority; */
proto_tree_add_item(update_tree, hf_openflow_v6_flow_update_full_priority, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t zeros[4]; */
proto_tree_add_item(update_tree, hf_openflow_v6_flow_update_full_zeros, tvb, offset, 4, ENC_NA);
offset+=4;
/* uint64_t cookie; */
proto_tree_add_item(update_tree, hf_openflow_v6_flow_update_full_cookie, tvb, offset, 8, ENC_BIG_ENDIAN);
offset+=8;
/* struct ofp_match match; */
offset = dissect_openflow_match_v6(tvb, pinfo, update_tree, offset, length);
/* struct ofp_instruction instructions[0]; */
while (offset < update_end) {
offset = dissect_openflow_instruction_v6(tvb, pinfo, update_tree, offset, length);
}
break;
case OFPFME_ABBREV:
/* uint32_t xid; */
proto_tree_add_item(update_tree, hf_openflow_v6_flow_update_abbrev_xid, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
break;
case OFPFME_PAUSED:
case OFPFME_RESUMED:
/* uint8_t zeros[4]; */
proto_tree_add_item(update_tree, hf_openflow_v6_flow_update_paused_zeros, tvb, offset, 4, ENC_NA);
offset+=4;
break;
default:
proto_tree_add_expert_format(update_tree, pinfo, &ei_openflow_v6_flow_update_undecoded,
tvb, offset, update_len - 4, "Unknown flow update body.");
offset+=update_len-4;
break;
}
return offset;
}
#define OFPMPF_REPLY_MORE 1 << 0
static void
dissect_openflow_multipart_reply_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length)
{
proto_item *ti;
proto_tree *flags_tree;
guint32 type;
/* uint16_t type; */
proto_tree_add_item_ret_uint(tree, hf_openflow_v6_multipart_reply_type, tvb, offset, 2, ENC_BIG_ENDIAN, &type);
offset+=2;
/* uint16_t flags; */
ti = proto_tree_add_item(tree, hf_openflow_v6_multipart_reply_flags, tvb, offset, 2, ENC_BIG_ENDIAN);
flags_tree = proto_item_add_subtree(ti, ett_openflow_v6_multipart_reply_flags);
proto_tree_add_item(flags_tree, hf_openflow_v6_multipart_reply_flags_more, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_multipart_reply_pad, tvb, offset, 4, ENC_NA);
offset+=4;
switch(type){
case OFPMP_DESC:
dissect_openflow_switch_description_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_FLOW_DESC:
dissect_openflow_flow_desc_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_AGGREGATE_STATS:
dissect_openflow_aggregate_stats_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_TABLE_STATS:
while (offset < length) {
offset = dissect_openflow_table_stats_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_PORT_STATS:
while (offset < length) {
offset = dissect_openflow_port_stats_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_QUEUE_STATS:
while (offset < length) {
offset = dissect_openflow_queue_stats_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_GROUP_STATS:
while (offset < length) {
offset = dissect_openflow_group_stats_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_GROUP_DESC:
while (offset < length) {
offset = dissect_openflow_group_desc_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_GROUP_FEATURES:
dissect_openflow_group_features_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_METER_STATS:
while (offset < length) {
offset = dissect_openflow_meter_stats_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_METER_DESC:
while (offset < length) {
offset = dissect_openflow_meter_desc_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_METER_FEATURES:
dissect_openflow_meter_features_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_TABLE_FEATURES:
while (offset < length) {
offset = dissect_openflow_table_features_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_PORT_DESC:
while (offset < length) {
offset = dissect_openflow_port_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_TABLE_DESC:
while (offset < length) {
offset = dissect_openflow_table_desc_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_QUEUE_DESC:
while (offset < length) {
offset = dissect_openflow_queue_desc_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_FLOW_MONITOR:
while (offset < length) {
offset = dissect_openflow_flow_update_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_FLOW_STATS:
while (offset < length) {
offset = dissect_openflow_flow_stats_v6(tvb, pinfo, tree, offset, length);
}
break;
case OFPMP_CONTROLLER_STATUS:
dissect_openflow_controller_status_v6(tvb, pinfo, tree, offset, length);
break;
case OFPMP_EXPERIMENTER:
/* uint32_t experimenter; */
proto_tree_add_item(tree, hf_openflow_v6_multipart_reply_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(tree, hf_openflow_v6_multipart_reply_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t experimenter_data[0]; */
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_multipart_reply_undecoded,
tvb, offset, length - 16, "Experimenter multipart reply body.");
break;
default:
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_multipart_reply_undecoded,
tvb, offset, length - 8, "Unknown multipart reply body.");
break;
}
}
#if 0
static void
dissect_openflow_queue_get_config_request_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint32_t port; */
proto_tree_add_item(tree, hf_openflow_v6_queue_get_config_request_port, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_queue_get_config_request_pad, tvb, offset, 4, ENC_NA);
/*offset+=4;*/
}
#endif
static const value_string openflow_v6_controller_role_values[] = {
{ 0, "OFPCR_ROLE_NOCHANGE" },
{ 1, "OFPCR_ROLE_EQUAL" },
{ 2, "OFPCR_ROLE_MASTER" },
{ 3, "OFPCR_ROLE_SLAVE" },
{ 0, NULL }
};
static void
dissect_openflow_role_request_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint32_t role; */
proto_tree_add_item(tree, hf_openflow_v6_role_request_role, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_role_request_pad, tvb, offset, 4, ENC_NA);
offset+=4;
/* uint64_t generation_id; */
proto_tree_add_item(tree, hf_openflow_v6_role_request_generation_id, tvb, offset, 8, ENC_BIG_ENDIAN);
/*offset+=8;*/
}
static void
dissect_openflow_role_reply_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint32_t role; */
proto_tree_add_item(tree, hf_openflow_v6_role_reply_role, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t pad[4]; */
proto_tree_add_item(tree, hf_openflow_v6_role_reply_pad, tvb, offset, 4, ENC_NA);
offset+=4;
/* uint64_t generation_id; */
proto_tree_add_item(tree, hf_openflow_v6_role_reply_generation_id, tvb, offset, 8, ENC_BIG_ENDIAN);
/*offset+=8;*/
}
#define OFPACPT_PACKET_IN_SLAVE 0
#define OFPACPT_PACKET_IN_MASTER 1
#define OFPACPT_PORT_STATUS_SLAVE 2
#define OFPACPT_PORT_STATUS_MASTER 3
#define OFPACPT_FLOW_REMOVED_SLAVE 4
#define OFPACPT_FLOW_REMOVED_MASTER 5
#define OFPACPT_ROLE_STATUS_SLAVE 6
#define OFPACPT_ROLE_STATUS_MASTER 7
#define OFPACPT_TABLE_STATUS_SLAVE 8
#define OFPACPT_TABLE_STATUS_MASTER 9
#define OFPACPT_REQUESTFORWARD_SLAVE 10
#define OFPACPT_REQUESTFORWARD_MASTER 11
#define OFPACPT_EXPERIMENTER_SLAVE 0xFFFE
#define OFPACPT_EXPERIMENTER_MASTER 0xFFFF
static const value_string openflow_v6_async_config_prop_type_values[] = {
{ OFPACPT_PACKET_IN_SLAVE, "OFPACPT_PACKET_IN_SLAVE" },
{ OFPACPT_PACKET_IN_MASTER, "OFPACPT_PACKET_IN_MASTER" },
{ OFPACPT_PORT_STATUS_SLAVE, "OFPACPT_PORT_STATUS_SLAVE" },
{ OFPACPT_PORT_STATUS_MASTER, "OFPACPT_PORT_STATUS_MASTER" },
{ OFPACPT_FLOW_REMOVED_SLAVE, "OFPACPT_FLOW_REMOVED_SLAVE" },
{ OFPACPT_FLOW_REMOVED_MASTER, "OFPACPT_FLOW_REMOVED_MASTER" },
{ OFPACPT_ROLE_STATUS_SLAVE, "OFPACPT_ROLE_STATUS_SLAVE" },
{ OFPACPT_ROLE_STATUS_MASTER, "OFPACPT_ROLE_STATUS_MASTER" },
{ OFPACPT_TABLE_STATUS_SLAVE, "OFPACPT_TABLE_STATUS_SLAVE" },
{ OFPACPT_TABLE_STATUS_MASTER, "OFPACPT_TABLE_STATUS_MASTER" },
{ OFPACPT_REQUESTFORWARD_SLAVE, "OFPACPT_REQUESTFORWARD_SLAVE" },
{ OFPACPT_REQUESTFORWARD_MASTER, "OFPACPT_REQUESTFORWARD_MASTER" },
{ OFPACPT_EXPERIMENTER_SLAVE, "OFPACPT_EXPERIMENTER_SLAVE" },
{ OFPACPT_EXPERIMENTER_MASTER, "OFPACPT_EXPERIMENTER_MASTER" },
{ 0, NULL }
};
#define OFPRFR_GROUP_MOD 0
#define OFPRFR_METER_MOD 1
static int
dissect_openflow_async_config_prop_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti, *prop_item;
proto_tree *prop_tree, *pi_tree, *ps_tree, *fr_tree, *rs_tree, *ts_tree, *rf_tree;
guint32 prop_type;
guint32 prop_len;
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_async_config_prop, &ti, "Async config prop");
/* uint16_t type; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_async_config_prop_type, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_type);
offset += 2;
/* uint16_t length; */
prop_item = proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_async_config_prop_length, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_len);
proto_item_set_len(ti, prop_len);
offset += 2;
switch (prop_type) {
case OFPACPT_PACKET_IN_SLAVE:
case OFPACPT_PACKET_IN_MASTER:
/* uint32_t mask; */
ti = proto_tree_add_item(prop_tree, hf_openflow_v6_async_config_prop_reason_packet_in_mask, tvb, offset, 4, ENC_BIG_ENDIAN);
pi_tree = proto_item_add_subtree(ti, ett_openflow_v6_async_config_prop_reason_packet_in_mask);
proto_tree_add_item(pi_tree, hf_openflow_v6_async_config_prop_reason_packet_in_mask_table_miss, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(pi_tree, hf_openflow_v6_async_config_prop_reason_packet_in_mask_apply_action, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(pi_tree, hf_openflow_v6_async_config_prop_reason_packet_in_mask_invalid_ttl, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(pi_tree, hf_openflow_v6_async_config_prop_reason_packet_in_mask_action_set, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(pi_tree, hf_openflow_v6_async_config_prop_reason_packet_in_mask_group, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(pi_tree, hf_openflow_v6_async_config_prop_reason_packet_in_mask_packet_out, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
break;
case OFPACPT_PORT_STATUS_SLAVE:
case OFPACPT_PORT_STATUS_MASTER:
/* uint32_t mask; */
ti = proto_tree_add_item(prop_tree, hf_openflow_v6_async_config_prop_reason_port_status_mask, tvb, offset, 4, ENC_BIG_ENDIAN);
ps_tree = proto_item_add_subtree(ti, ett_openflow_v6_async_config_prop_reason_port_status_mask);
proto_tree_add_item(ps_tree, hf_openflow_v6_async_config_prop_reason_port_status_mask_add, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(ps_tree, hf_openflow_v6_async_config_prop_reason_port_status_mask_delete, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(ps_tree, hf_openflow_v6_async_config_prop_reason_port_status_mask_modify, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
break;
case OFPACPT_FLOW_REMOVED_SLAVE:
case OFPACPT_FLOW_REMOVED_MASTER:
/* uint32_t mask; */
ti = proto_tree_add_item(prop_tree, hf_openflow_v6_async_config_prop_reason_flow_removed_mask, tvb, offset, 4, ENC_BIG_ENDIAN);
fr_tree = proto_item_add_subtree(ti, ett_openflow_v6_async_config_prop_reason_flow_removed_mask);
proto_tree_add_item(fr_tree, hf_openflow_v6_async_config_prop_reason_flow_removed_mask_idle_timeout, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(fr_tree, hf_openflow_v6_async_config_prop_reason_flow_removed_mask_hard_timeout, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(fr_tree, hf_openflow_v6_async_config_prop_reason_flow_removed_mask_delete, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(fr_tree, hf_openflow_v6_async_config_prop_reason_flow_removed_mask_group_delete, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(fr_tree, hf_openflow_v6_async_config_prop_reason_flow_removed_mask_meter_delete, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(fr_tree, hf_openflow_v6_async_config_prop_reason_flow_removed_mask_eviction, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
break;
case OFPACPT_ROLE_STATUS_SLAVE:
case OFPACPT_ROLE_STATUS_MASTER:
/* uint32_t mask; */
ti = proto_tree_add_item(prop_tree, hf_openflow_v6_async_config_prop_reason_role_status_mask, tvb, offset, 4, ENC_BIG_ENDIAN);
rs_tree = proto_item_add_subtree(ti, ett_openflow_v6_async_config_prop_reason_role_status_mask);
proto_tree_add_item(rs_tree, hf_openflow_v6_async_config_prop_reason_role_status_mask_master_request, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(rs_tree, hf_openflow_v6_async_config_prop_reason_role_status_mask_config, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(rs_tree, hf_openflow_v6_async_config_prop_reason_role_status_mask_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
break;
case OFPACPT_TABLE_STATUS_SLAVE:
case OFPACPT_TABLE_STATUS_MASTER:
/* uint32_t mask; */
ti = proto_tree_add_item(prop_tree, hf_openflow_v6_async_config_prop_reason_table_status_mask, tvb, offset, 4, ENC_BIG_ENDIAN);
ts_tree = proto_item_add_subtree(ti, ett_openflow_v6_async_config_prop_reason_table_status_mask);
proto_tree_add_item(ts_tree, hf_openflow_v6_async_config_prop_reason_table_status_mask_vacancy_down, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(ts_tree, hf_openflow_v6_async_config_prop_reason_table_status_mask_vacancy_up, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
break;
case OFPACPT_REQUESTFORWARD_SLAVE:
case OFPACPT_REQUESTFORWARD_MASTER:
/* uint32_t mask; */
ti = proto_tree_add_item(prop_tree, hf_openflow_v6_async_config_prop_reason_requestforward_mask, tvb, offset, 4, ENC_BIG_ENDIAN);
rf_tree = proto_item_add_subtree(ti, ett_openflow_v6_async_config_prop_reason_requestforward_mask);
proto_tree_add_item(rf_tree, hf_openflow_v6_async_config_prop_reason_requestforward_mask_group_mod, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(rf_tree, hf_openflow_v6_async_config_prop_reason_requestforward_mask_meter_mod, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
break;
case OFPACPT_EXPERIMENTER_SLAVE:
case OFPACPT_EXPERIMENTER_MASTER:
if (prop_len <= 12) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
/* uint32_t experimenter; */
proto_tree_add_item(prop_tree, hf_openflow_v6_async_config_prop_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(prop_tree, hf_openflow_v6_async_config_prop_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t experimenter_data[0]; */
proto_tree_add_expert_format(prop_tree, pinfo, &ei_openflow_v6_async_config_prop_undecoded,
tvb, offset, prop_len - 12, "Experimenter async config prop body.");
offset += prop_len - 12;
break;
default:
if (prop_len <= 4) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
proto_tree_add_expert_format(prop_tree, pinfo, &ei_openflow_v6_async_config_prop_undecoded,
tvb, offset, prop_len - 4, "Unknown async config prop body.");
offset += prop_len - 4;
break;
}
return offset;
}
static void
dissect_openflow_async_config_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* struct ofp_async_config_prop_header properties[0]; */
while (offset < length) {
offset = dissect_openflow_async_config_prop_v6(tvb, pinfo, tree, offset, length);
}
}
static const value_string openflow_v6_metermod_command_values[] = {
{ 0, "OFPMC_ADD" },
{ 1, "OFPMC_MODIFY" },
{ 2, "OFPMC_DELETE" },
{ 0, NULL }
};
static void
dissect_openflow_metermod_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *flags_tree;
/* uint16_t command; */
proto_tree_add_item(tree, hf_openflow_v6_metermod_command, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t flags; */
ti = proto_tree_add_item(tree, hf_openflow_v6_metermod_flags, tvb, offset, 2, ENC_BIG_ENDIAN);
flags_tree = proto_item_add_subtree(ti, ett_openflow_v6_metermod_flags);
proto_tree_add_item(flags_tree, hf_openflow_v6_metermod_flags_kbps, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_metermod_flags_pktps, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_metermod_flags_burst, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_metermod_flags_stats, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint32_t meter_id; */
proto_tree_add_item(tree, hf_openflow_v6_metermod_meter_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* struct ofp_meter_band_header bands[0]; */
while (offset < length) {
offset = dissect_openflow_meter_band_v6(tvb, pinfo, tree, offset, length);
}
}
#define OFPCRR_MASTER_REQUEST 0
#define OFPCRR_CONFIG 1
#define OFPCRR_EXPERIMENTER 2
static const value_string openflow_v6_role_status_reason_values[] = {
{ OFPCRR_MASTER_REQUEST, "OFPCRR_MASTER_REQUEST" },
{ OFPCRR_CONFIG, "OFPCRR_CONFIG" },
{ OFPCRR_EXPERIMENTER, "OFPCRR_EXPERIMENTER" },
{ 0, NULL }
};
static void
dissect_openflow_role_status_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint32_t role; */
proto_tree_add_item(tree, hf_openflow_v6_role_status_role, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint8_t reason; */
proto_tree_add_item(tree, hf_openflow_v6_role_status_reason, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[3]; */
proto_tree_add_item(tree, hf_openflow_v6_role_status_pad, tvb, offset, 3, ENC_NA);
offset+=3;
/* uint64_t generation_id; */
proto_tree_add_item(tree, hf_openflow_v6_role_status_generation_id, tvb, offset, 8, ENC_BIG_ENDIAN);
/*offset+=8;*/
}
#define OFPTR_VACANCY_DOWN 3
#define OFPTR_VACANCY_UP 4
static const value_string openflow_v6_table_status_reason_values[] = {
{ OFPTR_VACANCY_DOWN, "OFPTR_VACANCY_DOWN" },
{ OFPTR_VACANCY_UP, "OFPTR_VACANCY_UP" },
{ 0, NULL }
};
static void
dissect_openflow_table_status_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* uint8_t reason; */
proto_tree_add_item(tree, hf_openflow_v6_table_status_reason, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* uint8_t pad[7]; */
proto_tree_add_item(tree, hf_openflow_v6_table_status_pad, tvb, offset, 7, ENC_NA);
offset+=1;
/* struct ofp_table_desc table; */
dissect_openflow_table_desc_v6(tvb, pinfo, tree, offset, length);
}
static void
dissect_openflow_requestforward_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *req_tree;
guint16 req_begin;
/* struct ofp_header request; */
req_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_requestforward_request, &ti, "Request");
req_begin = offset;
offset = dissect_openflow_message_v6(tvb, pinfo, req_tree, offset);
proto_item_set_len(ti, offset - req_begin);
}
#define OFPBPT_TIME 0x0001
#define OFPBPT_EXPERIMENTER 0xFFFF
static const value_string openflow_v6_bundle_prop_type_values[] = {
{ OFPBPT_TIME, "OFPBPT_TIME" },
{ OFPBPT_EXPERIMENTER, "OFPBPT_EXPERIMENTER" },
{ 0, NULL }
};
static int
dissect_openflow_bundle_prop_v6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length)
{
proto_tree *prop_tree;
proto_item *prop_item, *ti;
guint32 prop_type;
guint32 prop_len;
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_bundle_prop, &ti, "Bundle prop");
/* uint16_t type; */
proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_bundle_prop_type, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_type);
offset+=2;
/* uint16_t length; */
prop_item = proto_tree_add_item_ret_uint(prop_tree, hf_openflow_v6_bundle_prop_length, tvb, offset, 2, ENC_BIG_ENDIAN, &prop_len);
proto_item_set_len(ti, prop_len);
offset+=2;
switch (prop_type) {
case OFPBPT_TIME:
dissect_openflow_time_v6(tvb, pinfo, tree, offset, length);
offset += prop_len - 4;
break;
case OFPBPT_EXPERIMENTER:
if (prop_len <= 12) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
/* uint32_t experimenter; */
proto_tree_add_item(tree, hf_openflow_v6_bundle_prop_experimenter_experimenter, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t exp_type; */
proto_tree_add_item(tree, hf_openflow_v6_bundle_prop_experimenter_exp_type, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint32_t experimenter_data[0]; */
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_bundle_prop_undecoded,
tvb, offset, prop_len - 12, "Experimenter bundle prop body.");
offset += prop_len - 12;
break;
default:
if (prop_len <= 4) {
expert_add_info(pinfo, prop_item, &ei_openflow_v6_length_too_short);
offset = length;
break;
}
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_bundle_prop_undecoded,
tvb, offset, prop_len - 4, "Unknown bundle prop body.");
offset += prop_len - 4;
break;
}
return offset;
}
static const value_string openflow_v6_bundle_control_type_values[] = {
{ 0, "OFPBCT_OPEN_REQUEST" },
{ 1, "OFPBCT_OPEN_REPLY" },
{ 2, "OFPBCT_CLOSE_REQUEST" },
{ 3, "OFPBCT_CLOSE_REPLY" },
{ 4, "OFPBCT_COMMIT_REQUEST" },
{ 5, "OFPBCT_COMMIT_REPLY" },
{ 6, "OFPBCT_DISCARD_REQUEST" },
{ 7, "OFPBCT_DISCARD_REPLY" },
{ 0, NULL }
};
#define OFPBF_ATOMIC 1<<0
#define OFPBF_ORDERED 1<<1
#if 0
static const value_string openflow_v6_bundle_control_flags[] = {
{ OFPBF_ATOMIC, "OFPBF_ATOMIC" },
{ OFPBF_ORDERED, "OFPBF_ORDERED" },
{ 0, NULL }
};
#endif
static void
dissect_openflow_bundle_control_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *flags_tree;
/* uint32_t bundle_id; */
proto_tree_add_item(tree, hf_openflow_v6_bundle_control_bundle_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint16_t type; */
proto_tree_add_item(tree, hf_openflow_v6_bundle_control_type, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* uint16_t flags; */
ti = proto_tree_add_item(tree, hf_openflow_v6_bundle_control_flags, tvb, offset, 2, ENC_BIG_ENDIAN);
flags_tree = proto_item_add_subtree(ti, ett_openflow_v6_bundle_control_flags);
proto_tree_add_item(flags_tree, hf_openflow_v6_bundle_control_flags_atomic, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_bundle_control_flags_ordered, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* struct ofp_bundle_prop_header properties[0]; */
while (offset < length) {
offset = dissect_openflow_bundle_prop_v6(tvb, pinfo, tree, offset, length);
}
}
static void
dissect_openflow_bundle_add_v6(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *flags_tree, *msg_tree;
guint16 msg_begin;
/* uint32_t bundle_id; */
proto_tree_add_item(tree, hf_openflow_v6_bundle_add_bundle_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
/* uint16_t pad; */
proto_tree_add_item(tree, hf_openflow_v6_bundle_add_pad, tvb, offset, 2, ENC_NA);
offset+=2;
/* uint16_t flags; */
ti = proto_tree_add_item(tree, hf_openflow_v6_bundle_add_flags, tvb, offset, 2, ENC_BIG_ENDIAN);
flags_tree = proto_item_add_subtree(ti, ett_openflow_v6_bundle_add_flags);
proto_tree_add_item(flags_tree, hf_openflow_v6_bundle_add_flags_atomic, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(flags_tree, hf_openflow_v6_bundle_add_flags_ordered, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* struct ofp_header message; */
msg_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v6_bundle_add_message, &ti, "Message");
msg_begin = offset;
offset = dissect_openflow_message_v6(tvb, pinfo, msg_tree, offset);
proto_item_set_len(ti, offset - msg_begin);
/* struct ofp_bundle_prop_header properties[0]; */
while (offset < length) {
offset = dissect_openflow_bundle_prop_v6(tvb, pinfo, tree, offset, length);
}
}
static int
dissect_openflow_message_v6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
guint8 type;
guint16 length;
gint32 msg_end;
type = tvb_get_guint8(tvb, offset + 1);
length = tvb_get_ntohs(tvb, offset + 2);
msg_end = offset + length;
offset = dissect_openflow_header_v6(tvb, pinfo, tree, offset, length);
switch(type) {
case OFPT_HELLO:
dissect_openflow_hello_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_ERROR:
dissect_openflow_error_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_ECHO_REQUEST:
case OFPT_ECHO_REPLY:
dissect_openflow_echo_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_EXPERIMENTER:
dissect_openflow_experimenter_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_FEATURES_REQUEST:
/* message has no body */
break;
case OFPT_FEATURES_REPLY:
dissect_openflow_switch_features_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_GET_CONFIG_REQUEST:
/* message has no body */
break;
case OFPT_GET_CONFIG_REPLY:
case OFPT_SET_CONFIG:
dissect_openflow_switch_config_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_PACKET_IN:
dissect_openflow_packet_in_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_FLOW_REMOVED:
dissect_openflow_flow_removed_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_PORT_STATUS:
dissect_openflow_port_status_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_PACKET_OUT:
dissect_openflow_packet_out_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_FLOW_MOD:
dissect_openflow_flowmod_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_GROUP_MOD:
dissect_openflow_groupmod_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_PORT_MOD:
dissect_openflow_portmod_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_TABLE_MOD:
dissect_openflow_tablemod_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_MULTIPART_REQUEST:
dissect_openflow_multipart_request_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_MULTIPART_REPLY:
dissect_openflow_multipart_reply_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_BARRIER_REQUEST:
case OFPT_BARRIER_REPLY:
/* message has no body */
break;
case OFPT_ROLE_REQUEST:
dissect_openflow_role_request_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_ROLE_REPLY:
dissect_openflow_role_reply_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_GET_ASYNC_REQUEST:
/* message has no body */
break;
case OFPT_GET_ASYNC_REPLY:
case OFPT_SET_ASYNC:
dissect_openflow_async_config_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_METER_MOD:
dissect_openflow_metermod_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_ROLE_STATUS:
dissect_openflow_role_status_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_TABLE_STATUS:
dissect_openflow_table_status_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_REQUESTFORWARD:
dissect_openflow_requestforward_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_BUNDLE_CONTROL:
dissect_openflow_bundle_control_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_BUNDLE_ADD_MESSAGE:
dissect_openflow_bundle_add_v6(tvb, pinfo, tree, offset, length);
break;
case OFPT_CONTROLLER_STATUS:
dissect_openflow_controller_status_v6(tvb, pinfo, tree, offset, length);
break;
default:
if (length > 8) {
proto_tree_add_expert_format(tree, pinfo, &ei_openflow_v6_message_undecoded,
tvb, offset, length - 8, "Unknown message body.");
}
break;
}
return msg_end;
}
static int
dissect_openflow_v6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
proto_item *ti;
proto_tree *openflow_tree;
guint8 type;
type = tvb_get_guint8(tvb, 1);
col_append_fstr(pinfo->cinfo, COL_INFO, "Type: %s",
val_to_str_ext_const(type, &openflow_v6_type_values_ext, "Unknown message type"));
ti = proto_tree_add_item(tree, proto_openflow_v6, tvb, 0, -1, ENC_NA);
openflow_tree = proto_item_add_subtree(ti, ett_openflow_v6);
dissect_openflow_message_v6(tvb, pinfo, openflow_tree, 0);
return tvb_reported_length(tvb);
}
/*
* Register the protocol with Wireshark.
*/
void
proto_register_openflow_v6(void)
{
static hf_register_info hf[] = {
{ &hf_openflow_v6_version,
{ "Version", "openflow_v6.version",
FT_UINT8, BASE_HEX, VALS(openflow_v6_version_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_type,
{ "Type", "openflow_v6.type",
FT_UINT8, BASE_DEC | BASE_EXT_STRING, &openflow_v6_type_values_ext, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_xid,
{ "Transaction ID", "openflow_v6.xid",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_length,
{ "Length", "openflow_v6.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_class,
{ "Class", "openflow_v6.oxm.class",
FT_UINT16, BASE_HEX, VALS(openflow_v6_oxm_class_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_field,
{ "Field", "openflow_v6.oxm.field",
FT_UINT8, BASE_DEC, NULL, OXM_FIELD_MASK,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_field_basic,
{ "Field", "openflow_v6.oxm.field",
FT_UINT8, BASE_DEC | BASE_EXT_STRING, &openflow_v6_oxm_basic_field_values_ext, OXM_FIELD_MASK,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_hm,
{ "Has mask", "openflow_v6.oxm.hm",
FT_BOOLEAN, 8, NULL, OXM_HM_MASK,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_length,
{ "Length", "openflow_v6.oxm.length",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_experimenter_experimenter,
{ "Experimenter", "openflow_v6.oxm_experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_experimenter_value,
{ "Experimenter Value", "openflow_v6.oxm_experimenter.value",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_value,
{ "Value", "openflow_v6.oxm.value",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_value_etheraddr,
{ "Value", "openflow_v6.oxm.value_etheraddr",
FT_ETHER, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_value_ethertype,
{ "Value", "openflow_v6.oxm.value_ethertype",
FT_UINT16, BASE_HEX, VALS(etype_vals), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_value_vlan_present,
{ "OFPVID_PRESENT", "openflow_v6.oxm.value_vlan_present",
FT_BOOLEAN, 16, NULL, OFPVID_PRESENT,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_value_vlan_vid,
{ "Value", "openflow_v6.oxm.value_vlan_vid",
FT_UINT16, BASE_DEC, NULL, 0x0fff,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_value_ipv4addr,
{ "Value", "openflow_v6.oxm.value_ipv4addr",
FT_IPv4, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_value_ipv6addr,
{ "Value", "openflow_v6.oxm.value_ipv6addr",
FT_IPv6, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_value_ipproto,
{ "Value", "openflow_v6.oxm.value_ipproto",
FT_UINT8, BASE_DEC|BASE_EXT_STRING, &ipproto_val_ext, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_value_uint16,
{ "Value", "openflow_v6.oxm.value_uint16",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_value_uint24,
{ "Value", "openflow_v6.oxm.value_uint24",
FT_UINT24, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_value_uint32,
{ "Value", "openflow_v6.oxm.value_uint32",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_mask,
{ "Mask", "openflow_v6.oxm.mask",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_mask_etheraddr,
{ "Mask", "openflow_v6.oxm.ether_mask",
FT_ETHER, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_mask_ipv4addr,
{ "Mask", "openflow_v6.oxm.ipv4_mask",
FT_IPv4, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_mask_ipv6addr,
{ "Mask", "openflow_v6.oxm.ipv6_mask",
FT_IPv6, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_mask_vlan,
{ "Mask", "openflow_v6.oxm.vlan_mask",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_match_type,
{ "Type", "openflow_v6.match.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_match_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_match_length,
{ "Length", "openflow_v6.match.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_match_pad,
{ "Pad", "openflow_v6.match.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_type,
{ "Type", "openflow_v6.action.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_action_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_length,
{ "Length", "openflow_v6.action.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_experimenter_experimenter,
{ "Experimenter", "openflow_v6.action_experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_output_port,
{ "Port", "openflow_v6.action.output.port",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_output_max_len,
{ "Max length", "openflow_v6.action.output.max_len",
FT_UINT16, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_controller_max_len_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_output_pad,
{ "Pad", "openflow_v6.action.output.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_copy_ttl_out_pad,
{ "Pad", "openflow_v6.action.copy_ttl_out.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_copy_ttl_in_pad,
{ "Pad", "openflow_v6.action.copy_ttl_in.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_set_mpls_ttl_ttl,
{ "TTL", "openflow_v6.action.set_mpls_ttl.ttl",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_set_mpls_ttl_pad,
{ "Pad", "openflow_v6.action.set_mpls_ttl.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_dec_mpls_ttl_pad,
{ "Pad", "openflow_v6.action.dec_mpls_ttl.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_push_vlan_ethertype,
{ "Ethertype", "openflow_v6.action.push_vlan.ethertype",
FT_UINT16, BASE_HEX, VALS(etype_vals), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_push_vlan_pad,
{ "Pad", "openflow_v6.action.push_vlan.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_pop_vlan_pad,
{ "Pad", "openflow_v6.action.pop_vlan.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_push_mpls_ethertype,
{ "Ethertype", "openflow_v6.action.push_mpls.ethertype",
FT_UINT16, BASE_HEX, VALS(etype_vals), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_push_mpls_pad,
{ "Pad", "openflow_v6.action.push_mpls.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_pop_mpls_ethertype,
{ "Ethertype", "openflow_v6.action.pop_mpls.ethertype",
FT_UINT16, BASE_HEX, VALS(etype_vals), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_pop_mpls_pad,
{ "Pad", "openflow_v6.action.pop_mpls.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_set_queue_queue_id,
{ "Queue ID", "openflow_v6.action.set_queue.queue_id",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_group_group_id,
{ "Group ID", "openflow_v6.action.group.group_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_set_nw_ttl_ttl,
{ "TTL", "openflow_v6.action.set_nw_ttl.ttl",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_set_nw_ttl_pad,
{ "Pad", "openflow_v6.action.set_nw_ttl.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_dec_nw_ttl_pad,
{ "Pad", "openflow_v6.action.dec_nw_ttl.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_set_field_pad,
{ "Pad", "openflow_v6.action.set_field.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_push_pbb_ethertype,
{ "Ethertype", "openflow_v6.action.push_pbb.ethertype",
FT_UINT16, BASE_HEX, VALS(etype_vals), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_push_pbb_pad,
{ "Pad", "openflow_v6.action.push_pbb.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_pop_pbb_pad,
{ "Pad", "openflow_v6.action.pop_pbb.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_copy_field_n_bits,
{ "Number of bits", "openflow_v6.action.copy_field.n_bits",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_copy_field_src_offset,
{ "Source Offset", "openflow_v6.action.copy_field.src_offset",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_copy_field_dst_offset,
{ "Destination Offset", "openflow_v6.action.copy_field.dst_offset",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_copy_field_pad,
{ "Pad", "openflow_v6.action.copy_field.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_action_meter_id,
{ "Meter instance", "openflow_v6.action.meter.id",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_instruction_type,
{ "Type", "openflow_v6.instruction.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_instruction_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_instruction_length,
{ "Length", "openflow_v6.instruction.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_instruction_experimenter_experimenter,
{ "Experimenter", "openflow_v6.instruction_experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_instruction_goto_table_table_id,
{ "Table ID", "openflow_v6.instruction.goto_table.table_id",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_instruction_goto_table_pad,
{ "Pad", "openflow_v6.instruction.goto_table.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_instruction_write_metadata_pad,
{ "Pad", "openflow_v6.instruction.write_metadata.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_instruction_write_metadata_value,
{ "Value", "openflow_v6.instruction.write_metadata.value",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_instruction_write_metadata_mask,
{ "Mask", "openflow_v6.instruction.write_metadata.mask",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_instruction_actions_pad,
{ "Pad", "openflow_v6.instruction.actions.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_type,
{ "Type", "openflow_v6.port.desc_prop.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_port_desc_prop_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_length,
{ "Length", "openflow_v6.port.desc_prop.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_pad,
{ "Pad", "openflow_v6.port.desc_prop.ethernet.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current,
{ "Current", "openflow_v6.port.desc_prop.ethernet.current",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_10mb_hd,
{ "OFPPF_10MB_HD", "openflow_v6.port.desc_prop.ethernet.current.10mb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_10MB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_10mb_fd,
{ "OFPPF_10MB_FD", "openflow_v6.port.desc_prop.ethernet.current.10mb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_10MB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_100mb_hd,
{ "OFPPF_100MB_HD", "openflow_v6.port.desc_prop.ethernet.current.100mb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_100MB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_100mb_fd,
{ "OFPPF_100MB_FD", "openflow_v6.port.desc_prop.ethernet.current.100mb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_100MB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_1gb_hd,
{ "OFPPF_1GB_HD", "openflow_v6.port.desc_prop.ethernet.current.1gb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_1GB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_1gb_fd,
{ "OFPPF_1GB_FD", "openflow_v6.port.desc_prop.ethernet.current.1gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_1GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_10gb_fd,
{ "OFPPF_10_GB_FD", "openflow_v6.port.desc_prop.ethernet.current.10gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_10GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_40gb_fd,
{ "OFPPF_40GB_FD", "openflow_v6.port.desc_prop.ethernet.current.40gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_40GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_100gb_fd,
{ "OFPPF_100_GB_FD", "openflow_v6.port.desc_prop.ethernet.current.100_gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_100GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_1tb_fd,
{ "OFPPF_1TB_FD", "openflow_v6.port.desc_prop.ethernet.current.1tb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_1TB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_other,
{ "OFPPF_OTHER", "openflow_v6.port.desc_prop.ethernet.current.other",
FT_BOOLEAN, 32, NULL, OFPPF_OTHER,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_copper,
{ "OFPPF_COPPER", "openflow_v6.port.desc_prop.ethernet.current.copper",
FT_BOOLEAN, 32, NULL, OFPPF_COPPER,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_fiber,
{ "OFPPF_FIBER", "openflow_v6.port.desc_prop.ethernet.current.fiber",
FT_BOOLEAN, 32, NULL, OFPPF_FIBER,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_autoneg,
{ "OFPPF_AUTONEG", "openflow_v6.port.desc_prop.ethernet.current.autoneg",
FT_BOOLEAN, 32, NULL, OFPPF_AUTONEG,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_pause,
{ "OFPPF_PAUSE", "openflow_v6.port.desc_prop.ethernet.current.pause",
FT_BOOLEAN, 32, NULL, OFPPF_PAUSE,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_pause_asym,
{ "OFPPF_PAUSE_ASYM", "openflow_v6.port.desc_prop.ethernet.current.pause_asym",
FT_BOOLEAN, 32, NULL, OFPPF_PAUSE_ASYM,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_current_reserved,
{ "Reserved", "openflow_v6.port.desc_prop.ethernet.current.reserved",
FT_UINT32, BASE_HEX, NULL, OFPPF_RESERVED,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised,
{ "Advertised", "openflow_v6.port.desc_prop.ethernet.advertised",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_10mb_hd,
{ "OFPPF_10MB_HD", "openflow_v6.port.desc_prop.ethernet.advertised.10mb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_10MB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_10mb_fd,
{ "OFPPF_10MB_FD", "openflow_v6.port.desc_prop.ethernet.advertised.10mb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_10MB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_100mb_hd,
{ "OFPPF_100MB_HD", "openflow_v6.port.desc_prop.ethernet.advertised.100mb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_100MB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_100mb_fd,
{ "OFPPF_100MB_FD", "openflow_v6.port.desc_prop.ethernet.advertised.100mb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_100MB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_1gb_hd,
{ "OFPPF_1GB_HD", "openflow_v6.port.desc_prop.ethernet.advertised.1gb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_1GB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_1gb_fd,
{ "OFPPF_1GB_FD", "openflow_v6.port.desc_prop.ethernet.advertised.1gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_1GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_10gb_fd,
{ "OFPPF_10_GB_FD", "openflow_v6.port.desc_prop.ethernet.advertised.10gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_10GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_40gb_fd,
{ "OFPPF_40GB_FD", "openflow_v6.port.desc_prop.ethernet.advertised.40gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_40GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_100gb_fd,
{ "OFPPF_100GB_FD", "openflow_v6.port.desc_prop.ethernet.advertised.100gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_100GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_1tb_fd,
{ "OFPPF_1TB_FD", "openflow_v6.port.desc_prop.ethernet.advertised.1tb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_1TB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_other,
{ "OFPPF_OTHER", "openflow_v6.port.desc_prop.ethernet.advertised.other",
FT_BOOLEAN, 32, NULL, OFPPF_OTHER,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_copper,
{ "OFPPF_COPPER", "openflow_v6.port.desc_prop.ethernet.advertised.copper",
FT_BOOLEAN, 32, NULL, OFPPF_COPPER,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_fiber,
{ "OFPPF_FIBER", "openflow_v6.port.desc_prop.ethernet.advertised.fiber",
FT_BOOLEAN, 32, NULL, OFPPF_FIBER,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_autoneg,
{ "OFPPF_AUTONEG", "openflow_v6.port.desc_prop.ethernet.advertised.autoneg",
FT_BOOLEAN, 32, NULL, OFPPF_AUTONEG,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_pause,
{ "OFPPF_PAUSE", "openflow_v6.port.desc_prop.ethernet.advertised.pause",
FT_BOOLEAN, 32, NULL, OFPPF_PAUSE,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_pause_asym,
{ "OFPPF_PAUSE_ASYM", "openflow_v6.port.desc_prop.ethernet.advertised.pause_asym",
FT_BOOLEAN, 32, NULL, OFPPF_PAUSE_ASYM,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_advertised_reserved,
{ "Reserved", "openflow_v6.port.desc_prop.ethernet.advertised.reserved",
FT_UINT32, BASE_HEX, NULL, OFPPF_RESERVED,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported,
{ "Supported", "openflow_v6.port.desc_prop.ethernet.supported",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_10mb_hd,
{ "OFPPF_10MB_HD", "openflow_v6.port.desc_prop.ethernet.supported.10mb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_10MB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_10mb_fd,
{ "OFPPF_10MB_FD", "openflow_v6.port.desc_prop.ethernet.supported.10mb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_10MB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_100mb_hd,
{ "OFPPF_100MB_HD", "openflow_v6.port.desc_prop.ethernet.supported.100mb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_100MB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_100mb_fd,
{ "OFPPF_100MB_FD", "openflow_v6.port.desc_prop.ethernet.supported.100mb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_100MB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_1gb_hd,
{ "OFPPF_1GB_HD", "openflow_v6.port.desc_prop.ethernet.supported.1gb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_1GB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_1gb_fd,
{ "OFPPF_1GB_FD", "openflow_v6.port.desc_prop.ethernet.supported.1gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_1GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_10gb_fd,
{ "OFPPF_10_GB_FD", "openflow_v6.port.desc_prop.ethernet.supported.10gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_10GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_40gb_fd,
{ "OFPPF_40GB_FD", "openflow_v6.port.desc_prop.ethernet.supported.40gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_40GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_100gb_fd,
{ "OFPPF_100GB_FD", "openflow_v6.port.desc_prop.ethernet.supported.100gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_100GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_1tb_fd,
{ "OFPPF_1TB_FD", "openflow_v6.port.desc_prop.ethernet.supported.1tb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_1TB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_other,
{ "OFPPF_OTHER", "openflow_v6.port.desc_prop.ethernet.supported.other",
FT_BOOLEAN, 32, NULL, OFPPF_OTHER,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_copper,
{ "OFPPF_COPPER", "openflow_v6.port.desc_prop.ethernet.supported.copper",
FT_BOOLEAN, 32, NULL, OFPPF_COPPER,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_fiber,
{ "OFPPF_FIBER", "openflow_v6.port.desc_prop.ethernet.supported.fiber",
FT_BOOLEAN, 32, NULL, OFPPF_FIBER,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_autoneg,
{ "OFPPF_AUTONEG", "openflow_v6.port.desc_prop.ethernet.supported.autoneg",
FT_BOOLEAN, 32, NULL, OFPPF_AUTONEG,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_pause,
{ "OFPPF_PAUSE", "openflow_v6.port.desc_prop.ethernet.supported.pause",
FT_BOOLEAN, 32, NULL, OFPPF_PAUSE,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_pause_asym,
{ "OFPPF_PAUSE_ASYM", "openflow_v6.port.desc_prop.ethernet.supported.pause_asym",
FT_BOOLEAN, 32, NULL, OFPPF_PAUSE_ASYM,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_supported_reserved,
{ "Reserved", "openflow_v6.port.desc_prop.ethernet.supported.reserved",
FT_UINT32, BASE_HEX, NULL, OFPPF_RESERVED,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer,
{ "Peer", "openflow_v6.port.desc_prop.ethernet.peer",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_10mb_hd,
{ "OFPPF_10MB_HD", "openflow_v6.port.desc_prop.ethernet.peer.10mb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_10MB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_10mb_fd,
{ "OFPPF_10MB_FD", "openflow_v6.port.desc_prop.ethernet.peer.10mb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_10MB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_100mb_hd,
{ "OFPPF_100MB_HD", "openflow_v6.port.desc_prop.ethernet.peer.100mb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_100MB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_100mb_fd,
{ "OFPPF_100MB_FD", "openflow_v6.port.desc_prop.ethernet.peer.100mb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_100MB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_1gb_hd,
{ "OFPPF_1GB_HD", "openflow_v6.port.desc_prop.ethernet.peer.1gb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_1GB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_1gb_fd,
{ "OFPPF_1GB_FD", "openflow_v6.port.desc_prop.ethernet.peer.1gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_1GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_10gb_fd,
{ "OFPPF_10_GB_FD", "openflow_v6.port.desc_prop.ethernet.peer.10gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_10GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_40gb_fd,
{ "OFPPF_40GB_FD", "openflow_v6.port.desc_prop.ethernet.peer.40gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_40GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_100gb_fd,
{ "OFPPF_100GB_FD", "openflow_v6.port.desc_prop.ethernet.peer.100gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_100GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_1tb_fd,
{ "OFPPF_1TB_FD", "openflow_v6.port.desc_prop.ethernet.peer.1tb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_1TB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_other,
{ "OFPPF_OTHER", "openflow_v6.port.desc_prop.ethernet.peer.other",
FT_BOOLEAN, 32, NULL, OFPPF_OTHER,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_copper,
{ "OFPPF_COPPER", "openflow_v6.port.desc_prop.ethernet.peer.copper",
FT_BOOLEAN, 32, NULL, OFPPF_COPPER,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_fiber,
{ "OFPPF_FIBER", "openflow_v6.port.desc_prop.ethernet.peer.fiber",
FT_BOOLEAN, 32, NULL, OFPPF_FIBER,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_autoneg,
{ "OFPPF_AUTONEG", "openflow_v6.port.desc_prop.ethernet.peer.autoneg",
FT_BOOLEAN, 32, NULL, OFPPF_AUTONEG,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_pause,
{ "OFPPF_PAUSE", "openflow_v6.port.desc_prop.ethernet.peer.pause",
FT_BOOLEAN, 32, NULL, OFPPF_PAUSE,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_pause_asym,
{ "OFPPF_PAUSE_ASYM", "openflow_v6.port.desc_prop.ethernet.peer.pause_asym",
FT_BOOLEAN, 32, NULL, OFPPF_PAUSE_ASYM,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_peer_reserved,
{ "Reserved", "openflow_v6.port.desc_prop.ethernet.peer.reserved",
FT_UINT32, BASE_HEX, NULL, OFPPF_RESERVED,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_curr_speed,
{ "Curr speed", "openflow_v6.port.desc_prop.ethernet.curr_speed",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_ethernet_max_speed,
{ "Max speed", "openflow_v6.port.desc_prop.ethernet.max_speed",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_pad,
{ "Pad", "openflow_v6.port.desc_prop.optical.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_supported,
{ "Supported", "openflow_v6.port.desc_prop.optical.supported",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_supported_rx_tune,
{ "OFPOPF_RX_TUNE", "openflow_v6.port.desc_prop.optical.supported.rx_tune",
FT_UINT32, BASE_HEX, NULL, OFPOPF_RX_TUNE,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_supported_tx_tune,
{ "OFPOPF_TX_TUNE", "openflow_v6.port.desc_prop.optical.supported.tx_tune",
FT_UINT32, BASE_HEX, NULL, OFPOPF_TX_TUNE,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_supported_tx_pwr,
{ "OFPOPF_TX_PWR", "openflow_v6.port.desc_prop.optical.supported.tx_pwr",
FT_UINT32, BASE_HEX, NULL, OFPOPF_TX_PWR,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_supported_use_freq,
{ "OFPOPF_USE_FREQ", "openflow_v6.port.desc_prop.optical.supported.use_freq",
FT_UINT32, BASE_HEX, NULL, OFPOPF_USE_FREQ,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_tx_min_freq_lmda,
{ "Tx. Min. Freq. Lambda", "openflow_v6.port.desc_prop.optical.tx_min_freq_lmda",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_tx_max_freq_lmda,
{ "Tx. Max. Freq. Lambda", "openflow_v6.port.desc_prop.optical.tx_max_freq_lmda",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_tx_grid_freq_lmda,
{ "Tx. Grid Freq. Lambda", "openflow_v6.port.desc_prop.optical.tx_grid_freq_lmda",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_rx_min_freq_lmda,
{ "Rx. Min. Freq. Lambda", "openflow_v6.port.desc_prop.optical.rx_min_freq_lmda",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_rx_max_freq_lmda,
{ "Rx. Max. Freq Lambda", "openflow_v6.port.desc_prop.optical.rx_max_freq_lmda",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_rx_grid_freq_lmda,
{ "Rx. Grid Freq. Lambda", "openflow_v6.port.desc_prop.optical.rx_grid_freq_lambda",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_tx_pwr_min,
{ "Tx. Power Min.", "openflow_v6.port.desc_prop.optical.tx_pwr_min",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_optical_tx_pwr_max,
{ "Tx. Power Max.", "openflow_v6.port.desc_prop.optical.tx_pwr_max",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_experimenter_experimenter,
{ "Experimenter", "openflow_v6.port_desc_prop.experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_experimenter_exp_type,
{ "Exp. type", "openflow_v6.port_desc_prop.experimenter.exp_type",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_type,
{ "Type", "openflow_v6.port.stats_prop.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_port_stats_prop_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_length,
{ "Length", "openflow_v6.port.stats_prop.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_ethernet_pad,
{ "Pad", "openflow_v6.port.stats_prop.ethernet.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_ethernet_rx_frame_err,
{ "Rx. Frame Error", "openflow_v6.port.stats_prop.ethernet.rx_frame_err",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_ethernet_rx_over_err,
{ "Rx. Over Error", "openflow_v6.port.stats_prop.ethernet.rx_over_err",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_ethernet_rx_crc_err,
{ "Rx. CRC Error", "openflow_v6.port.stats_prop.ethernet.rx_crc_err",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_ethernet_collisions,
{ "Collisions", "openflow_v6.port.stats_prop.ethernet.collisions",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_pad,
{ "Pad", "openflow_v6.port.stats_prop.optical.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_flags,
{ "Flags", "openflow_v6.port.desc_prop.optical.supported",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_flags_rx_tune,
{ "OFPOSF_RX_TUNE", "openflow_v6.port.stats_prop.optical.flags.rx_tune",
FT_UINT32, BASE_HEX, NULL, OFPOSF_RX_TUNE,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_flags_tx_tune,
{ "OFPOSF_TX_TUNE", "openflow_v6.port.stats_prop.optical.flags.tx_tune",
FT_UINT32, BASE_HEX, NULL, OFPOSF_TX_TUNE,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_flags_tx_pwr,
{ "OFPOSF_TX_PWR", "openflow_v6.port.stats_prop.optical.flags.tx_pwr",
FT_UINT32, BASE_HEX, NULL, OFPOSF_TX_PWR,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_flags_rx_pwr,
{ "OFPOSF_RX_PWR", "openflow_v6.port.stats_prop.optical.flags.rx_pwr",
FT_UINT32, BASE_HEX, NULL, OFPOSF_RX_PWR,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_flags_tx_bias,
{ "OFPOSF_TX_BIAS", "openflow_v6.port.stats_prop.optical.flags.tx_bias",
FT_UINT32, BASE_HEX, NULL, OFPOSF_TX_BIAS,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_flags_tx_temp,
{ "OFPOSF_TX_TEMP", "openflow_v6.port.stats_prop.optical.flags.tx_temp",
FT_UINT32, BASE_HEX, NULL, OFPOSF_TX_TEMP,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_tx_freq_lmda,
{ "Tx. Freq. Lambda", "openflow_v6.port.stats_prop.optical.tx_freq_lmda",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_tx_offset,
{ "Tx. Offset", "openflow_v6.port.stats_prop.optical.tx_offset",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_tx_grid_span,
{ "Tx. Grid Spacing", "openflow_v6.port.stats_prop.optical.tx_grid_span",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_rx_freq_lmda,
{ "Rx. Freq. Lambda", "openflow_v6.port.stats_prop.optical.rx_freq_lmda",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_rx_offset,
{ "Rx. Offset", "openflow_v6.port.stats_prop.optical.rx_offset",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_rx_grid_span,
{ "Rx. Grid Spacing", "openflow_v6.port.stats_prop.optical.rx_grid_span",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_tx_pwr,
{ "Tx. Power", "openflow_v6.port.stats_prop.optical.tx_pwr",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_rx_pwr,
{ "Rx. Power", "openflow_v6.port.stats_prop.optical.rx_pwr",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_bias_current,
{ "Tx. Bias Current", "openflow_v6.port.stats_prop.optical.bias_current",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_optical_temperature,
{ "Tx. Laser Temperature", "openflow_v6.port.stats_prop.optical.temperature",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_experimenter_experimenter,
{ "Experimenter", "openflow_v6.port_stats_prop.experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_prop_experimenter_exp_type,
{ "Exp. type", "openflow_v6.port_stats_prop.experimenter.exp_type",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_port_no,
{ "Port no", "openflow_v6.port.port_no",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_pad,
{ "Pad", "openflow_v6.port.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_length,
{ "Length", "openflow_v6.port.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_hw_addr,
{ "Hw addr", "openflow_v6.port.hw_addr",
FT_ETHER, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_pad2,
{ "Pad2", "openflow_v6.port.pad2",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_name,
{ "Name", "openflow_v6.port.name",
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_config,
{ "Config", "openflow_v6.port.config",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_config_port_down,
{ "OFPPC_PORT_DOWN", "openflow_v6.port.config.port_down",
FT_BOOLEAN, 32, NULL, OFPPC_PORT_DOWN,
NULL, HFILL }
},
{ &hf_openflow_v6_port_config_no_recv,
{ "OFPPC_NO_RECV", "openflow_v6.port.config.no_recv",
FT_BOOLEAN, 32, NULL, OFPPC_NO_RECV,
NULL, HFILL }
},
{ &hf_openflow_v6_port_config_no_fwd,
{ "OFPPC_NO_FWD", "openflow_v6.port.config.no_fwd",
FT_BOOLEAN, 32, NULL, OFPPC_NO_FWD,
NULL, HFILL }
},
{ &hf_openflow_v6_port_config_no_packet_in,
{ "OFPPC_NO_PACKET_IN", "openflow_v6.port.config.no_packet_in",
FT_BOOLEAN, 32, NULL, OFPPC_NO_PACKET_IN,
NULL, HFILL }
},
{ &hf_openflow_v6_port_state,
{ "State", "openflow_v6.port.sate",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_state_link_down,
{ "OFPPS_LINK_DOWN", "openflow_v6.port.state.link_down",
FT_BOOLEAN, 32, NULL, OFPPS_LINK_DOWN,
NULL, HFILL }
},
{ &hf_openflow_v6_port_state_blocked,
{ "OFPPS_BLOCKED", "openflow_v6.port.state.blocked",
FT_BOOLEAN, 32, NULL, OFPPS_BLOCKED,
NULL, HFILL }
},
{ &hf_openflow_v6_port_state_live,
{ "OFPPS_LIVE", "openflow_v6.port.state.live",
FT_BOOLEAN, 32, NULL, OFPPS_LIVE,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_band_type,
{ "Type", "openflow_v6.meter_band.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_meter_band_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_band_len,
{ "Length", "openflow_v6.meter_band.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_band_rate,
{ "Rate", "openflow_v6.meter_band.rate",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_band_burst_size,
{ "Burst size", "openflow_v6.meter_band.burst_size",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_band_drop_pad,
{ "Pad", "openflow_v6.meter_band.drop.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_band_dscp_remark_prec_level,
{ "Precedence level", "openflow_v6.meter_band.dscp_remark.prec_level",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_band_dscp_remark_pad,
{ "Pad", "openflow_v6.meter_band.dscp_remark.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_band_experimenter_experimenter,
{ "Experimenter", "openflow_v6.meter_band.experimenter.experimenter",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_hello_element_type,
{ "Type", "openflow_v6.hello_element.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_hello_element_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_hello_element_length,
{ "Length", "openflow_v6.hello_element.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_hello_element_version_bitmap,
{ "Bitmap", "openflow_v6.hello_element.version.bitmap",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_hello_element_pad,
{ "Pad", "openflow_v6.hello_element.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_type,
{ "Type", "openflow_v6.error.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_hello_failed_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_hello_failed_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_bad_request_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_bad_request_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_bad_action_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_bad_action_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_bad_instruction_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_bad_instruction_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_bad_match_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_bad_match_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_flow_mod_failed_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_flow_mod_failed_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_group_mod_failed_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_group_mod_failed_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_port_mod_failed_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_port_mod_failed_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_table_mod_failed_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_table_mod_failed_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_queue_op_failed_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_queue_op_failed_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_switch_config_failed_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_switch_config_failed_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_role_request_failed_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_role_request_failed_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_meter_mod_failed_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_meter_mod_failed_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_table_features_failed_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_table_features_failed_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_bad_property_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_bad_property_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_async_config_failed_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_async_config_failed_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_flow_monitor_failed_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_flow_monitor_failed_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_bundle_failed_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, VALS(openflow_v6_error_bundle_failed_code_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_code,
{ "Code", "openflow_v6.error.code",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_data_text,
{ "Data", "openflow_v6.error.data",
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_echo_data,
{ "Data", "openflow_v6.echo.data",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_data_body,
{ "Body", "openflow_v6.error.data.body",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_error_experimenter,
{ "Experimenter", "openflow_v6.error.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_experimenter_experimenter,
{ "Experimenter", "openflow_v6.experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_experimenter_exp_type,
{ "Experimenter type", "openflow_v6.experimenter.exp_type",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_datapath_id,
{ "datapath_id", "openflow_v6.switch_features.datapath_id",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_n_buffers,
{ "n_buffers", "openflow_v6.switch_features.n_buffers",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_n_tables,
{ "n_tables", "openflow_v6.switch_features.n_tables",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_auxiliary_id,
{ "auxiliary_id", "openflow_v6.switch_features.auxiliary_id",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_pad,
{ "Pad", "openflow_v6.switch_features.pad",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_capabilities,
{ "capabilities", "openflow_v6.switch_features.capabilities",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_capabilities_flow_stats,
{ "OFPC_FLOW_STATS", "openflow_v6.switch_features.capabilities.flow_stats",
FT_BOOLEAN, 32, NULL, OFPC_FLOW_STATS,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_capabilities_table_stats,
{ "OFPC_TABLE_STATS", "openflow_v6.switch_features.capabilities.table_stats",
FT_BOOLEAN, 32, NULL, OFPC_TABLE_STATS,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_capabilities_port_stats,
{ "OFPC_PORT_STATS", "openflow_v6.switch_features.capabilities.port_stats",
FT_BOOLEAN, 32, NULL, OFPC_PORT_STATS,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_capabilities_group_stats,
{ "OFPC_GROUP_STATS", "openflow_v6.switch_features.capabilities.group_stats",
FT_BOOLEAN, 32, NULL, OFPC_GROUP_STATS,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_capabilities_ip_reasm,
{ "OFPC_IP_REASM", "openflow_v6.switch_features.capabilities.ip_reasm",
FT_BOOLEAN, 32, NULL, OFPC_IP_REASM,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_capabilities_queue_stats,
{ "OFPC_QUEUE_STATS", "openflow_v6.switch_features.capabilities.queue_stats",
FT_BOOLEAN, 32, NULL, OFPC_QUEUE_STATS,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_capabilities_port_blocked,
{ "OFPC_PORT_BLOCKED", "openflow_v6.switch_features.capabilities.port_blocked",
FT_BOOLEAN, 32, NULL, OFPC_PORT_BLOCKED,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_capabilities_bundles,
{ "OFPC_BUNDLES", "openflow_v6.switch_features.capabilities.bundles",
FT_BOOLEAN, 32, NULL, OFPC_BUNDLES,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_capabilities_flow_monitoring,
{ "OFPC_FLOW_MONITORING", "openflow_v6.switch_features.capabilities.flow_monitoring",
FT_BOOLEAN, 32, NULL, OFPC_FLOW_MONITORING,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_features_reserved,
{ "Reserved", "openflow_v6.switch_features_reserved",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_config_flags,
{ "Flags", "openflow_v6.switch_config.flags",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_config_flags_fragments,
{ "IP Fragments", "openflow_v6.switch_config.flags.fragments",
FT_UINT16, BASE_DEC, VALS(openflow_v6_switch_config_fragments_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_config_miss_send_len,
{ "Miss send length", "openflow_v6.switch_config.miss_send_len",
FT_UINT16, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_controller_max_len_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_packet_in_buffer_id,
{ "Buffer ID", "openflow_v6.packet_in.buffer_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_buffer_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_packet_in_total_len,
{ "Total length", "openflow_v6.packet_in.total_len",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_packet_in_reason,
{ "Reason", "openflow_v6.packet_in.reason",
FT_UINT8, BASE_DEC, VALS(openflow_v6_packet_in_reason_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_packet_in_table_id,
{ "Table ID", "openflow_v6.packet_in.table_id",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_packet_in_cookie,
{ "Cookie", "openflow_v6.packet_in.cookie",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_packet_in_pad,
{ "Pad", "openflow_v6.packet_in.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_removed_cookie,
{ "Cookie", "openflow_v6.flow_removed.cookie",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_removed_priority,
{ "Priority", "openflow_v6.flow_removed.priority",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_removed_reason,
{ "Reason", "openflow_v6.flow_removed.reason",
FT_UINT8, BASE_DEC, VALS(openflow_v6_flow_removed_reason_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_removed_table_id,
{ "Table ID", "openflow_v6.flow_removed.table_id",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_removed_idle_timeout,
{ "Idle timeout", "openflow_v6.flow_removed.idle_timeout",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_removed_hard_timeout,
{ "Hard timeout", "openflow_v6.flow_removed.hard_timeout",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_status_reason,
{ "Reason", "openflow_v6.port_status.reason",
FT_UINT8, BASE_DEC, VALS(openflow_v6_port_status_reason_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_status_pad,
{ "Pad", "openflow_v6.port_status.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_packet_out_buffer_id,
{ "Buffer ID", "openflow_v6.packet_out.buffer_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_buffer_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_packet_out_acts_len,
{ "Actions length", "openflow_v6.packet_out.acts_len",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_packet_out_pad,
{ "Pad", "openflow_v6.packet_out.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_cookie,
{ "Cookie", "openflow_v6.flowmod.cookie",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_cookie_mask,
{ "Cookie mask", "openflow_v6.flowmod.cookie_mask",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_table_id,
{ "Table ID", "openflow_v6.flowmod.table_id",
FT_UINT8, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_table_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_command,
{ "Command", "openflow_v6.flowmod.command",
FT_UINT8, BASE_DEC, VALS(openflow_v6_flowmod_command_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_idle_timeout,
{ "Idle timeout", "openflow_v6.flowmod.idle_timeout",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_hard_timeout,
{ "Hard timeout", "openflow_v6.flowmod.hard_timeout",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_priority,
{ "Priority", "openflow_v6.flowmod.priority",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_buffer_id,
{ "Buffer ID", "openflow_v6.flowmod.buffer_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_buffer_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_out_port,
{ "Out port", "openflow_v6.flowmod.out_port",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_out_group,
{ "Out group", "openflow_v6.flowmod.out_group",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_group_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_flags,
{ "Flags", "openflow_v6.flowmod.flags",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_flags_send_flow_rem,
{ "Send flow removed", "openflow_v6.flowmod.flags.send_flow_rem",
FT_BOOLEAN, 16, NULL, OFPFF_SEND_FLOW_REM,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_flags_check_overlap,
{ "Check overlap", "openflow_v6.flowmod.flags.check_overlap",
FT_BOOLEAN, 16, NULL, OFPFF_CHECK_OVERLAP,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_flags_reset_counts,
{ "Reset counts", "openflow_v6.flowmod.flags.reset_counts",
FT_BOOLEAN, 16, NULL, OFPFF_RESET_COUNTS,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_flags_no_packet_counts,
{ "Don't count packets", "openflow_v6.flowmod.flags.no_packet_counts",
FT_BOOLEAN, 16, NULL, OFPFF_NO_PKT_COUNTS,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_flags_no_byte_counts,
{ "Don't count bytes", "openflow_v6.flowmod.flags.no_byte_counts",
FT_BOOLEAN, 16, NULL, OFPFF_NO_BYT_COUNTS,
NULL, HFILL }
},
{ &hf_openflow_v6_flowmod_importance,
{ "Importance", "openflow_v6.flowmod.importance",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bucket_length,
{ "Length", "openflow_v6.bucket.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bucket_weight,
{ "Weight", "openflow_v6.bucket.weight",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bucket_watch_port,
{ "Watch port", "openflow_v6.bucket.watch_port",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bucket_watch_group,
{ "Watch group", "openflow_v6.bucket.watch_group",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_group_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bucket_pad,
{ "Pad", "openflow_v6.bucket.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_groupmod_command,
{ "Command", "openflow_v6.groupmod.command",
FT_UINT16, BASE_DEC, VALS(openflow_v6_groupmod_command_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_groupmod_type,
{ "Type", "openflow_v6.groupmod.type",
FT_UINT8, BASE_DEC, VALS(openflow_v6_group_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_groupmod_pad,
{ "Pad", "openflow_v6.groupmod.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_groupmod_group_id,
{ "Group ID", "openflow_v6.groupmod.group_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_group_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_groupmod_bucket_array_len,
{ "Bucket Array Len", "openflow_v6.groupmod.bucket_array_len",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_groupmod_command_bucket_id,
{ "Command Bucket id", "openflow_v6.groupmod.command_bucket_id",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_type,
{ "Type", "openflow_v6.portmod.prop.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_portmod_prop_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_length,
{ "Length", "openflow_v6.portmod.prop.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise,
{ "Advertise", "openflow_v6.portmod.prop_ethernet.advertise",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_10mb_hd,
{ "OFPPF_10MB_HD", "openflow_v6.portmod.prop_ethernet.advertise.10mb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_10MB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_10mb_fd,
{ "OFPPF_10MB_FD", "openflow_v6.portmod.prop_ethernet.advertise.10mb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_10MB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_100mb_hd,
{ "OFPPF_100MB_HD", "openflow_v6.portmod.prop_ethernet.advertise.100mb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_100MB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_100mb_fd,
{ "OFPPF_100MB_FD", "openflow_v6.portmod.prop_ethernet.advertise.100mb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_100MB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_1gb_hd,
{ "OFPPF_1GB_HD", "openflow_v6.portmod.prop_ethernet.advertise.1gb_hd",
FT_BOOLEAN, 32, NULL, OFPPF_1GB_HD,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_1gb_fd,
{ "OFPPF_1GB_FD", "openflow_v6.portmod.prop_ethernet.advertise.1gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_1GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_10gb_fd,
{ "OFPPF_10_GB_FD", "openflow_v6.portmod.prop_ethernet.advertise.10gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_10GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_40gb_fd,
{ "OFPPF_40GB_FD", "openflow_v6.portmod.prop_ethernet.advertise.40gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_40GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_100gb_fd,
{ "OFPPF_100_GB_FD", "openflow_v6.portmod.prop_ethernet.advertise.100_gb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_100GB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_1tb_fd,
{ "OFPPF_1TB_FD", "openflow_v6.portmod.prop_ethernet.advertise.1tb_fd",
FT_BOOLEAN, 32, NULL, OFPPF_1TB_FD,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_other,
{ "OFPPF_OTHER", "openflow_v6.portmod.prop_ethernet.advertise.other",
FT_BOOLEAN, 32, NULL, OFPPF_OTHER,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_copper,
{ "OFPPF_COPPER", "openflow_v6.portmod.prop_ethernet.advertise.copper",
FT_BOOLEAN, 32, NULL, OFPPF_COPPER,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_fiber,
{ "OFPPF_FIBER", "openflow_v6.portmod.prop_ethernet.advertise.fiber",
FT_BOOLEAN, 32, NULL, OFPPF_FIBER,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_autoneg,
{ "OFPPF_AUTONEG", "openflow_v6.portmod.prop_ethernet.advertise.autoneg",
FT_BOOLEAN, 32, NULL, OFPPF_AUTONEG,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_pause,
{ "OFPPF_PAUSE", "openflow_v6.portmod.prop_ethernet.advertise.pause",
FT_BOOLEAN, 32, NULL, OFPPF_PAUSE,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_ethernet_advertise_pause_asym,
{ "OFPPF_PAUSE_ASYM", "openflow_v6.portmod.prop_ethernet.advertise.pause_asym",
FT_BOOLEAN, 32, NULL, OFPPF_PAUSE_ASYM,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_optical_configure,
{ "Configure", "openflow_v6.portmod.prop.optical.configure",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_optical_configure_rx_tune,
{ "OFPOPF_RX_TUNE", "openflow_v6.portmod.prop.optical.configure.rx_tune",
FT_UINT32, BASE_HEX, NULL, OFPOPF_RX_TUNE,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_optical_configure_tx_tune,
{ "OFPOPF_TX_TUNE", "openflow_v6.portmod.prop.optical.configure.tx_tune",
FT_UINT32, BASE_HEX, NULL, OFPOPF_TX_TUNE,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_optical_configure_tx_pwr,
{ "OFPOPF_TX_PWR", "openflow_v6.portmod.prop.optical.configure.tx_pwr",
FT_UINT32, BASE_HEX, NULL, OFPOPF_TX_PWR,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_optical_configure_use_freq,
{ "OFPOPF_USE_FREQ", "openflow_v6.portmod.prop.optical.configure.use_freq",
FT_UINT32, BASE_HEX, NULL, OFPOPF_USE_FREQ,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_optical_freq_lmda,
{ "Freq. lambda", "openflow_v6.portmod.prop.optical.freq_lmda",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_optical_fl_offset,
{ "Freq. offset", "openflow_v6.portmod.prop.optical.fl_offset",
FT_INT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_optical_grid_span,
{ "Grid span", "openflow_v6.portmod.prop.optical.grid_span",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_optical_tx_pwr,
{ "Tx power", "openflow_v6.portmod.prop.optical.tx_pwr",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_experimenter_experimenter,
{ "Experimenter", "openflow_v6.portmod.prop.experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_prop_experimenter_exp_type,
{ "Exp. type", "openflow_v6.portmod.prop.experimenter.exp_type",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_port_no,
{ "Port no", "openflow_v6.portmod.port_no",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_pad,
{ "Pad", "openflow_v6.portmod.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_hw_addr,
{ "Hw addr", "openflow_v6.portmod.hw_addr",
FT_ETHER, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_pad2,
{ "Pad", "openflow_v6.portmod.pad2",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_config,
{ "Config", "openflow_v6.portmod.config",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_config_port_down,
{ "OFPPC_PORT_DOWN", "openflow_v6.portmod.config.port_down",
FT_BOOLEAN, 32, NULL, OFPPC_PORT_DOWN,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_config_no_recv,
{ "OFPPC_NO_RECV", "openflow_v6.portmod.config.no_recv",
FT_BOOLEAN, 32, NULL, OFPPC_NO_RECV,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_config_no_fwd,
{ "OFPPC_NO_FWD", "openflow_v6.portmod.config.no_fwd",
FT_BOOLEAN, 32, NULL, OFPPC_NO_FWD,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_config_no_packet_in,
{ "OFPPC_NO_PACKET_IN", "openflow_v6.portmod.config.no_packet_in",
FT_BOOLEAN, 32, NULL, OFPPC_NO_PACKET_IN,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_mask,
{ "Mask", "openflow_v6.portmod.mask",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_mask_port_down,
{ "OFPPC_PORT_DOWN", "openflow_v6.portmod.mask.port_down",
FT_BOOLEAN, 32, NULL, OFPPC_PORT_DOWN,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_mask_no_recv,
{ "OFPPC_NO_RECV", "openflow_v6.portmod.mask.no_recv",
FT_BOOLEAN, 32, NULL, OFPPC_NO_RECV,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_mask_no_fwd,
{ "OFPPC_NO_FWD", "openflow_v6.portmod.mask.no_fwd",
FT_BOOLEAN, 32, NULL, OFPPC_NO_FWD,
NULL, HFILL }
},
{ &hf_openflow_v6_portmod_mask_no_packet_in,
{ "OFPPC_NO_PACKET_IN", "openflow_v6.portmod.mask.no_packet_in",
FT_BOOLEAN, 32, NULL, OFPPC_NO_PACKET_IN,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_table_id,
{ "Table ID", "openflow_v6.tablemod.table_id",
FT_UINT8, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_table_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_pad,
{ "Pad", "openflow_v6.tablemod.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_config,
{ "Config", "openflow_v6.tablemod.config",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_config_eviction,
{ "OFPTC_EVICTION", "openflow_v6.tablemod.config.eviction",
FT_BOOLEAN, 32, NULL, OFPTC_EVICTION,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_config_vacancy_events,
{ "OFPTC_VACANCY_EVENTS", "openflow_v6.tablemod.config.vacancy_events",
FT_BOOLEAN, 32, NULL, OFPTC_VACANCY_EVENTS,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_prop_type,
{ "Type", "openflow_v6.tablemod_prop.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_tablemod_prop_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_prop_length,
{ "Length", "openflow_v6.tablemod_prop.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_prop_eviction_flags,
{ "Flags", "openflow_v6.tablemod.prop.eviction.flags",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_prop_eviction_flags_other,
{ "OFPTMPEF_OTHER", "openflow_v6.tablemod.prop.eviction.flags.other",
FT_BOOLEAN, 32, NULL, OFPTMPEF_OTHER,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_prop_eviction_flags_importance,
{ "OFPTMPEF_IMPORTANCE", "openflow_v6.tablemod.prop.eviction.flags.importance",
FT_BOOLEAN, 32, NULL, OFPTMPEF_IMPORTANCE,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_prop_eviction_flags_lifetime,
{ "OFPTMPEF_LIFETIME", "openflow_v6.tablemod.prop.eviction.flags.lifetime",
FT_BOOLEAN, 32, NULL, OFPTMPEF_LIFETIME,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_prop_vacancy_vacancy_down,
{ "Vacancy down", "openflow_v6.tablemod.prop.vacancy.vacancy_down",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_prop_vacancy_vacancy_up,
{ "Vacancy up", "openflow_v6.tablemod.prop.vacancy.vacancy_up",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_prop_vacancy_vacancy,
{ "Vacancy", "openflow_v6.tablemod.prop.vacancy.vacancy",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_prop_vacancy_pad,
{ "Pad", "openflow_v6.tablemod.prop.vacancy.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_prop_experimenter_experimenter,
{ "Experimenter", "openflow_v6.tablemod.prop.experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_tablemod_prop_experimenter_exp_type,
{ "Exp. type", "openflow_v6.tablemod.prop.experimenter.exp_type",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_request_table_id,
{ "Table ID", "openflow_v6.flow_stats_request.table_id",
FT_UINT8, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_table_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_request_pad,
{ "Pad", "openflow_v6.flow_stats_request.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_request_out_port,
{ "Out port", "openflow_v6.flow_stats_request.out_port",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_request_out_group,
{ "Out group", "openflow_v6.flow_stats_request.out_group",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_group_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_request_pad2,
{ "Pad", "openflow_v6.flow_stats_request.pad2",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_request_cookie,
{ "Cookie", "openflow_v6.flow_stats_request.cookie",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_request_cookie_mask,
{ "Cookie mask", "openflow_v6.flow_stats_request.cookie_mask",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_aggregate_stats_request_table_id,
{ "Table ID", "openflow_v6.aggregate_stats_request.table_id",
FT_UINT8, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_table_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_aggregate_stats_request_pad,
{ "Pad", "openflow_v6.aggregate_stats_request.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_aggregate_stats_request_out_port,
{ "Out port", "openflow_v6.aggregate_stats_request.out_port",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_aggregate_stats_request_out_group,
{ "Out group", "openflow_v6.aggregate_stats_request.out_group",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_group_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_aggregate_stats_request_pad2,
{ "Pad", "openflow_v6.aggregate_stats_request.pad2",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_aggregate_stats_request_cookie,
{ "Cookie", "openflow_v6.aggregate_stats_request.cookie",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_aggregate_stats_request_cookie_mask,
{ "Cookie mask", "openflow_v6.aggregate_stats_request.cookie_mask",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_feature_prop_type,
{ "Type", "openflow_v6.table_feature_prop.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_table_feature_prop_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_feature_prop_length,
{ "Length", "openflow_v6.table_feature_prop.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_feature_prop_next_tables_next_table_id,
{ "Next table ID", "openflow_v6.table_feature_prop.next_tables.next_table_id",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_feature_prop_table_sync_from_table_id,
{ "Sync table ID", "openflow_v6.table_feature_prop.table_sync_from.table_id",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_feature_prop_experimenter_experimenter,
{ "Experimenter", "openflow_v6.table_feature_prop.experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_feature_prop_experimenter_exp_type,
{ "Experimenter type", "openflow_v6.table_feature_prop.experimenter.exp_type",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_feature_prop_pad,
{ "Pad", "openflow_v6.table_feature_prop.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_features_length,
{ "Length", "openflow_v6.table_features.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_features_table_id,
{ "Table ID", "openflow_v6.table_features.table_id",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_features_pad,
{ "Pad", "openflow_v6.table_features.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_features_name,
{ "Name", "openflow_v6.table_features.name",
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_features_metadata_match,
{ "Metadata match", "openflow_v6.table_features.metadata_match",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_features_metadata_write,
{ "Metadata write", "openflow_v6.table_features.metadata_write",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_features_capabilities,
{ "Capabilities", "openflow_v6.table_features.capabilities",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_features_capabilities_eviction,
{ "OFPTC_EVICTION", "openflow_v6.table_features.capabilities.eviction",
FT_UINT32, BASE_HEX, NULL, OFPTC_EVICTION,
NULL, HFILL }
},
{ &hf_openflow_v6_table_features_capabilities_vacancy_events,
{ "OFPTC_VACANCY_EVENTS", "openflow_v6.table_features.capabilities.vacancy_events",
FT_UINT32, BASE_HEX, NULL, OFPTC_VACANCY_EVENTS,
NULL, HFILL }
},
{ &hf_openflow_v6_table_features_max_entries,
{ "Max entries", "openflow_v6.table_features.max_entries",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_request_port_no,
{ "Port number", "openflow_v6.port_stats_request.port_no",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_request_pad,
{ "Pad", "openflow_v6.port_stats_request.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_request_port_no,
{ "Port number", "openflow_v6.queue_stats_request.port_no",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_request_queue_id,
{ "Queue ID", "openflow_v6.queue_stats_request.queue_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_queue_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_stats_request_group_id,
{ "Group ID", "openflow_v6.group_stats_request.group_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_group_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_stats_request_pad,
{ "Pad", "openflow_v6.group_stats_request.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_stats_request_meter_id,
{ "Meter ID", "openflow_v6.meter_stats_request.meter_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_meter_id_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_stats_request_pad,
{ "Pad", "openflow_v6.meter_stats_request.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_desc_request_meter_id,
{ "Meter ID", "openflow_v6.meter_desc_request.meter_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_meter_id_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_desc_request_pad,
{ "Pad", "openflow_v6.meter_desc.request.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_request_port_no,
{ "Port number", "openflow_v6.queue_desc_request.port_no",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_request_queue_id,
{ "Queue ID", "openflow_v6.queue_desc_request.queue_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_queue_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_monitor_request_monitor_id,
{ "Monitor ID", "openflow_v6.flow_monitor_request.monitor_id",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_monitor_request_out_port,
{ "Out port", "openflow_v6.flow_monitor_request.out_port",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_monitor_request_out_group,
{ "Out group", "openflow_v6.flow_monitor_request.out_group",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_group_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_monitor_request_flags,
{ "Flags", "openflow_v6.flow_monitor_request.flags",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_monitor_request_flags_initial,
{ "OFPFMF_INITIAL", "openflow_v6.flow_monitor_request.flags.initial",
FT_UINT16, BASE_HEX, NULL, OFPFMF_INITIAL,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_monitor_request_flags_add,
{ "OFPFMF_ADD", "openflow_v6.flow_monitor_request.flags.add",
FT_UINT16, BASE_HEX, NULL, OFPFMF_ADD,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_monitor_request_flags_removed,
{ "OFPFMF_REMOVED", "openflow_v6.flow_monitor_request.flags.removed",
FT_UINT16, BASE_HEX, NULL, OFPFMF_REMOVED,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_monitor_request_flags_modify,
{ "OFPFMF_MODIFY", "openflow_v6.flow_monitor_request.flags.modify",
FT_UINT16, BASE_HEX, NULL, OFPFMF_MODIFY,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_monitor_request_flags_instructions,
{ "OFPFMF_INSTRUCTIONS", "openflow_v6.flow_monitor_request.flags.instructions",
FT_UINT16, BASE_HEX, NULL, OFPFMF_INSTRUCTIONS,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_monitor_request_flags_no_abbrev,
{ "OFPFMF_NO_ABBREV", "openflow_v6.flow_monitor_request.flags.no_abbrev",
FT_UINT16, BASE_HEX, NULL, OFPFMF_NO_ABBREV,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_monitor_request_flags_only_own,
{ "OFPFMF_ONLY_OWN", "openflow_v6.flow_monitor_request.flags.only_own",
FT_UINT16, BASE_HEX, NULL, OFPFMF_ONLY_OWN,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_monitor_request_table_id,
{ "Table ID", "openflow_v6.flow_monitor_request.table_id",
FT_UINT8, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_table_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_monitor_request_command,
{ "Command", "openflow_v6.flow_monitor_request.command",
FT_UINT16, BASE_DEC, VALS(openflow_v6_flow_monitor_request_command_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_multipart_request_type,
{ "Type", "openflow_v6.multipart_request.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_multipart_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_multipart_request_flags,
{ "Flags", "openflow_v6.multipart_request.flags",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_multipart_request_flags_more,
{ "OFPMPF_REQ_MORE", "openflow_v6.multipart_request.flags.more",
FT_UINT16, BASE_HEX, NULL, OFPMPF_REQ_MORE,
NULL, HFILL }
},
{ &hf_openflow_v6_multipart_request_pad,
{ "Pad", "openflow_v6.multipart_request.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_multipart_request_experimenter_experimenter,
{ "Experimenter", "openflow_v6.multipart_request.experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_multipart_request_experimenter_exp_type,
{ "Experimenter type", "openflow_v6.multipart_request.experimenter.exp_type",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_description_mfr_desc,
{ "Manufacturer desc.", "openflow_v6.switch_description.mfr_desc",
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_description_hw_desc,
{ "Hardware desc.", "openflow_v6.switch_description.hw_desc",
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_description_sw_desc,
{ "Software desc.", "openflow_v6.switch_description.sw_desc",
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_description_serial_num,
{ "Serial no.", "openflow_v6.switch_description.serial_num",
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_switch_description_dp_desc,
{ "Datapath desc.", "openflow_v6.switch_description.dp_desc",
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_length,
{ "Length", "openflow_v6.flow_desc.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_table_id,
{ "Table ID", "openflow_v6.flow_desc.table_id",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_pad,
{ "Pad", "openflow_v6.flow_desc.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_priority,
{ "Priority", "openflow_v6.flow_desc.priority",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_idle_timeout,
{ "Idle timeout", "openflow_v6.flow_desc.idle_timeout",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_hard_timeout,
{ "Hard timeout", "openflow_v6.flow_desc.hard_timeout",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_flags,
{ "Flags", "openflow_v6.flow_desc.flags",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_flags_send_flow_rem,
{ "Send flow removed", "openflow_v6.flow_desc.flags.send_flow_rem",
FT_BOOLEAN, 16, NULL, OFPFF_SEND_FLOW_REM,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_flags_check_overlap,
{ "Check overlap", "openflow_v6.flow_desc.flags.check_overlap",
FT_BOOLEAN, 16, NULL, OFPFF_CHECK_OVERLAP,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_flags_reset_counts,
{ "Reset counts", "openflow_v6.flow_desc.flags.reset_counts",
FT_BOOLEAN, 16, NULL, OFPFF_RESET_COUNTS,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_flags_no_packet_counts,
{ "Don't count packets", "openflow_v6.flow_desc.flags.no_packet_counts",
FT_BOOLEAN, 16, NULL, OFPFF_NO_PKT_COUNTS,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_flags_no_byte_counts,
{ "Don't count bytes", "openflow_v6.flow_desc.flags.no_byte_counts",
FT_BOOLEAN, 16, NULL, OFPFF_NO_BYT_COUNTS,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_importance,
{ "Importance", "openflow_v6.flow_desc.importance",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_pad2,
{ "Pad", "openflow_v6.flow_desc.pad2",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_desc_cookie,
{ "Cookie", "openflow_v6.flow_desc.cookie",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_stats_table_id,
{ "Table ID", "openflow_v6.table_stats.table_id",
FT_UINT8, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_table_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_stats_pad,
{ "Pad", "openflow_v6.table_stats.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_stats_active_count,
{ "Active count", "openflow_v6.table_stats.active_count",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_stats_lookup_count,
{ "Lookup count", "openflow_v6.table_stats.lookup_count",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_stats_match_count,
{ "Match count", "openflow_v6.table_stats.match_count",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_length,
{ "Length", "openflow_v6.port_stats.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_pad,
{ "Pad", "openflow_v6.port_stats.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_port_no,
{ "Port number", "openflow_v6.port_stats.port_no",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_duration_sec,
{ "Duration sec", "openflow_v6.port_stats.duration_sec",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_duration_nsec,
{ "Duration nsec", "openflow_v6.port_stats.duration_nsec",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_rx_packets,
{ "Rx packets", "openflow_v6.port_stats.rx_packets",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_tx_packets,
{ "Tx packets", "openflow_v6.port_stats.tx_packets",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_rx_bytes,
{ "Rx bytes", "openflow_v6.port_stats.rx_bytes",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_tx_bytes,
{ "Tx bytes", "openflow_v6.port_stats.tx_bytes",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_rx_dropped,
{ "Rx dropped", "openflow_v6.port_stats.rx_dropped",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_tx_dropped,
{ "Tx dropped", "openflow_v6.port_stats.tx_dropped",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_rx_errors,
{ "Rx errors", "openflow_v6.port_stats.rx_errors",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_stats_tx_errors,
{ "Tx errors", "openflow_v6.port_stats.tx_errors",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_length,
{ "Length", "openflow_v6.queue_stats.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_pad,
{ "Pad", "openflow_v6.queue_stats.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_port_no,
{ "Port number", "openflow_v6.queue_stats.port_no",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_queue_id,
{ "Queue ID", "openflow_v6.queue_stats.queue_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_queue_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_tx_bytes,
{ "Tx bytes", "openflow_v6.queue_stats.tx_bytes",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_tx_packets,
{ "Tx packets", "openflow_v6.quee_stats.tx_packets",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_tx_errors,
{ "Tx errors", "openflow_v6.port_stats.tx_errors",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_duration_sec,
{ "Duration sec", "openflow_v6.queue_stats.duration_sec",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_duration_nsec,
{ "Duration nsec", "openflow_v6.queue_stats.duration_nsec",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_prop_type,
{ "Type", "openflow_v6.queue_stats_prop.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_queue_stats_prop_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_prop_length,
{ "Length", "openflow_v6.queue_stats_prop.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_prop_experimenter_experimenter,
{ "Experimenter", "openflow_v6.queue_stats_prop.experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_stats_prop_experimenter_exp_type,
{ "Experimenter type", "openflow_v6.queue_stats_prop.experimenter.exp_type",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bucket_counter_packet_count,
{ "Packet count", "openflow_v6.bucket_counter.packet_count",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bucket_counter_byte_count,
{ "Byte count", "openflow_v6.bucket_counter.byte_count",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_stats_length,
{ "Length", "openflow_v6.group_stats.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_stats_pad,
{ "Pad", "openflow_v6.group_stats.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_stats_group_id,
{ "Group ID", "openflow_v6.group_stats.group_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_group_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_stats_ref_count,
{ "Ref. count", "openflow_v6.group_stats.ref_count",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_stats_pad2,
{ "Pad", "openflow_v6.group_stats.pad2",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_stats_packet_count,
{ "Packet count", "openflow_v6.group_stats.packet_count",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_stats_byte_count,
{ "Byte count", "openflow_v6.group_stats.byte_count",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_desc_length,
{ "Length", "openflow_v6.group_desc.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_desc_type,
{ "Type", "openflow_v6.group_desc.type",
FT_UINT8, BASE_DEC, VALS(openflow_v6_group_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_desc_pad,
{ "Pad", "openflow_v6.group_desc.pad2",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_desc_group_id,
{ "Group ID", "openflow_v6.group_desc.group_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_group_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_types,
{ "Types", "openflow_v6.group_features.types",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_types_all,
{ "OFPGT_ALL", "openflow_v6.group_features.types.all",
FT_BOOLEAN, 32, NULL, 1 << OFPGT_ALL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_types_select,
{ "OFPGT_SELECT", "openflow_v6.group_features.types.select",
FT_BOOLEAN, 32, NULL, 1 << OFPGT_SELECT,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_types_indirect,
{ "OFPGT_INDIRECT", "openflow_v6.group_features.types.indirect",
FT_BOOLEAN, 32, NULL, 1 << OFPGT_INDIRECT,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_types_ff,
{ "OFPGT_FF", "openflow_v6.group_features.types.ff",
FT_BOOLEAN, 32, NULL, 1 << OFPGT_FF,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_capabilities,
{ "Capabilities", "openflow_v6.group_features.capabilities",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_capabilities_select_weight,
{ "OFPGFC_SELECT_WEIGHT", "openflow_v6.group_features.capabilities.select_weight",
FT_BOOLEAN, 32, NULL, OFPGFC_SELECT_WEIGHT,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_capabilities_select_liveness,
{ "OFPGFC_SELECT_LIVENESS", "openflow_v6.group_features.capabilities.select_liveness",
FT_BOOLEAN, 32, NULL, OFPGFC_SELECT_LIVENESS,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_capabilities_chaining,
{ "OFPGFC_CHAINING", "openflow_v6.group_features.capabilities.chaining",
FT_BOOLEAN, 32, NULL, OFPGFC_CHAINING,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_capabilities_chaining_checks,
{ "OFPGFC_CHAINING_CHECKS", "openflow_v6.group_features.capabilities.chaining_checks",
FT_BOOLEAN, 32, NULL, OFPGFC_CHAINING_CHECKS,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_max_groups_all,
{ "Max groups (all)", "openflow_v6.group_stats.max_groups.all",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_max_groups_select,
{ "Max groups (select)", "openflow_v6.group_stats.max_groups.select",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_max_groups_indirect,
{ "Max groups (indirect)", "openflow_v6.group_stats.max_groups.indirect",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_max_groups_ff,
{ "Max groups (ff)", "openflow_v6.group_stats.max_groups.ff",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all,
{ "Actions (all)", "openflow_v6.group_features.actions.all",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_output,
{ "OFPAT_OUTPUT", "openflow_v6.group_features.actions.all.output",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_OUTPUT,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_copy_ttl_out,
{ "OFPAT_COPY_TTL_OUT", "openflow_v6.group_features.actions.all.copy_ttl_out",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_COPY_TTL_OUT,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_copy_ttl_in,
{ "OFPAT_COPY_TTL_IN", "openflow_v6.group_features.actions.all.copy_ttl_in",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_COPY_TTL_IN,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_set_mpls_ttl,
{ "OFPAT_SET_MPLS_TTL", "openflow_v6.group_features.actions.all.set_mpls_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_MPLS_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_dec_mpls_ttl,
{ "OFPAT_DEC_MPLS_TTL", "openflow_v6.group_features.actions.all.dec_mpls_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_DEC_MPLS_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_push_vlan,
{ "OFPAT_PUSH_VLAN", "openflow_v6.group_features.actions.all.push_vlan",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_PUSH_VLAN,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_pop_vlan,
{ "OFPAT_POP_VLAN", "openflow_v6.group_features.actions.all.pop_vlan",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_POP_VLAN,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_push_mpls,
{ "OFPAT_PUSH_MPLS", "openflow_v6.group_features.actions.all.push_mpls",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_PUSH_MPLS,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_pop_mpls,
{ "OFPAT_POP_MPLS", "openflow_v6.group_features.actions.all.pop_mpls",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_POP_MPLS,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_set_queue,
{ "OFPAT_SET_QUEUE", "openflow_v6.group_features.actions.all.set_queue",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_QUEUE,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_group,
{ "OFPAT_GROUP", "openflow_v6.group_features.actions.all.group",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_GROUP,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_set_nw_ttl,
{ "OFPAT_SET_NW_TTL", "openflow_v6.group_features.actions.all.set_nw_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_NW_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_dec_nw_ttl,
{ "OFPAT_DEC_NW_TTL", "openflow_v6.group_features.actions.all.dec_nw_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_DEC_NW_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_set_field,
{ "OFPAT_SET_FIELD", "openflow_v6.group_features.actions.all.set_field",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_FIELD,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_push_pbb,
{ "OFPAT_PUSH_PBB", "openflow_v6.group_features.actions.all.push_pbb",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_PUSH_PBB,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_pop_pbb,
{ "OFPAT_POP_PBB", "openflow_v6.group_features.actions.all.pop_pbb",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_POP_PBB,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_copy_field,
{ "OFPAT_COPY_FIELD", "openflow_v6.group_features.actions.all.copy_field",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_COPY_FIELD,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_all_meter,
{ "OFPAT_METER", "openflow_v6.group_features.actions.all.meter",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_METER,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select,
{ "Actions (select)", "openflow_v6.group_features.actions.select",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_output,
{ "OFPAT_OUTPUT", "openflow_v6.group_features.actions.select.output",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_OUTPUT,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_copy_ttl_out,
{ "OFPAT_COPY_TTL_OUT", "openflow_v6.group_features.actions.select.copy_ttl_out",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_COPY_TTL_OUT,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_copy_ttl_in,
{ "OFPAT_COPY_TTL_IN", "openflow_v6.group_features.actions.select.copy_ttl_in",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_COPY_TTL_IN,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_set_mpls_ttl,
{ "OFPAT_SET_MPLS_TTL", "openflow_v6.group_features.actions.select.set_mpls_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_MPLS_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_dec_mpls_ttl,
{ "OFPAT_DEC_MPLS_TTL", "openflow_v6.group_features.actions.select.dec_mpls_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_DEC_MPLS_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_push_vlan,
{ "OFPAT_PUSH_VLAN", "openflow_v6.group_features.actions.select.push_vlan",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_PUSH_VLAN,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_pop_vlan,
{ "OFPAT_POP_VLAN", "openflow_v6.group_features.actions.select.pop_vlan",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_POP_VLAN,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_push_mpls,
{ "OFPAT_PUSH_MPLS", "openflow_v6.group_features.actions.select.push_mpls",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_PUSH_MPLS,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_pop_mpls,
{ "OFPAT_POP_MPLS", "openflow_v6.group_features.actions.select.pop_mpls",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_POP_MPLS,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_set_queue,
{ "OFPAT_SET_QUEUE", "openflow_v6.group_features.actions.select.set_queue",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_QUEUE,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_group,
{ "OFPAT_GROUP", "openflow_v6.group_features.actions.select.group",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_GROUP,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_set_nw_ttl,
{ "OFPAT_SET_NW_TTL", "openflow_v6.group_features.actions.select.set_nw_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_NW_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_dec_nw_ttl,
{ "OFPAT_DEC_NW_TTL", "openflow_v6.group_features.actions.select.dec_nw_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_DEC_NW_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_set_field,
{ "OFPAT_SET_FIELD", "openflow_v6.group_features.actions.select.set_field",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_FIELD,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_push_pbb,
{ "OFPAT_PUSH_PBB", "openflow_v6.group_features.actions.select.push_pbb",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_PUSH_PBB,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_pop_pbb,
{ "OFPAT_POP_PBB", "openflow_v6.group_features.actions.select.pop_pbb",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_POP_PBB,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_copy_field,
{ "OFPAT_COPY_FIELD", "openflow_v6.group_features.actions.select.copy_field",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_COPY_FIELD,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_select_meter,
{ "OFPAT_METER", "openflow_v6.group_features.actions.select.meter",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_METER,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect,
{ "Actions (indirect)", "openflow_v6.group_features.actions.indirect",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_output,
{ "OFPAT_OUTPUT", "openflow_v6.group_features.actions.indirect.output",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_OUTPUT,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_copy_ttl_out,
{ "OFPAT_COPY_TTL_OUT", "openflow_v6.group_features.actions.indirect.copy_ttl_out",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_COPY_TTL_OUT,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_copy_ttl_in,
{ "OFPAT_COPY_TTL_IN", "openflow_v6.group_features.actions.indirect.copy_ttl_in",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_COPY_TTL_IN,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_set_mpls_ttl,
{ "OFPAT_SET_MPLS_TTL", "openflow_v6.group_features.actions.indirect.set_mpls_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_MPLS_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_dec_mpls_ttl,
{ "OFPAT_DEC_MPLS_TTL", "openflow_v6.group_features.actions.indirect.dec_mpls_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_DEC_MPLS_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_push_vlan,
{ "OFPAT_PUSH_VLAN", "openflow_v6.group_features.actions.indirect.push_vlan",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_PUSH_VLAN,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_pop_vlan,
{ "OFPAT_POP_VLAN", "openflow_v6.group_features.actions.indirect.pop_vlan",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_POP_VLAN,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_push_mpls,
{ "OFPAT_PUSH_MPLS", "openflow_v6.group_features.actions.indirect.push_mpls",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_PUSH_MPLS,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_pop_mpls,
{ "OFPAT_POP_MPLS", "openflow_v6.group_features.actions.indirect.pop_mpls",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_POP_MPLS,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_set_queue,
{ "OFPAT_SET_QUEUE", "openflow_v6.group_features.actions.indirect.set_queue",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_QUEUE,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_group,
{ "OFPAT_GROUP", "openflow_v6.group_features.actions.indirect.group",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_GROUP,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_set_nw_ttl,
{ "OFPAT_SET_NW_TTL", "openflow_v6.group_features.actions.indirect.set_nw_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_NW_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_dec_nw_ttl,
{ "OFPAT_DEC_NW_TTL", "openflow_v6.group_features.actions.indirect.dec_nw_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_DEC_NW_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_set_field,
{ "OFPAT_SET_FIELD", "openflow_v6.group_features.actions.indirect.set_field",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_FIELD,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_push_pbb,
{ "OFPAT_PUSH_PBB", "openflow_v6.group_features.actions.indirect.push_pbb",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_PUSH_PBB,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_pop_pbb,
{ "OFPAT_POP_PBB", "openflow_v6.group_features.actions.indirect.pop_pbb",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_POP_PBB,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_copy_field,
{ "OFPAT_COPY_FIELD", "openflow_v6.group_features.actions.indirect.copy_field",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_COPY_FIELD,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_indirect_meter,
{ "OFPAT_METER", "openflow_v6.group_features.actions.indirect.meter",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_METER,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff,
{ "Actions (ff)", "openflow_v6.group_features.actions.ff",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_output,
{ "OFPAT_OUTPUT", "openflow_v6.group_features.actions.ff.output",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_OUTPUT,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_copy_ttl_out,
{ "OFPAT_COPY_TTL_OUT", "openflow_v6.group_features.actions.ff.copy_ttl_out",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_COPY_TTL_OUT,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_copy_ttl_in,
{ "OFPAT_COPY_TTL_IN", "openflow_v6.group_features.actions.ff.copy_ttl_in",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_COPY_TTL_IN,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_set_mpls_ttl,
{ "OFPAT_SET_MPLS_TTL", "openflow_v6.group_features.actions.ff.set_mpls_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_MPLS_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_dec_mpls_ttl,
{ "OFPAT_DEC_MPLS_TTL", "openflow_v6.group_features.actions.ff.dec_mpls_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_DEC_MPLS_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_push_vlan,
{ "OFPAT_PUSH_VLAN", "openflow_v6.group_features.actions.ff.push_vlan",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_PUSH_VLAN,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_pop_vlan,
{ "OFPAT_POP_VLAN", "openflow_v6.group_features.actions.ff.pop_vlan",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_POP_VLAN,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_push_mpls,
{ "OFPAT_PUSH_MPLS", "openflow_v6.group_features.actions.ff.push_mpls",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_PUSH_MPLS,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_pop_mpls,
{ "OFPAT_POP_MPLS", "openflow_v6.group_features.actions.ff.pop_mpls",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_POP_MPLS,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_set_queue,
{ "OFPAT_SET_QUEUE", "openflow_v6.group_features.actions.ff.set_queue",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_QUEUE,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_group,
{ "OFPAT_GROUP", "openflow_v6.group_features.actions.ff.group",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_GROUP,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_set_nw_ttl,
{ "OFPAT_SET_NW_TTL", "openflow_v6.group_features.actions.ff.set_nw_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_NW_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_dec_nw_ttl,
{ "OFPAT_DEC_NW_TTL", "openflow_v6.group_features.actions.ff.dec_nw_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_DEC_NW_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_set_field,
{ "OFPAT_SET_FIELD", "openflow_v6.group_features.actions.ff.set_field",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_SET_FIELD,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_push_pbb,
{ "OFPAT_PUSH_PBB", "openflow_v6.group_features.actions.ff.push_pbb",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_PUSH_PBB,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_pop_pbb,
{ "OFPAT_POP_PBB", "openflow_v6.group_features.actions.ff.pop_pbb",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_POP_PBB,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_copy_field,
{ "OFPAT_COPY_FIELD", "openflow_v6.group_features.actions.ff.copy_field",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_COPY_FIELD,
NULL, HFILL }
},
{ &hf_openflow_v6_group_features_actions_ff_meter,
{ "OFPAT_METER", "openflow_v6.group_features.actions.ff.meter",
FT_BOOLEAN, 32, NULL, 1 << OFPAT_METER,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_band_stats_packet_band_count,
{ "Packet count", "openflow_v6.meter_band_stats.packet_band_count",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_band_stats_byte_band_count,
{ "Byte count", "openflow_v6.meter_band_stats.byte_band_count",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_stats_meter_id,
{ "Meter ID", "openflow_v6.meter_stats.meter_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_meter_id_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_stats_len,
{ "Length", "openflow_v6.meter_stats.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_stats_pad,
{ "Pad", "openflow_v6.meter_stats.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_stats_flow_count,
{ "Flow count", "openflow_v6.meter_stats.flow_count",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_stats_packet_in_count,
{ "Packet in count", "openflow_v6.meter_stats.packet_in_count",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_stats_byte_in_count,
{ "Byte in count", "openflow_v6.meter_stats.byte_in_count",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_stats_duration_sec,
{ "Duration sec", "openflow_v6.meter_stats.duration_sec",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_stats_duration_nsec,
{ "Duration nsec", "openflow_v6.meter_stats.duration_nsec",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_desc_len,
{ "Length", "openflow_v6.meter_desc.len",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_desc_flags,
{ "Flags", "openflow_v6.meter_desc.flags",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_desc_flags_kbps,
{ "OFPMF_KBPS", "openflow_v6.meter_desc.flags.kbps",
FT_BOOLEAN, 32, NULL, OFPMF_KBPS,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_desc_flags_pktps,
{ "OFPMF_PKTPS", "openflow_v6.meter_desc.flags.ptkps",
FT_BOOLEAN, 32, NULL, OFPMF_PKTPS,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_desc_flags_burst,
{ "OFPMF_BURST", "openflow_v6.meter_desc.flags.burst",
FT_BOOLEAN, 32, NULL, OFPMF_BURST,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_desc_flags_stats,
{ "OFPMF_STATS", "openflow_v6.meter_desc.flags.stats",
FT_BOOLEAN, 32, NULL, OFPMF_STATS,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_desc_meter_id,
{ "Meter ID", "openflow_v6.meter_desc.meter_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_meter_id_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_features_max_meter,
{ "Max meters", "openflow_v6.meter_features.max_meter",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_features_band_types,
{ "Band types", "openflow_v6.features.band_types",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_features_band_types_drop,
{ "OFPMBT_DROP", "openflow_v6.meter_features.band_types.drop",
FT_BOOLEAN, 32, NULL, 1 << OFPMBT_DROP,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_features_band_types_dscp_remark,
{ "OFPMBT_DSCP_REMARK", "openflow_v6.meter_features.band_types.dscp_remark",
FT_BOOLEAN, 32, NULL, 1 << OFPMBT_DSCP_REMARK,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_features_capabilities,
{ "Capabilities", "openflow_v6.meter_features.capabilities",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_features_capabilities_kbps,
{ "OFPMF_KBPS", "openflow_v6.meter_features.capabilities.kbps",
FT_BOOLEAN, 32, NULL, OFPMF_KBPS,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_features_capabilities_pktps,
{ "OFPMF_PKTPS", "openflow_v6.meter_features.capabilities.ptkps",
FT_BOOLEAN, 32, NULL, OFPMF_PKTPS,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_features_capabilities_burst,
{ "OFPMF_BURST", "openflow_v6.meter_features.capabilities.burst",
FT_BOOLEAN, 32, NULL, OFPMF_BURST,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_features_capabilities_stats,
{ "OFPMF_STATS", "openflow_v6.meter_features.capabilities.stats",
FT_BOOLEAN, 32, NULL, OFPMF_STATS,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_features_max_bands,
{ "Max bands", "openflow_v6.meter_features.max_bands",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_features_max_color,
{ "Max colors", "openflow_v6.meter_features.max_color",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_meter_features_pad,
{ "Pad", "openflow_v6.meter_features.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_update_length,
{ "Length", "openflow_v6.flow_update.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_update_event,
{ "Length", "openflow_v6.flow_update.event",
FT_UINT16, BASE_DEC, VALS(openflow_v6_flow_monitor_events), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_update_full_table_id,
{ "Table ID", "openflow_v6.flow_update.full.table_id",
FT_UINT8, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_table_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_update_full_reason,
{ "Reason", "openflow_v6.flow_update.full.reason",
FT_UINT8, BASE_DEC, VALS(openflow_v6_flow_removed_reason_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_update_full_zero,
{ "Zero", "openflow_v6.flow_update.full.zero",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_update_full_idle_timeout,
{ "Idle timeout", "openflow_v6.flow_update.full.idle_timeout",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_update_full_hard_timeout,
{ "Hard timeout", "openflow_v6.flow_update.full.hard_timeout",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_update_full_priority,
{ "Priority", "openflow_v6.flow_update.full.priority",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_update_full_zeros,
{ "Zeros", "openflow_v6.flow_update.full.zeros",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_update_full_cookie,
{ "Cookie", "openflow_v6.flow_update.full.cookie",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_update_abbrev_xid,
{ "Transaction ID", "openflow_v6.flow_update.abbrev.xid",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_update_paused_zeros,
{ "Zeros", "openflow_v6.flow_update.paused.zeros",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_multipart_reply_type ,
{ "Type", "openflow_v6.multipart_reply.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_multipart_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_multipart_reply_flags,
{ "Flags", "openflow_v6.multipart_reply.flags",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_multipart_reply_flags_more,
{ "OFPMPF_REPLY_MORE", "openflow_v6.multipart_reply.flags.more",
FT_UINT16, BASE_HEX, NULL, OFPMPF_REPLY_MORE,
NULL, HFILL }
},
{ &hf_openflow_v6_multipart_reply_pad,
{ "Pad", "openflow_v6.multipart_reply.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_multipart_reply_experimenter_experimenter,
{ "Experimenter", "openflow_v6.multipart_reply.experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_multipart_reply_experimenter_exp_type,
{ "Experimenter type", "openflow_v6.multipart_reply.experimenter.exp_type",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_desc_length,
{ "Length", "openflow_v6.table_desc.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_desc_table_id,
{ "Table ID", "openflow_v6.table_desc.table_id",
FT_UINT8, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_table_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_desc_pad,
{ "Pad", "openflow_v6.table_desc.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_desc_config,
{ "Config", "openflow_v6.table_desc.config",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_desc_config_eviction,
{ "OFPTC_EVICTION", "openflow_v6.table_desc.config.eviction",
FT_BOOLEAN, 32, NULL, OFPTC_EVICTION,
NULL, HFILL }
},
{ &hf_openflow_v6_table_desc_config_vacancy_events,
{ "OFPTC_VACANCY_EVENTS", "openflow_v6.table_desc.config.vacancy_events",
FT_BOOLEAN, 32, NULL, OFPTC_VACANCY_EVENTS,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_port_no,
{ "Port", "openflow_v6.queue_desc.port_no",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_queue_id,
{ "Queue ID", "openflow_v6.queue_desc.queue_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_queue_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_len,
{ "Length", "openflow_v6.queue_desc.len",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_pad,
{ "Pad", "openflow_v6.queue_desc.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_prop_property,
{ "Property", "openflow_v6.queue_desc_prop.property",
FT_UINT16, BASE_DEC, VALS(openflow_v6_queue_desc_prop_property_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_prop_len,
{ "Length", "openflow_v6.queue_desc_prop.len",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_prop_pad,
{ "Pad", "openflow_v6.queue_desc_prop.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_prop_min_rate_rate,
{ "Rate", "openflow_v6.queue_desc_prop.min_rate.rate",
FT_UINT16, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_queue_desc_prop_min_rate_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_prop_min_rate_pad,
{ "Pad", "openflow_v6.queue_desc_prop.min_rate.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_prop_max_rate_rate,
{ "Rate", "openflow_v6.queue_desc_prop.max_rate.rate",
FT_UINT16, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_queue_desc_prop_max_rate_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_prop_max_rate_pad,
{ "Pad", "openflow_v6.queue_desc_prop.max_rate.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_prop_experimenter_experimenter,
{ "Experimenter", "openflow_v6.queue_desc_prop.experimenter.experimenter",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_queue_desc_prop_experimenter_exp_type,
{ "Exp type", "openflow_v6.queue_desc_prop.experimenter.exp_type",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_role_request_role,
{ "Role", "openflow_v6.role_request.role",
FT_UINT32, BASE_HEX, VALS(openflow_v6_controller_role_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_role_request_pad,
{ "Pad", "openflow_v6.role_request.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_role_request_generation_id,
{ "Generation ID", "openflow_v6.role_request.generation_id",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_role_reply_role,
{ "Role", "openflow_v6.role_reply.role",
FT_UINT32, BASE_HEX, VALS(openflow_v6_controller_role_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_role_reply_pad,
{ "Pad", "openflow_v6.role_reply.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_role_reply_generation_id,
{ "Generation ID", "openflow_v6.role_reply.generation_id",
FT_UINT64, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_type,
{ "Type", "openflow_v6.async_config_prop.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_async_config_prop_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_length,
{ "Length", "openflow_v6.async_config_prop.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_packet_in_mask,
{ "Mask", "openflow_v6.async_config_prop.reason.packet_in.mask",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_packet_in_mask_table_miss,
{ "OFPR_TABLE_MISS", "openflow_v6.async_config_prop.reason.packet_in.mask.table_miss",
FT_BOOLEAN, 32, NULL, 1 << OFPR_TABLE_MISS,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_packet_in_mask_apply_action,
{ "OFPR_APPLY_ACTION", "openflow_v6.async_config_prop.reason.packet_in.mask.apply_action",
FT_BOOLEAN, 32, NULL, 1 << OFPR_APPLY_ACTION,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_packet_in_mask_invalid_ttl,
{ "OFPR_INVALID_TTL", "openflow_v6.async_config_prop.reason.packet_in.mask.invalid_ttl",
FT_BOOLEAN, 32, NULL, 1 << OFPR_INVALID_TTL,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_packet_in_mask_action_set,
{ "OFPR_ACTION_SET", "openflow_v6.async_config_prop.reason.packet_in.mask.action_set",
FT_BOOLEAN, 32, NULL, 1 << OFPR_ACTION_SET,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_packet_in_mask_group,
{ "OFPR_GROUP", "openflow_v6.async_config_prop.reason.packet_in.mask.group",
FT_BOOLEAN, 32, NULL, 1 << OFPR_GROUP,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_packet_in_mask_packet_out,
{ "OFPR_PACKET_OUT", "openflow_v6.async_config_prop.reason.packet_in.mask.packet_out",
FT_BOOLEAN, 32, NULL, 1 << OFPR_PACKET_OUT,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_port_status_mask,
{ "Mask", "openflow_v6.async_config_prop.reason.port_status.mask",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_port_status_mask_add,
{ "OFPPR_ADD", "openflow_v6.async_config_prop.reason.port_status.mask.add",
FT_BOOLEAN, 32, NULL, 1 << OFPPR_ADD,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_port_status_mask_delete,
{ "OFPPR_DELETE", "openflow_v6.async_config_prop.reason.port_status.mask.delete",
FT_BOOLEAN, 32, NULL, 1 << OFPPR_DELETE,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_port_status_mask_modify,
{ "OFPPR_MODIFY", "openflow_v6.async_config_prop.reason.port_status.mask.modify",
FT_BOOLEAN, 32, NULL, 1 << OFPPR_MODIFY,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_flow_removed_mask,
{ "Mask", "openflow_v6.async_config_prop.reason.flow_removed.mask",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_flow_removed_mask_idle_timeout,
{ "OFPRR_IDLE_TIMEOUT", "openflow_v6.async_config_prop.reason.flow_removed.mask.idle_timeout",
FT_BOOLEAN, 32, NULL, 1 << OFPRR_IDLE_TIMEOUT,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_flow_removed_mask_hard_timeout,
{ "OFPRR_HARD_TIMEOUT", "openflow_v6.async_config_prop.reason.flow_removed.mask.hard_timeout",
FT_BOOLEAN, 32, NULL, 1 << OFPRR_HARD_TIMEOUT,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_flow_removed_mask_delete,
{ "OFPRR_DELETE", "openflow_v6.async_config_prop.reason.flow_removed.mask.delete",
FT_BOOLEAN, 32, NULL, 1 << OFPRR_DELETE,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_flow_removed_mask_group_delete,
{ "OFPRR_GROUP_DELETE", "openflow_v6.async_config_prop.reason.flow_removed.mask.group_delete",
FT_BOOLEAN, 32, NULL, 1 << OFPRR_GROUP_DELETE,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_flow_removed_mask_meter_delete,
{ "OFPRR_METER_DELETE", "openflow_v6.async_config_prop.reason.flow_removed.mask.meter_delete",
FT_BOOLEAN, 32, NULL, 1 << OFPRR_METER_DELETE,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_flow_removed_mask_eviction,
{ "OFPRR_EVICTION", "openflow_v6.async_config_prop.reason.flow_removed.mask.eviction",
FT_BOOLEAN, 32, NULL, 1 << OFPRR_EVICTION,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_role_status_mask,
{ "Mask", "openflow_v6.async_config_prop.reason.role_status.mask",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_role_status_mask_master_request,
{ "OFPCRR_MASTER_REQUEST", "openflow_v6.async_config_prop.reason.role_status.mask.master_request",
FT_BOOLEAN, 32, NULL, 1 << OFPCRR_MASTER_REQUEST,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_role_status_mask_config,
{ "OFPCRR_CONFIG", "openflow_v6.async_config_prop.reason.role_status.mask.config",
FT_BOOLEAN, 32, NULL, 1 << OFPCRR_CONFIG,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_role_status_mask_experimenter,
{ "OFPCRR_EXPERIMENTER", "openflow_v6.async_config_prop.reason.role_status.mask.experimenter",
FT_BOOLEAN, 32, NULL, 1 << OFPCRR_EXPERIMENTER,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_table_status_mask,
{ "Mask", "openflow_v6.async_config_prop.reason.table_status.mask",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_table_status_mask_vacancy_down,
{ "OFPTR_VACANCY_DOWN", "openflow_v6.async_config_prop.reason.table_status.mask.vacancy_u",
FT_BOOLEAN, 32, NULL, 1 << OFPTR_VACANCY_DOWN,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_table_status_mask_vacancy_up,
{ "OFPTR_VACANCY_UP", "openflow_v6.async_config_prop.reason.table_status.mask.vacancy_up",
FT_BOOLEAN, 32, NULL, 1 << OFPTR_VACANCY_UP,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_requestforward_mask,
{ "Mask", "openflow_v6.async_config_prop.reason.requestforward.mask",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_requestforward_mask_group_mod,
{ "OFPRFR_GROUP_MOD", "openflow_v6.async_config_prop.reason.requestforward.mask.group_mod",
FT_BOOLEAN, 32, NULL, 1 << OFPRFR_GROUP_MOD,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_reason_requestforward_mask_meter_mod,
{ "OFPRFR_METER_MOD", "openflow_v6.async_config_prop.reason.requestforward.mask.meter_mod",
FT_BOOLEAN, 32, NULL, 1 << OFPRFR_METER_MOD,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_experimenter_experimenter,
{ "Experimenter", "openflow_v6.async_config_prop.experimenter.experimenter",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_async_config_prop_experimenter_exp_type,
{ "Exp type", "openflow_v6.async_config_prop.experimenter.exp_type",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_metermod_command,
{ "Command", "openflow_v6.metermod.command",
FT_UINT16, BASE_DEC, VALS(openflow_v6_metermod_command_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_metermod_flags,
{ "Flags", "openflow_v6.metermod.flags",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_metermod_flags_kbps,
{ "OFPMF_KBPS", "openflow_v6.metermod.flags.kbps",
FT_BOOLEAN, 32, NULL, OFPMF_KBPS,
NULL, HFILL }
},
{ &hf_openflow_v6_metermod_flags_pktps,
{ "OFPMF_PKTPS", "openflow_v6.metermod.flags.ptkps",
FT_BOOLEAN, 32, NULL, OFPMF_PKTPS,
NULL, HFILL }
},
{ &hf_openflow_v6_metermod_flags_burst,
{ "OFPMF_BURST", "openflow_v6.metermod.flags.burst",
FT_BOOLEAN, 32, NULL, OFPMF_BURST,
NULL, HFILL }
},
{ &hf_openflow_v6_metermod_flags_stats,
{ "OFPMF_STATS", "openflow_v6.metermod.flags.stats",
FT_BOOLEAN, 32, NULL, OFPMF_STATS,
NULL, HFILL }
},
{ &hf_openflow_v6_metermod_meter_id,
{ "Meter ID", "openflow_v6.metermod.meter_id",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_meter_id_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_role_status_role,
{ "Role", "openflow_v6.role_status.role",
FT_UINT32, BASE_HEX, VALS(openflow_v6_controller_role_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_role_status_reason,
{ "Reason", "openflow_v6.role_status.reason",
FT_UINT8, BASE_HEX, VALS(openflow_v6_role_status_reason_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_role_status_pad,
{ "Pad", "openflow_v6.role_status.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_role_status_generation_id,
{ "Generation ID", "openflow_v6.role_status.generation_id",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_status_reason,
{ "Reason", "openflow_v6.table_status.reason",
FT_UINT8, BASE_HEX, VALS(openflow_v6_table_status_reason_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_table_status_pad,
{ "Pad", "openflow_v6.table_status.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_control_bundle_id,
{ "Bundle ID", "openflow_v6.bundle_control.bundle_id",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_control_type,
{ "Type", "openflow_v6.bundle_control.type",
FT_UINT16, BASE_HEX, VALS(openflow_v6_bundle_control_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_control_flags,
{ "Flags", "openflow_v6.bundle_control.flags",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_control_flags_atomic,
{ "OFPBF_ATOMIC", "openflow_v6.bundle_control.flags.atomic",
FT_BOOLEAN, 16, NULL, OFPBF_ATOMIC,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_control_flags_ordered,
{ "OFPBF_ORDERED", "openflow_v6.bundle_control.flags.ordered",
FT_BOOLEAN, 16, NULL, OFPBF_ORDERED,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_prop_type,
{ "Type", "openflow_v6.bundle_prop.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_bundle_prop_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_prop_length,
{ "Length", "openflow_v6.bundle_prop.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_prop_experimenter_experimenter,
{ "Experimenter", "openflow_v6.bundle_prop.experimenter.experimenter",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_prop_experimenter_exp_type,
{ "Exp type", "openflow_v6.bundle_prop.experimenter.exp_type",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_add_bundle_id,
{ "Bundle ID", "openflow_v6.bundle_add.bundle_id",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_add_pad,
{ "Pad", "openflow_v6.table_status.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_add_flags,
{ "Flags", "openflow_v6.bundle_add.flags",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_add_flags_atomic,
{ "OFPBF_ATOMIC", "openflow_v6.bundle_add.flags.atomic",
FT_BOOLEAN, 16, NULL, OFPBF_ATOMIC,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_add_flags_ordered,
{ "OFPBF_ORDERED", "openflow_v6.bundle_add.flags.ordered",
FT_BOOLEAN, 16, NULL, OFPBF_ORDERED,
NULL, HFILL }
},
{ &hf_openflow_v6_oxs_class,
{ "Class", "openflow_v6.oxs.class",
FT_UINT16, BASE_HEX, VALS(openflow_v6_oxs_class_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxs_field,
{ "Field", "openflow_v6.oxs.field",
FT_UINT8, BASE_DEC, VALS(openflow_v6_oxs_basic_field_values), OXS_FIELD_MASK,
NULL, HFILL }
},
{ &hf_openflow_v6_oxs_reserved,
{ "Reserved", "openflow_v6.oxs.reserved",
FT_UINT8, BASE_HEX, NULL, OXS_RESERVED_MASK,
NULL, HFILL }
},
{ &hf_openflow_v6_oxs_length,
{ "Length", "openflow_v6.oxs.length",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxs_basic_duration_sec,
{ "Duration", "openflow_v6.oxs.duration_sec",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxs_basic_duration_nsec,
{ "Duration", "openflow_v6.oxs.duration_nsec",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxs_basic_idle_sec,
{ "Idle", "openflow_v6.oxs.idle_sec",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxs_basic_idle_nsec,
{ "Idle", "openflow_v6.oxs.idle_nsec",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxs_basic_flow_count,
{ "Flow count", "openflow_v6.oxs.flow_count",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxs_basic_packet_count,
{ "Packet count", "openflow_v6.oxs.packet_count",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxs_basic_byte_count,
{ "Byte count", "openflow_v6.oxs.byte_count",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxs_experimenter_experimenter,
{ "Experimenter ID", "openflow_v6.oxs.experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxs_experimenter_value,
{ "Experimenter ID", "openflow_v6.oxs.experimenter.value",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_stats_reserved,
{ "Reserved", "openflow_v6.stats.reserved",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_stats_length,
{ "Length", "openflow_v6.stats.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_stats_pad,
{ "Pad", "openflow_v6.stats.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_oxm_register,
{ "Register", "openflow_v6.oxm.register",
FT_UINT8, BASE_DEC, NULL, OXM_FIELD_MASK,
NULL, HFILL }
},
{ &hf_openflow_v6_instruction_stat_trigger_flags,
{ "Flags", "openflow_v6.instruction.stat_trigger.flags",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_instruction_stat_triffer_flags_periodic,
{ "Flags", "openflow_v6.instruction.stat_trigger.flags.periodic",
FT_UINT32, BASE_HEX, NULL, OFPSTF_PERIODIC,
NULL, HFILL }
},
{ &hf_openflow_v6_instruction_stat_triffer_flags_only_first,
{ "Flags", "openflow_v6.instruction.stat_trigger.flags.only_first",
FT_UINT32, BASE_HEX, NULL, OFPSTF_ONLY_FIRST,
NULL, HFILL }
},
{ &hf_openflow_v6_instruction_stat_triffer_flags_reserved,
{ "Flags", "openflow_v6.instruction.stat_trigger.flags.reserved",
FT_UINT32, BASE_HEX, NULL, 0xfffffffc,
NULL, HFILL }
},
{ &hf_openflow_v6_controller_status_length,
{ "Length", "openflow_v6.controller_status.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_controller_status_short_id,
{ "Short ID", "openflow_v6.controller_status.short_id",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_controller_status_role,
{ "Role", "openflow_v6.controller_status.role",
FT_UINT32, BASE_HEX, VALS(openflow_v6_controller_role_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_controller_status_reason,
{ "Reason", "openflow_v6.controller_status.reason",
FT_UINT8, BASE_DEC, VALS(openflow_v6_controller_status_reason_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_controller_status_channel_status,
{ "Reason", "openflow_v6.controller_status.channel_status",
FT_UINT8, BASE_DEC, VALS(openflow_v6_controller_status_channel_status_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_controller_status_pad,
{ "Reason", "openflow_v6.controller_status.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_time_seconds,
{ "Seconds", "openflow_v6.time.seconds",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_time_nanoseconds,
{ "Nanoseconds", "openflow_v6.time.nanoseconds",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_time_pad,
{ "Pad", "openflow_v6.time.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_feature_prop_type,
{ "Type", "openflow_v6.bundle_feature.prop.type",
FT_UINT16, BASE_HEX, VALS(openflow_v6_bundle_feature_prop_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_feature_prop_length,
{ "Length", "openflow_v6.bundle_feature.prop.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_feature_prop_time_pad,
{ "Pad", "openflow_v6.bundle_feature.prop.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_feature_prop_experimenter_experimenter,
{ "Experimenter", "openflow_v6.bundle_feature.prop.experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_feature_prop_experimenter_exp_type,
{ "Type", "openflow_v6.bundle_feature.prop.experimenter.type",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_feature_prop_pad,
{ "Pad", "openflow_v6.bundle_feature.prop.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_controller_status_prop_type,
{ "Type", "openflow_v6.controller_status.prop.type",
FT_UINT16, BASE_DEC, VALS(openflow_v6_controller_status_prop_type_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_controller_status_prop_length,
{ "Length", "openflow_v6.controller_status.prop.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_controller_status_prop_experimenter_experimenter,
{ "Experimenter", "openflow_v6.controller_status.prop.experimenter.experimenter",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_controller_status_prop_experimenter_exp_type,
{ "Type", "openflow_v6.controller_status.prop.experimenter.type",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_controller_status_prop_pad,
{ "Pad", "openflow_v6.controller_status.prop.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_port_desc_prop_recirculate_port_no,
{ "Port No", "openflow_v6.port.stats_prop.recirculate.port_no",
FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(openflow_v6_port_reserved_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_features_request_flags,
{ "Flags", "openflow_v6.bundle_features_request.flags",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_bundle_features_request_pad,
{ "Pad", "openflow_v6.bundle_features_request.pad",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_pad2,
{ "Pad", "openflow_v6.flow_stats.pad2",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_reason,
{ "Reason", "openflow_v6.flow_stats.reason",
FT_UINT8, BASE_DEC, VALS(openflow_v6_flow_stats_reason_values), 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_length,
{ "Length", "openflow_v6.flow_stats.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_table_id,
{ "Table ID", "openflow_v6.flow_stats.table_id",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_duration_sec,
{ "Duration sec", "openflow_v6.flow_stats.duration_sec",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_duration_nsec,
{ "Duration nsec", "openflow_v6.flow_stats.duration_nsec",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_flow_stats_priority,
{ "Priority", "openflow_v6.flow_stats.priority",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_openflow_v6_controller_status_prop_uri,
{ "URI", "openflow_v6.controller_status.prop.uri",
FT_STRINGZ, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
};
static gint *ett[] = {
&ett_openflow_v6,
&ett_openflow_v6_flowmod_flags,
&ett_openflow_v6_bucket,
&ett_openflow_v6_oxm,
&ett_openflow_v6_match,
&ett_openflow_v6_action,
&ett_openflow_v6_instruction,
&ett_openflow_v6_port,
&ett_openflow_v6_port_desc_prop,
&ett_openflow_v6_port_desc_prop_ethernet_current,
&ett_openflow_v6_port_desc_prop_ethernet_advertised,
&ett_openflow_v6_port_desc_prop_ethernet_supported,
&ett_openflow_v6_port_desc_prop_ethernet_peer,
&ett_openflow_v6_port_desc_prop_optical_supported,
&ett_openflow_v6_port_stats_prop,
&ett_openflow_v6_port_stats_prop_optical_flags,
&ett_openflow_v6_port_config,
&ett_openflow_v6_port_state,
&ett_openflow_v6_meter_band,
&ett_openflow_v6_hello_element,
&ett_openflow_v6_error_data,
&ett_openflow_v6_switch_features_capabilities,
&ett_openflow_v6_switch_config_flags,
&ett_openflow_v6_packet_in_data,
&ett_openflow_v6_packet_out_data,
&ett_openflow_v6_portmod_prop,
&ett_openflow_v6_portmod_prop_ethernet_advertise,
&ett_openflow_v6_portmod_prop_optical_configure,
&ett_openflow_v6_portmod_config,
&ett_openflow_v6_portmod_mask,
&ett_openflow_v6_tablemod_config,
&ett_openflow_v6_tablemod_prop,
&ett_openflow_v6_tablemod_prop_eviction_flags,
&ett_openflow_v6_table_features,
&ett_openflow_v6_table_features_capabilities,
&ett_openflow_v6_table_feature_prop,
&ett_openflow_v6_table_feature_prop_instruction_id,
&ett_openflow_v6_table_feature_prop_action_id,
&ett_openflow_v6_table_feature_prop_oxm_id,
&ett_openflow_v6_flow_monitor_request_flags,
&ett_openflow_v6_multipart_request_flags,
&ett_openflow_v6_flow_stats,
&ett_openflow_v6_table_stats,
&ett_openflow_v6_port_stats,
&ett_openflow_v6_queue_stats,
&ett_openflow_v6_queue_stats_prop,
&ett_openflow_v6_bucket_counter,
&ett_openflow_v6_group_stats,
&ett_openflow_v6_group_desc,
&ett_openflow_v6_group_features_types,
&ett_openflow_v6_group_features_capabilities,
&ett_openflow_v6_group_features_actions_all,
&ett_openflow_v6_group_features_actions_select,
&ett_openflow_v6_group_features_actions_indirect,
&ett_openflow_v6_group_features_actions_ff,
&ett_openflow_v6_meter_band_stats,
&ett_openflow_v6_meter_stats,
&ett_openflow_v6_meter_desc,
&ett_openflow_v6_meter_desc_flags,
&ett_openflow_v6_meter_features_band_types,
&ett_openflow_v6_meter_features_capabilities,
&ett_openflow_v6_flow_update,
&ett_openflow_v6_multipart_reply_flags,
&ett_openflow_v6_table_desc,
&ett_openflow_v6_table_desc_config,
&ett_openflow_v6_queue_desc,
&ett_openflow_v6_queue_desc_prop,
&ett_openflow_v6_async_config_prop,
&ett_openflow_v6_async_config_prop_reason_packet_in_mask,
&ett_openflow_v6_async_config_prop_reason_port_status_mask,
&ett_openflow_v6_async_config_prop_reason_flow_removed_mask,
&ett_openflow_v6_async_config_prop_reason_role_status_mask,
&ett_openflow_v6_async_config_prop_reason_table_status_mask,
&ett_openflow_v6_async_config_prop_reason_requestforward_mask,
&ett_openflow_v6_metermod_flags,
&ett_openflow_v6_requestforward_request,
&ett_openflow_v6_bundle_control_flags,
&ett_openflow_v6_bundle_prop,
&ett_openflow_v6_bundle_add_flags,
&ett_openflow_v6_bundle_add_message,
&ett_openflow_v6_instruction_stat_trigger_flags,
&ett_openflow_v6_flow_desc,
&ett_openflow_v6_flow_desc_flags,
&ett_openflow_v6_bundle_feature_prop,
&ett_openflow_v6_controller_status_prop,
};
static ei_register_info ei[] = {
{ &ei_openflow_v6_oxm_undecoded,
{ "openflow_v6.oxm.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown OMX body.", EXPFILL }
},
{ &ei_openflow_v6_match_undecoded,
{ "openflow_v6.match.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown match body.", EXPFILL }
},
{ &ei_openflow_v6_action_undecoded,
{ "openflow_v6.action.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown action body.", EXPFILL }
},
{ &ei_openflow_v6_instruction_undecoded,
{ "openflow_v6.instruction.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown instruction body.", EXPFILL }
},
{ &ei_openflow_v6_port_desc_prop_undecoded,
{ "openflow_v6.port.desc_prop.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown port desc. property body.", EXPFILL }
},
{ &ei_openflow_v6_port_stats_prop_undecoded,
{ "openflow_v6.port.stats_prop.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown port stats. property body.", EXPFILL }
},
{ &ei_openflow_v6_meter_band_undecoded,
{ "openflow_v6.meter_band.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown meter band body.", EXPFILL }
},
{ &ei_openflow_v6_hello_element_undecoded,
{ "openflow_v6.hello_element.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown hello element body.", EXPFILL }
},
{ &ei_openflow_v6_error_undecoded,
{ "openflow_v6.error.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown error data.", EXPFILL }
},
{ &ei_openflow_v6_experimenter_undecoded,
{ "openflow_v6.experimenter.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown experimenter body.", EXPFILL }
},
{ &ei_openflow_v6_portmod_prop_undecoded,
{ "openflow_v6.portmod_prop.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown portmod property body.", EXPFILL }
},
{ &ei_openflow_v6_tablemod_prop_undecoded,
{ "openflow_v6.tablemod_prop.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown tablemod property body.", EXPFILL }
},
{ &ei_openflow_v6_table_feature_prop_undecoded,
{ "openflow_v6.table_feature_prop.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown table feature property body.", EXPFILL }
},
{ &ei_openflow_v6_multipart_request_undecoded,
{ "openflow_v6.multipart_request.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown multipart request body.", EXPFILL }
},
{ &ei_openflow_v6_queue_stats_prop_undecoded,
{ "openflow_v6.queue_stats_prop.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown queue stats prop body.", EXPFILL }
},
{ &ei_openflow_v6_flow_update_undecoded,
{ "openflow_v6.flow_update.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown flow update body.", EXPFILL }
},
{ &ei_openflow_v6_multipart_reply_undecoded,
{ "openflow_v6.multipart_reply.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown multipart reply body.", EXPFILL }
},
{ &ei_openflow_v6_queue_desc_prop_undecoded,
{ "openflow_v6.queue_desc_prop.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown queue property body.", EXPFILL }
},
{ &ei_openflow_v6_async_config_prop_undecoded,
{ "openflow_v6.async_config_prop.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown async config property body.", EXPFILL }
},
{&ei_openflow_v6_bundle_prop_undecoded,
{ "openflow_v6.bundle_prop.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown bundle prop body.", EXPFILL }
},
{&ei_openflow_v6_message_undecoded,
{ "openflow_v6.message.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown message body.", EXPFILL }
},
{&ei_openflow_v6_length_too_short,
{ "openflow_v6.message.length_too_short", PI_MALFORMED, PI_ERROR,
"Length is too short.", EXPFILL }
},
{&ei_openflow_v6_bundle_feature_prop_undecoded,
{ "openflow_v6.bundle_feature.prop.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown bundle feature prop body.", EXPFILL }
},
{&ei_openflow_v6_controller_status_prop_undecoded,
{ "openflow_v6.controller_status.prop.undecoded", PI_UNDECODED, PI_NOTE,
"Unknown controller status prop body.", EXPFILL }
},
};
expert_module_t *expert_openflow_v6;
/* Register the protocol name and description */
proto_openflow_v6 = proto_register_protocol("OpenFlow 1.5",
"openflow_v6", "openflow_v6");
register_dissector("openflow_v6", dissect_openflow_v6, proto_openflow_v6);
/* Required function calls to register the header fields and subtrees */
proto_register_field_array(proto_openflow_v6, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
expert_openflow_v6 = expert_register_protocol(proto_openflow_v6);
expert_register_field_array(expert_openflow_v6, ei, array_length(ei));
}
void
proto_reg_handoff_openflow_v6(void)
{
eth_withoutfcs_handle = find_dissector_add_dependency("eth_withoutfcs", proto_openflow_v6);
}
/*
* Editor modelines - https://www.wireshark.org/tools/modelines.html
*
* Local variables:
* c-basic-offset: 4
* tab-width: 8
* indent-tabs-mode: nil
* End:
*
* vi: set shiftwidth=4 tabstop=8 expandtab:
* :indentSize=4:tabSize=8:noTabs=true:
*/