From f65212c8127ac06d5c61af83621330bffab41918 Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Tue, 18 Oct 2005 15:59:38 +0000 Subject: [PATCH] * handle cmsg_type IP_RECVTTL git-svn-id: file:///home/lennart/svn/public/avahi/trunk@808 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/socket.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/avahi-core/socket.c b/avahi-core/socket.c index 26b9cdf..de27226 100644 --- a/avahi-core/socket.c +++ b/avahi-core/socket.c @@ -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; } } } -- 2.39.5