The Assimilation Project  based on Assimilation version 1.1.7.1474836767
arpdiscovery.h
Go to the documentation of this file.
1 
24 #ifndef _ARPDISCOVERY_H
25 #define _ARPDISCOVERY_H
26 #include <projectcommon.h>
27 #include <discovery.h>
28 #include <pcap_GSource.h>
29 #include <glib.h>
30 #include <configcontext.h>
33 
34 typedef struct _ArpDiscovery ArpDiscovery;
36 struct _ArpDiscovery {
38  GSource* source;
39  void (*finalize)(AssimObj* self);
44 
45 };
46 
47 #define DEFAULT_ARP_SENDINTERVAL 120 // 2 minutes
48 
50  NetGSource*, ConfigContext*, gsize);
51 
52 
54 
55 #endif /* _ARPDISCOVERY_H */
ConfigContext * ArpMapData
The actual address portion.
Definition: arpdiscovery.h:41
void(* finalize)(AssimObj *self)
Saved parent class destructor.
Definition: arpdiscovery.h:39
WINEXPORT ArpDiscovery * arpdiscovery_new(ConfigContext *, gint, GMainContext *, NetGSource *, ConfigContext *, gsize)
ArpDiscovery constructor - good for listening to ARP packets via pcap.
Definition: arpdiscovery.c:286
#define WINEXPORT
Definition: projectcommon.h:45
Semi-Abstract class (yes, really) defining discovery objects.
Project common header file.
ConfigContext * arpconfig
Our configuration data.
Definition: arpdiscovery.h:42
Implements Configuration Context class.
Discovery class abstract C-class - it supports discovering "things" through subclasses for different ...
Definition: discovery.h:47
GSource * source
GSource for the pcap data.
Definition: arpdiscovery.h:38
guint timeout_source
timeout source id
Definition: arpdiscovery.h:43
Discovery baseclass
Base class object.
Definition: arpdiscovery.h:37
ConfigContext * ArpMap
Arp IP/MAC addresses hash table.
Definition: arpdiscovery.h:40
libpcap Packet capture Gsource interface description
ArpDiscovery C-class - for discovering IP/MAC address resolution via the ARP protocol captured using ...
Definition: arpdiscovery.h:36
The NetGSource class objects integrate NetIO class objects into the g_main_loop paradigm.
Definition: netgsource.h:43