1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

KRT: Integration of IPv4/IPv6 in sysdep/linux

This commit is contained in:
Ondrej Zajicek (work)
2015-12-20 16:58:37 +01:00
parent 7fd4143ead
commit 29a6416276
3 changed files with 79 additions and 76 deletions

View File

@@ -1121,6 +1121,13 @@ krt_start(struct proto *P)
{
struct krt_proto *p = (struct krt_proto *) P;
switch (p->p.table->addr_type)
{
case NET_IP4: p->af = AF_INET; break;
case NET_IP6: p->af = AF_INET6; break;
default: ASSERT(0);
}
add_tail(&krt_proto_list, &p->krt_node);
#ifdef KRT_ALLOW_LEARN