On Fri, Aug 22, 2014 at 06:43:47PM +0200, Alexander Bluhm wrote:
> At the moment syslogd opens both IPv4 and IPv6 sockets unconditionally.
> I can restrict it to a protocol family with -4 and -6 command line
> switches. If the log server is a FQDN, DNS chosses wether to take
> the IPv4 or IPv6 rou
On Sat, Aug 23, 2014 at 01:10:52PM +0200, Alexander Bluhm wrote:
> On Fri, Aug 22, 2014 at 06:43:47PM +0200, Alexander Bluhm wrote:
> > At the moment syslogd opens both IPv4 and IPv6 sockets unconditionally.
> > I can restrict it to a protocol family with -4 and -6 command line
> > switches. If th
On Fri, Aug 22, 2014 at 06:43:47PM +0200, Alexander Bluhm wrote:
> At the moment syslogd opens both IPv4 and IPv6 sockets unconditionally.
> I can restrict it to a protocol family with -4 and -6 command line
> switches. If the log server is a FQDN, DNS chosses wether to take
> the IPv4 or IPv6 rou
On Tue, Aug 19, 2014 at 01:59:42AM +0200, Alexander Bluhm wrote:
> I will split this diff into smaller parts to make review and
> discussion easier.
At the moment syslogd opens both IPv4 and IPv6 sockets unconditionally.
I can restrict it to a protocol family with -4 and -6 command line
switches.
On Tue, Aug 19, 2014 at 01:59:42AM +0200, Alexander Bluhm wrote:
> I will split this diff into smaller parts to make review and
> discussion easier.
Instead of getting a nasty error message from privsep
syslogd: priv_getaddrinfo: overflow attempt in hostname
check the host and port length when par
On Thu, Aug 21, 2014 at 01:39:55AM +0200, Alexander Bluhm wrote:
> On Tue, Aug 19, 2014 at 01:59:42AM +0200, Alexander Bluhm wrote:
> > I will split this diff into smaller parts to make review and
> > discussion easier.
>
> Document square brackets for IPv6 addresses. From FreeBSD.
>
> Index: us
On Tue, Aug 19, 2014 at 01:59:42AM +0200, Alexander Bluhm wrote:
> I will split this diff into smaller parts to make review and
> discussion easier.
Document square brackets for IPv6 addresses. From FreeBSD.
Index: usr.sbin/syslogd/syslog.conf.5
==
On Tue, Aug 19, 2014 at 01:59:42AM +0200, Alexander Bluhm wrote:
> I will split this diff into smaller parts to make review and
> discussion easier.
Send and receive UDP syslog packets on the IPv6 socket.
ok?
bluhm
Index: usr.sbin/syslogd/privsep.c
==
On Tue, Aug 19, 2014 at 01:59:42AM +0200, Alexander Bluhm wrote:
> I will split this diff into smaller parts to make review and
> discussion easier.
Parse loghost in a separate function. Allow [] around hostname,
needed for IPv6 addresses. Print full loghost specifier in case
of error or debug.
Alexander Bluhm writes:
> On Tue, Aug 19, 2014 at 01:59:42AM +0200, Alexander Bluhm wrote:
>> I will split this diff into smaller parts to make review and
>> discussion easier.
>
> Replace gethostbyaddr(3) with getnameinfo(3).
>
> Note that I remove the sigprocmask() that was added in rev 1.23
>
On Tue, Aug 19, 2014 at 01:59:42AM +0200, Alexander Bluhm wrote:
> I will split this diff into smaller parts to make review and
> discussion easier.
Rename priv_gethostserv() to priv_getaddrinfo() as this is what the
function does. Change the return code semantics to match getaddrinfo(3).
ok?
b
On Tue, Aug 19, 2014 at 01:59:42AM +0200, Alexander Bluhm wrote:
> I will split this diff into smaller parts to make review and
> discussion easier.
Replace gethostbyaddr(3) with getnameinfo(3).
Note that I remove the sigprocmask() that was added in rev 1.23
before privsep. It was necessary beca
On Tue, Aug 19, 2014 at 01:59:42AM +0200, Alexander Bluhm wrote:
> I will split this diff into smaller parts to make review and
> discussion easier.
The exit codes in privsep.c seem to be the wrong way around. Fatal
errors should exit with 1, and regular shutdown should result in
exit with 0. I
On Tue, Aug 19, 2014 at 01:59:42AM +0200, Alexander Bluhm wrote:
> I will split this diff into smaller parts to make review and
> discussion easier.
Replace manually written function names with __func__. This
will make renaming functions easier.
ok?
bluhm
Index: usr.sbin/syslogd/privsep.c
===
On Tue, Aug 19, 2014 at 01:59:42AM +0200, Alexander Bluhm wrote:
> I will split this diff into smaller parts to make review and
> discussion easier.
Let's start with the easy part, fix trailing white spaces.
ok?
bluhm
Index: usr.sbin/syslogd/syslogd.c
===
Hi,
I have added functionality that allows syslogd to receive and send
UDP packets via inet6 sockets.
I will split this diff into smaller parts to make review and
discussion easier.
bluhm
Index: usr.sbin/syslogd/privsep.c
===
RCS f
16 matches
Mail list logo