![]() |
Under Linux (RedHat 4.1), running NIS, the hostname/address resolution in InetTransport.c++ fails to properly resolve a given hostname. It appears to be a bug somewhere in the Linux NIS code. However, here is the diffs to implement a workaround. Can not reach server at host "fax", port 4559. Trying fax (127.0.0.1) at port 4559...HylaFAX scheduler on planet.emccta.com: Running Modem ttyS2 (+1.847.267.1731): Sending job 10 Trying fax (205.164.34.34) at port 4559... Connected to fax.emccta.com. 220 planet.emccta.com server (HylaFAX (tm) Version 4.0pl1) ready. -> USER root 230 User root logged in. -> PORT 205,164,34,20,7,68 200 PORT command successful. -> LIST status 150 Opening new data connection for "status". 226 Transfer complete.Linux version 2.0.27 (root@hedgehog) (gcc version 2.7.2) #25 Sun Apr 6 10:00:14 CDT 1997Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2/specs gcc version 2.7.2libc-5.3.12-174.0pl1*** /usr/local/src/hylafax-v4.0pl1/util/InetTransport.c++ Tue Nov 26 17:20:39 1996 --- InetTransport.c++ Wed Jul 16 10:09:57 1997 *************** *** 65,75 **** if (l < s.length()) proto = s.tail(s.length()-(l+1)); } ! struct hostent* hp = Socket::gethostbyname(client.getHost()); ! if (!hp) { ! emsg = client.getHost() | ": Unknown host"; ! return (FALSE); ! } int protocol; const char* cproto = proto; // XXX for busted include files struct protoent* pp = getprotobyname(cproto); --- 65,71 ---- if (l < s.length()) proto = s.tail(s.length()-(l+1)); } ! int protocol; const char* cproto = proto; // XXX for busted include files struct protoent* pp = getprotobyname(cproto); *************** *** 79,84 **** --- 75,87 ---- protocol = 0; } else protocol = pp->p_proto; + + struct hostent* hp = Socket::gethostbyname(client.getHost()); + if (!hp) { + emsg = client.getHost() | ": Unknown host"; + return (FALSE); + } + int fd = socket(hp->h_addrtype, SOCK_STREAM, protocol); if (fd < 0) { emsg = "Can not create socket to connect to server."; X-Mailer: exmh version 1.6.9 8/22/96 To: Hylafax Mailing List <flexfax@sgi.com> Subject: Configuration of hylafax client only Date: Wed, 16 Jul 1997 18:42:53 +0200 From: Michiel de Vries <Michiel.de.Vries@cwi.nl> Sender: owner-flexfax@celestial.com We are running the fax deamon on a SGI Indigo 6.2, but also want to send faxes from our sun workstations. As far as I understand you don't need the tiff library or ghostscript for the hylafax clients. If I'm correct, does anyone has a configuration file for a clients only configuration, without tiff library & ghostscript requirements, or can anyone tell me what to change? Thanks, -- Michiel *** mdvries@cwi.nl Michiel de Vries, CWI, Amsterdam, The Netherlands. Room: M339, Tel: +31 20 592 4265