From: haymanR () icefog ! uacn ! alaska ! edu
To: tru64-unix-managers
Subject: SUMMARY: fping patches for Digital UNIX v3.2?
Date: Thu, 30 Mar 1995 16:51:14 +0000 [thread overview]
Message-ID: <96075318306732.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1995-03-30 16:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox