Initialize only protocols which are compiled in :)
This commit is contained in:
parent
b296730cb6
commit
18fff6a197
1 changed files with 5 additions and 0 deletions
|
@ -118,7 +118,12 @@ protos_build(void)
|
||||||
{
|
{
|
||||||
init_list(&protocol_list);
|
init_list(&protocol_list);
|
||||||
add_tail(&protocol_list, &proto_device.n);
|
add_tail(&protocol_list, &proto_device.n);
|
||||||
|
#ifdef CONFIG_RIP
|
||||||
add_tail(&protocol_list, &proto_rip.n);
|
add_tail(&protocol_list, &proto_rip.n);
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_STATIC
|
||||||
|
add_tail(&protocol_list, &proto_static.n);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue