From 31b3e1bbf5bc823ec5cf6d88931132f00e6c52b9 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 5 Feb 1999 21:37:34 +0000 Subject: Implemented new configuration/reconfiguration interface and defined protocol state machines. Full explanation will follow soon. --- nest/config.Y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nest/config.Y') diff --git a/nest/config.Y b/nest/config.Y index 9843654..a19cce6 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -1,14 +1,14 @@ /* * BIRD -- Core Configuration * - * (c) 1998 Martin Mares + * (c) 1998--1999 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ CF_HDR -static struct proto *this_proto; +static struct proto_config *this_proto; #include "nest/rt-dev.h" @@ -27,7 +27,7 @@ CF_GRAMMAR CF_ADDTO(conf, rtrid) rtrid: ROUTER ID idval { - router_id = $3; + new_config->router_id = $3; } ; @@ -87,7 +87,7 @@ dev_proto: dev_iface_list: INTERFACE TEXT { - init_list(&((struct rt_dev_proto *) this_proto)->iface_list); + init_list(&((struct rt_dev_config *) this_proto)->iface_list); rt_dev_add_iface($2); } | dev_iface_list ',' TEXT { rt_dev_add_iface($3); } @@ -98,7 +98,7 @@ CF_CODE void rt_dev_add_iface(char *n) { - struct rt_dev_proto *p = (void *) this_proto; + struct rt_dev_config *p = (void *) this_proto; struct iface_patt *k = cfg_alloc(sizeof(struct iface_patt)); k->pattern = cfg_strdup(n); -- cgit v1.2.3