exparse.h
Go to the documentation of this file.00001 /* 00002 ** exparse.c 00003 ** NAF normalizer and aggregator configuration 00004 ** 00005 ** ------------------------------------------------------------------------ 00006 ** Copyright (C) 2005-2007 Carnegie Mellon University. All Rights Reserved. 00007 ** ------------------------------------------------------------------------ 00008 ** Authors: Brian Trammell <bht@cert.org> 00009 ** ------------------------------------------------------------------------ 00010 ** GNU General Public License (GPL) Rights pursuant to Version 2, June 1991 00011 ** Government Purpose License Rights (GPLR) pursuant to DFARS 252.225-7013 00012 ** ------------------------------------------------------------------------ 00013 */ 00014 00015 /* idem hack */ 00016 #ifndef _NAF_EXPARSE_H_ 00017 #define _NAF_EXPARSE_H_ 00018 00019 #include <naf/autoinc.h> 00020 #include <naf/nafcore.h> 00021 #include <naf/filter.h> 00022 #include <naf/sort.h> 00023 00031 #define NAFZ_MAX_FANOUT 16 00032 00037 typedef struct _NAFAggConfig { 00044 NAFTimeSec horizon; 00049 uint32_t srcid; 00051 NAFTimeSec binsize; 00053 uint32_t binalg; 00058 gboolean uniflow_mode; 00060 GArray *perimeter; 00062 NAFilter prefilter; 00067 uint32_t fanout; 00069 NAFilter filter[NAFZ_MAX_FANOUT]; 00071 NAFSorter sorter[NAFZ_MAX_FANOUT]; 00073 NAFlowMask mask[NAFZ_MAX_FANOUT]; 00075 char *label[NAFZ_MAX_FANOUT]; 00076 } NAFAggConfig; 00077 00090 gboolean naf_exparse( 00091 int argc, 00092 char *argv[], 00093 NAFAggConfig *conf); 00094 00101 void naf_config_dump( 00102 NAFAggConfig *conf); 00103 00104 #endif