git: tcp: Allow per-tcpcb keepintvl and keepcnt

看板DFBSD_commit作者時間14年前 (2011/10/22 18:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 5d61ded35bd94d9440aaccdd9bbe91ce94be7eb7 Author: Sepherosa Ziehau <sephe@dragonflybsd.org> Date: Fri Sep 16 15:53:37 2011 +0800 tcp: Allow per-tcpcb keepintvl and keepcnt - Expose tcp_keepcnt - Add t_keepintvl, t_keepcnt and t_maxidle to tcpcb. t_keepintvl and t_keepcnt is initialized to tcp_keepintvl and tcp_keepcnt respectively. t_maxidle is initialized to t_keepcnt * t_keepintvl - The accepted socket's t_keepintvl, t_keepcnt and t_maxidle is inherited from the listen socket - Add IPPROTO_TCP/TCP_KEEPINTVL and IPPROTO_TCP.TCP_KEEPCNT socket options to get and set t_keepintvl and t_keepcnt. TCP_KEEPINTVL's unit is milliseconds, which is as same as the unit of the sysctl node net.inet.tcp.keepintvl - Remove no longer used tcp_maxidle Summary of changes: sys/netinet/tcp.h | 2 ++ sys/netinet/tcp_input.c | 2 +- sys/netinet/tcp_subr.c | 3 +++ sys/netinet/tcp_syncache.c | 3 +++ sys/netinet/tcp_timer.c | 15 +++++---------- sys/netinet/tcp_timer.h | 2 +- sys/netinet/tcp_timer2.h | 2 +- sys/netinet/tcp_usrreq.c | 27 ++++++++++++++++++++++++++- sys/netinet/tcp_var.h | 3 +++ 9 files changed, 45 insertions(+), 14 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5d61ded35bd94d9440aaccdd9bbe91ce94be7eb7 -- DragonFly BSD source repository
文章代碼(AID): #1EefJPke (DFBSD_commit)