Commit 29b77da9 authored by Alessandro Rubini's avatar Alessandro Rubini

bugfix/workaround: unix-socket: disable settings for UDP/pdelay

This won't work, because packets must be sent to two different
IP multicast addresses. This is not supported.  The code being disabled
had the effect of setting the pdelay destination for all frames, even
for E2E runs.

This fixes E2E UDP operation, leaving P2P broken as it was.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent ca2443b2
......@@ -431,6 +431,8 @@ static int unix_open_ch_udp(struct pp_instance *ppi, char *ifname, int chtype)
&imr, sizeof(struct ip_mreq)) < 0)
goto err_out;
#if 0 /* FIXME: UDP pdelay is not working due to address inflation */
/* Init Peer multicast IP address */
memcpy(addr_str, PP_PDELAY_DOMAIN_ADDRESS, INET_ADDRSTRLEN);
......@@ -446,6 +448,7 @@ static int unix_open_ch_udp(struct pp_instance *ppi, char *ifname, int chtype)
if (setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP,
&imr, sizeof(struct ip_mreq)) < 0)
goto err_out;
#endif
/* End of General multicast Ip address init */
......
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