-/* $OpenBSD: parse.y,v 1.443 2023/04/03 10:48:00 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.444 2023/04/04 16:01:54 claudio Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
int symset(const char *, const char *, int);
char *symget(const char *);
-static struct bgpd_config *conf;
-static struct network_head *netconf;
-static struct peer_head *new_peers, *cur_peers;
-static struct rtr_config_head *cur_rtrs;
-static struct peer *curpeer;
-static struct peer *curgroup;
-static struct rde_rib *currib;
-static struct l3vpn *curvpn;
-static struct prefixset *curpset, *curoset;
-static struct roa_tree *curroatree;
-static struct rtr_config *currtr;
-static struct filter_head *filter_l;
-static struct filter_head *peerfilter_l;
-static struct filter_head *groupfilter_l;
-static struct filter_rule *curpeer_filter[2];
-static struct filter_rule *curgroup_filter[2];
-static int noexpires;
-
struct filter_rib_l {
struct filter_rib_l *next;
char name[PEER_DESCR_LEN];
static int insert_rtr(struct rtr_config *);
static int merge_aspa_set(uint32_t, struct aspa_tas_l *, time_t);
+static struct bgpd_config *conf;
+static struct network_head *netconf;
+static struct peer_head *new_peers, *cur_peers;
+static struct rtr_config_head *cur_rtrs;
+static struct peer *curpeer;
+static struct peer *curgroup;
+static struct rde_rib *currib;
+static struct l3vpn *curvpn;
+static struct prefixset *curpset, *curoset;
+static struct roa_tree *curroatree;
+static struct rtr_config *currtr;
+static struct filter_head *filter_l;
+static struct filter_head *peerfilter_l;
+static struct filter_head *groupfilter_l;
+static struct filter_rule *curpeer_filter[2];
+static struct filter_rule *curgroup_filter[2];
+static int noexpires;
+
typedef struct {
union {
long long number;
| grammar origin_set '\n'
| grammar rtr '\n'
| grammar rib '\n'
+ | grammar network '\n'
+ | grammar mrtdump '\n'
| grammar conf_main '\n'
| grammar l3vpn '\n'
| grammar neighbor '\n'
}
free($2);
}
- | network
| DUMP STRING STRING optnumber {
int action;
free($3);
free($5);
}
- | mrtdump
| RDE STRING EVALUATE {
if (!strcmp($2, "route-age"))
conf->flags |= BGPD_FLAG_DECISION_ROUTEAGE;
| OUT { $$ = 0; }
;
-restricted : RESTRICTED { $$ = 1; }
- | /* nothing */ { $$ = 0; }
+restricted : /* empty */ { $$ = 0; }
+ | RESTRICTED { $$ = 1; }
;
address : STRING {