Browse Source

[tcp] Include current sequence numbers in "timer expired" messages

tags/v0.9.8
Michael Brown 15 years ago
parent
commit
f4605970f4
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/net/tcp.c

+ 3
- 2
src/net/tcp.c View File

510
 		container_of ( timer, struct tcp_connection, timer );
510
 		container_of ( timer, struct tcp_connection, timer );
511
 	int graceful_close = TCP_CLOSED_GRACEFULLY ( tcp->tcp_state );
511
 	int graceful_close = TCP_CLOSED_GRACEFULLY ( tcp->tcp_state );
512
 
512
 
513
-	DBGC ( tcp, "TCP %p timer %s in %s\n", tcp,
514
-	       ( over ? "expired" : "fired" ), tcp_state ( tcp->tcp_state ) );
513
+	DBGC ( tcp, "TCP %p timer %s in %s for [%08x,%08x)\n", tcp,
514
+	       ( over ? "expired" : "fired" ), tcp_state ( tcp->tcp_state ),
515
+	       tcp->snd_seq, ( tcp->snd_seq + tcp->snd_sent ) );
515
 
516
 
516
 	assert ( ( tcp->tcp_state == TCP_SYN_SENT ) ||
517
 	assert ( ( tcp->tcp_state == TCP_SYN_SENT ) ||
517
 		 ( tcp->tcp_state == TCP_SYN_RCVD ) ||
518
 		 ( tcp->tcp_state == TCP_SYN_RCVD ) ||

Loading…
Cancel
Save