mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Nest: Clean up main channel handling
Remove assumption that main channel is the only channel.
This commit is contained in:
committed by
Maria Matejka
parent
3f19100f5a
commit
47d92d8f9d
@@ -46,6 +46,7 @@ proto: radv_proto ;
|
||||
radv_proto_start: proto_start RADV
|
||||
{
|
||||
this_proto = proto_config_new(&proto_radv, $1);
|
||||
this_proto->net_type = NET_IP6;
|
||||
|
||||
init_list(&RADV_CFG->patt_list);
|
||||
init_list(&RADV_CFG->pref_list);
|
||||
|
||||
@@ -564,7 +564,7 @@ radv_postconfig(struct proto_config *CF)
|
||||
// struct radv_config *cf = (void *) CF;
|
||||
|
||||
/* Define default channel */
|
||||
if (EMPTY_LIST(CF->channels))
|
||||
if (! proto_cf_main_channel(CF))
|
||||
channel_config_new(NULL, net_label[NET_IP6], NET_IP6, CF);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user