"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/preprocessors/HttpInspect/include/hi_server.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.

hi_server.h  (snort-2.9.16.1):hi_server.h  (snort-2.9.17)
skipping to change at line 44 skipping to change at line 44
** - Initial development. DJR ** - Initial development. DJR
*/ */
#ifndef __HI_SERVER_H__ #ifndef __HI_SERVER_H__
#define __HI_SERVER_H__ #define __HI_SERVER_H__
#include "hi_include.h" #include "hi_include.h"
#include "hi_util.h" #include "hi_util.h"
#include "snort_httpinspect.h" #include "snort_httpinspect.h"
#include "hi_client.h" #include "hi_client.h"
#define RANGE_UNIT_BYTE "bytes"
#ifndef HTTP_RESP_RANGE_NONE
#define HTTP_RESP_RANGE_NONE 0
#endif
#define RANGE_WITH_RESP_FULL_CONTENT 1
#define RANGE_WITH_RESP_PARTIAL_CONTENT 2
#define RANGE_WITH_RESP_ERROR 3
#define RANGE_WITH_RESP_NON_BYTE 4
#define RANGE_WITH_UNKNOWN_CONTENT_RANGE 5
#define RANGE_WITH_RESP_UNKNOWN_CONTENT_SIZE 6
#define RANGE_WITH_RESP_SKIP 7
#define ACCEPT_RANGE_UNKNOWN 0
#define ACCEPT_RANGE_NONE 1
#define ACCEPT_RANGE_BYTES 2
#define ACCEPT_RANGE_OTHER 3
typedef struct s_HI_SERVER_RESP typedef struct s_HI_SERVER_RESP
{ {
const u_char *status_code; const u_char *status_code;
const u_char *status_msg; const u_char *status_msg;
const u_char *header_raw; const u_char *header_raw;
const u_char *header_norm; const u_char *header_norm;
COOKIE_PTR cookie; COOKIE_PTR cookie;
const u_char *cookie_norm; const u_char *cookie_norm;
const u_char *body; const u_char *body;
const u_char *body_raw; const u_char *body_raw;
skipping to change at line 66 skipping to change at line 84
u_int body_raw_size; u_int body_raw_size;
u_int status_code_size; u_int status_code_size;
u_int status_msg_size; u_int status_msg_size;
u_int header_raw_size; u_int header_raw_size;
u_int header_norm_size; u_int header_norm_size;
u_int cookie_norm_size; u_int cookie_norm_size;
uint16_t header_encode_type; uint16_t header_encode_type;
uint16_t cookie_encode_type; uint16_t cookie_encode_type;
uint8_t accept_range_flag;
uint8_t range_flag;
} HI_SERVER_RESP; } HI_SERVER_RESP;
typedef struct s_HI_SERVER typedef struct s_HI_SERVER
{ {
HI_SERVER_RESP response; HI_SERVER_RESP response;
HI_SERVER_EVENTS event_list; HI_SERVER_EVENTS event_list;
} HI_SERVER; } HI_SERVER;
int hi_server_inspection(void *, Packet *, HttpSessionData *); int hi_server_inspection(void *, Packet *, HttpSessionData *);
int hi_server_is_known_header(const u_char *p, const u_char *end); int hi_server_is_known_header(const u_char *p, const u_char *end);
 End of changes. 2 change blocks. 
0 lines changed or deleted 20 lines changed or added

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