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.
32 lines
853 B
C
32 lines
853 B
C
16 years ago
|
/* Copyright (c) 2009 Open Information Security Foundation */
|
||
|
|
||
|
/**
|
||
|
* \file
|
||
|
* \author Brian Rectanus <brectanu@gmail.com>
|
||
|
*/
|
||
|
|
||
|
#ifndef __DETECT_IPPROTO_H__
|
||
|
#define __DETECT_IPPROTO_H__
|
||
|
|
||
|
/** IPProto Operators */
|
||
|
#define DETECT_IPPROTO_OP_EQ '=' /**< "equals" operator (default) */
|
||
|
#define DETECT_IPPROTO_OP_NOT '!' /**< "not" operator */
|
||
|
#define DETECT_IPPROTO_OP_LT '<' /**< "less than" operator */
|
||
|
#define DETECT_IPPROTO_OP_GT '>' /**< "greater than" operator */
|
||
|
|
||
|
/** ip_proto data */
|
||
|
typedef struct DetectIPProtoData_ {
|
||
|
uint8_t op; /**< Operator used to compare */
|
||
|
uint8_t proto; /**< Protocol used to compare */
|
||
|
} DetectIPProtoData;
|
||
|
|
||
|
/* prototypes */
|
||
|
|
||
|
/**
|
||
|
* \brief Registration function for ip_proto keyword.
|
||
|
*/
|
||
|
void DetectIPProtoRegister (void);
|
||
|
|
||
|
#endif /* __DETECT_IPPROTO_H__ */
|
||
|
|