search for: packet_set_idletimeout

Displaying 1 result from an estimated 1 matches for "packet_set_idletimeout".

2001 Aug 20
1
Idletimeout patch, third attempt
...at is used */ int use_ssh2_packet_format = 0; +static time_t idletime_last=0; /* The last time something happened + * for idletimeout. */ +static int idletimeout=0; /* The current idletimeout */ + /* Session key information for Encryption and MAC */ Newkeys *newkeys[MODE_MAX]; void +packet_set_idletimeout(int max_idle_seconds) +{ + idletimeout=max_idle_seconds; + if (max_idle_seconds>0) { + /* Initialize */ + time(&idletime_last); + } +} + +/* Called by whenever packets are sent or received. + * This function decides on which packets idletimeout should +...