Data Structures | Functions | Variables

stream.c File Reference

#include "spp_ai.h"
#include "uthash.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <arpa/inet.h>

Data Structures

struct  pkt_key
struct  pkt_info

Functions

static void _AI_stream_free (struct pkt_info *stream)
 Remove a stream from the hash table (private function).
void * AI_hashcleanup_thread (void *arg)
 Thread called for cleaning up the hash table from the traffic streams older than a certain threshold.
void AI_pkt_enqueue (SFSnortPacket *pkt)
 Function called for appending a new packet to the hash table, creating a new stream or appending it to an existing stream.

Variables

static struct pkt_infohash = NULL

Function Documentation

static void _AI_stream_free ( struct pkt_info stream  )  [static]

Remove a stream from the hash table (private function).

FUNCTION: _AI_stream_free

Parameters:
stream Stream to be removed
void* AI_hashcleanup_thread ( void *  arg  ) 

Thread called for cleaning up the hash table from the traffic streams older than a certain threshold.

FUNCTION: AI_hashcleanup_thread

Parameters:
arg Pointer to the AI_config struct
void AI_pkt_enqueue ( SFSnortPacket *  pkt  ) 

Function called for appending a new packet to the hash table, creating a new stream or appending it to an existing stream.

FUNCTION: AI_pkt_enqueue

Parameters:
pkt Packet to be appended

Variable Documentation

struct pkt_info* hash = NULL [static]
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines