Lines Matching refs:publish_proto
45 int publish_proto; /*0/mDNS/LLMNR*/
111 static StaticHost *static_host_find(const char *host, const AvahiAddress *a, int publish_proto) {
119 (h->publish_proto == 0 || h->publish_proto == publish_proto))
143 if ((err = avahi_server_add_address(avahi_server, h->group, AVAHI_IF_UNSPEC, p, h->publish_proto, h->host, &h->address)) < 0) {
158 static int avahi_proto_to_value(char *publish_proto, int *value) {
159 assert(publish_proto);
161 if (!strcmp(publish_proto, "mDNS"))
164 else if (!strcmp(publish_proto, "LLMNR"))
167 else if (!strcmp(publish_proto, "UNSPEC"))
207 char *host, *ip, *publish_proto;
251 publish_proto = avahi_strndup(s, len);
253 if (*publish_proto == 0)
256 avahi_free(publish_proto);
278 avahi_free(publish_proto);
286 if(!avahi_proto_to_value(publish_proto, &publish_proto_value)) {
288 avahi_free(publish_proto);
293 avahi_free(publish_proto);
301 h->publish_proto = publish_proto_value;