Lines Matching refs:protocol
84 AvahiProtocol protocol;
100 static DNSServerInfo* get_server_info(AvahiIfIndex interface, AvahiProtocol protocol, const char *address) {
106 i->protocol == protocol &&
113 static DNSServerInfo* new_server_info(AvahiIfIndex interface, AvahiProtocol protocol, const char *address) {
120 i->protocol = protocol;
255 static void run_script(int new, AvahiIfIndex interface, AvahiProtocol protocol, const char *address) {
277 snprintf(pa, sizeof(pa), "%i", (int) protocol);
279 if (daemon_exec("/", &ret, AVAHI_DNSCONF_SCRIPT, AVAHI_DNSCONF_SCRIPT, new ? "+" : "-", address, ia, pa, avahi_proto_to_string(protocol), NULL) < 0)
298 AvahiProtocol protocol;
315 protocol = (AvahiProtocol) i_protocol;
321 daemon_log(LOG_INFO, "New DNS Server %s (interface: %i.%s)", a, interface, avahi_proto_to_string(protocol));
322 new_server_info(interface, protocol, a);
323 run_script(1, interface, protocol, a);
329 if ((i = get_server_info(interface, protocol, a))) {
330 daemon_log(LOG_INFO, "DNS Server %s removed (interface: %i.%s)", a, interface, avahi_proto_to_string(protocol));
332 run_script(0, interface, protocol, a);
365 AvahiProtocol protocol = servers->protocol;
369 run_script(0, interface, protocol, address);