Add NULL termination element to value_string arrays

svn path=/trunk/; revision=25793
This commit is contained in:
Bill Meier 2008-07-22 18:27:13 +00:00
parent 670f7b46f8
commit 67559b7dfe
4 changed files with 8 additions and 3 deletions

View File

@ -96,7 +96,9 @@ static int hf_2dparityfec_payload = -1;
static const value_string fec_type_names[] = {
{0, "XOR"},
{1, "Hamming"},
{2, "Reed-Solomon"}};
{2, "Reed-Solomon"},
{0, NULL}
};
static void dissect_2dparityfec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{

View File

@ -5222,7 +5222,8 @@ static const value_string ansi_a_adds_strings[] = {
{ ADDS_APP_SDB, "SDB" },
{ ADDS_APP_HRPD, "HRPD" },
{ ADDS_APP_EXT_INTL, "EXT_INTL" },
{ ADDS_APP_EXT, "EXT" }
{ ADDS_APP_EXT, "EXT" },
{ 0, NULL}
};
/*

View File

@ -4528,7 +4528,8 @@ dissect_rsvp_lsp_tunnel_if_id (proto_tree *ti, proto_tree *rsvp_object_tree,
{0, "LSP is FA (MPLS-TE topology advertisement only)"},
{1, "LSP is RA (IP network advertisement only)"},
{2, "LSP is RA (both IP and MPLS-TE topology advertisement)"},
{3, "LSP is to be used as a virtual local link"}
{3, "LSP is to be used as a virtual local link"},
{0, NULL}
};
proto_item_set_text(ti, "LSP INTERFACE-ID: ");

View File

@ -523,6 +523,7 @@ static const value_string eapwps_tlv_configuration_error_vals[] = {
static const value_string eapwps_tlv_connection_type_vals[] = {
{ EAPWPS_CONNTYPE_ESS, "ESS" },
{ EAPWPS_CONNTYPE_IBSS, "IBSS" },
{ 0, NULL}
};
#define EAPWPS_DEVPW_PIN 0x0