Sfoglia il codice sorgente

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

tags/v0.9.8
Michael Brown 15 anni fa
parent
commit
f4605970f4
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3
    2
      src/net/tcp.c

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

@@ -510,8 +510,9 @@ static void tcp_expired ( struct retry_timer *timer, int over ) {
510 510
 		container_of ( timer, struct tcp_connection, timer );
511 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 517
 	assert ( ( tcp->tcp_state == TCP_SYN_SENT ) ||
517 518
 		 ( tcp->tcp_state == TCP_SYN_RCVD ) ||

Loading…
Annulla
Salva