From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075318306732.tru64-unix-managers.marc@archive.invalid> From: haymanR () icefog ! uacn ! alaska ! edu Date: Thu, 30 Mar 1995 16:51:14 +0000 To: tru64-unix-managers Subject: SUMMARY: fping patches for Digital UNIX v3.2? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075318306732 I originally asked about patches to fping to make it work under Digital UNIX. (Note that out-of-the-net compile had fping -d xxx.xxx.xxx.xxx functioning, but not fping host.subdomain.domain) Two respondents were: morten.hanshaugen@usit.uio.no & reisch@epa001.enet.dec.com The two different patches are shown below. I am using the first patch: *** fping.c.old Thu Mar 23 15:26:55 1995 --- fping.c Mon Mar 27 19:11:49 1995 *************** *** 650,656 **** --- 650,660 ---- struct hostent *host_ent; struct in_addr *host_add; + #ifndef __alpha u_long ipaddress = inet_addr(host); + #else + u_int ipaddress = inet_addr(host); + #endif if ( (ipaddress == -1) && ( ((host_ent=gethostbyname(host)) == 0) || and 432c432 < u_long ipaddress = inet_addr(host); --- > unsigned int ipaddress = inet_addr(host); 434c434 < if ( (ipaddress == -1) && --- > if ( (ipaddress == INADDR_NONE ) && 454c454 < if (ipaddress==-1) p->saddr.sin_addr = *host_add; --- > if (ipaddress==INADDR_NONE) p->saddr.sin_addr = *host_add; Randy M. Hayman haymanr@icefog.alaska.edu