KeepAlive

Matt Johnston matt at ucc.asn.au
Tue Feb 6 21:16:12 WST 2007


On Tue, Feb 06, 2007 at 12:13:47PM +0300, Саша Дьяков wrote:
> Hello all!
> 
> Is there in dropbear the KeepAlive parameter? If No where is in the code I
> can change it?

Dropbear doesn't have it currently.
Some code near the start of common_session_init()
(common-session.c) such as

int val = 1; // this has to be at the top
..
if (setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, &val, sizeof(val)) < 0) {
    dropbear_log(LOG_WARNING, "Keepalive failed");
}

should probably work. The runopts files can be used to set it as an optional
flag.

Cheers,
Matt


More information about the Dropbear mailing list