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 keepinit


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Sep 2011 23:46:57 -0700 (PDT)

commit 2ce132be322fc58a7e8320d2aed64a717c8620b3
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date:   Fri Sep 16 14:41:13 2011 +0800

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

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2ce132be322fc58a7e8320d2aed64a717c8620b3


-- 
DragonFly BSD source repository



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