mio_source_pcap.h File Reference
MIO libpcap source initializers. More...
#include <airframe/mio.h>
#include <airframe/mio_source_file.h>
Go to the source code of this file.
Data Structures | |
struct | _MIOSourcePCapFileConfig |
libpcap dumpfile source configuration context. More... | |
struct | _MIOSourcePCapLiveConfig |
libpcap live source configuration context. More... | |
Defines | |
#define | mio_pcap(_s_) ((pcap_t *)(_s_)->vsp) |
Convenience macro to get a source's currently open pcap context. | |
Typedefs | |
typedef _MIOSourcePCapFileConfig | MIOSourcePCapFileConfig |
libpcap dumpfile source configuration context. | |
typedef _MIOSourcePCapLiveConfig | MIOSourcePCapLiveConfig |
libpcap live source configuration context. | |
Functions | |
gboolean | mio_source_init_pcap_dir (MIOSource *source, const char *spec, MIOType vsp_type, void *cfg, GError **err) |
Initialize a pcap source for reading every libpcap dumpfile from a specified directory. | |
gboolean | mio_source_init_pcap_glob (MIOSource *source, const char *spec, MIOType vsp_type, void *cfg, GError **err) |
Initialize a pcap source for reading every libpcap dumpfile from a specified glob(3) expression. | |
gboolean | mio_source_init_pcap_single (MIOSource *source, const char *spec, MIOType vsp_type, void *cfg, GError **err) |
Initialize a pcap source for a single libpcap dumpfile. | |
gboolean | mio_source_init_pcap_stdin (MIOSource *source, const char *spec, MIOType vsp_type, void *cfg, GError **err) |
Initialize a pcap source for a single libpcap dumpfile read from standard input. | |
gboolean | mio_source_init_pcap_live (MIOSource *source, const char *spec, MIOType vsp_type, void *cfg, GError **err) |
Initialize a pcap source for live capture from an interface using libpcap. |
Detailed Description
MIO libpcap source initializers.Most applications should use the interface in mio_config.h to access these initializers.
Define Documentation
|
Convenience macro to get a source's currently open pcap context. Only valid if the source's vsp_type is MIO_T_PCAP. |
Typedef Documentation
|
libpcap dumpfile source configuration context. Pass as the cfg argument to any pcap file source initializer. |
|
libpcap live source configuration context. Pass as the cfg argument to mio_source_init_pcap_live(). |
Function Documentation
|
Initialize a pcap source for reading every libpcap dumpfile from a specified directory.
|
|
Initialize a pcap source for reading every libpcap dumpfile from a specified glob(3) expression. Fails over to mio_source_init_pcap_single() if the specifier contains no glob expression characters.
|
|
Initialize a pcap source for live capture from an interface using libpcap. Depending on the operating system and configuration, this may require special privileges.
|
|
Initialize a pcap source for a single libpcap dumpfile. Fails over to mio_source_init_pcap_stdin() if specifier is the special string "-".
|
|
Initialize a pcap source for a single libpcap dumpfile read from standard input.
|