SUMMARY: fping patches for Digital UNIX v3.2?

From: <haymanR_at_icefog.uacn.alaska.edu>
Date: Thu, 30 Mar 1995 07:51:14 -0900

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_at_usit.uio.no & reisch_at_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_at_icefog.alaska.edu
Received on Thu Mar 30 1995 - 11:50:25 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT