Home | History | Annotate | Line # | Download | only in net
slip.h revision 1.2
      1  1.1      cgd /*
      2  1.1      cgd  * Definitions that user level programs might need to know to interact
      3  1.1      cgd  * with serial line IP (slip) lines.
      4  1.1      cgd 
      5  1.2  mycroft  * @(#) $Header: /tank/opengrok/rsync2/NetBSD/src/sys/net/slip.h,v 1.2 1993/04/19 03:48:03 mycroft Exp $ (LBL)
      6  1.1      cgd  *
      7  1.1      cgd  * Copyright (c) 1990 Regents of the University of California.
      8  1.1      cgd  * All rights reserved.
      9  1.1      cgd  *
     10  1.1      cgd  * Redistribution and use in source and binary forms are permitted
     11  1.1      cgd  * provided that the above copyright notice and this paragraph are
     12  1.1      cgd  * duplicated in all such forms and that any documentation,
     13  1.1      cgd  * advertising materials, and other materials related to such
     14  1.1      cgd  * distribution and use acknowledge that the software was developed
     15  1.1      cgd  * by the University of California, Berkeley.  The name of the
     16  1.1      cgd  * University may not be used to endorse or promote products derived
     17  1.1      cgd  * from this software without specific prior written permission.
     18  1.1      cgd  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
     19  1.1      cgd  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
     20  1.1      cgd  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
     21  1.1      cgd  */
     22  1.1      cgd 
     23  1.2  mycroft #ifndef _NET_SLIP_H_
     24  1.2  mycroft #define _NET_SLIP_H_
     25  1.2  mycroft 
     26  1.1      cgd /*
     27  1.1      cgd  * ioctl to get slip interface unit number (e.g., sl0, sl1, etc.)
     28  1.1      cgd  * assigned to some terminal line with a slip module pushed on it.
     29  1.1      cgd  */
     30  1.1      cgd #ifdef __STDC__
     31  1.1      cgd #define SLIOGUNIT _IOR('B', 1, int)
     32  1.1      cgd #else
     33  1.1      cgd #define SLIOGUNIT _IOR(B, 1, int)
     34  1.1      cgd #endif
     35  1.1      cgd 
     36  1.1      cgd /*
     37  1.1      cgd  * definitions of the pseudo- link-level header attached to slip
     38  1.1      cgd  * packets grabbed by the packet filter (bpf) traffic monitor.
     39  1.1      cgd  */
     40  1.1      cgd #define SLIP_HDRLEN 16
     41  1.1      cgd 
     42  1.1      cgd #define SLX_DIR 0
     43  1.1      cgd #define SLX_CHDR 1
     44  1.1      cgd #define CHDR_LEN 15
     45  1.1      cgd 
     46  1.1      cgd #define SLIPDIR_IN 0
     47  1.1      cgd #define SLIPDIR_OUT 1
     48  1.1      cgd 
     49  1.2  mycroft #endif /* !_NET_SLIP_H_ */
     50