This commit implements average RTT estimation based on PING-PONG between active TCP connections.
Average RTT can be used to update edge weight and propagate it to the network. tinc dump edges has been also extended to give the current RTT. New edge weight will change only if the config has EdgeUpdateInterval set to other value than 0. - Ignore local configuration for editors - Extended manpage with informations about EdgeUpdateInterval - Added clone_edge and fixed potential segfault when b->from not defined - Compute avg_rtt based on the time values we got back in PONG - Add avg_rtt on dump edge - Send current time on PING and return it on PONG - Changed last_ping_time to struct timeval - Extended edge_t with avg_rtt
This commit is contained in:
parent
9910f8f2d1
commit
0cd387fd90
14 changed files with 149 additions and 33 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -13,5 +13,6 @@ Makefile.in
|
|||
/missing
|
||||
INSTALL
|
||||
.deps
|
||||
.dir-locals.el
|
||||
stamp-h1
|
||||
/src/device.c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue