From owner-cvs-sys Thu Mar 30 12:43:36 1995 Return-Path: cvs-sys-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id MAA08436 for cvs-sys-outgoing; Thu, 30 Mar 1995 12:43:36 -0800 Received: (from ache@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id MAA08424; Thu, 30 Mar 1995 12:43:34 -0800 Date: Thu, 30 Mar 1995 12:43:34 -0800 From: "Andrey A. Chernov" Message-Id: <199503302043.MAA08424@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/net if_sl.c if_slvar.h slip.h Sender: cvs-sys-owner@freebsd.org Precedence: bulk ache 95/03/30 12:43:33 Modified: sys/net if_sl.c if_slvar.h slip.h Log: This sl enhancement helps to keep serial line (modem) connection alive. It is common case when modem hangs with carier on but don't receive anything from another side. This thing commonly healed with hangup and redialing. Enhancements below allows to determine when such action is needed and inform attach program with SIGURG signal. There two ioctls set: outfill and keepalive, used from both sides of connection. Outfill repeatedly sends FRAME_END with specified timeout (i.e. 40 seconds). It is needed to get input on other side even if no user activity on slip line currently. Keepalive checks FRAME_ENDs from other side, and if no one got in specified timeout (i.e. 60 seconds, max modem retrain time), send SIGURG to attach program. I plan to add code to slattach to handle this thing too. Reviewed by: wollman