diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-08-01 09:49:06 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-08-01 09:51:47 +0200 |
commit | e0be80430c390bce181ea04dfcdd6ea3dfa97de1 (patch) | |
tree | ba97a9762139bc56b5ca2b4443e2ca401a920a8e /src/ip_input.c | |
parent | 126c04acbabd7ad32c2b018fe10dfac2a3bc1210 (diff) | |
download | slirp-e0be80430c390bce181ea04dfcdd6ea3dfa97de1.zip slirp-e0be80430c390bce181ea04dfcdd6ea3dfa97de1.tar.gz slirp-e0be80430c390bce181ea04dfcdd6ea3dfa97de1.tar.bz2 |
ip_reass: explain why we should not always update the q pointer
Closes #10
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'src/ip_input.c')
-rw-r--r-- | src/ip_input.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ip_input.c b/src/ip_input.c index 8c75d91..7364ce0 100644 --- a/src/ip_input.c +++ b/src/ip_input.c @@ -344,11 +344,10 @@ insert: q = fp->frag_link.next; /* - * If the fragments concatenated to an mbuf that's - * bigger than the total size of the fragment, then and - * m_ext buffer was alloced. But fp->ipq_next points to - * the old buffer (in the mbuf), so we must point ip - * into the new buffer. + * If the fragments concatenated to an mbuf that's bigger than the total + * size of the fragment and the mbuf was not already using an m_ext buffer, + * then an m_ext buffer was alloced. But fp->ipq_next points to the old + * buffer (in the mbuf), so we must point ip into the new buffer. */ if (!was_ext && m->m_flags & M_EXT) { int delta = (char *)q - m->m_dat; |