From cedc8479a8ef57ec2258bf7e5a8d4586287c968f Mon Sep 17 00:00:00 2001 From: Peter Haag Date: Thu, 28 Dec 2017 18:19:27 +0100 Subject: [PATCH] Cleanup headers. Satify includes for header file --- bin/expire.h | 23 +++++++++++++++++------ bin/exporter.h | 16 ++++++++++------ bin/flist.h | 11 +++++------ bin/flowtree.h | 4 +++- bin/ipconv.h | 15 ++++++++------- bin/ipfix.h | 9 +++++++++ bin/ipfrag.h | 13 +++++++++++++ bin/launch.h | 12 +++++------- bin/netflow_pcap.h | 1 + bin/netflow_v1.h | 10 ++++++++++ bin/netflow_v5_v7.h | 18 ++++++++++++------ bin/netflow_v9.h | 18 ++++++++++++------ bin/nf_common.c | 1 + bin/nf_common.h | 15 ++++++++------- bin/nfexport.h | 10 ++++------ bin/nffile.h | 6 +++++- bin/nflowcache.c | 1 + bin/nflowcache.h | 17 +++++++++++------ bin/nfnet.h | 12 ++++++------ bin/nfprof.h | 18 ++++++++++++------ bin/nfstat.h | 11 +++++++++++ bin/nfstatfile.h | 14 ++++++++------ bin/nftree.h | 16 ++++++++++------ bin/nfx.h | 16 ++++++++++------ bin/panonymizer.h | 14 ++++++++------ bin/pcap_reader.h | 17 ++++++++++------- bin/profile.h | 4 ++++ bin/sflow_process.h | 2 ++ 28 files changed, 216 insertions(+), 108 deletions(-) diff --git a/bin/expire.h b/bin/expire.h index 9d964cd..f41b9a6 100644 --- a/bin/expire.h +++ b/bin/expire.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,17 +29,27 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: expire.h 39 2009-11-25 08:11:15Z haag $ - * - * $LastChangedRevision: 39 $ - * */ #ifndef _EXPIRE_H #define _EXPIRE_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + +#ifdef HAVE_FTS_H +# include +#else +# include "fts_compat.h" +#endif + +#include "nfstatfile.h" +#include "bookkeeper.h" + typedef struct channel_s { struct channel_s *next; char *datadir; diff --git a/bin/exporter.h b/bin/exporter.h index 69ee688..275f7bb 100755 --- a/bin/exporter.h +++ b/bin/exporter.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2012, Peter Haag * @@ -26,17 +27,20 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: peter $ - * - * $Id: exporter.h 224 2014-02-16 12:59:29Z peter $ - * - * $LastChangedRevision: 224 $ - * */ #ifndef _EXPORTER_H #define _EXPORTER_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + +#include "nffile.h" + int InitExporterList(void); int AddExporterInfo(exporter_info_record_t *exporter_record); diff --git a/bin/flist.h b/bin/flist.h index 1b2fac5..4c3b18e 100644 --- a/bin/flist.h +++ b/bin/flist.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,17 +29,15 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: flist.h 39 2009-11-25 08:11:15Z haag $ - * - * $LastChangedRevision: 39 $ - * */ #ifndef _FLIST_H #define _FLIST_H 1 +#include + +#include "nffile.h" + #define EMPTY_LIST ((nffile_t *)-1) int InitHierPath(int num); diff --git a/bin/flowtree.h b/bin/flowtree.h index a140e5a..39ba8fd 100644 --- a/bin/flowtree.h +++ b/bin/flowtree.h @@ -37,15 +37,17 @@ #include "config.h" #endif +#include #ifdef HAVE_STDINT_H #include #endif +#include #include #include +#include "collector.h" #include "rbtree.h" -#include "nffile.h" #define v4 ip_union._v4 #define v6 ip_union._v6 diff --git a/bin/ipconv.h b/bin/ipconv.h index 5d3d9e2..2f04504 100755 --- a/bin/ipconv.h +++ b/bin/ipconv.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,18 +29,18 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author:$ - * - * $Id:$ - * - * $LastChangedRevision:$ - * - * */ #ifndef _IPCONV_H #define _IPCONV_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + int parse_ip(int *af, const char *src, uint64_t *dst, int *bytes, int lookup, uint32_t *num_ip ); int set_nameserver(char *ns); diff --git a/bin/ipfix.h b/bin/ipfix.h index 1b5e7c9..46f81ba 100644 --- a/bin/ipfix.h +++ b/bin/ipfix.h @@ -33,6 +33,15 @@ #ifndef _IPFIX_H #define _IPFIX_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + +#include "collector.h" + /* reference: http://tools.ietf.org/html/draft-ietf-ipfix-protocol-rfc5101bis-00 */ typedef struct ipfix_header { diff --git a/bin/ipfrag.h b/bin/ipfrag.h index 159f0fe..6b88781 100644 --- a/bin/ipfrag.h +++ b/bin/ipfrag.h @@ -29,6 +29,18 @@ * */ +#ifndef _IPFRAG_H +#define _IPFRAG_H 1 + +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + +#include "rbtree.h" + typedef struct hole_s { struct hole_s *next; uint32_t first; @@ -69,3 +81,4 @@ void *IPFrag_tree_Update(uint32_t src, uint32_t dst, uint32_t ident, uint32_t *l uint32_t IPFragEntries(void); +#endif diff --git a/bin/launch.h b/bin/launch.h index 4757532..ba2736b 100644 --- a/bin/launch.h +++ b/bin/launch.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,18 +29,15 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: launch.h 39 2009-11-25 08:11:15Z haag $ - * - * $LastChangedRevision: 39 $ - * - * */ #ifndef _LAUNCH_H #define _LAUNCH_H 1 +#include "config.h" + +#include + #define FNAME_SIZE 256 #define IDENT_SIZE 32 diff --git a/bin/netflow_pcap.h b/bin/netflow_pcap.h index e5aba63..e0ac6f1 100644 --- a/bin/netflow_pcap.h +++ b/bin/netflow_pcap.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2016, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2013, Peter Haag diff --git a/bin/netflow_v1.h b/bin/netflow_v1.h index c4a192c..5da4989 100644 --- a/bin/netflow_v1.h +++ b/bin/netflow_v1.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2016, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag @@ -34,6 +35,15 @@ #ifndef _NETFLOW_V1_H #define _NETFLOW_V1_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + +#include "collector.h" + #define NETFLOW_V1_HEADER_LENGTH 16 #define NETFLOW_V1_RECORD_LENGTH 48 #define NETFLOW_V1_MAX_RECORDS 24 diff --git a/bin/netflow_v5_v7.h b/bin/netflow_v5_v7.h index 10bc437..4499430 100644 --- a/bin/netflow_v5_v7.h +++ b/bin/netflow_v5_v7.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,17 +29,22 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: netflow_v5_v7.h 39 2009-11-25 08:11:15Z haag $ - * - * $LastChangedRevision: 39 $ - * */ #ifndef _NETFLOW_V5_V7_H #define _NETFLOW_V5_V7_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + +#include "collector.h" +#include "nffile.h" +#include "nfnet.h" + #define NETFLOW_V5_HEADER_LENGTH 24 #define NETFLOW_V5_RECORD_LENGTH 48 #define NETFLOW_V5_MAX_RECORDS 30 diff --git a/bin/netflow_v9.h b/bin/netflow_v9.h index 1bfd91a..7dbf568 100644 --- a/bin/netflow_v9.h +++ b/bin/netflow_v9.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,12 +29,6 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: netflow_v9.h 51 2010-01-29 09:01:54Z haag $ - * - * $LastChangedRevision: 51 $ - * */ /* v9 structures */ @@ -72,6 +67,17 @@ #ifndef _NETFLOW_V9_H #define _NETFLOW_V9_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + +#include "collector.h" +#include "nfnet.h" +#include "nffile.h" + typedef struct netflow_v9_header { uint16_t version; uint16_t count; diff --git a/bin/nf_common.c b/bin/nf_common.c index fbecd31..774b43a 100644 --- a/bin/nf_common.c +++ b/bin/nf_common.c @@ -35,6 +35,7 @@ #include "config.h" #include +#include #include #include #include diff --git a/bin/nf_common.h b/bin/nf_common.h index 02f27e0..95a423f 100644 --- a/bin/nf_common.h +++ b/bin/nf_common.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,18 +29,18 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: nf_common.h 39 2009-11-25 08:11:15Z haag $ - * - * $LastChangedRevision: 39 $ - * - * */ #ifndef _NF_COMMON_H #define _NF_COMMON_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif +#include typedef void (*printer_t)(void *, char **, int); diff --git a/bin/nfexport.h b/bin/nfexport.h index 5e28f8e..0f6529c 100755 --- a/bin/nfexport.h +++ b/bin/nfexport.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2015, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,17 +29,14 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: nfexport.h 54 2010-01-29 11:30:22Z haag $ - * - * $LastChangedRevision: 54 $ - * */ #ifndef _NFEXPORT_H #define _NFEXPORT_H 1 +#include "nffile.h" +#include "nfx.h" + int ExportFlowTable(nffile_t *nffile, int aggregate, int bidir, int date_sorted, extension_map_list_t *extension_map_list); #endif //_NFEXPORT_H diff --git a/bin/nffile.h b/bin/nffile.h index 89d1c6f..cda015b 100644 --- a/bin/nffile.h +++ b/bin/nffile.h @@ -34,8 +34,12 @@ #ifndef _NFFILE_H #define _NFFILE_H 1 -#ifdef HAVE_STDDEF_H +#include "config.h" + #include +#include +#ifdef HAVE_STDINT_H +#include #endif #define IDENTLEN 128 diff --git a/bin/nflowcache.c b/bin/nflowcache.c index 912e27b..8766af8 100755 --- a/bin/nflowcache.c +++ b/bin/nflowcache.c @@ -34,6 +34,7 @@ #include "config.h" #include +#include #include #include #include diff --git a/bin/nflowcache.h b/bin/nflowcache.h index 4589c76..b7f8a4b 100755 --- a/bin/nflowcache.h +++ b/bin/nflowcache.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,17 +29,21 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: nflowcache.h 39 2009-11-25 08:11:15Z haag $ - * - * $LastChangedRevision: 39 $ - * */ #ifndef _NFLOWCACHE_H #define _NFLOWCACHE_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + +#include "nfx.h" +#include "nffile.h" + /* Definitions */ /* diff --git a/bin/nfnet.h b/bin/nfnet.h index e8fe2d7..e95c5a8 100644 --- a/bin/nfnet.h +++ b/bin/nfnet.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2016, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,17 +29,16 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: nfnet.h 39 2009-11-25 08:11:15Z haag $ - * - * $LastChangedRevision: 39 $ - * */ #ifndef _NFNET_H #define _NFNET_H 1 +#include "config.h" + +#include + + /* Definitions */ #define UDP_PACKET_SIZE 1472 diff --git a/bin/nfprof.h b/bin/nfprof.h index 6e7ca85..917f772 100644 --- a/bin/nfprof.h +++ b/bin/nfprof.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,17 +29,22 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: nfprof.h 39 2009-11-25 08:11:15Z haag $ - * - * $LastChangedRevision: 39 $ - * */ #ifndef _NFPROF_H #define _NFPROF_H 1 +#include "config.h" + +#include +#include +#ifdef HAVE_STDINT_H +#include +#endif + +#include +#include + typedef struct nfprof_s { struct timeval tstart; /* start time */ struct timeval tend; /* end time */ diff --git a/bin/nfstat.h b/bin/nfstat.h index 29e96c2..bda4644 100644 --- a/bin/nfstat.h +++ b/bin/nfstat.h @@ -34,6 +34,17 @@ #ifndef _NFSTAT_H #define _NFSTAT_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + +#include "nf_common.h" +#include "nfx.h" +#include "nffile.h" + /* Definitions */ diff --git a/bin/nfstatfile.h b/bin/nfstatfile.h index a5fc2c0..8ac59f7 100644 --- a/bin/nfstatfile.h +++ b/bin/nfstatfile.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,17 +29,18 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: nfstatfile.h 39 2009-11-25 08:11:15Z haag $ - * - * $LastChangedRevision: 39 $ - * */ #ifndef _NFSTATFILE_H #define _NFSTATFILE_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + typedef struct dirstat_s { uint64_t first; // for more easy parsing and assigning, take a uint64_t also for the time_t type uint64_t last; diff --git a/bin/nftree.h b/bin/nftree.h index cb81609..be67494 100644 --- a/bin/nftree.h +++ b/bin/nftree.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,17 +29,20 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: nftree.h 39 2009-11-25 08:11:15Z haag $ - * - * $LastChangedRevision: 39 $ - * */ #ifndef _NFTREE_H #define _NFTREE_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + +#include "rbtree.h" + /* * type definitions for nf tree */ diff --git a/bin/nfx.h b/bin/nfx.h index a474c51..3b125e5 100755 --- a/bin/nfx.h +++ b/bin/nfx.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,17 +29,20 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: nfx.h 48 2010-01-02 08:06:27Z haag $ - * - * $LastChangedRevision: 48 $ - * */ #ifndef _NFX_H #define _NFX_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + +#include "nffile.h" + // MAX_EXTENSION_MAPS must be a power of 2 #define MAX_EXTENSION_MAPS 65536 #define EXTENSION_MAP_MASK (MAX_EXTENSION_MAPS-1) diff --git a/bin/panonymizer.h b/bin/panonymizer.h index f076301..a4bbbdc 100644 --- a/bin/panonymizer.h +++ b/bin/panonymizer.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,12 +29,6 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: panonymizer.h 39 2009-11-25 08:11:15Z haag $ - * - * $LastChangedRevision: 39 $ - * */ /* Original disclaimer @@ -80,6 +75,13 @@ #ifndef _PANONYMIZER_H_ #define _PANONYMIZER_H_ 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + #include "rijndael.h" // PAnonymizer_Init need a 256-bit key diff --git a/bin/pcap_reader.h b/bin/pcap_reader.h index 81f22be..df281f9 100755 --- a/bin/pcap_reader.h +++ b/bin/pcap_reader.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017, Peter Haag * Copyright (c) 2014, Peter Haag * Copyright (c) 2009, Peter Haag * Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -28,18 +29,20 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Author: haag $ - * - * $Id: pcap_reader.h 39 2009-11-25 08:11:15Z haag $ - * - * $LastChangedRevision: 39 $ - * - * */ #ifndef _PCAP_READER_H #define _PCAP_READER_H 1 +#include "config.h" + +#include +#ifdef HAVE_STDINT_H +#include +#endif + +#include + void setup_packethandler(char *fname, char *filter ); // ssize_t NextPacket(void *buffer, size_t buffer_size); diff --git a/bin/profile.h b/bin/profile.h index 8ad6ba4..d5c56f5 100644 --- a/bin/profile.h +++ b/bin/profile.h @@ -34,6 +34,10 @@ #ifndef _PROFILE_H #define _PROFILE_H 1 +#include "nftree.h" +#include "nffile.h" +#include "nfstatfile.h" + typedef struct profile_param_info_s { struct profile_param_info_s *next; int profiletype; diff --git a/bin/sflow_process.h b/bin/sflow_process.h index 246d1d4..da3b07f 100644 --- a/bin/sflow_process.h +++ b/bin/sflow_process.h @@ -34,6 +34,8 @@ #ifndef _SFLOW_PROCESS_H #define _SFLOW_PROCESS_H 1 +#include "config.h" + #include #ifdef HAVE_STDINT_H #include