bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] First part of IPv6 adaption for syslogd.


From: Mats Erik Andersson
Subject: [bug-inetutils] First part of IPv6 adaption for syslogd.
Date: Sat, 18 Jun 2011 13:56:30 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Dear all,

I would like comments on the present patch. The server 'syslogd'
is so important that I would not want to introduce changes without
having them on display first.

This patch, a first out of the intended three patches, addresses
the migration away from 'struct sockaddr_in', 'struct hostent',
and 'gethostbyname/byaddr', instead using 'struct sockaddr_storage',
'struct addrinfo', 'getaddrinf/getnameinfo'. It has been successfully
tested with IPv4 and IPv6 as local logging server and as forwarding
server on GNU/Linux, GNU/kFreeBSD, and OpenBSD (receiver was FreeBSD).

Presently the code is intentionally written with a hard coded

    int usefamily = AF_INET;

to support IPv4 only , exactly as the present code does. The simple
action of writing AF_INET6 in the line above, will turn the code into
an IPv6-only logging server (as receiver and as forwarder).

The second patch in this series will address changes to

   In forwarding mode, do not depend on a socket being open
   at all times, instead open a socket at demand.

This will resolve the presently annoying fact that an INET enabled
server instance will show up as a live UDP socket, independently
of the fact that it may not be listenen for incoming messages.
This is the legacy behaviour of the service, but it should be changed.

A third patch will hopefully complete the migration to produce a dual
stacked logging server in our project.

Given the vivid flux we see in our infrastructure right now, I will
have to recalculate the present patch against HEAD, once you all agree.

Best regards for now,
  Mats
-- 
Mats Erik Andersson, fil. dr
<address@hidden>
2459 41E9 C420 3F6D F68B  2E88 F768 4541 F25B 5D41

Abonnerar på: debian-mentors, debian-devel-games, debian-perl,
              debian-ipv6, debian-qa

Attachment: 0001-syslogd-Rewrite-using-getaddrinfo-preparing-IPv6.patch
Description: Text Data

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]