DragonFly BSD
DragonFly commits List (threaded) for 2011-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: tcp: Allow per-tcpcb keepidle


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 16 Sep 2011 00:15:14 -0700 (PDT)

commit 7ea3a353848489fa817cc3076781d2c25a11d684
Author: Sepherosa Ziehau <sephe@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]