X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=iface.h;h=fb9b2a00ed744300e2c6610b275aa0c8b6e1968b;hb=72e2daefd371691e385bcd61741ee696391941d8;hp=b5c27089827d4015d9784ec40c298c8a0385659a;hpb=8e7f83aa5b6d910e80c56b31f4eb79b02e7ca67b;p=catta diff --git a/iface.h b/iface.h index b5c2708..fb9b2a0 100644 --- a/iface.h +++ b/iface.h @@ -53,7 +53,7 @@ struct _flxInterface { flxHwInterface *hardware; guchar protocol; - gboolean relevant; + gboolean announcing; flxCache *cache; flxPacketScheduler *scheduler; @@ -70,20 +70,23 @@ struct _flxInterfaceAddress { guchar scope; flxAddress address; - gint rr_id; + flxEntryGroup *entry_group; flxInterface *interface; }; flxInterfaceMonitor *flx_interface_monitor_new(flxServer *server); void flx_interface_monitor_free(flxInterfaceMonitor *m); +void flx_interface_monitor_sync(flxInterfaceMonitor *m); + flxInterface* flx_interface_monitor_get_interface(flxInterfaceMonitor *m, gint index, guchar protocol); flxHwInterface* flx_interface_monitor_get_hw_interface(flxInterfaceMonitor *m, gint index); void flx_interface_send_packet(flxInterface *i, flxDnsPacket *p); -void flx_interface_post_query(flxInterface *i, flxKey *k); -void flx_interface_post_response(flxInterface *i, flxRecord *rr); +void flx_interface_post_query(flxInterface *i, flxKey *k, gboolean immediately); +void flx_interface_post_probe(flxInterface *i, flxRecord *p, gboolean immediately); +void flx_interface_post_response(flxInterface *i, const flxAddress *a, flxRecord *record, gboolean flush_cache, gboolean immediately); void flx_dump_caches(flxInterfaceMonitor *m, FILE *f);