xref: /original-bsd/sys/net/slip.h (revision f737e041)
1 /*-
2  * Copyright (c) 1994
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)slip.h	8.1 (Berkeley) 02/12/94
8  */
9 
10 /* Ioctls operating on SLIP ttys. */
11 #define	SLIOCGUNIT	_IOR('t', 88, int)	/* get slip unit number */
12 
13 /*
14  * Definitions of the pseudo-link-level header attached to slip
15  * packets grabbed by the packet filter (bpf) traffic monitor.
16  */
17 #define	SLIP_HDRLEN	16		/* BPF SLIP header length */
18 
19 /* Offsets into BPF SLIP header. */
20 #define	SLX_DIR		0		/* direction; see below */
21 #define	SLX_CHDR	1		/* compressed header data */
22 #define	CHDR_LEN	15		/* length of compressed header data */
23 
24 #define	SLIPDIR_IN	0		/* incoming */
25 #define	SLIPDIR_OUT	1		/* outgoing */
26