must zero osiSockAddr prior to use!
RTEMS depends on this or eg. bind() will fail because comparison with list of interface addresses is done with memcmp()!
This commit is contained in:
@@ -243,6 +243,7 @@ void test_multicastLoopback()
|
||||
epicsSocketEnableAddressUseForDatagramFanout(socket);
|
||||
|
||||
osiSockAddr bindAddr;
|
||||
memset(&bindAddr, 0, sizeof(bindAddr));
|
||||
bindAddr.ia.sin_family = AF_INET;
|
||||
bindAddr.ia.sin_port = ntohs(port);
|
||||
bindAddr.ia.sin_addr.s_addr = htonl(INADDR_ANY);
|
||||
|
||||
Reference in New Issue
Block a user