@ -21,8 +21,8 @@
* \ author Victor Julien < victor @ inliniac . net >
*/
# ifndef SURICATA_DETECT_ PORT_H
# define SURICATA_DETECT_ PORT_H
# ifndef SURICATA_DETECT_ ENGINE_ PORT_H
# define SURICATA_DETECT_ ENGINE_ PORT_H
# include "interval-tree.h"
# include "detect.h"
@ -41,17 +41,6 @@ IRB_HEAD(PI, SCPortIntervalNode); /* head of the interval tree */
IRB_PROTOTYPE ( PI , SCPortIntervalNode , irb ,
SCPortIntervalCompare ) ; /* prototype definition of the interval tree */
typedef struct SCPortIntervalTree_ {
struct PI tree ;
SCPortIntervalNode * head ;
} SCPortIntervalTree ;
SCPortIntervalTree * SCPortIntervalTreeInit ( void ) ;
void SCPortIntervalTreeFree ( DetectEngineCtx * , SCPortIntervalTree * ) ;
int SCPortIntervalInsert ( DetectEngineCtx * , SCPortIntervalTree * , const DetectPort * ) ;
void SCPortIntervalFindOverlappingRanges (
DetectEngineCtx * , const uint16_t , const uint16_t , const struct PI * , DetectPort * * ) ;
/* prototypes */
int DetectPortParse ( const DetectEngineCtx * , DetectPort * * head , const char * str ) ;
@ -80,4 +69,4 @@ int DetectPortHashInit(DetectEngineCtx *de_ctx);
void DetectPortTests ( void ) ;
# endif
# endif /* SURICATA_DETECT_ PORT_H */
# endif /* SURICATA_DETECT_ ENGINE_ PORT_H */