Kernel support for ppp 1.3 + fixes
[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.
18 */
19
20#ifndef __PPP_H__
21#define __PPP_H__
22
23#define NPPP 1 /* One PPP interface supported (per process) */
24
25/*
26 * Data Link Layer header = Address, Control, Protocol.
27 */
28#define ALLSTATIONS 0xff /* All-Stations Address */
29#define UI 0x03 /* Unnumbered Information */
30#define LCP 0xc021 /* Link Control Protocol */
31#define IPCP 0x8021 /* IP Control Protocol */
32#define UPAP 0xc023 /* User/Password Authentication Protocol */
33#define CHAP 0xc223 /* Crytpographic Handshake Protocol */
34#define IP_VJ_COMP 0x002d /* VJ TCP compressed IP packet */
35#define DLLHEADERLEN (sizeof (u_char) + sizeof (u_char) + sizeof (u_short))
36#define MTU 1500 /* Default MTU */
37
38#endif /* __PPP_H__ */