tcp: Allow per-tcpcb keepintvl and keepcnt
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 16 Sep 2011 07:53:37 +0000 (15:53 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 16 Sep 2011 07:53:37 +0000 (15:53 +0800)
commit5d61ded35bd94d9440aaccdd9bbe91ce94be7eb7
tree2d87afe55cd99c7b9b050f2e367d71ef6e5dbb55
parent7ea3a353848489fa817cc3076781d2c25a11d684
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
sys/netinet/tcp.h
sys/netinet/tcp_input.c
sys/netinet/tcp_subr.c
sys/netinet/tcp_syncache.c
sys/netinet/tcp_timer.c
sys/netinet/tcp_timer.h
sys/netinet/tcp_timer2.h
sys/netinet/tcp_usrreq.c
sys/netinet/tcp_var.h