[netcf-devel] suggestion for replacing inet_aton

Adam Stokes ajs at redhat.com
Mon Aug 2 15:47:27 UTC 2010


----- "Laine Stump" <laine at laine.org> wrote:

> On 08/02/2010 10:12 AM, ajs at redhat.com wrote:
> > inet_pton is provided within gnulib which gives us another
> portability option, however, src/xslt_ext.c uses inet_aton when
> processing a netmask (roughly line 113). Is it acceptable to possibly
> replace inet_aton? I think inet_pton(3) would be a good replacement
> though there are some caveats in the notes section of its man page.
> 
> What about getaddrinfo? That is also in gnulib, and seems a bit more 
> complete in what it accepts (although I don't think we really need to
> 

that would also work -- any objections for this routine being used?

-- 
        __          __                
.-----.|  |_.-----.|  |--.-----.-----.
|__ --||   _|  _  ||    <|  -__|__ --|
|_____||____|_____||__|__|_____|_____|
 .----------------------------------.
(   ajs at redhat.com || 919.754.4187   )
 `----------------------------------'



More information about the netcf-devel mailing list