Re: IPv6 support for syslog

From: Martin Schulze <joey_at_infodrom.org>
Date: Fri, 27 Nov 2009 23:34:17 +0100

Hi John,

John Haxby wrote:
> Hello All,
>
> Some time ago, a patch was submitted to the Fedora sysklogd to
> provide IPv6 support. This patch, apparently, came from the freebsd
> syslogd. The patch was subsequently lost although the old Fedora
> RPM can still be found.
>
> I took that patch, the current freebsd sources and a dash of salt to
> produce a new patch which I have attached.

Thanks a lot for your work!

> The patch does two things: it will arrange for syslogd to listen on
> an IPv6 socket in addition to the IPv4 socket and it uses
> getaddrinfo() and getnameinfo() rather than gethostby[name|addr] and
> getservbyname. It would be possible to use a single socket that
> accepts both IPv6 and IPv4 datagrams, but this would mean that
> numeric IPv4 addresses would be prefixed with ::ffff and this could
> cause some confusion -- and I'm also not sure that everything that
> sysklogd runs on has a dual stack like that.

I agree.

> I've also introduced the -4, -6 and -A with the same meanings that
> the freebsd and rsyslog variants do.
>
> This patch arose out of a request from someone else and seems to be
> generally useful.

The patch produce a small problem. When INET6 is not defined, syslogd
does not seem to accept any log messages, neither from the IPv4 UDP
port nor from the local Unix domain socket.

It seems the patch requires some adjustments. Do you have some time
for this?

Regards,

        Joey

P.S.: The repository is available via git as well. In case you're
familiar with git feel free to make use of it.

-- 
Ten years and still binary compatible.  -- XFree86
Received on Fri Nov 27 2009 - 23:34:17 CET

This archive was generated by hypermail 2.2.0 : Fri Nov 27 2009 - 23:37:06 CET