undefine debug macro and properly fetch source address

with Tornado II
This commit is contained in:
Jeff Hill
2000-11-30 19:27:49 +00:00
parent e0444c15cf
commit d0f57e2c5b
+7 -1
View File
@@ -43,7 +43,6 @@ static char *sccsId = "@(#) $Id$";
* also called by the server. All locks required are applied at
* a higher level.
*/
#define DEBUG
#ifdef DEBUG
# define ifDepenDebugPrintf(argsInParen) printf argsInParen
#else
@@ -198,6 +197,13 @@ epicsShareFunc void epicsShareAPI caDiscoverInterfaces
continue;
}
status = socket_ioctl (socket, SIOCGIFADDR, pifreq);
if ( status ) {
errlogPrintf ("osiSockDiscoverInterfaces(): net intf \"%s\": if addr fetch fail\n", pifreq->ifr_name);
free ( pNewNode );
continue;
}
pNewNode->srcAddr.sa = pifreq->ifr_addr;
if ( pNewNode->destAddr.sa.sa_family == AF_INET ) {