summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2010-02-19 10:37:13 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2010-02-19 10:37:13 +0000
commit2d225c021a3d4bab8d056732c95a1ab7750f4984 (patch)
tree1bf99ab95af391a1531308f440f367eead458355 /usr.sbin/ospfd
parentc7e23a3386688c502957b025f81b43d39dbef10a (diff)
oops, remove dead code.
Diffstat (limited to 'usr.sbin/ospfd')
-rw-r--r--usr.sbin/ospfd/kroute.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c
index 42aef865ba5..8c94a910a36 100644
--- a/usr.sbin/ospfd/kroute.c
+++ b/usr.sbin/ospfd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.74 2010/02/19 10:35:52 dlg Exp $ */
+/* $OpenBSD: kroute.c,v 1.75 2010/02/19 10:37:12 dlg Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -70,7 +70,6 @@ int kroute_compare(struct kroute_node *, struct kroute_node *);
int kif_compare(struct kif_node *, struct kif_node *);
int kr_change_fib(struct kroute_node *, struct kroute *, int, int);
int kr_delete_fib(struct kroute_node *);
-int kroute_sync(struct kroute_node *);
struct kroute_node *kroute_find(in_addr_t, u_int8_t, u_int8_t);
struct kroute_node *kroute_matchgw(struct kroute_node *, struct in_addr);
@@ -357,23 +356,6 @@ kr_fib_decouple(void)
log_info("kernel routing table decoupled");
}
-int
-kroute_sync(struct kroute_node *kn)
-{
- int rv = 0;
-
- if (kn->serial == kr_state.fib_serial)
- return (0);
-
- if (kn->r.priority == RTP_OSPF) {
- kn->serial = kr_state.fib_serial;
- rv = send_rtmsg(kr_state.fd, RTM_ADD, &kn->r);
- } else
- kroute_remove(kn);
-
- return (rv);
-}
-
void
kr_fib_reload(void)
{