Commit a1f28869 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Remove force_seqno from send_self_update.

It is no longer used.
parent 6e0c1464
...@@ -512,7 +512,7 @@ main(int argc, char **argv) ...@@ -512,7 +512,7 @@ main(int argc, char **argv)
gettime(&now); gettime(&now);
send_hello(net); send_hello(net);
send_wildcard_retraction(net); send_wildcard_retraction(net);
send_self_update(net, 0); send_self_update(net);
send_request(net, NULL, 0); send_request(net, NULL, 0);
flushupdates(net); flushupdates(net);
flushbuf(net); flushbuf(net);
...@@ -687,7 +687,7 @@ main(int argc, char **argv) ...@@ -687,7 +687,7 @@ main(int argc, char **argv)
if(timeval_compare(&now, &net->update_timeout) >= 0) if(timeval_compare(&now, &net->update_timeout) >= 0)
send_update(net, 0, NULL, 0); send_update(net, 0, NULL, 0);
if(timeval_compare(&now, &net->self_update_timeout) >= 0) if(timeval_compare(&now, &net->self_update_timeout) >= 0)
send_self_update(net, 0); send_self_update(net);
if(timeval_compare(&now, &net->update_flush_timeout) >= 0) if(timeval_compare(&now, &net->update_flush_timeout) >= 0)
flushupdates(net); flushupdates(net);
} }
......
...@@ -996,7 +996,7 @@ send_update(struct network *net, int urgent, ...@@ -996,7 +996,7 @@ send_update(struct network *net, int urgent,
buffer_update(net, prefix, plen); buffer_update(net, prefix, plen);
} }
} else { } else {
send_self_update(net, 0); send_self_update(net);
if(!selfonly && !network_idle(net)) { if(!selfonly && !network_idle(net)) {
debugf("Sending update to %s for any.\n", net->ifname); debugf("Sending update to %s for any.\n", net->ifname);
for(i = 0; i < numroutes; i++) for(i = 0; i < numroutes; i++)
...@@ -1062,18 +1062,18 @@ update_myseqno(int force) ...@@ -1062,18 +1062,18 @@ update_myseqno(int force)
} }
void void
send_self_update(struct network *net, int force_seqno) send_self_update(struct network *net)
{ {
int i; int i;
update_myseqno(force_seqno); update_myseqno(0);
if(net == NULL) { if(net == NULL) {
struct network *n; struct network *n;
FOR_ALL_NETS(n) { FOR_ALL_NETS(n) {
if(!n->up) if(!n->up)
continue; continue;
send_self_update(n, 0); send_self_update(n);
} }
return; return;
} }
......
...@@ -67,7 +67,7 @@ void send_update_resend(struct network *net, ...@@ -67,7 +67,7 @@ void send_update_resend(struct network *net,
const unsigned char *prefix, unsigned char plen); const unsigned char *prefix, unsigned char plen);
void send_wildcard_retraction(struct network *net); void send_wildcard_retraction(struct network *net);
void update_myseqno(int force); void update_myseqno(int force);
void send_self_update(struct network *net, int force_seqno); void send_self_update(struct network *net);
void send_ihu(struct neighbour *neigh, struct network *net); void send_ihu(struct neighbour *neigh, struct network *net);
void send_marginal_ihu(struct network *net); void send_marginal_ihu(struct network *net);
void send_request(struct network *net, void send_request(struct network *net,
......
...@@ -180,7 +180,7 @@ update_neighbour(struct neighbour *neigh, int hello, int hello_interval) ...@@ -180,7 +180,7 @@ update_neighbour(struct neighbour *neigh, int hello, int hello_interval)
int b = (neigh->reach & 0x3000); int b = (neigh->reach & 0x3000);
if((a == 0xC000 && b == 0) || (a == 0 && b == 0x3000)) { if((a == 0xC000 && b == 0) || (a == 0 && b == 0x3000)) {
/* Reachability is either 1100 or 0011 */ /* Reachability is either 1100 or 0011 */
send_self_update(neigh->network, 0); send_self_update(neigh->network);
} }
} }
......
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