fixed-pool-error-and-tcp-state-transition

remotes/origin/master-1.0.x
Gurvinder Singh 16 years ago committed by Victor Julien
parent 53e3e6dee8
commit d8433c7255

@ -95,7 +95,7 @@ static int AlpStoreField(AppLayerParserResult *output, uint16_t idx,
AppLayerParserResultElmt *e = AlpGetResultElmt();
if (e == NULL) {
SCLogError(SC_INVALID_ARGUMENT, " App layer pool returned NULL");
SCLogError(SC_ERR_POOL_EMPTY, "App layer \"al_result_pool\" is empty");
SCReturnInt(-1);
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -8,8 +8,8 @@
#define STREAM_VERBOSE FALSE
/*global flow data*/
typedef struct TcpStreamCnf_ {
uint32_t max_sessions;
uint32_t prealloc_sessions;
int max_sessions;
int prealloc_sessions;
int midstream;
int async_oneside;
} TcpStreamCnf;

@ -49,6 +49,9 @@ const char * SCErrorToString(SCError err)
CASE_CODE (SC_INVALID_NUM_BYTES);
CASE_CODE (SC_ERR_ARG_LEN_LONG);
CASE_CODE (SC_ALPARSER_ERR);
CASE_CODE (SC_ERR_POOL_EMPTY);
CASE_CODE (SC_ERR_REASSEMBLY_FAILED);
CASE_CODE (SC_ERR_POOL_INIT_FAILED);
default:
return "UNKNOWN_ERROR";
}

@ -49,6 +49,9 @@ typedef enum {
SC_NUMERIC_VALUE_ERANGE,
SC_INVALID_NUM_BYTES,
SC_ERR_ARG_LEN_LONG,
SC_ERR_POOL_EMPTY,
SC_ERR_REASSEMBLY_FAILED,
SC_ERR_POOL_INIT_FAILED,
SC_NFQ_OPEN,
SC_NFQ_BIND,
SC_NFQ_UNBIND,

Loading…
Cancel
Save