Home | History | Annotate | Download | only in avahi-core

Lines Matching refs:protocol

70             p = (a->interface->protocol == AVAHI_PROTO_INET && m->server->config.publish_a_on_ipv6) ||
71 (a->interface->protocol == AVAHI_PROTO_INET6 && m->server->config.publish_aaaa_on_ipv4) ? AVAHI_PROTO_UNSPEC : a->interface->protocol;
182 if ((i->protocol == AVAHI_PROTO_INET6 && i->monitor->server->fd_ipv6 < 0) ||
183 (i->protocol == AVAHI_PROTO_INET && i->monitor->server->fd_ipv4 < 0))
209 avahi_proto_to_string(i->protocol),
212 if (i->protocol == AVAHI_PROTO_INET6)
215 assert(i->protocol == AVAHI_PROTO_INET);
326 AvahiInterface* avahi_interface_new(AvahiInterfaceMonitor *m, AvahiHwInterface *hw, AvahiProtocol protocol) {
331 assert(AVAHI_PROTO_VALID(protocol));
338 i->protocol = protocol;
445 avahi_log_info("New relevant interface %s.%s for mDNS.", i->hardware->name, avahi_proto_to_string(i->protocol));
453 avahi_log_info("Interface %s.%s no longer relevant for mDNS.", i->hardware->name, avahi_proto_to_string(i->protocol));
529 AvahiInterface* avahi_interface_monitor_get_interface(AvahiInterfaceMonitor *m, AvahiIfIndex idx, AvahiProtocol protocol) {
535 protocol != AVAHI_PROTO_UNSPEC);
541 if (i->protocol == protocol)
575 assert(!a || a->proto == i->protocol);
598 if (i->protocol == AVAHI_PROTO_INET && i->monitor->server->fd_ipv4 >= 0)
600 else if (i->protocol == AVAHI_PROTO_INET6 && i->monitor->server->fd_ipv6 >= 0)
653 snprintf(ln, sizeof(ln), ";;; INTERFACE %s.%s ;;;", i->hardware->name, avahi_proto_to_string(i->protocol));
720 int avahi_interface_match(AvahiInterface *i, AvahiIfIndex idx, AvahiProtocol protocol) {
726 if (protocol != AVAHI_PROTO_UNSPEC && protocol != i->protocol)
732 void avahi_interface_monitor_walk(AvahiInterfaceMonitor *m, AvahiIfIndex interface, AvahiProtocol protocol, AvahiInterfaceMonitorWalkCallback callback, void* userdata) {
737 if (protocol != AVAHI_PROTO_UNSPEC) {
740 if ((i = avahi_interface_monitor_get_interface(m, interface, protocol)))
749 if (avahi_interface_match(i, interface, protocol))
757 if (avahi_interface_match(i, interface, protocol))
783 if (a->proto != i->protocol)
856 if (i->protocol != a->proto)