]> git.meshlink.io Git - catta/commitdiff
* handle cmsg_type IP_RECVTTL
authorSebastien Estienne <sebastien.estienne@gmail.com>
Tue, 18 Oct 2005 15:59:38 +0000 (15:59 +0000)
committerSebastien Estienne <sebastien.estienne@gmail.com>
Tue, 18 Oct 2005 15:59:38 +0000 (15:59 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@808 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/socket.c

index 26b9cdfda663e9b73ef9d04a2f44ad31f57adb44..de27226b5175703688fe3059d07bf5ea68d067ec 100644 (file)
@@ -639,6 +639,9 @@ AvahiDnsPacket* avahi_recv_dns_packet_ipv4(int fd, struct sockaddr_in *ret_sa, A
 
         if (cmsg->cmsg_level == IPPROTO_IP) {
          switch (cmsg->cmsg_type) {
+#ifdef IP_RECVTTL
+         case IP_RECVTTL:
+#endif
          case IP_TTL:
            if (ret_ttl)
              *ret_ttl = (uint8_t) (*(int *) CMSG_DATA(cmsg));
@@ -675,6 +678,9 @@ AvahiDnsPacket* avahi_recv_dns_packet_ipv4(int fd, struct sockaddr_in *ret_sa, A
            found_addr = 1;
            break;
 #endif
+         default:
+           avahi_log_warn("Unhandled cmsg_type : %d\n",cmsg->cmsg_type);
+           break;
          }
         }
     }