Commit 29a64162 authored by Ondřej Zajíček's avatar Ondřej Zajíček

KRT: Integration of IPv4/IPv6 in sysdep/linux

parent 7fd4143e
This diff is collapsed.
......@@ -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
......
......@@ -65,6 +65,7 @@ struct krt_proto {
#endif
node krt_node; /* Node in krt_proto_list */
byte af; /* Kernel address family (AF_*) */
byte ready; /* Initial feed has been finished */
byte initialized; /* First scan has been finished */
byte reload; /* Next scan is doing reload */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment