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 route.  For that I have invented a udp4:// or
> udp6:// prefix to choose a protocol.  This syntax was chosen as I
> want to extend it to tcp:// and tls:// later.

And here is the documentation.

ok?

bluhm

Index: usr.sbin/syslogd/syslog.conf.5
===================================================================
RCS file: /cvs/src/usr.sbin/syslogd/syslog.conf.5,v
retrieving revision 1.25
diff -u -p -r1.25 syslog.conf.5
--- usr.sbin/syslogd/syslog.conf.5      21 Aug 2014 17:16:37 -0000      1.25
+++ usr.sbin/syslogd/syslog.conf.5      25 Aug 2014 19:22:09 -0000
@@ -227,6 +227,8 @@ square brackets
 and
 .Ql ]\&
 .Pc .
+A prefix udp4:// or udp6:// in front of the hostname and after the
+at sign will force IPv4 or IPv6 addresses for UDP transport.
 .It
 A comma separated list of users.
 Selected messages are written to those users
Index: usr.sbin/syslogd/syslogd.8
===================================================================
RCS file: /cvs/src/usr.sbin/syslogd/syslogd.8,v
retrieving revision 1.29
diff -u -p -r1.29 syslogd.8
--- usr.sbin/syslogd/syslogd.8  23 Jul 2014 05:57:36 -0000      1.29
+++ usr.sbin/syslogd/syslogd.8  25 Aug 2014 19:22:09 -0000
@@ -39,7 +39,7 @@
 .Sh SYNOPSIS
 .Nm syslogd
 .Bk -words
-.Op Fl dhnu
+.Op Fl 46dhnu
 .Op Fl a Ar path
 .Op Fl f Ar config_file
 .Op Fl m Ar mark_interval
@@ -54,6 +54,14 @@ configuration file.
 .Pp
 The options are as follows:
 .Bl -tag -width Ds
+.It Fl 4
+Forces
+.Nm
+to use IPv4 addresses only.
+.It Fl 6
+Forces
+.Nm
+to use IPv6 addresses only.
 .It Fl a Ar path
 Specify a location where
 .Nm

Reply via email to