git: tcp: Allow per-tcpcb keepinit

看板DFBSD_commit作者時間14年前 (2011/10/22 18:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 2ce132be322fc58a7e8320d2aed64a717c8620b3 Author: Sepherosa Ziehau <sephe@dragonflybsd.org> Date: Fri Sep 16 14:41:13 2011 +0800 tcp: Allow per-tcpcb keepinit - Add t_keepinit to tcpcb, it is initialized to tcp_keepinit - The accepted socket's t_keepinit is inherited from the listen socket - Add IPPROTO_TCP/TCP_KEEPINIT socket option to get and set t_keepinit. The unit is milliseconds, which is as same as the unit of the sysctl node net.inet.tcp.keepinit Summary of changes: sys/netinet/tcp.h | 2 ++ sys/netinet/tcp_subr.c | 2 ++ sys/netinet/tcp_syncache.c | 11 +++++++++-- sys/netinet/tcp_usrreq.c | 17 ++++++++++++++--- sys/netinet/tcp_var.h | 2 ++ 5 files changed, 29 insertions(+), 5 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2ce132be322fc58a7e8320d2aed64a717c8620b3 -- DragonFly BSD source repository
文章代碼(AID): #1EefJO-O (DFBSD_commit)