diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-10-20 05:04:19 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-10-20 05:04:19 +0200 |
commit | 4a40b6246a4862ac52fa4ef7f692f63784e72330 (patch) | |
tree | 30e38a835360c6e8585dd7cd63ea46a5bd80351e /ffd/announce.c | |
parent | bc9f976d7fe70176aac4bc9c87205d6ac1f530cc (diff) | |
download | ffd-4a40b6246a4862ac52fa4ef7f692f63784e72330.tar ffd-4a40b6246a4862ac52fa4ef7f692f63784e72330.zip |
Somewhat hacky implementation of update retransmits
Diffstat (limited to 'ffd/announce.c')
-rw-r--r-- | ffd/announce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ffd/announce.c b/ffd/announce.c index 00bd78c..491aefd 100644 --- a/ffd/announce.c +++ b/ffd/announce.c @@ -123,7 +123,7 @@ static inline void seqno_update(ffd_announce_t *announce) { next = cur; fprintf(stderr, "debug: update matches seqno request, forwarding\n"); - ffd_send_update(NULL, req->neigh, announce, false); + ffd_send_update(NULL, req->neigh, announce, true, false); ffd_neigh_unref(req->neigh); free(req); } @@ -145,7 +145,7 @@ void ffd_announce_update(ffd_announce_t *announce) { if (((announce->last_metric == 0xffff) != (announce->metric.metric == 0xffff)) || diff <= -1024 || diff >= 384) { fprintf(stderr, "info: announce metric has changed significantly, sending updates\n"); - ffd_send_update(NULL, NULL, announce, false); + ffd_send_update(NULL, NULL, announce, announce->metric.metric == 0xffff, false); } if (announce->selected) |