From: Sebastien Estienne Date: Thu, 3 Nov 2005 03:11:02 +0000 (+0000) Subject: * small fixes X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=00ea7c8f503fd9d1c1c62db837e8f4fb60443117;p=catta * small fixes git-svn-id: file:///home/lennart/svn/public/avahi/trunk@925 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-core/server.c b/avahi-core/server.c index be246f9..3d53154 100644 --- a/avahi-core/server.c +++ b/avahi-core/server.c @@ -25,6 +25,7 @@ #include #include +#include #include #include #include diff --git a/avahi-core/socket.c b/avahi-core/socket.c index 8ec3a31..e3e394a 100644 --- a/avahi-core/socket.c +++ b/avahi-core/socket.c @@ -508,7 +508,7 @@ int avahi_send_dns_packet_ipv4(int fd, AvahiIfIndex interface, AvahiDnsPacket *p #warning "FIXME: We need some code to set the outgoing interface/local address here if IP_PKTINFO is not available" #endif #endif - + return sendmsg_loop(fd, &msg, 0); } @@ -672,8 +672,8 @@ AvahiDnsPacket *avahi_recv_dns_packet_ipv4(int fd, AvahiIPv4Address *ret_src_add #ifdef IP_RECVDSTADDR case IP_RECVDSTADDR: - if (ret_dest_address) - memcpy(&ret_dest_address->address, CMSG_DATA (cmsg), 4); + if (ret_dst_address) + memcpy(&ret_dst_address->address, CMSG_DATA (cmsg), 4); found_addr = 1; break;