diff --git a/implementation/endpoints/include/udp_server_endpoint_impl_receive_op.hpp b/implementation/endpoints/include/udp_server_endpoint_impl_receive_op.hpp index ad5564321..059dc3cf0 100644 --- a/implementation/endpoints/include/udp_server_endpoint_impl_receive_op.hpp +++ b/implementation/endpoints/include/udp_server_endpoint_impl_receive_op.hpp @@ -309,7 +309,7 @@ receive_cb (std::shared_ptr _data) { cmsg != NULL; cmsg = CMSG_NXTHDR(&its_header, cmsg)) { -#if defined(IP_PKTINFO) +#if defined(IP_PKTINFO) # Linux, QNX io-pkt struct in_pktinfo *its_pktinfo_v4; if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_PKTINFO @@ -322,7 +322,7 @@ receive_cb (std::shared_ptr _data) { break; } } -#elif defined(IP_RECVDSTADDR) +#elif defined(IP_RECVDSTADDR) # FreeBSD, QNX io-sock struct in_addr *its_pktinfo_v4; if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_RECVDSTADDR diff --git a/implementation/endpoints/src/udp_server_endpoint_impl.cpp b/implementation/endpoints/src/udp_server_endpoint_impl.cpp index 35940a7c4..cf6a60616 100644 --- a/implementation/endpoints/src/udp_server_endpoint_impl.cpp +++ b/implementation/endpoints/src/udp_server_endpoint_impl.cpp @@ -801,9 +801,9 @@ udp_server_endpoint_impl::set_multicast_option(const boost::asio::ip::address& _ int its_pktinfo_option(1); ::setsockopt(multicast_socket_->native_handle(), (is_v4_ ? IPPROTO_IP : IPPROTO_IPV6), -#if defined(IP_PKTINFO) +#if defined(IP_PKTINFO) # Linux, QNX io-pkt (is_v4_ ? IP_PKTINFO : IPV6_RECVPKTINFO), -#elif defined(IP_RECVDSTADDR) +#elif defined(IP_RECVDSTADDR) # FreeBSD, QNX io-sock (is_v4_ ? IP_RECVDSTADDR : IPV6_RECVPKTINFO), #else #error "Platform not supported. Neither IP_PKTINFO nor IP_RECVDSTADDR is defined.";