From a4986182dcad508c17a6eb8fd3e556f18cfaa349 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 21 Oct 2012 00:13:59 +0200 Subject: Implement retransmits of important updates --- ffd/neigh.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ffd/neigh.c') diff --git a/ffd/neigh.c b/ffd/neigh.c index 1b0d41d..2c73362 100644 --- a/ffd/neigh.c +++ b/ffd/neigh.c @@ -55,6 +55,11 @@ void ffd_neigh_unref_list(ffd_neigh_t *neigh) { } } +void ffd_neigh_unref(ffd_neigh_t *neigh) { + if (!(--neigh->ref) && !neigh->iface) + free(neigh); +} + uint16_t ffd_neigh_get_rxcost(const ffd_neigh_t *neigh) { if (!neigh->hello_log || !neigh->hello_interval || !neigh->iface) return 0xffff; -- cgit v1.2.3