Date: Thu, 27 May 2010 22:48:19 +0800 From: ren maosheng <renmaosheng@gmail.com> To: freebsd-net@FreeBSD.org Subject: One question about tcp_input function Message-ID: <AANLkTinNG8hAZ7UB39rSZH_UMwnNWGGo917bQNi98URX@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?AANLkTinNG8hAZ7UB39rSZH_UMwnNWGGo917bQNi98URX>