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

plugin-interface.c File Reference

Interfaces to and from plugins for the rest of the system. More...

#include "packet.h"
#include "plugin.h"
#include "policy.h"
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <dirent.h>
#include <unistd.h>
#include <dlfcn.h>
#include <stdio.h>
#include "memory.h"
#include "naming.h"

Go to the source code of this file.

Defines

#define DEBUG_PLUGIN_INT   0

Functions

void appendProtocol (PACKET *p, PROTO_LL *proto)
int loadPlugins (char *dir)
int initPlugin (PLUGIN *plug, int ct, char **inits)
int decode (PACKET *p, PROTO protocol)
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 *type, char *args)
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)
int cleanupPlugins (void)

Variables

PLUGINinp_list = 0
PLUGINanp_list = 0
PLUGINprotop_list = 0
PLUGINoutp_list = 0
PLUGINall_plugins = 0


Detailed Description

Interfaces to and from plugins for the rest of the system.

Contains the code for the functions to access plugins from the main program loop, callbacks for use by plugins, and some common code for building and accessing the packet structure.

Definition in file plugin-interface.c.


Define Documentation

#define DEBUG_PLUGIN_INT   0
 

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


Function Documentation

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

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

void appendProtocol ( PACKET * p,
PROTO_LL * proto )
 

Definition at line 39 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.


Variable Documentation

PLUGIN * all_plugins = 0
 

Definition at line 25 of file rubicon.c.

PLUGIN * anp_list = 0
 

Definition at line 22 of file rubicon.c.

PLUGIN * inp_list = 0
 

Definition at line 21 of file rubicon.c.

PLUGIN * outp_list = 0
 

Definition at line 24 of file rubicon.c.

PLUGIN * protop_list = 0
 

Definition at line 23 of file rubicon.c.


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