ai_flags in BSD/OS

Russ Allbery rra at stanford.edu
Fri Jan 30 21:52:27 UTC 2009


Julien ÉLIE <julien at trigofacile.com> writes:

> The problem The Doctor has with innfeed (which cannnot send any
> articles) is written in his logs:
>
> Jan 30 11:44:48 gallifrey julien[732]: innfeed[16329]: ME starting at Fri Jan 30 11:44:48 2009\n (INN 2.5.0 (20090130 snapshot))
> Jan 30 11:44:48 gallifrey julien[732]: innfeed[16329]: loading /usr/home/julien/inn/install2.5/etc/innfeed.conf
> Jan 30 11:44:51 gallifrey julien[732]: innfeed[16329]: test can't resolve hostname news.trigofacile.com: Invalid value for ai_flags
> Jan 30 11:44:51 gallifrey julien[732]: innfeed[16329]: test spooling no active connections
>
> In innfeed/host.c, we have:
>    hints.ai_flags = AI_NUMERICSERV | AI_ADDRCONFIG;
>
> What should be used?

> AI_NUMERICSERV seems not to be defined in netdb.h (thus set to 0 by a
> #ifndef).  AI_ADDRCONFIG is defined.

Does it work if you omit AI_ADDRCONFIG?  The purpose of that flag is to
restrict the interfaces to ones that are configured in the kernel (thus
avoiding the attempt to create an IPv6 interface when none exists).  If
that flag is defined but doesn't work on BSD/OS, we may need to probe in
configure for whether it actually works.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.



More information about the inn-workers mailing list