Revision f4a60a9b proto/static/config.Y

View differences:

proto/static/config.Y
38 38

  
39 39
CF_ADDTO(proto, static_proto '}')
40 40

  
41
static_proto_start: proto_start STATIC {
42
     this_proto = proto_config_new(&proto_static, $1);
43
     static_init_config((struct static_config *) this_proto);
44
  }
45
 ;
41
static_proto_start: proto_start STATIC
42
{
43
  this_proto = proto_config_new(&proto_static, $1);
44
  static_init_config(STATIC_CFG);
45
};
46 46

  
47 47
static_proto:
48 48
   static_proto_start proto_name '{'
49 49
 | static_proto proto_item ';'
50
 | static_proto proto_channel ';' { this_proto->net_type = $2->net_type; }
50 51
 | static_proto CHECK LINK bool ';' { STATIC_CFG->check_link = $4; }
51 52
 | static_proto IGP TABLE rtable ';' { STATIC_CFG->igp_table = $4; }
52 53
 | static_proto stat_route stat_route_opt_list ';' { static_route_finish(); }

Also available in: Unified diff