YAF Core Library
libyaf 0.8.0 API documentation

yaftab.h

Go to the documentation of this file.
00001 /*
00002  ** yaftab.h
00003  ** YAF Active Flow Table
00004  **
00005  ** ------------------------------------------------------------------------
00006  ** Copyright (C) 2006-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 
00066 #ifndef _YAF_TAB_H_
00067 #define _YAF_TAB_H_
00068 
00069 #include <yaf/autoinc.h>
00070 #include <yaf/yafcore.h>
00071 
00085 void yfFlowInit(
00086     int             datalink);
00087 
00104 void yfFlowPkt(
00105     uint8_t                     *vctx,
00106     const struct pcap_pkthdr    *hdr,
00107     const uint8_t               *pkt);
00108 
00122 gboolean yfFlowFlush(
00123     fBuf_t          *fbuf,
00124     gboolean        flush_all,
00125     GError          **err);
00126 
00138 gboolean yfFlowNext(
00139     yfFlow_t        *flow,
00140     gboolean        flush_all);
00141 
00150 void yfFlowDumpStats(
00151     GTimer          *timer);
00152 
00153 #endif