-/* $OpenBSD: parse.y,v 1.9 2018/09/07 07:35:31 miko Exp $ */
+/* $OpenBSD: parse.y,v 1.10 2018/09/16 18:58:36 bluhm Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
free($2);
YYERROR;
}
+ if (prefixlen == 128 && strchr($2, '/') == NULL)
+ prefixlen = 64;
mask_prefix(&addr, prefixlen);
ra_prefix_conf = conf_get_ra_prefix(&addr, prefixlen);
} ra_prefix_block {
-.\" $OpenBSD: rad.conf.5,v 1.11 2018/08/03 19:54:11 jmc Exp $
+.\" $OpenBSD: rad.conf.5,v 1.12 2018/09/16 18:58:36 bluhm Exp $
.\"
.\" Copyright (c) 2018 Florian Obser <florian@openbsd.org>
.\" Copyright (c) 2005 Esben Norby <norby@openbsd.org>
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: August 3 2018 $
+.Dd $Mdocdate: September 16 2018 $
.Dt RAD.CONF 5
.Os
.Sh NAME
addresses configured on an interface.
This can be disabled with
.Ic no auto prefix .
+If
+.Ar prefix
+is specified without prefixlen, its default is 64.
.Pp
.Ic prefix
options are as follows: