Skip to Content
[CAIDA - Cooperative Association for Internet Data Analysis logo]
The Cooperative Association for Internet Data Analysis
corsaro_pcap.c File Reference

Corsaro raw pcap pass-through plugin. More...

Go to the source code of this file.

Macros

#define CORSARO_PCAP_MAGIC   0x50434150
 The magic number for this plugin - "PCAP".
#define PLUGIN_NAME   "pcap"
 The name of this plugin.
#define STATE(corsaro)   (CORSARO_PLUGIN_STATE(corsaro, pcap, CORSARO_PLUGIN_ID_PCAP))
 Extends the generic plugin state convenience macro in corsaro_plugin.h.
#define PLUGIN(corsaro)   (CORSARO_PLUGIN_PLUGIN(corsaro, CORSARO_PLUGIN_ID_PCAP))
 Extends the generic plugin plugin convenience macro in corsaro_plugin.h.

Functions

corsaro_plugin_tcorsaro_pcap_alloc (corsaro_t *corsaro)
int corsaro_pcap_probe_filename (const char *fname)
int corsaro_pcap_probe_magic (corsaro_in_t *corsaro, corsaro_file_in_t *file)
int corsaro_pcap_init_output (corsaro_t *corsaro)
int corsaro_pcap_init_input (corsaro_in_t *corsaro)
int corsaro_pcap_close_input (corsaro_in_t *corsaro)
int corsaro_pcap_close_output (corsaro_t *corsaro)
off_t corsaro_pcap_read_record (struct corsaro_in *corsaro, corsaro_in_record_type_t *record_type, corsaro_in_record_t *record)
off_t corsaro_pcap_read_global_data_record (struct corsaro_in *corsaro, enum corsaro_in_record_type *record_type, struct corsaro_in_record *record)
int corsaro_pcap_start_interval (corsaro_t *corsaro, corsaro_interval_t *int_start)
int corsaro_pcap_end_interval (corsaro_t *corsaro, corsaro_interval_t *int_end)
int corsaro_pcap_process_packet (corsaro_t *corsaro, corsaro_packet_t *packet)

Variables

static corsaro_plugin_t corsaro_pcap_plugin
 Common plugin information across all instances.

Detailed Description

Corsaro raw pcap pass-through plugin.

Author:
Alistair King

Definition in file corsaro_pcap.c.


Macro Definition Documentation

#define CORSARO_PCAP_MAGIC   0x50434150

The magic number for this plugin - "PCAP".

Definition at line 55 of file corsaro_pcap.c.

Extends the generic plugin plugin convenience macro in corsaro_plugin.h.

Definition at line 79 of file corsaro_pcap.c.

#define PLUGIN_NAME   "pcap"

The name of this plugin.

Definition at line 58 of file corsaro_pcap.c.

#define STATE (   corsaro)    (CORSARO_PLUGIN_STATE(corsaro, pcap, CORSARO_PLUGIN_ID_PCAP))

Extends the generic plugin state convenience macro in corsaro_plugin.h.

Definition at line 76 of file corsaro_pcap.c.


Variable Documentation

corsaro_plugin_t corsaro_pcap_plugin
static
Initial value:

Common plugin information across all instances.

Definition at line 61 of file corsaro_pcap.c.