Skip to content

Commit

Permalink
Hop ports when missing E2E2E connectivity, even if downlink working.
Browse files Browse the repository at this point in the history
  • Loading branch information
keithw committed Aug 13, 2012
1 parent 89da610 commit 8283034
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/network/network.cc
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ string Connection::recv( void )
uint16_t now = timestamp16();
double R = timestamp_diff( now, p.timestamp_reply );

last_heard = timestamp(); /* trigger on end-to-end-to-end connectivity */

if ( R < 5000 ) { /* ignore large values, e.g. server was Ctrl-Zed */
if ( !RTT_hit ) { /* first measurement */
SRTT = R;
Expand All @@ -377,7 +379,7 @@ string Connection::recv( void )

/* auto-adjust to remote host */
has_remote_addr = true;
last_heard = last_association = timestamp();
last_association = timestamp();

if ( server ) { /* only client can roam */
if ( (remote_addr.sin_addr.s_addr != packet_remote_addr.sin_addr.s_addr)
Expand Down

0 comments on commit 8283034

Please sign in to comment.