Commit 7107cd5d authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Set hop count to 1.

parent c4e28de8
...@@ -36,7 +36,7 @@ babel_socket(int port) ...@@ -36,7 +36,7 @@ babel_socket(int port)
struct sockaddr_in6 sin6; struct sockaddr_in6 sin6;
int s, rc; int s, rc;
int saved_errno; int saved_errno;
int one = 1, zero = 0, twofiftyfive = 255; int one = 1, zero = 0;
s = socket(PF_INET6, SOCK_DGRAM, 0); s = socket(PF_INET6, SOCK_DGRAM, 0);
if(s < 0) if(s < 0)
...@@ -56,12 +56,12 @@ babel_socket(int port) ...@@ -56,12 +56,12 @@ babel_socket(int port)
goto fail; goto fail;
rc = setsockopt(s, IPPROTO_IPV6, IPV6_UNICAST_HOPS, rc = setsockopt(s, IPPROTO_IPV6, IPV6_UNICAST_HOPS,
&twofiftyfive, sizeof(twofiftyfive)); &one, sizeof(one));
if(rc < 0) if(rc < 0)
goto fail; goto fail;
rc = setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, rc = setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_HOPS,
&twofiftyfive, sizeof(twofiftyfive)); &one, sizeof(one));
if(rc < 0) if(rc < 0)
goto fail; goto fail;
......
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