1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24#ifndef __PPTP_H__
25#define __PPTP_H__
26
27/* GRE definitions */
28#define PPTP_GRE_TYPE 		0x880B
29#define PPTP_GRE_FLAGS_C	0x80
30#define PPTP_GRE_FLAGS_R	0x40
31#define PPTP_GRE_FLAGS_K	0x20
32#define PPTP_GRE_FLAGS_S	0x10
33#define PPTP_GRE_FLAGS_s	0x08
34
35#define PPTP_GRE_FLAGS_A	0x80
36#define PPTP_GRE_VER		1
37
38
39
40#define PPPPROTO_PPTP		17		/* TEMP - move to ppp.h - 1..32 are reserved */
41#define PPTP_NAME		"PPTP"		/* */
42
43
44#define PPTP_OPT_FLAGS		1	/* see flags definition below */
45#define PPTP_OPT_PEERADDRESS	2	/* peer IP address */
46#define PPTP_OPT_CALL_ID	3	/* call id for the connection */
47#define PPTP_OPT_PEER_CALL_ID	4	/* peer call id for the connection */
48#define PPTP_OPT_WINDOW		5	/* our receive window */
49#define PPTP_OPT_PEER_WINDOW	6	/* peer receive window */
50#define PPTP_OPT_PEER_PPD	7	/* peer packet processing delay */
51#define PPTP_OPT_MAXTIMEOUT	8	/* maximum adptative timeout */
52#define PPTP_OPT_OURADDRESS	9	/* our IP address */
53#define PPTP_OPT_BAUDRATE	10	/* tunnel baudrate */
54
55/* flags definition */
56#define PPTP_FLAG_DEBUG		0x00000002	/* debug mode, send verbose logs to syslog */
57
58
59#endif
60