summaryrefslogtreecommitdiffstats
path: root/sys/net/slip.h
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-03-30 20:43:32 +0000
committerache <ache@FreeBSD.org>1995-03-30 20:43:32 +0000
commit7948beb4ea63bd1694e90447a7c0e40e93d6ce28 (patch)
tree8b7a337e4edd9c47e801b5ac7b5c6068917bd218 /sys/net/slip.h
parent183b7355f6228af73ec9662cf32f4d12c7693793 (diff)
downloadFreeBSD-src-7948beb4ea63bd1694e90447a7c0e40e93d6ce28.zip
FreeBSD-src-7948beb4ea63bd1694e90447a7c0e40e93d6ce28.tar.gz
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
Diffstat (limited to 'sys/net/slip.h')
-rw-r--r--sys/net/slip.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/net/slip.h b/sys/net/slip.h
index 1c9ffca..a9730b5 100644
--- a/sys/net/slip.h
+++ b/sys/net/slip.h
@@ -31,14 +31,18 @@
* SUCH DAMAGE.
*
* @(#)slip.h 8.1 (Berkeley) 2/12/94
- * $Id: slip.h,v 1.2 1994/08/02 07:46:50 davidg Exp $
+ * $Id: slip.h,v 1.3 1994/08/21 05:11:48 paul Exp $
*/
#ifndef _NET_SLIP_H_
#define _NET_SLIP_H_
/* Ioctls operating on SLIP ttys. */
-#define SLIOCGUNIT _IOR('t', 88, int) /* get slip unit number */
+#define SLIOCGUNIT _IOR('t', 88, int) /* get slip unit number */
+#define SLIOCSKEEPAL _IOW('t', 84, int) /* set keepalive */
+#define SLIOCSOUTFILL _IOW('t', 83, int) /* set out fill time */
+#define SLIOCGKEEPAL _IOR('t', 82, int) /* get keepalive time */
+#define SLIOCGOUTFILL _IOR('t', 81, int) /* get out fill time */
/*
* Definitions of the pseudo-link-level header attached to slip
OpenPOWER on IntegriCloud