git: tcp: Allow per-tcpcb keepinit

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Thu Sep 15 23:47:39 PDT 2011


commit 2ce132be322fc58a7e8320d2aed64a717c8620b3
Author: Sepherosa Ziehau <sephe at 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





More information about the Commits mailing list