|
The Assimilation Monitoring Project
|
g_main_loop GSource object for creating events from libpcap (pcap_t) objects We manage this with our C-Class Management system to help catch errors. More...
#include <pcap_GSource.h>
Data Fields | |
| GSource | gs |
| Parent GSource Object. More... | |
| GPollFD | gfd |
| Poll/select object for gmainloop. More... | |
| pcap_t * | capture |
| Pcap capture object. More... | |
| struct bpf_program | pcprog |
| Pcap program. More... | |
| int | capturefd |
| Underlying file descriptor. More... | |
| char * | capturedev |
| Capture device name. More... | |
| unsigned | listenmask |
| Protocols selected from Protocols known to (supported by) create_pcap_listener().. More... | |
| gint | gsourceid |
| Source ID from g_source_attach() More... | |
| gpointer | userdata |
| Saved user data. More... | |
| gboolean(* | dispatch )(GSource_pcap_t *gsource, pcap_t *capstruct, gconstpointer pkt, gconstpointer pend, const struct pcap_pkthdr *pkthdr, const char *capturedev, gpointer userdata) |
| [in] user dispatch function - we call it when a packet is read More... | |
| GDestroyNotify | destroynote |
| [in] function to call when we're destroyed... More... | |
g_main_loop GSource object for creating events from libpcap (pcap_t) objects We manage this with our C-Class Management system to help catch errors.
Definition at line 38 of file pcap_GSource.h.
| pcap_t* _GSource_pcap::capture |
Pcap capture object.
Definition at line 41 of file pcap_GSource.h.
Referenced by g_source_pcap_dispatch(), g_source_pcap_finalize(), and g_source_pcap_new().
| char* _GSource_pcap::capturedev |
Capture device name.
Definition at line 44 of file pcap_GSource.h.
Referenced by g_source_pcap_dispatch(), g_source_pcap_finalize(), and g_source_pcap_new().
| int _GSource_pcap::capturefd |
Underlying file descriptor.
Definition at line 43 of file pcap_GSource.h.
Referenced by g_source_pcap_new().
| GDestroyNotify _GSource_pcap::destroynote |
[in] function to call when we're destroyed...
Definition at line 57 of file pcap_GSource.h.
Referenced by g_source_pcap_finalize(), and g_source_pcap_new().
| gboolean(* _GSource_pcap::dispatch)(GSource_pcap_t *gsource,pcap_t *capstruct,gconstpointer pkt,gconstpointer pend,const struct pcap_pkthdr *pkthdr,const char *capturedev,gpointer userdata) |
[in] user dispatch function - we call it when a packet is read
[in] Device being captured [in] called when new pcap data has arrived
Definition at line 49 of file pcap_GSource.h.
Referenced by g_source_pcap_dispatch(), and g_source_pcap_new().
| GPollFD _GSource_pcap::gfd |
Poll/select object for gmainloop.
Definition at line 40 of file pcap_GSource.h.
Referenced by g_source_pcap_check(), g_source_pcap_dispatch(), and g_source_pcap_new().
| GSource _GSource_pcap::gs |
Parent GSource Object.
Definition at line 39 of file pcap_GSource.h.
| gint _GSource_pcap::gsourceid |
Source ID from g_source_attach()
Definition at line 46 of file pcap_GSource.h.
Referenced by g_source_pcap_new().
| unsigned _GSource_pcap::listenmask |
Protocols selected from Protocols known to (supported by) create_pcap_listener()..
Definition at line 45 of file pcap_GSource.h.
Referenced by g_source_pcap_finalize(), and g_source_pcap_new().
| struct bpf_program _GSource_pcap::pcprog |
Pcap program.
Definition at line 42 of file pcap_GSource.h.
Referenced by g_source_pcap_finalize(), and g_source_pcap_new().
| gpointer _GSource_pcap::userdata |
Saved user data.
Definition at line 47 of file pcap_GSource.h.
Referenced by g_source_pcap_dispatch(), and g_source_pcap_new().