Interpret the sampling mode values.

svn path=/trunk/; revision=11055
This commit is contained in:
Guy Harris 2004-06-01 18:43:30 +00:00
parent 54620462a0
commit 479407967d
1 changed files with 8 additions and 2 deletions

View File

@ -45,7 +45,7 @@
** http://www.cisco.com/univercd/cc/td/doc/cisintwk/intsolns/netflsol/nfwhite.htm
**
** $Yahoo: //depot/fumerola/packet-netflow/packet-netflow.c#14 $
** $Id: packet-netflow.c,v 1.12 2004/06/01 18:39:13 guy Exp $
** $Id: packet-netflow.c,v 1.13 2004/06/01 18:43:30 guy Exp $
*/
#ifdef HAVE_CONFIG_H
@ -85,6 +85,12 @@ static guint netflow_udp_port = 0;
#define V8PDU_TOSMATRIX_SIZE V8PDU_MATRIX_SIZE
#define V8PDU_PREPORTPROTOCOL_SIZE (4 * 10)
static const value_string v5_sampling_mode[] = {
{0, "No sampling mode configured"},
{1, "Packet Interval sampling mode configured"},
{0, NULL}
};
enum {
V8PDU_NO_METHOD = 0,
V8PDU_AS_METHOD,
@ -1427,7 +1433,7 @@ proto_register_netflow(void)
},
{&hf_cflow_samplingmode,
{"SamplingMode", "cflow.samplingmode",
FT_UINT16, BASE_DEC, NULL, 0xC000,
FT_UINT16, BASE_DEC, VALS(v5_sampling_mode), 0xC000,
"Sampling Mode of exporter", HFILL}
},
{&hf_cflow_samplerate,