Home | History | Annotate | Line # | Download | only in net
slip.h revision 1.4
      1  1.1      cgd /*
      2  1.4      cgd  * Copyright (c) 1994 Christopher G. Demetriou
      3  1.4      cgd  * All rights reserved.
      4  1.3      cgd  *
      5  1.4      cgd  * Redistribution and use in source and binary forms, with or without
      6  1.4      cgd  * modification, are permitted provided that the following conditions
      7  1.4      cgd  * are met:
      8  1.4      cgd  * 1. Redistributions of source code must retain the above copyright
      9  1.4      cgd  *    notice, this list of conditions and the following disclaimer.
     10  1.4      cgd  * 2. Redistributions in binary form must reproduce the above copyright
     11  1.4      cgd  *    notice, this list of conditions and the following disclaimer in the
     12  1.4      cgd  *    documentation and/or other materials provided with the distribution.
     13  1.4      cgd  * 3. All advertising materials mentioning features or use of this software
     14  1.4      cgd  *    must display the following acknowledgement:
     15  1.4      cgd  *      This product includes software developed by Christopher G. Demetriou.
     16  1.4      cgd  * 4. The name of the author may not be used to endorse or promote products
     17  1.4      cgd  *    derived from this software without specific prior written permission
     18  1.1      cgd  *
     19  1.4      cgd  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     20  1.4      cgd  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     21  1.4      cgd  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     22  1.4      cgd  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     23  1.4      cgd  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     24  1.4      cgd  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     25  1.4      cgd  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     26  1.4      cgd  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     27  1.4      cgd  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     28  1.4      cgd  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     29  1.1      cgd  *
     30  1.4      cgd  *	$Id: slip.h,v 1.4 1994/02/10 05:39:10 cgd Exp $
     31  1.1      cgd  */
     32  1.1      cgd 
     33  1.2  mycroft #ifndef _NET_SLIP_H_
     34  1.4      cgd #define	_NET_SLIP_H_
     35  1.2  mycroft 
     36  1.4      cgd /* ioctls operating on SLIP ttys */
     37  1.4      cgd #define	SLIOCGUNIT	_IOR('t', 88, int)	/* get slip unit number */
     38  1.1      cgd 
     39  1.1      cgd /*
     40  1.1      cgd  * definitions of the pseudo- link-level header attached to slip
     41  1.1      cgd  * packets grabbed by the packet filter (bpf) traffic monitor.
     42  1.1      cgd  */
     43  1.4      cgd #define	SLIP_HDRLEN	16		/* BPF SLIP header length */
     44  1.1      cgd 
     45  1.4      cgd /* offsets into BPF SLIP header */
     46  1.4      cgd #define	SLX_DIR		0		/* direction; see below */
     47  1.4      cgd #define	SLX_CHDR	1		/* compressed header data */
     48  1.4      cgd #define	CHDR_LEN	15		/* length of compressed header data */
     49  1.1      cgd 
     50  1.4      cgd #define	SLIPDIR_IN	0		/* incoming */
     51  1.4      cgd #define	SLIPDIR_OUT	1		/* outgoing */
     52  1.1      cgd 
     53  1.4      cgd #endif /* _NET_SLIP_H_ */
     54