mio_source_pcap.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00022
00023 #ifndef _AIRFRAME_MIO_SOURCE_PCAP_H_
00024 #define _AIRFRAME_MIO_SOURCE_PCAP_H_
00025 #include <airframe/mio.h>
00026 #include <airframe/mio_source_file.h>
00027
00032 #define mio_pcap(_s_) ((pcap_t *)(_s_)->vsp)
00033
00038 typedef struct _MIOSourcePCapFileConfig {
00040 MIOSourceFileConfig filecfg;
00042 char *filter;
00043 } MIOSourcePCapFileConfig;
00044
00049 typedef struct _MIOSourcePCapLiveConfig {
00051 uint32_t snaplen;
00053 uint32_t timeout;
00055 char *filter;
00056 } MIOSourcePCapLiveConfig;
00057
00073 gboolean mio_source_init_pcap_dir(
00074 MIOSource *source,
00075 const char *spec,
00076 MIOType vsp_type,
00077 void *cfg,
00078 GError **err);
00079
00096 gboolean mio_source_init_pcap_glob(
00097 MIOSource *source,
00098 const char *spec,
00099 MIOType vsp_type,
00100 void *cfg,
00101 GError **err);
00102
00118 gboolean mio_source_init_pcap_single(
00119 MIOSource *source,
00120 const char *spec,
00121 MIOType vsp_type,
00122 void *cfg,
00123 GError **err);
00124
00140 gboolean mio_source_init_pcap_stdin(
00141 MIOSource *source,
00142 const char *spec,
00143 MIOType vsp_type,
00144 void *cfg,
00145 GError **err);
00146
00163 gboolean mio_source_init_pcap_live(
00164 MIOSource *source,
00165 const char *spec,
00166 MIOType vsp_type,
00167 void *cfg,
00168 GError **err);
00169
00170
00171 #endif