Lines Matching defs:fd_ipv4
86 int fd_ipv4, fd_ipv6;
141 if (l->engine->fd_ipv4 < 0)
144 return avahi_send_dns_packet_ipv4(l->engine->fd_ipv4, AVAHI_IF_UNSPEC, p, NULL, &a->data.ipv4, AVAHI_DNS_PORT);
559 if (fd == e->fd_ipv4)
560 p = avahi_recv_dns_packet_ipv4(e->fd_ipv4, NULL, NULL, NULL, NULL, NULL);
582 e->fd_ipv4 = s->config.use_ipv4 ? avahi_open_unicast_socket_ipv4() : -1;
585 if (e->fd_ipv4 < 0 && e->fd_ipv6 < 0) {
591 if (e->fd_ipv4 >= 0)
592 close(e->fd_ipv4);
602 if (e->fd_ipv4 >= 0)
603 e->watch_ipv4 = s->poll_api->watch_new(e->server->poll_api, e->fd_ipv4, AVAHI_WATCH_IN, socket_event, e);
644 if (e->fd_ipv4 >= 0)
645 close(e->fd_ipv4);
664 if ((a->proto == AVAHI_PROTO_INET && e->fd_ipv4 >= 0) || (a->proto == AVAHI_PROTO_INET6 && e->fd_ipv6 >= 0))