"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/detection-plugins/sp_byte_math.h" between
snort-2.9.16.1.tar.gz and snort-2.9.17.tar.gz

About: Snort is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

sp_byte_math.h  (snort-2.9.16.1):sp_byte_math.h  (snort-2.9.17)
skipping to change at line 20 skipping to change at line 20
#define BM_MULTIPLY CHECK_MUL #define BM_MULTIPLY CHECK_MUL
#define BM_DIVIDE CHECK_DIV #define BM_DIVIDE CHECK_DIV
#define BM_LEFT_SHIFT CHECK_LS #define BM_LEFT_SHIFT CHECK_LS
#define BM_RIGHT_SHIFT CHECK_RS #define BM_RIGHT_SHIFT CHECK_RS
#define BM_CHECK_NONE CHECK_NONE #define BM_CHECK_NONE CHECK_NONE
#define BIG 0 #define BIG 0
#define LITTLE 1 #define LITTLE 1
#define BYTE_MATH_VAR_INDEX 2 #define BYTE_MATH_VAR_INDEX 2
#define COMMON_VAR_INDEX 3
#define MIN_RVAL 1 #define MIN_RVAL 1
#define MAX_RVAL 4294967295 #define MAX_RVAL 4294967295
extern char *bytemath_variable_name; extern char *bytemath_variable_name;
extern uint32_t bytemath_variable; extern uint32_t bytemath_variable;
extern uint32_t common_var;
typedef struct _ByteMathData typedef struct _ByteMathData
{ {
uint32_t bytes_to_extract; /* lvalue : number of bytes to extract */ uint32_t bytes_to_extract; /* lvalue : number of bytes to extract */
uint32_t rvalue; uint32_t rvalue;
uint32_t operator; uint32_t operator;
int32_t offset; int32_t offset;
uint8_t relative_flag; uint8_t relative_flag;
uint8_t data_string_convert_flag; uint8_t data_string_convert_flag;
int8_t endianess; int8_t endianess;
skipping to change at line 52 skipping to change at line 54
} ByteMathData; } ByteMathData;
void SetupByteMath(void); void SetupByteMath(void);
uint32_t ByteMathHash(void *d); uint32_t ByteMathHash(void *d);
int8_t GetVarByName_check(char *name); int8_t GetVarByName_check(char *name);
void ClearByteMathVarNames(OptFpList *fpl); void ClearByteMathVarNames(OptFpList *fpl);
void AddVarName_Bytemath(ByteMathData *data); void AddVarName_Bytemath(ByteMathData *data);
int ByteMathCompare(void *l, void *r); int ByteMathCompare(void *l, void *r);
int ByteMath(void *, Packet *); int ByteMath(void *, Packet *);
void ByteMathFree(void *d); void ByteMathFree(void *d);
uint32_t find_value (char* );
#endif /* __SP_BYTE_MATH_H__ */ #endif /* __SP_BYTE_MATH_H__ */
 End of changes. 3 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)