diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2024-11-09 12:40:11 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2024-11-09 12:40:11 +0000 |
commit | ac57d00234fa01ff216bc77dfe0bcfc6369769aa (patch) | |
tree | e973c695672deb29f1266cce65d6c78c00a349b3 | |
parent | 2574aebfeebdb74dfcd7051aea850273a063acbc (diff) |
sync curly braces markup, fix indent
Replace literal braces with .Brq, use lists, replace literal 'foo options'
with .Ar option ... and indent options where they belong.
This highlights config parser differences between daemons:
- dhcpleased: requires empty blocks, e.g. 'interface em0 {}' (Brq Op Ar option ...)
- rad: lets you omit them, e.g. 'interface em0' (Op Brq Ar option ...)
Feedback OK jmc
-rw-r--r-- | usr.sbin/rad/rad.conf.5 | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/usr.sbin/rad/rad.conf.5 b/usr.sbin/rad/rad.conf.5 index 7c95a8cce83..b90934603f7 100644 --- a/usr.sbin/rad/rad.conf.5 +++ b/usr.sbin/rad/rad.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rad.conf.5,v 1.25 2024/05/31 16:19:53 florian Exp $ +.\" $OpenBSD: rad.conf.5,v 1.26 2024/11/09 12:40:10 kn Exp $ .\" .\" Copyright (c) 2018 Florian Obser <florian@openbsd.org> .\" Copyright (c) 2005 Esben Norby <norby@openbsd.org> @@ -18,7 +18,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: May 31 2024 $ +.Dd $Mdocdate: November 9 2024 $ .Dt RAD.CONF 5 .Os .Sh NAME @@ -69,7 +69,7 @@ These can be overwritten in interface blocks. .It Ic default router Pq Ic yes Ns | Ns Ic no Act as a default router or not. The default is yes. -.It Ic dns Brq dns options +.It Ic dns Brq Ar option ... .Ic dns options are as follows: .Bl -tag -width Ds @@ -77,9 +77,9 @@ options are as follows: The number of seconds the dns options are valid after receiving a router advertisement message. The default is 900 seconds. -.It Ic nameserver Pq Ar IP Ns | Ns { nameserver list } +.It Ic nameserver Pq Ar address Ns | Ns Brq Ar address ... IPv6 address or list of IPv6 addresses of DNS name servers. -.It Ic search Pq Ar domain Ns | Ns { domain list } +.It Ic search Pq Ar domain Ns | Ns Brq Ar domain ... Domain or list of domains for the .Xr resolv.conf 5 search list. @@ -96,7 +96,7 @@ The MTU option is used in Router Advertisement messages to ensure that all nodes on a link use the same MTU value in those cases where the link MTU is not well known. The default is 0, meaning unspecified by this router. -.It Ic nat64 prefix Ar prefix Op Brq nat64 options +.It Ic nat64 prefix Ar prefix Op Brq Ar option ... Add a PREF64 router advertisement option to communicate prefixes used for Network Address and Protocol Translation from IPv6 to IPv4 (NAT64). If @@ -134,18 +134,15 @@ The default is yes. .El .Sh INTERFACES A list of interfaces or interface groups to send advertisements on: -.Bd -unfilled -offset indent -.Ic interface Ar name Op { prefix list } -.Ed -.Pp +.Bl -tag -width Ds +.It Ic interface Ar name Op Brq Ar prefix ... Options set in the global section can be overwritten inside an interface block. In addition an interface block can contain a list of prefixes: -.Bd -unfilled -offset indent -.Oo Ic no Oc Ic auto prefix Op { prefix options } -.Ic prefix Ar prefix Op { prefix options } -.Ed .Pp +.Bl -tag -width Ds -compact +.It Oo Ic no Oc Ic auto prefix Op Brq Ar option ... +.It Ic prefix Ar prefix Op Brq Ar option ... The default is to discover prefixes to announce by inspecting the IPv6 addresses configured on an interface. This can be disabled with @@ -176,6 +173,8 @@ The default is 5400. This option is ignored if the prefix is discovered from a network interface and it has a valid lifetime configured. .El +.El +.El .Sh FILES .Bl -tag -width /etc/examples/rad.conf -compact .It Pa /etc/rad.conf |