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