X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=avahi-core%2Fsocket.h;h=caf70666c33c7d8cac24f636abcb1bbf33cad55a;hb=3a3534e764f45e03e97a33c91e2f21b894e24dbb;hp=d79515665f743cac24997adaef3866a22455cab3;hpb=4f0a5e7572a4257894b4bfede42c26d65152609e;p=catta diff --git a/avahi-core/socket.h b/avahi-core/socket.h index d795156..caf7066 100644 --- a/avahi-core/socket.h +++ b/avahi-core/socket.h @@ -28,14 +28,15 @@ #include "dns.h" #define AVAHI_MDNS_PORT 5353 +#define AVAHI_DNS_PORT 53 #define AVAHI_IPV4_MCAST_GROUP "224.0.0.251" #define AVAHI_IPV6_MCAST_GROUP "ff02::fb" -int avahi_open_socket_ipv4(void); -int avahi_open_socket_ipv6(void); +int avahi_open_socket_ipv4(int no_reuse); +int avahi_open_socket_ipv6(int no_reuse); -int avahi_open_legacy_unicast_socket_ipv4(void); -int avahi_open_legacy_unicast_socket_ipv6(void); +int avahi_open_unicast_socket_ipv4(void); +int avahi_open_unicast_socket_ipv6(void); int avahi_send_dns_packet_ipv4(int fd, int iface, AvahiDnsPacket *p, const AvahiIPv4Address *a, uint16_t port); int avahi_send_dns_packet_ipv6(int fd, int iface, AvahiDnsPacket *p, const AvahiIPv6Address *a, uint16_t port);