From d0f57e2c5b6af517192c82327bd801afec8e39c2 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 30 Nov 2000 19:27:49 +0000 Subject: [PATCH] undefine debug macro and properly fetch source address with Tornado II --- src/ca/if_depen.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ca/if_depen.c b/src/ca/if_depen.c index da4023af7..12a70571c 100644 --- a/src/ca/if_depen.c +++ b/src/ca/if_depen.c @@ -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 ) {