Revision 4a591d4b

View differences:

nest/rt-dev.c
112 112
}
113 113

  
114 114
struct protocol proto_device = {
115
  name:		"Direct",
116
  template:	"direct%d",
117
  preference:	DEF_PREF_DIRECT,
118
  init:		dev_init,
119
  reconfigure:	dev_reconfigure,
120
  copy_config:	dev_copy_config
115
  .name = 		"Direct",
116
  .template = 		"direct%d",
117
  .preference = 	DEF_PREF_DIRECT,
118
  .init = 		dev_init,
119
  .reconfigure = 	dev_reconfigure,
120
  .copy_config = 	dev_copy_config
121 121
};
proto/bgp/bgp.c
1431 1431
}
1432 1432

  
1433 1433
struct protocol proto_bgp = {
1434
  name:			"BGP",
1435
  template:		"bgp%d",
1436
  attr_class:		EAP_BGP,
1437
  preference:		DEF_PREF_BGP,
1438
  init:			bgp_init,
1439
  start:		bgp_start,
1440
  shutdown:		bgp_shutdown,
1441
  cleanup:		bgp_cleanup,
1442
  reconfigure:		bgp_reconfigure,
1443
  copy_config:		bgp_copy_config,
1444
  get_status:		bgp_get_status,
1445
  get_attr:		bgp_get_attr,
1446
  get_route_info:	bgp_get_route_info,
1447
  show_proto_info:	bgp_show_proto_info
1434
  .name = 		"BGP",
1435
  .template = 		"bgp%d",
1436
  .attr_class = 	EAP_BGP,
1437
  .preference = 	DEF_PREF_BGP,
1438
  .init = 		bgp_init,
1439
  .start = 		bgp_start,
1440
  .shutdown = 		bgp_shutdown,
1441
  .cleanup = 		bgp_cleanup,
1442
  .reconfigure = 	bgp_reconfigure,
1443
  .copy_config = 	bgp_copy_config,
1444
  .get_status = 	bgp_get_status,
1445
  .get_attr = 		bgp_get_attr,
1446
  .get_route_info = 	bgp_get_route_info,
1447
  .show_proto_info = 	bgp_show_proto_info
1448 1448
};
proto/pipe/pipe.c
336 336

  
337 337

  
338 338
struct protocol proto_pipe = {
339
  name:			"Pipe",
340
  template:		"pipe%d",
341
  multitable:		1,
342
  preference:		DEF_PREF_PIPE,
343
  postconfig:		pipe_postconfig,
344
  init:			pipe_init,
345
  start:		pipe_start,
346
  cleanup:		pipe_cleanup,
347
  reconfigure:		pipe_reconfigure,
348
  copy_config:  	pipe_copy_config,
349
  get_status:		pipe_get_status,
350
  show_proto_info:	pipe_show_proto_info
339
  .name =		"Pipe",
340
  .template =		"pipe%d",
341
  .multitable =		1,
342
  .preference =		DEF_PREF_PIPE,
343
  .postconfig =		pipe_postconfig,
344
  .init =		pipe_init,
345
  .start =		pipe_start,
346
  .cleanup =		pipe_cleanup,
347
  .reconfigure =	pipe_reconfigure,
348
  .copy_config = 	pipe_copy_config,
349
  .get_status = 	pipe_get_status,
350
  .show_proto_info = 	pipe_show_proto_info
351 351
};
proto/rip/rip.c
1046 1046

  
1047 1047

  
1048 1048
struct protocol proto_rip = {
1049
  name: "RIP",
1050
  template: "rip%d",
1051
  attr_class: EAP_RIP,
1052
  preference: DEF_PREF_RIP,
1053
  get_route_info: rip_get_route_info,
1054
  get_attr: rip_get_attr,
1055

  
1056
  init: rip_init,
1057
  dump: rip_dump,
1058
  start: rip_start,
1059
  reconfigure: rip_reconfigure,
1060
  copy_config: rip_copy_config
1049
  .name =		"RIP",
1050
  .template =		"rip%d",
1051
  .attr_class =		EAP_RIP,
1052
  .preference =		DEF_PREF_RIP,
1053
  .get_route_info =	rip_get_route_info,
1054
  .get_attr =		rip_get_attr,
1055

  
1056
  .init =		rip_init,
1057
  .dump =		rip_dump,
1058
  .start =		rip_start,
1059
  .reconfigure =	rip_reconfigure,
1060
  .copy_config =	rip_copy_config
1061 1061
};
proto/static/static.c
528 528

  
529 529

  
530 530
struct protocol proto_static = {
531
  name:		"Static",
532
  template:	"static%d",
533
  preference:	DEF_PREF_STATIC,
534
  init:		static_init,
535
  dump:		static_dump,
536
  start:	static_start,
537
  shutdown:	static_shutdown,
538
  cleanup:	static_cleanup,
539
  reconfigure:	static_reconfigure,
540
  copy_config:	static_copy_config
531
  .name =		"Static",
532
  .template =		"static%d",
533
  .preference =		DEF_PREF_STATIC,
534
  .init =		static_init,
535
  .dump =		static_dump,
536
  .start =		static_start,
537
  .shutdown =		static_shutdown,
538
  .cleanup =		static_cleanup,
539
  .reconfigure =	static_reconfigure,
540
  .copy_config =	static_copy_config
541 541
};
542 542

  
543 543
static void
sysdep/unix/krt.c
277 277

  
278 278

  
279 279
struct protocol proto_unix_iface = {
280
  name:		"Device",
281
  template:	"device%d",
282
  preference:	DEF_PREF_DIRECT,
283
  preconfig:	kif_preconfig,
284
  init:		kif_init,
285
  start:	kif_start,
286
  shutdown:	kif_shutdown,
287
  reconfigure:	kif_reconfigure,
288
  copy_config:	kif_copy_config
280
  .name = 		"Device",
281
  .template = 		"device%d",
282
  .preference =		DEF_PREF_DIRECT,
283
  .preconfig =		kif_preconfig,
284
  .init =		kif_init,
285
  .start =		kif_start,
286
  .shutdown =		kif_shutdown,
287
  .reconfigure =	kif_reconfigure,
288
  .copy_config =	kif_copy_config
289 289
};
290 290

  
291 291
/*
......
1198 1198

  
1199 1199

  
1200 1200
struct protocol proto_unix_kernel = {
1201
  name:		"Kernel",
1202
  template:	"kernel%d",
1203
  attr_class:	EAP_KRT,
1204
  preference:	DEF_PREF_INHERITED,
1205
  preconfig:	krt_preconfig,
1206
  postconfig:	krt_postconfig,
1207
  init:		krt_init,
1208
  start:	krt_start,
1209
  shutdown:	krt_shutdown,
1210
  reconfigure:	krt_reconfigure,
1211
  copy_config:	krt_copy_config,
1212
  get_attr:	krt_get_attr,
1201
  .name =		"Kernel",
1202
  .template =		"kernel%d",
1203
  .attr_class =		EAP_KRT,
1204
  .preference =		DEF_PREF_INHERITED,
1205
  .preconfig =		krt_preconfig,
1206
  .postconfig =		krt_postconfig,
1207
  .init =		krt_init,
1208
  .start =		krt_start,
1209
  .shutdown =		krt_shutdown,
1210
  .reconfigure =	krt_reconfigure,
1211
  .copy_config =	krt_copy_config,
1212
  .get_attr =		krt_get_attr,
1213 1213
#ifdef KRT_ALLOW_LEARN
1214
  dump:		krt_dump,
1215
  dump_attrs:	krt_dump_attrs,
1214
  .dump =		krt_dump,
1215
  .dump_attrs =		krt_dump_attrs,
1216 1216
#endif
1217 1217
};
sysdep/unix/log.c
261 261
#ifdef HAVE_SYSLOG
262 262
  if (!debug)
263 263
    {
264
      static struct log_config lc_syslog = { mask: ~0 };
264
      static struct log_config lc_syslog = { .mask = ~0 };
265 265
      add_tail(&init_log_list, &lc_syslog.n);
266 266
      *syslog_name = bird_name;
267 267
      if (!init)
......
269 269
    }
270 270
#endif
271 271

  
272
  static struct log_config lc_stderr = { mask: ~0, terminal_flag: 1 };
272
  static struct log_config lc_stderr = { .mask = ~0, .terminal_flag = 1 };
273 273
  lc_stderr.fh = stderr;
274 274
  add_tail(&init_log_list, &lc_stderr.n);
275 275
  return &init_log_list;

Also available in: Unified diff