case STATE_ANNOUNCE:
dns_reply_a(iface, announce_ttl);
- service_announce(iface, announce_ttl);
+ service_announce_services(iface, announce_ttl);
uloop_timeout_set(timeout, announce_ttl * 800);
break;
}
vlist_for_each_element(&interfaces, iface, node)
if (iface->fd.fd > 0 && iface->multicast) {
- service_announce(iface, 0);
dns_reply_a(iface, 0);
+ service_announce_services(iface, 0);
}
vlist_for_each_element(&interfaces, iface, node)
interface_close(iface);
}
}
-void
-service_announce(struct interface *iface, int ttl)
-{
- service_announce_services(iface, ttl);
-}
-
static void
service_update(struct vlist_tree *tree, struct vlist_node *node_new,
struct vlist_node *node_old)
extern char *sdudp;
extern void service_init(int announce);
extern void service_cleanup(void);
-extern void service_announce(struct interface *iface, int ttl);
extern void service_reply(struct interface *iface, const char *match, int ttl);
extern void service_announce_services(struct interface *iface, int ttl);