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
25#ifndef PPP_PRIVMSG_H
26#define PPP_PRIVMSG_H
27
28#include <machine/types.h>
29
30/* private extension to PPP client API */
31enum {
32
33    /* API extension for script engine writers */
34    PPP_CCLRESULT = 0x100,
35    PPP_CCLNOTE,
36    PPP_CCLSPEED,
37    PPP_CCLWRITETEXT,
38    PPP_CCLMATCHTEXT,
39    PPP_CCLASK,
40    PPP_OPENFD,
41    PPP_CLOSEFD,
42    PPP_WRITEFD,
43    PPP_READFD,
44    PPPD_EVENT,
45    PPPD_STATUS,
46    PPPD_PHASE,
47
48    PPP_OPT_AUTOCONNECT_DEPRECATED = 0x80000000,		// 4 bytes
49    PPP_OPT_COMM_LISTENFILTER,		// string
50    PPP_OPT_IPCP_IN_DNS1,		// 4 bytes
51    PPP_OPT_IPCP_IN_DNS2,		// 4 bytes
52    PPP_OPT_COMM_LOOPBACK,		// 4 bytes (used for test purpose)
53    PPP_OPT_AUTOLISTEN,			// 4 bytes
54    PPP_OPT_IPCP_IN_LOCALADDR,		// 4 bytes
55    PPP_OPT_IPCP_IN_REMOTEADDR,		// 4 bytes
56};
57enum {
58
59    PPP_LISTEN = 0x200	,	// 4 bytes
60    PPP_APPLY 			// 4 bytes
61};
62
63
64enum {
65
66    cclErr_AbortMatchRead = -6000,	// internal error used to abort match read
67    cclErr_BadParameter = -6001,	// Bad parameter given to the engine
68    cclErr_DuplicateLabel = -6002,	// Duplicate label
69    cclErr_LabelUndefined = -6003,	// Label undefined
70    cclErr_SubroutineOverFlow = -6004,	// Subroutine overflow
71    cclErr_NoMemErr = -6005,		// No memory...
72    cclErr = -6006,			// CCL error base
73    cclErr_CloseError = -6007,		// There is at least one script open
74    cclErr_ScriptCancelled = -6008,	// Script Canceled
75    cclErr_TooManyLines = -6009,	// Script contains too many lines
76    cclErr_ScriptTooBig = -6010,	// Script contains too many characters
77    cclErr_NotInitialized = -6011,	// CCL has not been initialized
78    cclErr_CancelInProgress = -6012,	// Cancel in progress.
79    cclErr_PlayInProgress = -6013,	// Play command already in progress.
80    cclErr_ExitOK = -6014,	 	// Exit with no error.
81    cclErr_BadLabel = -6015,		// Label out of range.
82    cclErr_BadCommand = -6016,		// Bad command.
83    cclErr_EndOfScriptErr = -6017,	// End of script reached, expecting Exit.
84    cclErr_MatchStrIndxErr = -6018,	// Match string index is out of bounds.
85    cclErr_ModemErr = -6019, 		// Modem error, modem not responding.
86    cclErr_NoDialTone = -6020,		// No dial tone.
87    cclErr_NoCarrierErr = -6021, 	// No carrier.
88    cclErr_LineBusyErr = -6022, 	// Line busy.
89    cclErr_NoAnswerErr = -6023,		// No answer.
90    cclErr_NoOriginateLabel = -6024,	// No @ORIGINATE label
91    cclErr_NoAnswerLabel = -6025,	// No @ANSWER label
92    cclErr_NoHangUpLabel = -6026,	// No @HANGUP label
93    cclErr_NoNumberErr = -6027,  	// Can't connect because number is empty.
94    cclErr_BadScriptErr = -6028  	// Incorrect script for the modem.
95};
96
97#endif /* PPP_MSG_H */
98
99