diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-12-20 16:58:37 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-12-20 16:58:37 +0100 |
commit | 29a6416276a04ca1fc2bc64ebc7ef559918d78d8 (patch) | |
tree | dfed6db35773552b63e51e0977f21bc0de8b0c2a /sysdep/unix/krt.c | |
parent | 7fd4143eadd5af6e1ad7825d7d7506ad021bf1ad (diff) |
KRT: Integration of IPv4/IPv6 in sysdep/linux
Diffstat (limited to 'sysdep/unix/krt.c')
-rw-r--r-- | sysdep/unix/krt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c index 63fc1c34..73324f38 100644 --- a/sysdep/unix/krt.c +++ b/sysdep/unix/krt.c @@ -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 |