http://git.etherboot.org
/
people
/
peper
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a2f753b
)
[tcp] Include current sequence numbers in "timer expired" messages
author
Michael Brown
<mcb30@etherboot.org>
Tue, 23 Jun 2009 13:03:09 +0000
(14:03 +0100)
committer
Michael Brown
<mcb30@etherboot.org>
Tue, 23 Jun 2009 13:03:09 +0000
(14:03 +0100)
src/net/tcp.c
patch
|
blob
|
history
diff --git
a/src/net/tcp.c
b/src/net/tcp.c
index
b03dfad
..
d9f6c2d
100644
(file)
--- a/
src/net/tcp.c
+++ b/
src/net/tcp.c
@@
-510,8
+510,9
@@
static void tcp_expired ( struct retry_timer *timer, int over ) {
container_of ( timer, struct tcp_connection, timer );
int graceful_close = TCP_CLOSED_GRACEFULLY ( tcp->tcp_state );
container_of ( timer, struct tcp_connection, timer );
int graceful_close = TCP_CLOSED_GRACEFULLY ( tcp->tcp_state );
- DBGC ( tcp, "TCP %p timer %s in %s\n", tcp,
- ( over ? "expired" : "fired" ), tcp_state ( tcp->tcp_state ) );
+ DBGC ( tcp, "TCP %p timer %s in %s for [%08x,%08x)\n", tcp,
+ ( over ? "expired" : "fired" ), tcp_state ( tcp->tcp_state ),
+ tcp->snd_seq, ( tcp->snd_seq + tcp->snd_sent ) );
assert ( ( tcp->tcp_state == TCP_SYN_SENT ) ||
( tcp->tcp_state == TCP_SYN_RCVD ) ||
assert ( ( tcp->tcp_state == TCP_SYN_SENT ) ||
( tcp->tcp_state == TCP_SYN_RCVD ) ||