Commit 73537e67 authored by Ian Barber's avatar Ian Barber

Merge pull request #437 from rohanbedarkar/master

Explicit comments
parents 1ef63bc2 93a7a378
...@@ -326,6 +326,7 @@ int zmq::pgm_socket_t::init (bool udp_encapsulation_, const char *network_) ...@@ -326,6 +326,7 @@ int zmq::pgm_socket_t::init (bool udp_encapsulation_, const char *network_)
// Set IP level parameters. // Set IP level parameters.
{ {
// Multicast loopback disabled by default
const int multicast_loop = 0; const int multicast_loop = 0;
if (!pgm_setsockopt (sock, IPPROTO_PGM, PGM_MULTICAST_LOOP, if (!pgm_setsockopt (sock, IPPROTO_PGM, PGM_MULTICAST_LOOP,
&multicast_loop, sizeof (multicast_loop))) &multicast_loop, sizeof (multicast_loop)))
...@@ -337,7 +338,7 @@ int zmq::pgm_socket_t::init (bool udp_encapsulation_, const char *network_) ...@@ -337,7 +338,7 @@ 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.
const int dscp = 0x2e << 2; const int dscp = 0x2e << 2;
if (AF_INET6 != sa_family && !pgm_setsockopt (sock, if (AF_INET6 != sa_family && !pgm_setsockopt (sock,
IPPROTO_PGM, PGM_TOS, &dscp, sizeof (dscp))) IPPROTO_PGM, PGM_TOS, &dscp, sizeof (dscp)))
goto err_abort; goto err_abort;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment