git: tcp: Allow per-tcpcb keepidle

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Fri Sep 16 00:15:35 PDT 2011


commit 7ea3a353848489fa817cc3076781d2c25a11d684
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Fri Sep 16 15:13:22 2011 +0800

    tcp: Allow per-tcpcb keepidle
    
    - Add t_keepidle to tcpcb, it is initialized to tcp_keepidle
    - The accepted socket's t_keepidle is inherited from the listen socket
    - Add IPPROTO_TCP/TCP_KEEPIDLE socket option to get and set t_keepidle.
      The unit is milliseconds, which is as same as the unit of the sysctl
      node net.inet.tcp.keepidle

Summary of changes:
 sys/netinet/tcp.h          |    1 +
 sys/netinet/tcp_subr.c     |    1 +
 sys/netinet/tcp_syncache.c |    1 +
 sys/netinet/tcp_timer2.h   |    2 +-
 sys/netinet/tcp_usrreq.c   |   11 +++++++++++
 sys/netinet/tcp_var.h      |    2 ++
 6 files changed, 17 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7ea3a353848489fa817cc3076781d2c25a11d684


-- 
DragonFly BSD source repository





More information about the Commits mailing list