-/* $OpenBSD: parse.y,v 1.444 2023/04/04 16:01:54 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.445 2023/04/05 08:04:28 claudio Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
%token <v.string> STRING
%token <v.number> NUMBER
%type <v.number> asnumber as4number as4number_any optnumber
-%type <v.number> espah family safi restart origincode nettype
+%type <v.number> espah af safi restart origincode nettype
%type <v.number> yesno inout restricted expires enforce
%type <v.number> validity aspa_validity
%type <v.number> addpathextra addpathmax
$$->aid = AID_UNSPEC;
$$->num = 1;
}
- | as4number_any family {
+ | as4number_any af {
if (($$ = calloc(1, sizeof(*$$))) == NULL)
fatal(NULL);
$$->as = $1;
free($3);
free($4);
}
- | NETWORK family RTLABEL STRING filter_set {
+ | NETWORK af RTLABEL STRING filter_set {
struct network *n;
if ((n = calloc(1, sizeof(struct network))) == NULL)
fatal("new_network");
if (afi2aid($2, SAFI_UNICAST, &n->net.prefix.aid) ==
-1) {
- yyerror("unknown family");
+ yyerror("unknown address family");
filterset_free($5);
free($5);
YYERROR;
TAILQ_INSERT_TAIL(netconf, n, entry);
}
- | NETWORK family PRIORITY NUMBER filter_set {
+ | NETWORK af PRIORITY NUMBER filter_set {
struct network *n;
if (!kr_check_prio($4)) {
yyerror("priority %lld out of range", $4);
fatal("new_network");
if (afi2aid($2, SAFI_UNICAST, &n->net.prefix.aid) ==
-1) {
- yyerror("unknown family");
+ yyerror("unknown address family");
filterset_free($5);
free($5);
YYERROR;
TAILQ_INSERT_TAIL(netconf, n, entry);
}
- | NETWORK family nettype filter_set {
+ | NETWORK af nettype filter_set {
struct network *n;
if ((n = calloc(1, sizeof(struct network))) == NULL)
fatal("new_network");
if (afi2aid($2, SAFI_UNICAST, &n->net.prefix.aid) ==
-1) {
- yyerror("unknown family");
+ yyerror("unknown address family");
filterset_free($4);
free($4);
YYERROR;
}
curpeer->conf.min_holdtime = $3;
}
- | ANNOUNCE family safi {
+ | ANNOUNCE af safi {
uint8_t aid, safi;
uint16_t afi;
}
;
-family : IPV4 { $$ = AFI_IPv4; }
+af : IPV4 { $$ = AFI_IPv4; }
| IPV6 { $$ = AFI_IPv6; }
;