X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=iface.c;fp=iface.c;h=0afdb7094e3c83c7be94a8cfdf6c2d4f1e552262;hb=0a985aa6c5453fe09bf0a3a79fe66d49c698b309;hp=d2daf407272509d10bf2024b632da005d4774902;hpb=fc174c871b4f85e558766c1ca55661fa7b1b4c9a;p=catta diff --git a/iface.c b/iface.c index d2daf40..0afdb70 100644 --- a/iface.c +++ b/iface.c @@ -24,7 +24,7 @@ static void update_address_rr(flxInterfaceMonitor *m, flxInterfaceAddress *a, in } else { if (a->rr_id < 0) { a->rr_id = flx_server_get_next_id(m->server); - flx_server_add_address(m->server, a->rr_id, a->interface->hardware->index, AF_UNSPEC, FALSE, m->server->hostname, &a->address); + flx_server_add_address(m->server, a->rr_id, a->interface->hardware->index, AF_UNSPEC, 0, NULL, &a->address); } } } @@ -447,12 +447,20 @@ void flx_interface_post_query(flxInterface *i, flxKey *key, gboolean immediately } -void flx_interface_post_response(flxInterface *i, const flxAddress *a, flxRecord *record, gboolean immediately) { +void flx_interface_post_response(flxInterface *i, const flxAddress *a, flxRecord *record, gboolean flush_cache, gboolean immediately) { g_assert(i); g_assert(record); if (flx_interface_relevant(i)) - flx_packet_scheduler_post_response(i->scheduler, a, record, immediately); + flx_packet_scheduler_post_response(i->scheduler, a, record, flush_cache, immediately); +} + +void flx_interface_post_probe(flxInterface *i, flxRecord *record, gboolean immediately) { + g_assert(i); + g_assert(record); + + if (flx_interface_relevant(i)) + flx_packet_scheduler_post_probe(i->scheduler, record, immediately); } void flx_dump_caches(flxInterfaceMonitor *m, FILE *f) {