inet_aton on Solaris 8

Simo Sorce simo.sorce at polimi.it
Wed Jan 17 13:23:10 GMT 2001


On Wed, 17 Jan 2001, David Collier-Brown wrote:

> Alan Romeril wrote:
> > It`s in libresolv!  However, Samba doesn`t link against libresolv as a
> > default.
>
> 	Please **don't** link to the inet_aton in libresolv[2].
>
> 	It is present only for other system libraries to
> 	call, and is marked "private" in the internal
> 	versioning system. If you use it, you'll pull a fatal
> 	error from appcert, for good reason....
>
> 	It's likely to be changed in a later release, on the
> 	advice of Richard Stevens.  Have a look at pages 70-73
> 	in Unix Network Programming, second ed, where he warns
> 	about the inet_aton, inet_addr and inet_ntoa functions.
> 	He suggests a set of IPv4- and IPv6-compatable
> 	replacements in the next section: there are both
> 	reliability and portability issues with the older
> 	interfaces.

Unfortunately it is unlikely that Stevens will ever change that as he is
dead 2 years ago :(

>
> 	So don't go there (;-))
>
> --dave
>

-- 
Simo Sorce - Integrazione Sistemi Unix/Windows - Politecnico di Milano
E-mail: simo.sorce at polimi.it
Tel.int: 02 2399 2425 - Fax.int. 02 2399 2451
-----------------------------------------------------------------
Be happy, use Linux!





More information about the samba-technical mailing list