Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Sep 2004 12:30:44 -0400 (EDT)
From:      Matthew George <mdg@secureworks.net>
To:        Maxim Konovalov <maxim@macomnet.ru>
Cc:        doc@freebsd.org
Subject:   Re: addr2ascii(3) needs sys/socket.h?
Message-ID:  <20040929122826.R20232@localhost>
In-Reply-To: <20040929201812.G9999@mp2.macomnet.net>
References:  <20040929120608.D20232@localhost> <20040929201812.G9999@mp2.macomnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 29 Sep 2004, Maxim Konovalov wrote:

> On Wed, 29 Sep 2004, 12:09-0400, Matthew George wrote:
>
> >
> > AF_INET or AF_LINK should be passed as the first arg to addr2ascii(3) and
> > ascii2addr(3).  These are defined in sys/socket.h, but that is omitted in
> > the include section of the manpage.
> >
>
> In the EXAMPLE section we see
>
> :           #include <sys/types.h>
> :           #include <sys/socket.h>
> :           #include <netinet/in.h>
> :           #include <arpa/inet.h>
>
> so you need to put sys/socket.h right after sys/types.h.

ah, i missed the reference from the example ... I just noticed that it
wasn't in the synopsis

-- 
Matthew George
SecureWorks Technical Operations



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040929122826.R20232>