git: tcp: Allow per-tcpcb keepintvl and keepcnt

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Fri Sep 16 00:58:41 PDT 2011


commit 5d61ded35bd94d9440aaccdd9bbe91ce94be7eb7
Author: Sepherosa Ziehau <sephe at 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





More information about the Commits mailing list