6 struct _flxInterfaceMonitor;
7 typedef struct _flxInterfaceMonitor flxInterfaceMonitor;
9 struct _flxInterfaceAddress;
10 typedef struct _flxInterfaceAddress flxInterfaceAddress;
13 typedef struct _flxInterface flxInterface;
21 struct _flxInterfaceMonitor {
24 GHashTable *hash_table;
26 FLX_LLIST_HEAD(flxInterface, interfaces);
28 guint query_addr_seq, query_link_seq;
30 enum { LIST_IFACE, LIST_ADDR, LIST_DONE } list;
33 struct _flxInterface {
34 flxInterfaceMonitor *monitor;
39 FLX_LLIST_HEAD(flxInterfaceAddress, addresses);
40 FLX_LLIST_FIELDS(flxInterface, interface);
42 guint n_ipv6_addrs, n_ipv4_addrs;
43 flxCache *ipv4_cache, *ipv6_cache;
46 struct _flxInterfaceAddress {
51 flxInterface *interface;
53 FLX_LLIST_FIELDS(flxInterfaceAddress, address);
58 flxInterfaceMonitor *flx_interface_monitor_new(flxServer *server);
59 void flx_interface_monitor_free(flxInterfaceMonitor *m);
61 flxInterface* flx_interface_monitor_get_interface(flxInterfaceMonitor *m, gint index);
62 flxInterface* flx_interface_monitor_get_first(flxInterfaceMonitor *m);
64 int flx_interface_is_relevant(flxInterface *i);
65 int flx_address_is_relevant(flxInterfaceAddress *a);
67 void flx_interface_send_query(flxInterface *i, guchar protocol, flxKey *k);
69 void flx_dump_caches(flxServer *s, FILE *f);