Revision 31b3e1bb nest/config.Y

View differences:

nest/config.Y
1 1
/*
2 2
 *	BIRD -- Core Configuration
3 3
 *
4
 *	(c) 1998 Martin Mares <mj@ucw.cz>
4
 *	(c) 1998--1999 Martin Mares <mj@ucw.cz>
5 5
 *
6 6
 *	Can be freely distributed and used under the terms of the GNU GPL.
7 7
 */
8 8

  
9 9
CF_HDR
10 10

  
11
static struct proto *this_proto;
11
static struct proto_config *this_proto;
12 12

  
13 13
#include "nest/rt-dev.h"
14 14

  
......
27 27

  
28 28
CF_ADDTO(conf, rtrid)
29 29
rtrid: ROUTER ID idval {
30
   router_id = $3;
30
   new_config->router_id = $3;
31 31
   }
32 32
 ;
33 33

  
......
87 87

  
88 88
dev_iface_list:
89 89
   INTERFACE TEXT {
90
     init_list(&((struct rt_dev_proto *) this_proto)->iface_list);
90
     init_list(&((struct rt_dev_config *) this_proto)->iface_list);
91 91
     rt_dev_add_iface($2);
92 92
   }
93 93
 | dev_iface_list ',' TEXT { rt_dev_add_iface($3); }
......
98 98
void
99 99
rt_dev_add_iface(char *n)
100 100
{
101
  struct rt_dev_proto *p = (void *) this_proto;
101
  struct rt_dev_config *p = (void *) this_proto;
102 102
  struct iface_patt *k = cfg_alloc(sizeof(struct iface_patt));
103 103

  
104 104
  k->pattern = cfg_strdup(n);

Also available in: Unified diff