6 struct _flxInterfaceMonitor;
7 typedef struct _flxInterfaceMonitor flxInterfaceMonitor;
9 struct _flxInterfaceAddress;
10 typedef struct _flxInterfaceAddress flxInterfaceAddress;
13 typedef struct _flxInterface flxInterface;
23 struct _flxInterfaceMonitor {
26 GHashTable *hash_table;
28 FLX_LLIST_HEAD(flxInterface, interfaces);
30 guint query_addr_seq, query_link_seq;
32 enum { LIST_IFACE, LIST_ADDR, LIST_DONE } list;
35 struct _flxInterface {
36 flxInterfaceMonitor *monitor;
41 FLX_LLIST_HEAD(flxInterfaceAddress, addresses);
42 FLX_LLIST_FIELDS(flxInterface, interface);
44 guint n_ipv6_addrs, n_ipv4_addrs;
45 flxCache *ipv4_cache, *ipv6_cache;
49 flxPacketScheduler *ipv4_scheduler, *ipv6_scheduler;
52 struct _flxInterfaceAddress {
57 flxInterface *interface;
59 FLX_LLIST_FIELDS(flxInterfaceAddress, address);
64 flxInterfaceMonitor *flx_interface_monitor_new(flxServer *server);
65 void flx_interface_monitor_free(flxInterfaceMonitor *m);
67 flxInterface* flx_interface_monitor_get_interface(flxInterfaceMonitor *m, gint index);
68 flxInterface* flx_interface_monitor_get_first(flxInterfaceMonitor *m);
70 int flx_interface_is_relevant(flxInterface *i);
71 int flx_address_is_relevant(flxInterfaceAddress *a);
73 void flx_interface_send_packet(flxInterface *i, guchar protocol, flxDnsPacket *p);
75 void flx_interface_post_query(flxInterface *i, guchar protocol, flxKey *k);
76 void flx_interface_post_response(flxInterface *i, guchar protocol, flxRecord *rr);
78 void flx_dump_caches(flxServer *s, FILE *f);