http://git.etherboot.org
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d88832a
)
Work around another confused-by-RST bug
author
Michael Brown
<mcb30@etherboot.org>
Wed, 6 Dec 2006 18:09:33 +0000
(18:09 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Wed, 6 Dec 2006 18:09:33 +0000
(18:09 +0000)
src/net/tcp.c
patch
|
blob
|
history
diff --git
a/src/net/tcp.c
b/src/net/tcp.c
index
aa49366
..
2a18828
100644
(file)
--- a/
src/net/tcp.c
+++ b/
src/net/tcp.c
@@
-516,6
+516,14
@@
int tcp_close ( struct tcp_connection *conn ) {
/* FIN consumes one byte on the snd stream */
// conn->snd_una++;
goto send_tcp_nomsg;
+ case TCP_TIME_WAIT:
+#warning "Fix me"
+ /* In TIME_WAIT, we should just be waiting for the
+ * timer to expire, which will trigger the actual
+ * closure. However, because we get confused by RST
+ * packets, we end up here. This works around the
+ * problem for now.
+ */
case TCP_SYN_SENT:
case TCP_LISTEN:
/**