Lines Matching refs:interface
82 AvahiIfIndex interface;
99 static DNSServerInfo* get_server_info(AvahiIfIndex interface, AvahiProtocol protocol, const char *address) {
104 if (i->interface == interface &&
112 static DNSServerInfo* new_server_info(AvahiIfIndex interface, AvahiProtocol protocol, const char *address) {
118 i->interface = interface;
198 static char *concat_dns_servers(AvahiIfIndex interface) {
203 if (i->interface == interface || interface <= 0) {
209 if (j->interface == interface || interface <= 0)
254 static void run_script(int new, AvahiIfIndex interface, AvahiProtocol protocol, const char *address) {
260 assert(interface > 0);
262 if (!if_indextoname(interface, name))
265 p = concat_dns_servers(interface);
275 snprintf(ia, sizeof(ia), "%i", (int) interface);
296 AvahiIfIndex interface;
313 interface = (AvahiIfIndex) i_interface;
320 daemon_log(LOG_INFO, "New DNS Server %s (interface: %i.%s)", a, interface, avahi_proto_to_string(protocol));
321 new_server_info(interface, protocol, a);
322 run_script(1, interface, protocol, a);
328 if ((i = get_server_info(interface, protocol, a))) {
329 daemon_log(LOG_INFO, "DNS Server %s removed (interface: %i.%s)", a, interface, avahi_proto_to_string(protocol));
331 run_script(0, interface, protocol, a);
363 AvahiIfIndex interface = servers->interface;
368 run_script(0, interface, protocol, address);