summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6d/interface.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2007-11-27 11:29:34 +0000
committerclaudio <claudio@openbsd.org>2007-11-27 11:29:34 +0000
commit4139c605c3a9e6871a5d86b4927e9e6af7cf6bac (patch)
tree043c79e681258d1f455875019e2a762f91af5f33 /usr.sbin/ospf6d/interface.c
parentmips64 also needs memcpy.S, otherwise memcpy.c gets built, which conflicts (diff)
downloadwireguard-openbsd-4139c605c3a9e6871a5d86b4927e9e6af7cf6bac.tar.xz
wireguard-openbsd-4139c605c3a9e6871a5d86b4927e9e6af7cf6bac.zip
Monster diff to bring us a bit on track again.
a) implement all (or at least most) lsa_check() cases. b) classify the LSA scope correctly and add a per interface lsa_tree for the link local stuff. c) implement a function to parse a prefix. There is still a lot missing currently link local LSA are added to the interface tree but nothing can access them (lsa_find() and a few friends need some changes). OK norby@
Diffstat (limited to 'usr.sbin/ospf6d/interface.c')
-rw-r--r--usr.sbin/ospf6d/interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ospf6d/interface.c b/usr.sbin/ospf6d/interface.c
index 8e57b57ee02..a527d88a72f 100644
--- a/usr.sbin/ospf6d/interface.c
+++ b/usr.sbin/ospf6d/interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.c,v 1.6 2007/11/24 16:35:16 claudio Exp $ */
+/* $OpenBSD: interface.c,v 1.7 2007/11/27 11:29:34 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -167,6 +167,7 @@ if_new(struct kif *kif, struct kif_addr *ka)
LIST_INIT(&iface->nbr_list);
TAILQ_INIT(&iface->ls_ack_list);
+ RB_INIT(&iface->lsa_tree);
if (kif == NULL) {
iface->type = IF_TYPE_VIRTUALLINK;