Lines Matching defs:interface
83 AvahiIfIndex interface;
100 static DNSServerInfo* get_server_info(AvahiIfIndex interface, AvahiProtocol protocol, const char *address) {
105 if (i->interface == interface &&
113 static DNSServerInfo* new_server_info(AvahiIfIndex interface, AvahiProtocol protocol, const char *address) {
119 i->interface = interface;
199 static char *concat_dns_servers(AvahiIfIndex interface) {
204 if (i->interface == interface || interface <= 0) {
210 if (j->interface == interface || interface <= 0)
255 static void run_script(int new, AvahiIfIndex interface, AvahiProtocol protocol, const char *address) {
261 assert(interface > 0);
263 if (!if_indextoname(interface, name))
266 p = concat_dns_servers(interface);
276 snprintf(ia, sizeof(ia), "%i", (int) interface);
297 AvahiIfIndex interface;
314 interface = (AvahiIfIndex) i_interface;
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);
364 AvahiIfIndex interface = servers->interface;
369 run_script(0, interface, protocol, address);