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.
39 lines
1.2 KiB
C
39 lines
1.2 KiB
C
/*
|
|
* \file: app-layer-htp.h
|
|
* \author Gurvinder Singh <gurvindersinghdahiya@gmail.com>
|
|
*
|
|
* Created on November 14, 2009, 12:48 AM
|
|
*/
|
|
|
|
#ifndef __APP_LAYER_HTP_H__
|
|
#define __APP_LAYER_HTP_H__
|
|
|
|
#include <htp/htp.h>
|
|
|
|
#define HTP_FLAG_STATE_OPEN 0x01 /**< Flag to indicate that HTTP
|
|
connection is open */
|
|
#define HTP_FLAG_STATE_CLOSED 0x02 /**< Flag to indicate that HTTP
|
|
connection is closed */
|
|
#define HTP_FLAG_STATE_DATA 0x04 /**< Flag to indicate that HTTP
|
|
connection needs more data */
|
|
#define HTP_FLAG_STATE_ERROR 0x08 /**< Flag to indicate that an error
|
|
has been occured on HTTP
|
|
connection */
|
|
|
|
typedef struct HtpState_ {
|
|
|
|
htp_connp_t *connp; /**< Connection parser structure for each connection */
|
|
uint8_t flags;
|
|
|
|
} HtpState;
|
|
|
|
htp_cfg_t *cfg; /**< Config structure for HTP library */
|
|
|
|
void RegisterHTPParsers(void);
|
|
void HTPParserRegisterTests(void);
|
|
void HTPAtExitPrintStats(void);
|
|
void HTPFreeConfig(void);
|
|
|
|
#endif /* __APP_LAYER_HTP_H__ */
|
|
|