mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 15:26:04 +00:00
[#LIBZMQ-446] Silence error on setting PGM_TOS due to some platforms raising an error at runtime. Noted are RHEL 4.
This commit is contained in:
parent
d2b5f1f49e
commit
d079190efa
@ -336,10 +336,11 @@ int zmq::pgm_socket_t::init (bool udp_encapsulation_, const char *network_)
|
|||||||
goto err_abort;
|
goto err_abort;
|
||||||
|
|
||||||
// Expedited Forwarding PHB for network elements, no ECN.
|
// Expedited Forwarding PHB for network elements, no ECN.
|
||||||
|
// Ignore return value due to varied runtime support.
|
||||||
const int dscp = 0x2e << 2;
|
const int dscp = 0x2e << 2;
|
||||||
if (AF_INET6 != sa_family && !pgm_setsockopt (sock,
|
if (AF_INET6 != sa_family)
|
||||||
IPPROTO_PGM, PGM_TOS, &dscp, sizeof (dscp)))
|
pgm_setsockopt (sock, IPPROTO_PGM, PGM_TOS,
|
||||||
goto err_abort;
|
&dscp, sizeof (dscp));
|
||||||
|
|
||||||
const int nonblocking = 1;
|
const int nonblocking = 1;
|
||||||
if (!pgm_setsockopt (sock, IPPROTO_PGM, PGM_NOBLOCK,
|
if (!pgm_setsockopt (sock, IPPROTO_PGM, PGM_NOBLOCK,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user