diff options
Diffstat (limited to 'epan/dissectors/packet-isis-hello.c')
-rw-r--r-- | epan/dissectors/packet-isis-hello.c | 268 |
1 files changed, 134 insertions, 134 deletions
diff --git a/epan/dissectors/packet-isis-hello.c b/epan/dissectors/packet-isis-hello.c index b327fd9bde..2e661a50e7 100644 --- a/epan/dissectors/packet-isis-hello.c +++ b/epan/dissectors/packet-isis-hello.c @@ -47,134 +47,134 @@ void proto_register_isis_hello(void); void proto_reg_handoff_isis_hello(void); -static int proto_isis_hello = -1; +static int proto_isis_hello; /* hello packets */ -static int hf_isis_hello_circuit = -1; -static int hf_isis_hello_circuit_reserved = -1; -static int hf_isis_hello_source_id = -1; -static int hf_isis_hello_holding_timer = -1; -static int hf_isis_hello_pdu_length = -1; -static int hf_isis_hello_priority = -1; -static int hf_isis_hello_priority_reserved = -1; -static int hf_isis_hello_lan_id = -1; -static int hf_isis_hello_clv_type = -1; -static int hf_isis_hello_clv_length = -1; -static int hf_isis_hello_local_circuit_id = -1; -static int hf_isis_hello_clv_ipv4_int_addr = -1; -static int hf_isis_hello_clv_ipv6_int_addr = -1; -/* static int hf_isis_hello_clv_ptp_adj = -1; */ -static int hf_isis_hello_clv_mt = -1; -static int hf_isis_hello_clv_restart_flags = -1; -static int hf_isis_hello_clv_restart_flags_rr = -1; -static int hf_isis_hello_clv_restart_flags_ra = -1; -static int hf_isis_hello_clv_restart_flags_sa = -1; -static int hf_isis_hello_clv_restart_remain_time = -1; -static int hf_isis_hello_clv_restart_neighbor = -1; +static int hf_isis_hello_circuit; +static int hf_isis_hello_circuit_reserved; +static int hf_isis_hello_source_id; +static int hf_isis_hello_holding_timer; +static int hf_isis_hello_pdu_length; +static int hf_isis_hello_priority; +static int hf_isis_hello_priority_reserved; +static int hf_isis_hello_lan_id; +static int hf_isis_hello_clv_type; +static int hf_isis_hello_clv_length; +static int hf_isis_hello_local_circuit_id; +static int hf_isis_hello_clv_ipv4_int_addr; +static int hf_isis_hello_clv_ipv6_int_addr; +/* static int hf_isis_hello_clv_ptp_adj; */ +static int hf_isis_hello_clv_mt; +static int hf_isis_hello_clv_restart_flags; +static int hf_isis_hello_clv_restart_flags_rr; +static int hf_isis_hello_clv_restart_flags_ra; +static int hf_isis_hello_clv_restart_flags_sa; +static int hf_isis_hello_clv_restart_remain_time; +static int hf_isis_hello_clv_restart_neighbor; /* Generated from convert_proto_tree_add_text.pl */ -static int hf_isis_hello_extended_local_circuit_id = -1; -static int hf_isis_hello_adjacency_state = -1; -static int hf_isis_hello_neighbor_systemid = -1; -static int hf_isis_hello_digest = -1; -static int hf_isis_hello_digest_v = -1; -static int hf_isis_hello_digest_a = -1; -static int hf_isis_hello_digest_d = -1; -static int hf_isis_hello_ect = -1; -static int hf_isis_hello_bvid = -1; -static int hf_isis_hello_bvid_u = -1; -static int hf_isis_hello_bvid_m = -1; -static int hf_isis_hello_area_address = -1; -static int hf_isis_hello_instance_identifier = -1; -static int hf_isis_hello_supported_itid = -1; -static int hf_isis_hello_clv_nlpid_nlpid = -1; -static int hf_isis_hello_clv_ip_authentication = -1; -static int hf_isis_hello_authentication = -1; - -static int hf_isis_hello_aux_mcid = -1; -static int hf_isis_hello_mcid = -1; -static int hf_isis_hello_is_neighbor = -1; -static int hf_isis_hello_mtid = -1; -static int hf_isis_hello_checksum = -1; -static int hf_isis_hello_checksum_status = -1; -static int hf_isis_hello_trill_neighbor_sf = -1; -static int hf_isis_hello_trill_neighbor_lf = -1; -static int hf_isis_hello_trill_neighbor_ff = -1; -static int hf_isis_hello_trill_neighbor_of = -1; -static int hf_isis_hello_trill_neighbor_size = -1; -static int hf_isis_hello_trill_neighbor_reserved = -1; -static int hf_isis_hello_trill_neighbor_mtu = -1; -static int hf_isis_hello_trill_neighbor_snpa = -1; -static int hf_isis_hello_reverse_metric_flags = -1; -static int hf_isis_hello_reverse_metric_flag_reserved = -1; -static int hf_isis_hello_reverse_metric_flag_u = -1; -static int hf_isis_hello_reverse_metric_flag_w = -1; -static int hf_isis_hello_reverse_metric_metric = -1; -static int hf_isis_hello_reverse_metric_sub_length = -1; -static int hf_isis_hello_reverse_metric_sub_data = -1; -static int hf_isis_hello_bfd_enabled_nlpid = -1; -static int hf_isis_hello_neighbor_extended_local_circuit_id = -1; -static int hf_isis_hello_vlan_flags_port_id = -1; -static int hf_isis_hello_vlan_flags_nickname = -1; -static int hf_isis_hello_vlan_flags_af = -1; -static int hf_isis_hello_vlan_flags_ac = -1; -static int hf_isis_hello_vlan_flags_vm = -1; -static int hf_isis_hello_vlan_flags_by = -1; -static int hf_isis_hello_vlan_flags_outer_vlan = -1; -static int hf_isis_hello_vlan_flags_tr = -1; -static int hf_isis_hello_vlan_flags_reserved = -1; -static int hf_isis_hello_vlan_flags_designated_vlan = -1; -static int hf_isis_hello_enabled_vlans = -1; -static int hf_isis_hello_appointed_vlans = -1; -static int hf_isis_hello_af_nickname = -1; -static int hf_isis_hello_af_start_vlan = -1; -static int hf_isis_hello_af_end_vlan = -1; -static int hf_isis_hello_trill_version = -1; -static int hf_isis_hello_trill_hello_reduction = -1; -static int hf_isis_hello_trill_unassigned_1 = -1; -static int hf_isis_hello_trill_hop_by_hop_flags = -1; -static int hf_isis_hello_trill_unassigned_2 = -1; -static int hf_isis_hello_clv_ipv6_glb_int_addr = -1; - -static gint ett_isis_hello = -1; -static gint ett_isis_hello_clv_area_addr = -1; -static gint ett_isis_hello_clv_instance_identifier = -1; -static gint ett_isis_hello_clv_is_neighbors = -1; -static gint ett_isis_hello_clv_padding = -1; -static gint ett_isis_hello_clv_unknown = -1; -static gint ett_isis_hello_clv_nlpid = -1; -static gint ett_isis_hello_clv_nlpid_nlpid = -1; -static gint ett_isis_hello_clv_authentication = -1; -static gint ett_isis_hello_clv_ip_authentication = -1; -static gint ett_isis_hello_clv_ipv4_int_addr = -1; -static gint ett_isis_hello_clv_ipv6_int_addr = -1; -static gint ett_isis_hello_clv_ptp_adj = -1; -static gint ett_isis_hello_clv_mt = -1; -static gint ett_isis_hello_clv_restart = -1; -static gint ett_isis_hello_clv_restart_flags = -1; -static gint ett_isis_hello_clv_mt_port_cap = -1; -static gint ett_isis_hello_clv_mt_port_cap_spb_mcid = -1; -static gint ett_isis_hello_clv_mt_port_cap_spb_digest = -1; -static gint ett_isis_hello_clv_mt_port_cap_spb_bvid_tuples = -1; -static gint ett_isis_hello_clv_mt_port_cap_vlan_flags = -1; -static gint ett_isis_hello_clv_mt_port_cap_enabled_vlans = -1; -static gint ett_isis_hello_clv_mt_port_cap_appointedfwrdrs = -1; -static gint ett_isis_hello_clv_mt_port_cap_port_trill_ver = -1; -static gint ett_isis_hello_clv_mt_port_cap_vlans_appointed = -1; -static gint ett_isis_hello_clv_trill_neighbor = -1; -static gint ett_isis_hello_clv_checksum = -1; -static gint ett_isis_hello_clv_reverse_metric = -1; -static gint ett_isis_hello_clv_bfd_enabled = -1; -static gint ett_isis_hello_clv_ipv6_glb_int_addr = -1; -static gint ett_isis_hello_reverse_metric_flags = -1; - -static expert_field ei_isis_hello_short_pdu = EI_INIT; -static expert_field ei_isis_hello_long_pdu = EI_INIT; -static expert_field ei_isis_hello_bad_checksum = EI_INIT; -static expert_field ei_isis_hello_authentication = EI_INIT; -static expert_field ei_isis_hello_subtlv = EI_INIT; -static expert_field ei_isis_hello_short_clv = EI_INIT; -static expert_field ei_isis_hello_clv_mt = EI_INIT; -static expert_field ei_isis_hello_clv_unknown = EI_INIT; +static int hf_isis_hello_extended_local_circuit_id; +static int hf_isis_hello_adjacency_state; +static int hf_isis_hello_neighbor_systemid; +static int hf_isis_hello_digest; +static int hf_isis_hello_digest_v; +static int hf_isis_hello_digest_a; +static int hf_isis_hello_digest_d; +static int hf_isis_hello_ect; +static int hf_isis_hello_bvid; +static int hf_isis_hello_bvid_u; +static int hf_isis_hello_bvid_m; +static int hf_isis_hello_area_address; +static int hf_isis_hello_instance_identifier; +static int hf_isis_hello_supported_itid; +static int hf_isis_hello_clv_nlpid_nlpid; +static int hf_isis_hello_clv_ip_authentication; +static int hf_isis_hello_authentication; + +static int hf_isis_hello_aux_mcid; +static int hf_isis_hello_mcid; +static int hf_isis_hello_is_neighbor; +static int hf_isis_hello_mtid; +static int hf_isis_hello_checksum; +static int hf_isis_hello_checksum_status; +static int hf_isis_hello_trill_neighbor_sf; +static int hf_isis_hello_trill_neighbor_lf; +static int hf_isis_hello_trill_neighbor_ff; +static int hf_isis_hello_trill_neighbor_of; +static int hf_isis_hello_trill_neighbor_size; +static int hf_isis_hello_trill_neighbor_reserved; +static int hf_isis_hello_trill_neighbor_mtu; +static int hf_isis_hello_trill_neighbor_snpa; +static int hf_isis_hello_reverse_metric_flags; +static int hf_isis_hello_reverse_metric_flag_reserved; +static int hf_isis_hello_reverse_metric_flag_u; +static int hf_isis_hello_reverse_metric_flag_w; +static int hf_isis_hello_reverse_metric_metric; +static int hf_isis_hello_reverse_metric_sub_length; +static int hf_isis_hello_reverse_metric_sub_data; +static int hf_isis_hello_bfd_enabled_nlpid; +static int hf_isis_hello_neighbor_extended_local_circuit_id; +static int hf_isis_hello_vlan_flags_port_id; +static int hf_isis_hello_vlan_flags_nickname; +static int hf_isis_hello_vlan_flags_af; +static int hf_isis_hello_vlan_flags_ac; +static int hf_isis_hello_vlan_flags_vm; +static int hf_isis_hello_vlan_flags_by; +static int hf_isis_hello_vlan_flags_outer_vlan; +static int hf_isis_hello_vlan_flags_tr; +static int hf_isis_hello_vlan_flags_reserved; +static int hf_isis_hello_vlan_flags_designated_vlan; +static int hf_isis_hello_enabled_vlans; +static int hf_isis_hello_appointed_vlans; +static int hf_isis_hello_af_nickname; +static int hf_isis_hello_af_start_vlan; +static int hf_isis_hello_af_end_vlan; +static int hf_isis_hello_trill_version; +static int hf_isis_hello_trill_hello_reduction; +static int hf_isis_hello_trill_unassigned_1; +static int hf_isis_hello_trill_hop_by_hop_flags; +static int hf_isis_hello_trill_unassigned_2; +static int hf_isis_hello_clv_ipv6_glb_int_addr; + +static gint ett_isis_hello; +static gint ett_isis_hello_clv_area_addr; +static gint ett_isis_hello_clv_instance_identifier; +static gint ett_isis_hello_clv_is_neighbors; +static gint ett_isis_hello_clv_padding; +static gint ett_isis_hello_clv_unknown; +static gint ett_isis_hello_clv_nlpid; +static gint ett_isis_hello_clv_nlpid_nlpid; +static gint ett_isis_hello_clv_authentication; +static gint ett_isis_hello_clv_ip_authentication; +static gint ett_isis_hello_clv_ipv4_int_addr; +static gint ett_isis_hello_clv_ipv6_int_addr; +static gint ett_isis_hello_clv_ptp_adj; +static gint ett_isis_hello_clv_mt; +static gint ett_isis_hello_clv_restart; +static gint ett_isis_hello_clv_restart_flags; +static gint ett_isis_hello_clv_mt_port_cap; +static gint ett_isis_hello_clv_mt_port_cap_spb_mcid; +static gint ett_isis_hello_clv_mt_port_cap_spb_digest; +static gint ett_isis_hello_clv_mt_port_cap_spb_bvid_tuples; +static gint ett_isis_hello_clv_mt_port_cap_vlan_flags; +static gint ett_isis_hello_clv_mt_port_cap_enabled_vlans; +static gint ett_isis_hello_clv_mt_port_cap_appointedfwrdrs; +static gint ett_isis_hello_clv_mt_port_cap_port_trill_ver; +static gint ett_isis_hello_clv_mt_port_cap_vlans_appointed; +static gint ett_isis_hello_clv_trill_neighbor; +static gint ett_isis_hello_clv_checksum; +static gint ett_isis_hello_clv_reverse_metric; +static gint ett_isis_hello_clv_bfd_enabled; +static gint ett_isis_hello_clv_ipv6_glb_int_addr; +static gint ett_isis_hello_reverse_metric_flags; + +static expert_field ei_isis_hello_short_pdu; +static expert_field ei_isis_hello_long_pdu; +static expert_field ei_isis_hello_bad_checksum; +static expert_field ei_isis_hello_authentication; +static expert_field ei_isis_hello_subtlv; +static expert_field ei_isis_hello_short_clv; +static expert_field ei_isis_hello_clv_mt; +static expert_field ei_isis_hello_clv_unknown; static const value_string isis_hello_circuit_type_vals[] = { { ISIS_HELLO_TYPE_RESERVED, "Reserved 0 (discard PDU)"}, @@ -692,7 +692,7 @@ dissect_hello_ip_authentication_clv(tvbuff_t *tvb, packet_info* pinfo _U_, proto_tree *tree, int offset, isis_data_t *isis _U_, int length) { if ( length != 0 ) { - proto_tree_add_item( tree, hf_isis_hello_clv_ip_authentication, tvb, offset, length, ENC_ASCII|ENC_NA); + proto_tree_add_item( tree, hf_isis_hello_clv_ip_authentication, tvb, offset, length, ENC_ASCII); } } @@ -1544,17 +1544,17 @@ proto_register_isis_hello(void) { &hf_isis_hello_clv_restart_flags_rr, { "Restart Request", "isis.hello.clv_restart_flags.rr", - FT_BOOLEAN, 8, TFS(&tfs_true_false), ISIS_RESTART_RR, + FT_BOOLEAN, 8, NULL, ISIS_RESTART_RR, "When set, the router is beginning a graceful restart", HFILL }}, { &hf_isis_hello_clv_restart_flags_ra, { "Restart Acknowledgment", "isis.hello.clv_restart_flags.ra", - FT_BOOLEAN, 8, TFS(&tfs_true_false), ISIS_RESTART_RA, + FT_BOOLEAN, 8, NULL, ISIS_RESTART_RA, "When set, the router is willing to enter helper mode", HFILL }}, { &hf_isis_hello_clv_restart_flags_sa, { "Suppress Adjacency", "isis.hello.clv_restart_flags.sa", - FT_BOOLEAN, 8, TFS(&tfs_true_false), ISIS_RESTART_SA, + FT_BOOLEAN, 8, NULL, ISIS_RESTART_SA, "When set, the router is starting as opposed to restarting", HFILL }}, { &hf_isis_hello_clv_restart_remain_time, @@ -1584,7 +1584,7 @@ proto_register_isis_hello(void) { &hf_isis_hello_clv_nlpid_nlpid, { "NLPID", "isis.hello.clv_nlpid.nlpid", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }}, { &hf_isis_hello_clv_ip_authentication, { "NLPID", "isis.hello.clv_ip_authentication", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL }}, { &hf_isis_hello_authentication, { "Authentication", "isis.hello.clv_authentication", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }}, - { &hf_isis_hello_mtid, { "Topology ID", "isis.hello.mtid", FT_UINT16, BASE_DEC|BASE_RANGE_STRING, RVALS(mtid_strings), 0xfff, NULL, HFILL }}, + { &hf_isis_hello_mtid, { "Topology ID", "isis.hello.mtid", FT_UINT16, BASE_DEC|BASE_RANGE_STRING, RVALS(mtid_strings), 0x0fff, NULL, HFILL }}, { &hf_isis_hello_trill_neighbor_sf, { "Smallest flag", "isis.hello.trill_neighbor.sf", FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x80, NULL, HFILL }}, { &hf_isis_hello_trill_neighbor_lf, { "Largest flag", "isis.hello.trill_neighbor.lf", FT_BOOLEAN, 8, TFS(&tfs_set_notset), 0x40, NULL, HFILL }}, { &hf_isis_hello_trill_neighbor_size, { "SNPA Size", "isis.hello.trill_neighbor.size", FT_UINT8, BASE_DEC, NULL, 0x1f, NULL, HFILL }}, @@ -1605,15 +1605,15 @@ proto_register_isis_hello(void) { &hf_isis_hello_vlan_flags_ac, { "Access Port", "isis.hello.vlan_flags.ac", FT_BOOLEAN, 16, TFS(&tfs_set_notset), 0x4000, NULL, HFILL }}, { &hf_isis_hello_vlan_flags_vm, { "VLAN Mapping Detected", "isis.hello.vlan_flags.vm", FT_BOOLEAN, 16, TFS(&tfs_set_notset), 0x2000, NULL, HFILL }}, { &hf_isis_hello_vlan_flags_by, { "Bypass Pseudonode", "isis.hello.vlan_flags.by", FT_BOOLEAN, 16, TFS(&tfs_set_notset), 0x1000, NULL, HFILL }}, - { &hf_isis_hello_vlan_flags_outer_vlan, { "Outer VLAN", "isis.hello.vlan_flags.outer_vlan", FT_UINT16, BASE_DEC, NULL, 0xfff, NULL, HFILL }}, + { &hf_isis_hello_vlan_flags_outer_vlan, { "Outer VLAN", "isis.hello.vlan_flags.outer_vlan", FT_UINT16, BASE_DEC, NULL, 0x0fff, NULL, HFILL }}, { &hf_isis_hello_vlan_flags_tr, { "Trunk Port", "isis.hello.vlan_flags.tr", FT_BOOLEAN, 16, TFS(&tfs_set_notset), 0x8000, NULL, HFILL }}, { &hf_isis_hello_vlan_flags_reserved, { "Reserved", "isis.hello.vlan_flags.reserved", FT_BOOLEAN, 16, TFS(&tfs_set_notset), 0x7000, NULL, HFILL }}, - { &hf_isis_hello_vlan_flags_designated_vlan, { "Designated VLAN", "isis.hello.vlan_flags.designated_vlan", FT_UINT16, BASE_DEC, NULL, 0xfff, NULL, HFILL }}, + { &hf_isis_hello_vlan_flags_designated_vlan, { "Designated VLAN", "isis.hello.vlan_flags.designated_vlan", FT_UINT16, BASE_DEC, NULL, 0x0fff, NULL, HFILL }}, { &hf_isis_hello_enabled_vlans, { "Enabled VLANs", "isis.hello.enabled_vlans", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL }}, { &hf_isis_hello_appointed_vlans, { "Appointed VLANs", "isis.hello.appointed_vlans", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL }}, { &hf_isis_hello_af_nickname, { "Nickname", "isis.hello.af.nickname", FT_UINT16, BASE_HEX_DEC, NULL, 0x0, NULL, HFILL }}, - { &hf_isis_hello_af_start_vlan, { "Start VLAN", "isis.hello.af.start_vlan", FT_UINT16, BASE_DEC, NULL, 0xfff, NULL, HFILL }}, - { &hf_isis_hello_af_end_vlan, { "End VLAN", "isis.hello.af.end_vlan", FT_UINT16, BASE_DEC, NULL, 0xfff, NULL, HFILL }}, + { &hf_isis_hello_af_start_vlan, { "Start VLAN", "isis.hello.af.start_vlan", FT_UINT16, BASE_DEC, NULL, 0x0fff, NULL, HFILL }}, + { &hf_isis_hello_af_end_vlan, { "End VLAN", "isis.hello.af.end_vlan", FT_UINT16, BASE_DEC, NULL, 0x0fff, NULL, HFILL }}, { &hf_isis_hello_trill_version, { "Maximum version", "isis.hello.trill.maximum_version", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }}, { &hf_isis_hello_trill_hello_reduction, { "Hello Reduction", "isis.hello.trill.hello_reduction", FT_BOOLEAN, 32, TFS(&tfs_supported_not_supported), 0x80000000, NULL, HFILL }}, { &hf_isis_hello_trill_unassigned_1, { "Unassigned", "isis.hello.trill.unassigned_1", FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x60000000, NULL, HFILL }}, |