mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Replacing GNU old-style field designator extension
This commit is contained in:
parent
8ce9a87755
commit
4a591d4b94
@ -112,10 +112,10 @@ dev_copy_config(struct proto_config *dest, struct proto_config *src)
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct protocol proto_device = {
|
struct protocol proto_device = {
|
||||||
name: "Direct",
|
.name = "Direct",
|
||||||
template: "direct%d",
|
.template = "direct%d",
|
||||||
preference: DEF_PREF_DIRECT,
|
.preference = DEF_PREF_DIRECT,
|
||||||
init: dev_init,
|
.init = dev_init,
|
||||||
reconfigure: dev_reconfigure,
|
.reconfigure = dev_reconfigure,
|
||||||
copy_config: dev_copy_config
|
.copy_config = dev_copy_config
|
||||||
};
|
};
|
||||||
|
@ -1431,18 +1431,18 @@ bgp_show_proto_info(struct proto *P)
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct protocol proto_bgp = {
|
struct protocol proto_bgp = {
|
||||||
name: "BGP",
|
.name = "BGP",
|
||||||
template: "bgp%d",
|
.template = "bgp%d",
|
||||||
attr_class: EAP_BGP,
|
.attr_class = EAP_BGP,
|
||||||
preference: DEF_PREF_BGP,
|
.preference = DEF_PREF_BGP,
|
||||||
init: bgp_init,
|
.init = bgp_init,
|
||||||
start: bgp_start,
|
.start = bgp_start,
|
||||||
shutdown: bgp_shutdown,
|
.shutdown = bgp_shutdown,
|
||||||
cleanup: bgp_cleanup,
|
.cleanup = bgp_cleanup,
|
||||||
reconfigure: bgp_reconfigure,
|
.reconfigure = bgp_reconfigure,
|
||||||
copy_config: bgp_copy_config,
|
.copy_config = bgp_copy_config,
|
||||||
get_status: bgp_get_status,
|
.get_status = bgp_get_status,
|
||||||
get_attr: bgp_get_attr,
|
.get_attr = bgp_get_attr,
|
||||||
get_route_info: bgp_get_route_info,
|
.get_route_info = bgp_get_route_info,
|
||||||
show_proto_info: bgp_show_proto_info
|
.show_proto_info = bgp_show_proto_info
|
||||||
};
|
};
|
||||||
|
@ -336,16 +336,16 @@ pipe_show_proto_info(struct proto *P)
|
|||||||
|
|
||||||
|
|
||||||
struct protocol proto_pipe = {
|
struct protocol proto_pipe = {
|
||||||
name: "Pipe",
|
.name = "Pipe",
|
||||||
template: "pipe%d",
|
.template = "pipe%d",
|
||||||
multitable: 1,
|
.multitable = 1,
|
||||||
preference: DEF_PREF_PIPE,
|
.preference = DEF_PREF_PIPE,
|
||||||
postconfig: pipe_postconfig,
|
.postconfig = pipe_postconfig,
|
||||||
init: pipe_init,
|
.init = pipe_init,
|
||||||
start: pipe_start,
|
.start = pipe_start,
|
||||||
cleanup: pipe_cleanup,
|
.cleanup = pipe_cleanup,
|
||||||
reconfigure: pipe_reconfigure,
|
.reconfigure = pipe_reconfigure,
|
||||||
copy_config: pipe_copy_config,
|
.copy_config = pipe_copy_config,
|
||||||
get_status: pipe_get_status,
|
.get_status = pipe_get_status,
|
||||||
show_proto_info: pipe_show_proto_info
|
.show_proto_info = pipe_show_proto_info
|
||||||
};
|
};
|
||||||
|
@ -1046,16 +1046,16 @@ rip_copy_config(struct proto_config *dest, struct proto_config *src)
|
|||||||
|
|
||||||
|
|
||||||
struct protocol proto_rip = {
|
struct protocol proto_rip = {
|
||||||
name: "RIP",
|
.name = "RIP",
|
||||||
template: "rip%d",
|
.template = "rip%d",
|
||||||
attr_class: EAP_RIP,
|
.attr_class = EAP_RIP,
|
||||||
preference: DEF_PREF_RIP,
|
.preference = DEF_PREF_RIP,
|
||||||
get_route_info: rip_get_route_info,
|
.get_route_info = rip_get_route_info,
|
||||||
get_attr: rip_get_attr,
|
.get_attr = rip_get_attr,
|
||||||
|
|
||||||
init: rip_init,
|
.init = rip_init,
|
||||||
dump: rip_dump,
|
.dump = rip_dump,
|
||||||
start: rip_start,
|
.start = rip_start,
|
||||||
reconfigure: rip_reconfigure,
|
.reconfigure = rip_reconfigure,
|
||||||
copy_config: rip_copy_config
|
.copy_config = rip_copy_config
|
||||||
};
|
};
|
||||||
|
@ -528,16 +528,16 @@ static_copy_config(struct proto_config *dest, struct proto_config *src)
|
|||||||
|
|
||||||
|
|
||||||
struct protocol proto_static = {
|
struct protocol proto_static = {
|
||||||
name: "Static",
|
.name = "Static",
|
||||||
template: "static%d",
|
.template = "static%d",
|
||||||
preference: DEF_PREF_STATIC,
|
.preference = DEF_PREF_STATIC,
|
||||||
init: static_init,
|
.init = static_init,
|
||||||
dump: static_dump,
|
.dump = static_dump,
|
||||||
start: static_start,
|
.start = static_start,
|
||||||
shutdown: static_shutdown,
|
.shutdown = static_shutdown,
|
||||||
cleanup: static_cleanup,
|
.cleanup = static_cleanup,
|
||||||
reconfigure: static_reconfigure,
|
.reconfigure = static_reconfigure,
|
||||||
copy_config: static_copy_config
|
.copy_config = static_copy_config
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -277,15 +277,15 @@ kif_copy_config(struct proto_config *dest, struct proto_config *src)
|
|||||||
|
|
||||||
|
|
||||||
struct protocol proto_unix_iface = {
|
struct protocol proto_unix_iface = {
|
||||||
name: "Device",
|
.name = "Device",
|
||||||
template: "device%d",
|
.template = "device%d",
|
||||||
preference: DEF_PREF_DIRECT,
|
.preference = DEF_PREF_DIRECT,
|
||||||
preconfig: kif_preconfig,
|
.preconfig = kif_preconfig,
|
||||||
init: kif_init,
|
.init = kif_init,
|
||||||
start: kif_start,
|
.start = kif_start,
|
||||||
shutdown: kif_shutdown,
|
.shutdown = kif_shutdown,
|
||||||
reconfigure: kif_reconfigure,
|
.reconfigure = kif_reconfigure,
|
||||||
copy_config: kif_copy_config
|
.copy_config = kif_copy_config
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1198,20 +1198,20 @@ krt_get_attr(eattr * a, byte * buf, int buflen UNUSED)
|
|||||||
|
|
||||||
|
|
||||||
struct protocol proto_unix_kernel = {
|
struct protocol proto_unix_kernel = {
|
||||||
name: "Kernel",
|
.name = "Kernel",
|
||||||
template: "kernel%d",
|
.template = "kernel%d",
|
||||||
attr_class: EAP_KRT,
|
.attr_class = EAP_KRT,
|
||||||
preference: DEF_PREF_INHERITED,
|
.preference = DEF_PREF_INHERITED,
|
||||||
preconfig: krt_preconfig,
|
.preconfig = krt_preconfig,
|
||||||
postconfig: krt_postconfig,
|
.postconfig = krt_postconfig,
|
||||||
init: krt_init,
|
.init = krt_init,
|
||||||
start: krt_start,
|
.start = krt_start,
|
||||||
shutdown: krt_shutdown,
|
.shutdown = krt_shutdown,
|
||||||
reconfigure: krt_reconfigure,
|
.reconfigure = krt_reconfigure,
|
||||||
copy_config: krt_copy_config,
|
.copy_config = krt_copy_config,
|
||||||
get_attr: krt_get_attr,
|
.get_attr = krt_get_attr,
|
||||||
#ifdef KRT_ALLOW_LEARN
|
#ifdef KRT_ALLOW_LEARN
|
||||||
dump: krt_dump,
|
.dump = krt_dump,
|
||||||
dump_attrs: krt_dump_attrs,
|
.dump_attrs = krt_dump_attrs,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
@ -261,7 +261,7 @@ default_log_list(int debug, int init, char **syslog_name)
|
|||||||
#ifdef HAVE_SYSLOG
|
#ifdef HAVE_SYSLOG
|
||||||
if (!debug)
|
if (!debug)
|
||||||
{
|
{
|
||||||
static struct log_config lc_syslog = { mask: ~0 };
|
static struct log_config lc_syslog = { .mask = ~0 };
|
||||||
add_tail(&init_log_list, &lc_syslog.n);
|
add_tail(&init_log_list, &lc_syslog.n);
|
||||||
*syslog_name = bird_name;
|
*syslog_name = bird_name;
|
||||||
if (!init)
|
if (!init)
|
||||||
@ -269,7 +269,7 @@ default_log_list(int debug, int init, char **syslog_name)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct log_config lc_stderr = { mask: ~0, terminal_flag: 1 };
|
static struct log_config lc_stderr = { .mask = ~0, .terminal_flag = 1 };
|
||||||
lc_stderr.fh = stderr;
|
lc_stderr.fh = stderr;
|
||||||
add_tail(&init_log_list, &lc_stderr.n);
|
add_tail(&init_log_list, &lc_stderr.n);
|
||||||
return &init_log_list;
|
return &init_log_list;
|
||||||
|
Loading…
Reference in New Issue
Block a user