[syslog-ng][PATCH] use_fqdn with gethostname() not returning fqdn
Sven Wegener
swegener at gentoo.org
Wed May 18 12:40:20 CEST 2005
On Wed, May 18, 2005 at 12:25:11PM +0200, Balazs Scheidler wrote:
> Hi,
>
> Thanks for the contribution to syslog-ng and sorry for not answering so
> long.
>
> The problem I have with your patches that I'd prefer not to rely on
> getaddrinfo() functions as I'm a bit afraid of portability issues. Are
> there any other way (with gethostbyaddr for example) to determine
> network local name?
Hi,
gethostbyaddr is fine too. It does the same thing as getaddrinfo. We
could also use gethostname and append the result from getdomainname to
it, but POSIX does not specify the *domainname functions. I'll modify
the patch to use gethostbyaddr instead of getaddrinfo when I'm back at
home.
Cheers,
Sven
--
Sven Wegener
Gentoo Linux Developer
http://www.gentoo.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.test.balabit.hu/pipermail/syslog-ng/attachments/20050518/db74975f/attachment.pgp
More information about the syslog-ng
mailing list