]> git.meshlink.io Git - catta/commitdiff
* small fixes
authorSebastien Estienne <sebastien.estienne@gmail.com>
Thu, 3 Nov 2005 03:11:02 +0000 (03:11 +0000)
committerSebastien Estienne <sebastien.estienne@gmail.com>
Thu, 3 Nov 2005 03:11:02 +0000 (03:11 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@925 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/server.c
avahi-core/socket.c

index be246f9a72b4d4a8165e68d29d8b8185525d1694..3d53154eb2b77d23511726bce85a83ca687b39cf 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <netinet/in.h>
 #include <arpa/inet.h>
 #include <string.h>
 #include <sys/utsname.h>
index 8ec3a312c9ab50bb6395da118dfae06252bf931a..e3e394ae3e197bafe799570b358238ead2609c3f 100644 (file)
@@ -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;