defrag.h

Go to the documentation of this file.
00001 /*
00002  ** defrag.h
00003  ** YAF IP Defragmentation
00004  **
00005  ** ------------------------------------------------------------------------
00006  ** Copyright (C) 2006 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  
00032 #ifndef _YAF_DEFRAG_H_
00033 #define _YAF_DEFRAG_H_
00034 
00035 #include <yaf/autoinc.h>
00036 
00043 typedef void (*YAFragFunc) (
00044     uint8_t                     *vctx,
00045     const struct pcap_pkthdr    *hdr,
00046     const uint8_t               *pkt);
00047 
00073 void yaf_defrag_init(
00074     int32_t         init_datalink,
00075     uint32_t        init_timeout,
00076     uint32_t        init_maxcount,
00077     YAFragFunc      init_ipfn,
00078     YAFragFunc      init_nonipfn);
00079 
00093 void yaf_defrag(
00094     uint8_t                     *vctx,
00095     const struct pcap_pkthdr    *hdr,
00096     const uint8_t               *pkt);
00097 
00104 void yaf_defrag_reset();
00105 
00106 #endif

© 2005-2006 Carnegie Mellon University
Generated Thu Jul 6 15:52:58 2006 for YAF 0.1.6 by Doxygen 1.4.5.