From 521ed912891a7d2e55c8711a4985e551d3efdede Mon Sep 17 00:00:00 2001 From: Steven McCoy Date: Fri, 12 Apr 2013 23:44:04 -0400 Subject: [PATCH] [#LIBZMQ-446] Silence error on setting PGM_TOS due to some platforms raising an error at runtime. Noted are RHEL 4. --- src/pgm_socket.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pgm_socket.cpp b/src/pgm_socket.cpp index fce47d8a..a1ac8c28 100644 --- a/src/pgm_socket.cpp +++ b/src/pgm_socket.cpp @@ -338,10 +338,11 @@ int zmq::pgm_socket_t::init (bool udp_encapsulation_, const char *network_) goto err_abort; // Expedited Forwarding PHB for network elements, no ECN. + // Ignore return value due to varied runtime support. const int dscp = 0x2e << 2; - if (AF_INET6 != sa_family && !pgm_setsockopt (sock, - IPPROTO_PGM, PGM_TOS, &dscp, sizeof (dscp))) - goto err_abort; + if (AF_INET6 != sa_family) + pgm_setsockopt (sock, IPPROTO_PGM, PGM_TOS, + &dscp, sizeof (dscp)); const int nonblocking = 1; if (!pgm_setsockopt (sock, IPPROTO_PGM, PGM_NOBLOCK,