24 #ifndef __DETECT_PROTO_H__ 25 #define __DETECT_PROTO_H__ 27 #define DETECT_PROTO_ANY (1 << 0) 29 #define DETECT_PROTO_ONLY_PKT (1 << 1) 31 #define DETECT_PROTO_ONLY_STREAM (1 << 2) 33 #define DETECT_PROTO_IPV4 (1 << 3) 34 #define DETECT_PROTO_IPV6 (1 << 4)
int DetectProtoParse(DetectProto *dp, const char *str)
Parses a protocol sent as a string.
int DetectProtoContainsProto(const DetectProto *, int)
see if a DetectProto contains a certain proto
void DetectProtoTests(void)
this function registers unit tests for DetectProto
struct DetectProto_ DetectProto