Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

plugin.h File Reference

General plugin header. More...

#include "types.h"
#include "policy.h"
#include "packet.h"

Go to the source code of this file.

Compounds

struct  ANPLUG_S
struct  INPLUG_S
struct  OUTPLUG_S
struct  PLUGIN_S
struct  PROTOPLUG_S

Typedefs

typedef struct INPLUG_S  INPLUG
typedef struct OUTPLUG_S  OUTPLUG
typedef struct ANPLUG_S  ANPLUG
typedef struct PROTOPLUG_S  PROTOPLUG
typedef struct PLUGIN_S  PLUGIN

Functions

int loadPlugins (char *dir)
int initPlugin (PLUGIN *plug, int ct, char **inits)
int cleanupPlugins (void)
int decode (PACKET *, PROTO)
int testVar (PROTO proto, PACKET *p, long offset, char varType, char testType, unsigned long val)
int testMask (PROTO proto, PACKET *p, long offset, long len, BYTE *val, BYTE *mask, BOOL type)
int testSpecial (PROTO proto, PACKET *p, char *test, char *val)
char* analyse (PROTO proto, PACKET *p, char*,char*)
int printVar (PROTO proto, PACKET *p, char *args, int(*printFn)(char *fmt, ...))
int mkTest (PROTO proto, char *val, char *test, char *field, POLICY_TEST *pTest)


Detailed Description

General plugin header.

Contains prototypes for many of the functions found in plugin-interface.c. It should be included by both plugins and core program files. Does not include any of the *plug.h, these should be done manually in the c files.

Definition in file plugin.h.


Typedef Documentation

typedef struct ANPLUG_S ANPLUG
 

Holder for analysis plugin information

typedef struct INPLUG_S INPLUG
 

Holder for input plugin information

typedef struct OUTPLUG_S OUTPLUG
 

Holder for output plugin information

typedef struct PLUGIN_S PLUGIN
 

Common holder for a plugin's information

typedef struct PROTOPLUG_S PROTOPLUG
 

Holder for protocol plugin information


Function Documentation

char * analyse ( PROTO proto,
PACKET * p,
char * type,
char * args )
 

Definition at line 328 of file plugin-interface.c.

int cleanupPlugins ( void )
 

Definition at line 365 of file plugin-interface.c.

int decode ( PACKET * p,
PROTO protocol )
 

Definition at line 277 of file plugin-interface.c.

int initPlugin ( PLUGIN * plug,
int ct,
char ** inits )
 

Definition at line 265 of file plugin-interface.c.

int loadPlugins ( char * dir )
 

Definition at line 69 of file plugin-interface.c.

int mkTest ( PROTO proto,
char * val,
char * test,
char * field,
POLICY_TEST * pTest )
 

Definition at line 353 of file plugin-interface.c.

int printVar ( PROTO proto,
PACKET * p,
char * args,
int(* printFn)(char *fmt,...) )
 

Definition at line 340 of file plugin-interface.c.

int testMask ( PROTO proto,
PACKET * p,
long offset,
long len,
BYTE * val,
BYTE * mask,
BOOL type )
 

Definition at line 302 of file plugin-interface.c.

int testSpecial ( PROTO proto,
PACKET * p,
char * test,
char * val )
 

Definition at line 315 of file plugin-interface.c.

int testVar ( PROTO proto,
PACKET * p,
long offset,
char varType,
char testType,
unsigned long val )
 

Definition at line 289 of file plugin-interface.c.


Generated at Mon Jul 8 15:16:50 2002 for RUBICON by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000