Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

hi_mi.c File Reference

This file contains functions that deal with the logic of selecting the appropriate mode inspection (client, server, or anomalous server detection). More...

#include "sys/types.h"
#include "hi_si.h"
#include "hi_client.h"
#include "hi_server.h"
#include "hi_ad.h"
#include "hi_return_codes.h"

Go to the source code of this file.

Functions

int hi_mi_mode_inspection (HI_SESSION *Session, int iInspectMode, u_char *data, int dsize)


Detailed Description

This file contains functions that deal with the logic of selecting the appropriate mode inspection (client, server, or anomalous server detection).

Author:
Daniel Roelker <droelker@sourcefire.com>
Not too much more to say about this file, it's really just one function that wraps which mode gets called.

NOTES:

Definition in file hi_mi.c.


Function Documentation

int hi_mi_mode_inspection HI_SESSION Session,
int  iInspectMode,
u_char *  data,
int  dsize
 

Wrap the logic that HttpInspect uses for which mode to inspect.

This function just uses logic to decide which type of inspection to do depending on the inspection mode. Not much to it.

Parameters:
Session pointer to the session inspection structure
iInspectMode the type of inspection to perform
data the packet payload
dsize the size of the data
Returns:
integer
Return values:
HI_SUCCESS function successful
HI_NONFATAL_ERR the inspection mode is unknown
HI_INVALID_ARG argument(s) was invalid or NULL

Definition at line 47 of file hi_mi.c.

References hi_client_inspection(), HI_INVALID_ARG, HI_NONFATAL_ERR, hi_server_anomaly_detection(), hi_server_inspection(), HI_SI_CLIENT_MODE, HI_SI_NO_MODE, HI_SI_SERVER_MODE, and HI_SUCCESS.

Referenced by SnortHttpInspect().


Generated on Sun May 14 14:51:24 2006 by  doxygen 1.4.2