diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-08-14 23:51:52 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-08-14 23:51:52 +0000 |
commit | 38eb4d6ce3f01a75066e3511b4ff29884d81bfa7 (patch) | |
tree | 5f2def988c53bab44c39a876810d0419fb41d72b /epan/dissectors/packet-netflow.c | |
parent | 73dfa0536cf66fee00bac73ede9b6afd19e1836b (diff) |
Use const with value_string array definitions
svn path=/trunk/; revision=26028
Diffstat (limited to 'epan/dissectors/packet-netflow.c')
-rw-r--r-- | epan/dissectors/packet-netflow.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-netflow.c b/epan/dissectors/packet-netflow.c index ff56b276f7..596fed6e5c 100644 --- a/epan/dissectors/packet-netflow.c +++ b/epan/dissectors/packet-netflow.c @@ -2708,7 +2708,7 @@ dissect_v9_template(proto_tree * pdutree, tvbuff_t * tvb, int offset, int len, h return (0); } -static value_string v9_template_types[] = { +static const value_string v9_template_types[] = { { 1, "BYTES" }, { 2, "PKTS" }, { 3, "FLOWS" }, @@ -2910,7 +2910,7 @@ static value_string v9_template_types[] = { { 0, NULL } }; -static value_string v9_scope_field_types[] = { +static const value_string v9_scope_field_types[] = { { 1, "System" }, { 2, "Interface" }, { 3, "Line Card" }, @@ -2925,18 +2925,18 @@ decode_v9_template_types(int type) { return ((v==NULL)?"Unknown" : v); } -static value_string v9_sampler_mode[] = { +static const value_string v9_sampler_mode[] = { { 0, "Determinist" }, { 1, "Unknown" }, { 2, "Random" }, { 0, NULL } }; -static value_string v9_direction[] = { +static const value_string v9_direction[] = { { 0, "Ingress" }, { 1, "Egress" }, { 0, NULL } }; -static value_string v9_forwarding_status[] = { +static const value_string v9_forwarding_status[] = { { 0, "Unknown"}, /* Observed on IOS-XR 3.2 */ { 1, "Forward"}, /* Observed on 7200 12.4(9)T */ { 2, "Drop"}, /* Observed on 7200 12.4(9)T */ |