diff options
Diffstat (limited to 'epan/dissectors/packet-isis-snp.c')
-rw-r--r-- | epan/dissectors/packet-isis-snp.c | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/epan/dissectors/packet-isis-snp.c b/epan/dissectors/packet-isis-snp.c index dbe780c297..cac3325921 100644 --- a/epan/dissectors/packet-isis-snp.c +++ b/epan/dissectors/packet-isis-snp.c @@ -27,62 +27,62 @@ void proto_reg_handoff_isis_lsp(void); void proto_register_isis_hello(void); void proto_reg_handoff_isis_hello(void); -static int proto_isis_csnp = -1; -static int proto_isis_psnp = -1; +static int proto_isis_csnp; +static int proto_isis_psnp; /* csnp packets */ -static int hf_isis_csnp_pdu_length = -1; -static int hf_isis_csnp_source_id = -1; -static int hf_isis_csnp_source_circuit = -1; -static int hf_isis_csnp_start_lsp_id = -1; -static int hf_isis_csnp_end_lsp_id = -1; -static int hf_isis_csnp_lsp_id = -1; -static int hf_isis_csnp_lsp_seq_num = -1; -static int hf_isis_csnp_lsp_remain_life = -1; -static int hf_isis_csnp_lsp_checksum = -1; -static int hf_isis_csnp_checksum = -1; -static int hf_isis_csnp_checksum_status = -1; -static int hf_isis_csnp_clv_type = -1; -static int hf_isis_csnp_clv_length = -1; -static int hf_isis_csnp_ip_authentication = -1; -static int hf_isis_csnp_authentication = -1; -static int hf_isis_csnp_instance_identifier = -1; -static int hf_isis_csnp_supported_itid = -1; -static gint ett_isis_csnp = -1; -static gint ett_isis_csnp_clv_lsp_entries = -1; -static gint ett_isis_csnp_lsp_entry = -1; -static gint ett_isis_csnp_clv_authentication = -1; -static gint ett_isis_csnp_clv_ip_authentication = -1; -static gint ett_isis_csnp_clv_instance_identifier = -1; -static gint ett_isis_csnp_clv_checksum = -1; -static gint ett_isis_csnp_clv_unknown = -1; - -static expert_field ei_isis_csnp_short_pdu = EI_INIT; -static expert_field ei_isis_csnp_long_pdu = EI_INIT; -static expert_field ei_isis_csnp_bad_checksum = EI_INIT; -static expert_field ei_isis_csnp_authentication = EI_INIT; -static expert_field ei_isis_csnp_short_clv = EI_INIT; -static expert_field ei_isis_csnp_clv_unknown = EI_INIT; +static int hf_isis_csnp_pdu_length; +static int hf_isis_csnp_source_id; +static int hf_isis_csnp_source_circuit; +static int hf_isis_csnp_start_lsp_id; +static int hf_isis_csnp_end_lsp_id; +static int hf_isis_csnp_lsp_id; +static int hf_isis_csnp_lsp_seq_num; +static int hf_isis_csnp_lsp_remain_life; +static int hf_isis_csnp_lsp_checksum; +static int hf_isis_csnp_checksum; +static int hf_isis_csnp_checksum_status; +static int hf_isis_csnp_clv_type; +static int hf_isis_csnp_clv_length; +static int hf_isis_csnp_ip_authentication; +static int hf_isis_csnp_authentication; +static int hf_isis_csnp_instance_identifier; +static int hf_isis_csnp_supported_itid; +static gint ett_isis_csnp; +static gint ett_isis_csnp_clv_lsp_entries; +static gint ett_isis_csnp_lsp_entry; +static gint ett_isis_csnp_clv_authentication; +static gint ett_isis_csnp_clv_ip_authentication; +static gint ett_isis_csnp_clv_instance_identifier; +static gint ett_isis_csnp_clv_checksum; +static gint ett_isis_csnp_clv_unknown; + +static expert_field ei_isis_csnp_short_pdu; +static expert_field ei_isis_csnp_long_pdu; +static expert_field ei_isis_csnp_bad_checksum; +static expert_field ei_isis_csnp_authentication; +static expert_field ei_isis_csnp_short_clv; +static expert_field ei_isis_csnp_clv_unknown; /* psnp packets */ -static int hf_isis_psnp_pdu_length = -1; -static int hf_isis_psnp_source_id = -1; -static int hf_isis_psnp_source_circuit = -1; -static int hf_isis_psnp_clv_type = -1; -static int hf_isis_psnp_clv_length = -1; -static int hf_isis_psnp_ip_authentication = -1; -static gint ett_isis_psnp = -1; -static gint ett_isis_psnp_clv_lsp_entries = -1; -static gint ett_isis_psnp_lsp_entry = -1; -static gint ett_isis_psnp_clv_authentication = -1; -static gint ett_isis_psnp_clv_ip_authentication = -1; -static gint ett_isis_psnp_clv_checksum = -1; -static gint ett_isis_psnp_clv_unknown = -1; - -static expert_field ei_isis_psnp_short_pdu = EI_INIT; -static expert_field ei_isis_psnp_long_pdu = EI_INIT; -static expert_field ei_isis_psnp_short_clv = EI_INIT; -static expert_field ei_isis_psnp_clv_unknown = EI_INIT; +static int hf_isis_psnp_pdu_length; +static int hf_isis_psnp_source_id; +static int hf_isis_psnp_source_circuit; +static int hf_isis_psnp_clv_type; +static int hf_isis_psnp_clv_length; +static int hf_isis_psnp_ip_authentication; +static gint ett_isis_psnp; +static gint ett_isis_psnp_clv_lsp_entries; +static gint ett_isis_psnp_lsp_entry; +static gint ett_isis_psnp_clv_authentication; +static gint ett_isis_psnp_clv_ip_authentication; +static gint ett_isis_psnp_clv_checksum; +static gint ett_isis_psnp_clv_unknown; + +static expert_field ei_isis_psnp_short_pdu; +static expert_field ei_isis_psnp_long_pdu; +static expert_field ei_isis_psnp_short_clv; +static expert_field ei_isis_psnp_clv_unknown; static void dissect_snp_authentication_clv(tvbuff_t *tvb, packet_info* pinfo, proto_tree *tree, int offset, @@ -96,7 +96,7 @@ dissect_csnp_ip_authentication_clv(tvbuff_t *tvb, packet_info* pinfo _U_, proto_ isis_data_t *isis _U_, int length) { if ( length != 0 ) { - proto_tree_add_item(tree, hf_isis_csnp_ip_authentication, tvb, offset, length, ENC_ASCII|ENC_NA); + proto_tree_add_item(tree, hf_isis_csnp_ip_authentication, tvb, offset, length, ENC_ASCII); } } @@ -105,7 +105,7 @@ dissect_psnp_ip_authentication_clv(tvbuff_t *tvb, packet_info* pinfo _U_, proto_ isis_data_t *isis _U_, int length) { if ( length != 0 ) { - proto_tree_add_item(tree, hf_isis_psnp_ip_authentication, tvb, offset, length, ENC_ASCII|ENC_NA); + proto_tree_add_item(tree, hf_isis_psnp_ip_authentication, tvb, offset, length, ENC_ASCII); } } |