/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2002-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* netflow private definitions
*
* Glenn Fowler
* AT&T Research
*/
#ifndef _NETFLOWLIB_H_
#include <dsslib.h>
#include <netflow.h>
#include <ip6.h>
#define NETFLOW_NULL 0
typedef struct Netflow_field_s
{
unsigned short offset;
unsigned short size;
unsigned short type;
unsigned short set;
struct Netflow_template_s
{
unsigned int id;
unsigned int elements;
unsigned int size;
unsigned int set;
unsigned int options;
};
{
{
unsigned char* data;
unsigned char* last;
unsigned int version;
#define netflow_flat_next 0
extern Dssformat_t* netflow_formats;
extern Dssformat_t netflow_dump_format;
extern Dssformat_t netflow_dumpv9_format;
extern Dssformat_t netflow_fixed_format;
extern Dssformat_t netflow_flat_format;
extern Dssformat_t netflow_tool_format;
#endif