* \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"
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);
void DetectPortTests(void);
#endif
-#endif /* SURICATA_DETECT_PORT_H */
+#endif /* SURICATA_DETECT_ENGINE_PORT_H */
* \author Shivani Bhardwaj <shivani@oisf.net>
*/
-#ifndef SURICATA_UTIL_INTERVAL_TREE_H
-#define SURICATA_UTIL_INTERVAL_TREE_H
+#ifndef SURICATA_UTIL_PORT_INTERVAL_TREE_H
+#define SURICATA_UTIL_PORT_INTERVAL_TREE_H
#include "detect-engine-port.h"
-#endif /* SURICATA_UTIL_INTERVAL_TREE_H */
+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 **);
+
+#endif /* SURICATA_UTIL_PORT_INTERVAL_TREE_H */