"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/preprocessors/HttpInspect/include/hi_client.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_client.h  (snort-2.9.16.1):hi_client.h  (snort-2.9.17)
skipping to change at line 54 skipping to change at line 54
#define TRUE_CLIENT_IP_HDR (0x01) #define TRUE_CLIENT_IP_HDR (0x01)
#define XFF_HDR (0x02) #define XFF_HDR (0x02)
#define HDRS_BOTH (0x03) #define HDRS_BOTH (0x03)
#define XFF_HEADERS (0x04) // Using xff_headers list #define XFF_HEADERS (0x04) // Using xff_headers list
#define XFF_HEADERS_ACTIVE (0x08) // Looking for highest precedence xff header #define XFF_HEADERS_ACTIVE (0x08) // Looking for highest precedence xff header
#define XFF_INIT (XFF_HEADERS | XFF_HEADERS_ACTIVE) #define XFF_INIT (XFF_HEADERS | XFF_HEADERS_ACTIVE)
#define XFF_TOP_PRECEDENCE (1) #define XFF_TOP_PRECEDENCE (1)
#define XFF_BOT_PRECEDENCE (255) #define XFF_BOT_PRECEDENCE (255)
#define HTTP_RANGE_NONE 0
#define HTTP_RANGE_WITH_FULL_CONTENT_REQ 1
#define RANGE_WITH_PARTIAL_CONTENT_REQ 2
#define RANGE_WITH_REQ_ERROR 3
typedef struct s_COOKIE_PTR typedef struct s_COOKIE_PTR
{ {
const u_char *cookie; const u_char *cookie;
const u_char *cookie_end; const u_char *cookie_end;
struct s_COOKIE_PTR *next; struct s_COOKIE_PTR *next;
} COOKIE_PTR; } COOKIE_PTR;
typedef struct s_CONTLEN_PTR typedef struct s_CONTLEN_PTR
{ {
const u_char *cont_len_start; const u_char *cont_len_start;
skipping to change at line 122 skipping to change at line 127
const u_char *last_dir; /* ptr to last dir, so we catch long dirs */ const u_char *last_dir; /* ptr to last dir, so we catch long dirs */
const u_char *proxy; /* ptr to the absolute URI */ const u_char *proxy; /* ptr to the absolute URI */
} URI_PTR; } URI_PTR;
typedef struct s_HEADER_PTR typedef struct s_HEADER_PTR
{ {
URI_PTR header; URI_PTR header;
COOKIE_PTR cookie; COOKIE_PTR cookie;
CONTLEN_PTR content_len; CONTLEN_PTR content_len;
CONT_ENCODING_PTR content_encoding; CONT_ENCODING_PTR content_encoding;
uint8_t range_flag;
bool is_chunked; bool is_chunked;
#if defined(FEAT_OPEN_APPID) #if defined(FEAT_OPEN_APPID)
HEADER_LOCATION userAgent, referer, method, via, responseCode, server, xWork ingWith, contentType; HEADER_LOCATION userAgent, referer, method, via, responseCode, server, xWork ingWith, contentType;
#endif /* defined(FEAT_OPEN_APPID) */ #endif /* defined(FEAT_OPEN_APPID) */
} HEADER_PTR; } HEADER_PTR;
typedef struct s_HI_CLIENT_REQ typedef struct s_HI_CLIENT_REQ
{ {
/* /*
u_char *method; u_char *method;
skipping to change at line 179 skipping to change at line 185
*/ */
const u_char *pipeline_req; const u_char *pipeline_req;
u_char method; u_char method;
uint16_t uri_encode_type; uint16_t uri_encode_type;
uint16_t header_encode_type; uint16_t header_encode_type;
uint16_t cookie_encode_type; uint16_t cookie_encode_type;
uint16_t post_encode_type; uint16_t post_encode_type;
const u_char *content_type; const u_char *content_type;
const u_char *content_disp; const u_char *content_disp;
uint8_t range_flag;
} HI_CLIENT_REQ; } HI_CLIENT_REQ;
typedef struct s_HI_CLIENT typedef struct s_HI_CLIENT
{ {
HI_CLIENT_REQ request; HI_CLIENT_REQ request;
int (*state)(void *, unsigned char, int); int (*state)(void *, unsigned char, int);
HI_CLIENT_EVENTS event_list; HI_CLIENT_EVENTS event_list;
} HI_CLIENT; } HI_CLIENT;
 End of changes. 3 change blocks. 
0 lines changed or deleted 7 lines changed or added

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