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

hi_util.h File Reference

HttpInspect utility functions. More...

#include "hi_include.h"

Go to the source code of this file.

Functions

static INLINE int hi_util_in_bounds (u_char *start, u_char *end, u_char *p)


Detailed Description

HttpInspect utility functions.

Author:
Daniel Roelker <droelker@sourcefire.com>
Contains function prototype and inline utility functions.

NOTES:

Definition in file hi_util.h.


Function Documentation

static INLINE int hi_util_in_bounds u_char *  start,
u_char *  end,
u_char *  p
[static]
 

This function checks for in bounds condition on buffers.

This is very important for much of what we do here, since inspecting data buffers is mainly what we do. So we always make sure that we are within the buffer.

This checks a half-open interval with the end pointer being one char after the end of the buffer.

Parameters:
start the start of the buffer.
end the end of the buffer.
p the pointer within the buffer
Returns:
integer
Return values:
1 within bounds
0 not within bounds

Definition at line 42 of file hi_util.h.

Referenced by CheckChunkEncoding(), find_rfc_delimiter(), GetChar(), GetPtr(), hi_norm_uri(), InspectUriChar(), NextNonWhiteSpace(), SetProxy(), SetSlashNorm(), and StatelessInspection().


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