Applied Martin Kihlgren's IdentityGenerosity patch,
simplified and renamed to StrictSource.
This commit is contained in:
parent
8c189c2a9b
commit
56aad1bb48
6 changed files with 70 additions and 40 deletions
21
src/graph.c
21
src/graph.c
|
|
@ -219,25 +219,8 @@ void sssp_bfs(void)
|
|||
e->to->via = indirect ? n->via : e->to;
|
||||
e->to->options = e->options;
|
||||
|
||||
if(sockaddrcmp(&e->to->address, &e->address)) {
|
||||
node = avl_unlink(node_udp_tree, e->to);
|
||||
sockaddrfree(&e->to->address);
|
||||
sockaddrcpy(&e->to->address, &e->address);
|
||||
|
||||
if(e->to->hostname)
|
||||
free(e->to->hostname);
|
||||
|
||||
e->to->hostname = sockaddr2hostname(&e->to->address);
|
||||
avl_insert_node(node_udp_tree, node);
|
||||
|
||||
if(e->to->options & OPTION_PMTU_DISCOVERY) {
|
||||
e->to->mtuprobes = 0;
|
||||
e->to->minmtu = 0;
|
||||
e->to->maxmtu = MTU;
|
||||
if(e->to->status.validkey)
|
||||
send_mtu_probe(e->to);
|
||||
}
|
||||
}
|
||||
if(sockaddrcmp(&e->to->address, &e->address))
|
||||
update_node_address(e->to, &e->address);
|
||||
|
||||
node = avl_alloc_node();
|
||||
node->data = e->to;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue