Date: Thu, 27 May 2010 23:25:02 +0800 From: ren maosheng <renmaosheng@gmail.com> To: freebsd-net@freebsd.org Subject: One question for tcp_input function Message-ID: <AANLkTinXrwLlNSzbNRwpJZWMFqJpicMLFmo5EvmMucsY@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi folks,
I have a question about below source code when I study the stack:
if (acked > so->so_snd.sb_cc) {
tp->snd_wnd -= so->so_snd.sb_cc;
====================>
sbdrop_locked(&so->so_snd, (int)so->so_snd.sb_cc);
ourfinisacked = 1;
} else {
sbdrop_locked(&so->so_snd, acked);
tp->snd_wnd -= acked;
=====================>
ourfinisacked = 0;
}
We reduce the snd_wnd by acked number, I investigate the RFC793 and didn't
find tcp will need to do this.
Could you please shed a light on this? Is there any reason freebsd stack
considering doing this? Thanks a lot!
Best Regards,
Ren Maosheng
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinXrwLlNSzbNRwpJZWMFqJpicMLFmo5EvmMucsY>
