Added prototypes and declared missing parameter and return types. Added
[unix-history] / sys / net / ppp.h
CommitLineData
8b3438a6
RG
1/*
2 * ppp.h - PPP global declarations.
3 *
4 * Copyright (c) 1989 Carnegie Mellon University.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms are permitted
8 * provided that the above copyright notice and this paragraph are
9 * duplicated in all such forms and that any documentation,
10 * advertising materials, and other materials related to such
11 * distribution and use acknowledge that the software was developed
12 * by Carnegie Mellon University. The name of the
13 * University may not be used to endorse or promote products derived
14 * from this software without specific prior written permission.
15 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
70c5ff60
RG
18 *
19 * from: unknown
20 * $Id$
8b3438a6
RG
21 */
22
23#ifndef __PPP_H__
24#define __PPP_H__
25
26#define NPPP 1 /* One PPP interface supported (per process) */
27
28/*
29 * Data Link Layer header = Address, Control, Protocol.
30 */
31#define ALLSTATIONS 0xff /* All-Stations Address */
32#define UI 0x03 /* Unnumbered Information */
33#define LCP 0xc021 /* Link Control Protocol */
34#define IPCP 0x8021 /* IP Control Protocol */
35#define UPAP 0xc023 /* User/Password Authentication Protocol */
36#define CHAP 0xc223 /* Crytpographic Handshake Protocol */
37#define IP_VJ_COMP 0x002d /* VJ TCP compressed IP packet */
38#define DLLHEADERLEN (sizeof (u_char) + sizeof (u_char) + sizeof (u_short))
39#define MTU 1500 /* Default MTU */
40
41#endif /* __PPP_H__ */