mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
902 B
C
22 lines
902 B
C
15 years ago
|
#ifndef __UTIL_UNITTEST_HELPER__
|
||
|
#define __UTIL_UNITTEST_HELPER__
|
||
|
|
||
|
Packet *UTHBuildPacketReal(uint8_t *, uint16_t, uint16_t, char *, char *, uint16_t, uint16_t);
|
||
|
Packet *UTHBuildPacket(uint8_t *, uint16_t, uint16_t);
|
||
|
Packet *UTHBuildPacketSrcDst(uint8_t *, uint16_t, uint16_t, char *, char *);
|
||
|
Packet *UTHBuildPacketSrcDstPorts(uint8_t *, uint16_t, uint16_t, uint16_t, uint16_t);
|
||
|
void UTHFreePacket(Packet *);
|
||
|
void UTHFreePackets(Packet **, int);
|
||
|
|
||
|
int UTHAppendSigs(DetectEngineCtx *, char **, int);
|
||
|
int UTHMatchPackets(DetectEngineCtx *, Packet **, int);
|
||
|
int UTHPacketMatchSig(Packet *p, char *);
|
||
|
int UTHCheckPacketMatch(Packet *, uint32_t *, uint32_t *, int);
|
||
|
|
||
|
int UTHMatchPacketsWithResults(DetectEngineCtx *, Packet **, int, uint32_t *, uint32_t *, int);
|
||
|
int UTHGenericTest(Packet **, int, char **, uint32_t *, uint32_t *, int);
|
||
|
|
||
|
void UTHRegisterTests(void);
|
||
|
|
||
|
#endif /* __UTIL_UNITTEST_HELPER__ */
|