Commit 77ca1b10 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Implement send_update_resend.

parent ce2ac2fb
......@@ -897,6 +897,22 @@ send_update(struct network *net, int urgent,
schedule_update_flush(net, urgent);
}
void
send_update_resend(struct network *net,
const unsigned char *prefix, unsigned char plen)
{
int delay;
send_update(net, 1, prefix, plen);
delay = 2000;
delay = MIN(delay, wireless_hello_interval / 2);
delay = MIN(delay, wired_hello_interval / 2);
delay = MAX(delay, 10);
record_resend(RESEND_REQUEST, prefix, plen, 0, 0, NULL, delay);
}
void
update_myseqno(int force)
{
......
......@@ -60,6 +60,8 @@ void send_unicast_request(struct neighbour *neigh,
unsigned short router_hash);
void send_update(struct network *net, int urgent,
const unsigned char *prefix, unsigned char plen);
void send_update_resend(struct network *net,
const unsigned char *prefix, unsigned char plen);
void update_myseqno(int force);
void send_self_update(struct network *net, int force_seqno);
void send_ihu(struct neighbour *neigh, struct network *net);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment