From e33adef70e7b1cbe1312f85731f8516bb383776f Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 29 Sep 1994 19:59:25 +0000 Subject: [PATCH] EPICS_CA_SEARCH_ADDR_LIST => EPICS_CA_ADDR_LIST --- src/ca/iocinf.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/ca/iocinf.c b/src/ca/iocinf.c index 700bde4a5..d5f290c69 100644 --- a/src/ca/iocinf.c +++ b/src/ca/iocinf.c @@ -430,7 +430,7 @@ int net_proto caAddConfiguredAddr( &piiu->destAddr, - &EPICS_CA_SEARCH_ADDR_LIST, + &EPICS_CA_ADDR_LIST, sock, CA_SERVER_PORT); @@ -1417,25 +1417,31 @@ unsigned long cacRingBufferWriteSize(struct ca_buffer *pBuf, int contiguous) * * o Indicates failure by setting ptr to nill * - * o Calls non posix gethostbyname() so that we get DNS style names - * (gethostbyname() should be available with most BSD sock libs) + * o Calls non posix gethostname() + * + * o We want the full domain name however neither + * gethostbyname() or gethostname() appear to provide it + * under SUNOS. * - * vxWorks user will need to configure a DNS format name for the + * vxWorks user may need to configure a DNS format name for the * host name if they wish to be cnsistent with UNIX and VMS hosts. * */ char *localHostName() { - int size; - int status; - char pName[MAXHOSTNAMELEN]; - char *pTmp; + int size; + int status; + char nameBuf[MAXHOSTNAMELEN]; + char *pName; + char *pTmp; - status = gethostname(pName, sizeof(pName)); + status = gethostname(nameBuf, sizeof(nameBuf)); if(status){ return NULL; } + pName = nameBuf; + size = strlen(pName)+1; pTmp = malloc(size); if(!pTmp){