[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: build problem - INET6_ADDRSTRLEN / INET_ADDRSTRLEN undeclared (ITS#770)



At 11:16 PM 9/24/00 +0000, venaas@alfa.itea.ntnu.no wrote:
>On Sun, Sep 24, 2000 at 03:56:53PM -0700, Kurt D. Zeilenga wrote:
>> I suggest we check for getaddrinfo() and use it found (for ipv4 or ipv6),
>> but require INET6_ADDRSTRLEN before enabling ipv6.
>
>Yes, that's better I think, but...

Committed.


>in daemon.c and os-ip.c we need INET_ADDRSTRLEN and inet_ntop. I think
>everyone with getaddrinfo has inet_ntop (I could be wrong though), but
>according to the reports INET_ADDRSTRLEN is not defined. So we should
>then either define it ourselves, or simply write 16 there.

I added defines for INET{,6}_ADDRSTRLEN to <ac/socket.h>.  The latter
we should not need.

We can defer adding a separate test for inet_ntop() until we get
some feedback...

Kurt