mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Kernel: Do not check templates
So one can define kernel protocol template without channels. For other protocols, it is either irrelevant or already done. Thanks to Clemens Schrimpe for the bugreport.
This commit is contained in:
parent
a141959f07
commit
2a8cc7259e
@ -1008,6 +1008,10 @@ krt_postconfig(struct proto_config *CF)
|
||||
{
|
||||
struct krt_config *cf = (void *) CF;
|
||||
|
||||
/* Do not check templates at all */
|
||||
if (cf->c.class == SYM_TEMPLATE)
|
||||
return;
|
||||
|
||||
if (EMPTY_LIST(CF->channels))
|
||||
cf_error("Channel not specified");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user