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:
@@ -126,6 +126,7 @@ void ServerContextImpl::loadConfiguration()
|
||||
SET_LOG_LEVEL(logLevelDebug);
|
||||
|
||||
// TODO multiple addresses
|
||||
memset(&_ifaceAddr, 0, sizeof(_ifaceAddr));
|
||||
_ifaceAddr.ia.sin_family = AF_INET;
|
||||
_ifaceAddr.ia.sin_addr.s_addr = htonl(INADDR_ANY);
|
||||
_ifaceAddr.ia.sin_port = 0;
|
||||
|
||||
Reference in New Issue
Block a user