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