This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: how to the time of so_keepalive in tcp/ip
- To: wangwei <wangw at start dot com dot cn>
- Subject: Re: [ECOS] how to the time of so_keepalive in tcp/ip
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Fri, 22 Jun 2001 22:22:51 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <004501c0fb02$875e8980$592da8c0@start.com.cn>
wangwei wrote:
>
> Hi,all:
> Somebody can tell how to set the time of so_keepalive
> in tcp/ip stack?
> which variable can change it ?
eCos doesn't have the sysctl interface working with the net stack so you
have to set it directly. As it happens, because the code wasn't written
with correct name spacing, you can do it directly by assigning to an int
named tcp_keepintvl. The default value is in include/netinet/tcp_timer.h
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/