man: update '-b' option description to match '-a' and usage text

The usage text (syslogd -?) and the syslogd.8 man page was not in sync
wrt. the -b option.  This patch updates it to match the layout of -a,
the -a option is also slightly updated.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2022-03-06 00:49:25 +01:00
parent aceb4cddcf
commit 7707715c78

View File

@ -137,7 +137,7 @@ even if the host has more than one A or AAAA record.
If this option is specified, If this option is specified,
.Nm .Nm
tries to send the message to all addresses. tries to send the message to all addresses.
.It Fl a Ar address[/len][:service] | Fl a Ar domainname[:service] .It Fl a Ar peer
Allow peers to log to this syslogd using UDP datagrams. Multiple Allow peers to log to this syslogd using UDP datagrams. Multiple
.Fl a .Fl a
options may be specified. Any options may be specified. Any
@ -146,9 +146,11 @@ option is ignored if the
.Fl s .Fl s
option is also specified. option is also specified.
.Pp .Pp
The peer argument may be any of the following: The
.Ar peer
argument may be any of the following:
.Bl -tag -width 'address[/len][:service]' .Bl -tag -width 'address[/len][:service]'
.It Ql address[/len][:service] .It address[/len][:service]
Accept datagrams from IP Accept datagrams from IP
.Ar address , .Ar address ,
which can be specified as an IPv4 address or as an IPv6 address enclosed which can be specified as an IPv4 address or as an IPv6 address enclosed
@ -175,7 +177,7 @@ otherwise. If
is an IPv6 address, a missing prefix is an IPv6 address, a missing prefix
.Ar len .Ar len
will be substituted by 128. will be substituted by 128.
.It Ql domainname[:service] .It domainname[:service]
Accept datagrams where the reverse address lookup yields Accept datagrams where the reverse address lookup yields
.Ar domainname .Ar domainname
for the sender address. The meaning of for the sender address. The meaning of
@ -185,31 +187,31 @@ is as explained above.
can contain special characters of a shell-style pattern such as can contain special characters of a shell-style pattern such as
.Ql * . .Ql * .
.El .El
.It Xo .It Fl b Ar name
Bind to a specific address and/or port. By default,
.Nm
listens on all interfaces on UDP port 514, unless started with the
.Fl s
option. Multiple
.Fl b .Fl b
.Sm off options may be specified to bind to several addresses and/or ports.
.Ar address Op \&: Ar service .Pp
.Sm on The
.Xc .Ar name
.It Xo argument may be any of the following:
.Fl b .Bl -tag -width 'address[/len][:service]'
.Sm off .It address[:port]
.Li \&: Ar service The address can be specified as a hostname or an IP address, and the
.Sm on port as a service name or port number. If an IPv6 address is specified,
.Xc it should be enclosed with
Bind to a specific address and/or port.
The address can be specified as a hostname,
and the port as a service name.
If an IPv6 address is specified, it should be enclosed with
.Ql \&[ .Ql \&[
and and
.Ql \&] . .Ql \&] .
The default .It :port
.Ar service Service name or UDP port number. The default service is
is .Ql syslog
.Ql syslog . (UDP), port 512.
This option can be specified multiple times to bind to .El
multiple addresses and/or ports.
.It Fl C Ar file .It Fl C Ar file
File to use for caching last read kernel sequence number from File to use for caching last read kernel sequence number from
.Pa /dev/kmsg , .Pa /dev/kmsg ,