(Illustration by Gaich Muramatsu)
On Mon, 18 Jan 1999 jaharkes_at_cs.cmu.edu wrote: > > + if(inet_aton(AuthHost, &hident.Value.InetAddress)) > > inet_aton returns 0 on success Not here it doesn't. >From the Linux inet_aton man page: inet_aton() converts the Internet host address cp from the standard numbers-and-dots notation into binary data and stores it in the structure that inp points to. inet_aton returns nonzero if the address is valid, zero if not. >From the Linux libc info page: - Function: int inet_aton (const char *NAME, struct in_addr *ADDR) This function converts the Internet host address NAME from the standard numbers-and-dots notation into binary data and stores it in the `struct in_addr' that ADDR points to. `inet_aton' returns nonzero if the address is valid, zero if not. >From the IRIX man page: The inet_aton routine interprets the specified character string as an Internet address, placing the address into the structure provided. It returns 1 if the string was successfully interpreted, or 0 if the string is invalid. I've attached the inet_aton() compatibility routine I use in ORBit, in case it is of any use... -- Elliot "In film you will find four basic story lines. Man versus man, man versus nature, nature versus nature, and dog versus vampire." - Steven Spielberg