Use a different UDP discovery interval if the tunnel is established.
This introduces a new configuration option, UDPDiscoveryKeepaliveInterval, which is used as the UDP discovery interval once the UDP tunnel is established. The pre-existing option, UDPDiscoveryInterval, is therefore only used before UDP connectivity is established. The defaults are set so that tinc sends UDP pings more aggressively if the tunnel is not established yet. This is appropriate since the size of probes in that scenario is very small (16 bytes).
This commit is contained in:
parent
06345f89b9
commit
07108117ce
7 changed files with 21 additions and 7 deletions
|
|
@ -139,6 +139,7 @@ extern unsigned replaywin;
|
|||
extern bool localdiscovery;
|
||||
|
||||
extern bool udp_discovery;
|
||||
extern int udp_discovery_keepalive_interval;
|
||||
extern int udp_discovery_interval;
|
||||
extern int udp_discovery_timeout;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue