tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
intruder.c File Reference
#include <assert.h>
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include "decoder.h"
#include "detector.h"
#include "dictionary.h"
#include "packet.h"
#include "stream.h"
#include "thread.h"
#include "timer.h"
#include "tm.h"
Include dependency graph for intruder.c:

Classes

struct  arg
 

Typedefs

typedef struct arg arg_t
 

Enumerations

enum  param_types {
  PARAM_EDGE = (unsigned char)'e', PARAM_INSERT = (unsigned char)'i', PARAM_NUMBER = (unsigned char)'n', PARAM_PERCENT = (unsigned char)'p',
  PARAM_RECORD = (unsigned char)'r', PARAM_SEED = (unsigned char)'s', PARAM_THREAD = (unsigned char)'t', PARAM_VAR = (unsigned char)'v',
  PARAM_GENE = (unsigned char)'g', PARAM_NUMBER = (unsigned char)'n', PARAM_SEGMENT = (unsigned char)'s', PARAM_THREAD = (unsigned char)'t',
  PARAM_ATTACK = (unsigned char)'a', PARAM_LENGTH = (unsigned char)'l', PARAM_NUM = (unsigned char)'n', PARAM_SEED = (unsigned char)'s',
  PARAM_THREAD = (unsigned char)'t', PARAM_BENDCOST = (unsigned char)'b', PARAM_THREAD = (unsigned char)'t', PARAM_XCOST = (unsigned char)'x',
  PARAM_YCOST = (unsigned char)'y', PARAM_ZCOST = (unsigned char)'z', PARAM_CLIENTS = (unsigned char)'c', PARAM_NUMBER = (unsigned char)'n',
  PARAM_QUERIES = (unsigned char)'q', PARAM_RELATIONS = (unsigned char)'r', PARAM_TRANSACTIONS = (unsigned char)'t', PARAM_USER = (unsigned char)'u'
}
 
enum  param_defaults {
  PARAM_DEFAULT_EDGE = -1, PARAM_DEFAULT_INSERT = 1, PARAM_DEFAULT_NUMBER = 4, PARAM_DEFAULT_PERCENT = 10,
  PARAM_DEFAULT_RECORD = 4096, PARAM_DEFAULT_SEED = 1, PARAM_DEFAULT_THREAD = 1, PARAM_DEFAULT_VAR = 32,
  PARAM_DEFAULT_ATTACK = 10, PARAM_DEFAULT_LENGTH = 16, PARAM_DEFAULT_NUM = 1 << 20, PARAM_DEFAULT_SEED = 1,
  PARAM_DEFAULT_THREAD = 1, PARAM_DEFAULT_BENDCOST = 1, PARAM_DEFAULT_THREAD = 1, PARAM_DEFAULT_XCOST = 1,
  PARAM_DEFAULT_YCOST = 1, PARAM_DEFAULT_ZCOST = 2
}
 

Functions

void global_param_init ()
 
static void displayUsage (const char *appName)
 
static void parseArgs (long argc, char *const argv[])
 
void processPackets (void *argPtr)
 
 MAIN (argc, argv)
 

Variables

long global_params [256]
 

Typedef Documentation

typedef struct arg arg_t

Enumeration Type Documentation

Enumerator
PARAM_DEFAULT_EDGE 
PARAM_DEFAULT_INSERT 
PARAM_DEFAULT_NUMBER 
PARAM_DEFAULT_PERCENT 
PARAM_DEFAULT_RECORD 
PARAM_DEFAULT_SEED 
PARAM_DEFAULT_THREAD 
PARAM_DEFAULT_VAR 
PARAM_DEFAULT_ATTACK 
PARAM_DEFAULT_LENGTH 
PARAM_DEFAULT_NUM 
PARAM_DEFAULT_SEED 
PARAM_DEFAULT_THREAD 
PARAM_DEFAULT_BENDCOST 
PARAM_DEFAULT_THREAD 
PARAM_DEFAULT_XCOST 
PARAM_DEFAULT_YCOST 
PARAM_DEFAULT_ZCOST 
Enumerator
PARAM_EDGE 
PARAM_INSERT 
PARAM_NUMBER 
PARAM_PERCENT 
PARAM_RECORD 
PARAM_SEED 
PARAM_THREAD 
PARAM_VAR 
PARAM_GENE 
PARAM_NUMBER 
PARAM_SEGMENT 
PARAM_THREAD 
PARAM_ATTACK 
PARAM_LENGTH 
PARAM_NUM 
PARAM_SEED 
PARAM_THREAD 
PARAM_BENDCOST 
PARAM_THREAD 
PARAM_XCOST 
PARAM_YCOST 
PARAM_ZCOST 
PARAM_CLIENTS 
PARAM_NUMBER 
PARAM_QUERIES 
PARAM_RELATIONS 
PARAM_TRANSACTIONS 
PARAM_USER 

Function Documentation

static void displayUsage ( const char *  appName)
static

Here is the caller graph for this function:

void global_param_init ( )

Here is the caller graph for this function:

MAIN ( argc  ,
argv   
)

Here is the call graph for this function:

static void parseArgs ( long  argc,
char *const  argv[] 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void processPackets ( void *  argPtr)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

long global_params[256]