aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-21 15:33:04 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-22 13:16:43 +0400
commitde70cfa2306d46b3aaf74361926504d007104eef (patch)
treee7f455471374206643ddd4f1c585c9344f3d7790
parente62c1706217740154704961e0c0235182a2ebef3 (diff)
downloadslirp-de70cfa2306d46b3aaf74361926504d007104eef.zip
slirp-de70cfa2306d46b3aaf74361926504d007104eef.tar.gz
slirp-de70cfa2306d46b3aaf74361926504d007104eef.tar.bz2
tcp_emu: add more fixme/warnings comments
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
-rw-r--r--src/tcp_subr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tcp_subr.c b/src/tcp_subr.c
index 177dfd2..7832b14 100644
--- a/src/tcp_subr.c
+++ b/src/tcp_subr.c
@@ -575,6 +575,9 @@ uint8_t tcp_tos(struct socket *so)
* more checks are needed here
*
* XXX Assumes the whole command came in one packet
+ * XXX If there is more than one command in the packet, the others may
+ * be truncated.
+ * XXX If the command is too long, it may be truncated.
*
* XXX Some ftp clients will have their TOS set to
* LOWDELAY and so Nagel will kick in. Because of this,