]> git.meshlink.io Git - catta/commitdiff
fix IP_TTL/IP_RECVTTL on linux
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Oct 2005 00:16:56 +0000 (00:16 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Oct 2005 00:16:56 +0000 (00:16 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@852 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/socket.c

index 3c1da56193faad7ec0a6bdfcc246bd3f488640b7..f3d03348db44293eb41d6b2d0e0934c82c3c9c0a 100644 (file)
@@ -590,9 +590,8 @@ AvahiDnsPacket* avahi_recv_dns_packet_ipv4(int fd, struct sockaddr_in *ret_sa, A
             switch (cmsg->cmsg_type) {
 #ifdef IP_RECVTTL
                 case IP_RECVTTL:
-#else
-                case IP_TTL:
 #endif
+                case IP_TTL:
                     if (ret_ttl)
                         *ret_ttl = (uint8_t) (*(int *) CMSG_DATA(cmsg));
 
@@ -634,7 +633,7 @@ AvahiDnsPacket* avahi_recv_dns_packet_ipv4(int fd, struct sockaddr_in *ret_sa, A
 #endif
                     
                 default:
-                    avahi_log_warn("Unhandled cmsg_type : %d",cmsg->cmsg_type);
+                    avahi_log_warn("Unhandled cmsg_type : %d", cmsg->cmsg_type);
                     break;
             }
         }