Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / networks / ppp / ModemManager / ppp.h
blob868b299754fc3724c9000a0576f5944ccbfd8f53
1 /*
2 * $Id$
3 */
5 #ifndef _PPP_H
6 #define _PPP_H
8 #define PPP_MAXBUFF 4096
9 #define SERIAL_BUFSIZE PPP_MAXBUFF
11 // phases
12 #define PPP_PHASE_DEAD 1
13 #define PPP_PHASE_CONFIGURATION 2
14 #define PPP_PHASE_AUTHENTICATION 3
15 #define PPP_PHASE_PROTOCOL_CONF 4
16 #define PPP_PHASE_NETWORK 5
17 #define PPP_PHASE_TERMINATE 6
19 // config stuff
20 #define PPP_MAXARGLEN 100
22 // PPPcontrolMsg commands
23 #define PPP_CTRL_INFO_REQUEST 1
24 #define PPP_CTRL_INFO 2
25 #define PPP_CTRL_SETPHASE 3
26 #define PPP_CTRL_OPEN_SERIAL 4
27 #define PPP_CTRL_CLOSE_SERIAL 5
29 struct PPPcontrolMsg{
31 struct Message Msg;
33 ULONG Command; // command
34 IPTR Arg; // command argument
36 UBYTE *DeviceName; // serial device name
37 ULONG UnitNum; // serial device unit number
39 BYTE *username;
40 BYTE *password;
42 // info response part:
43 UBYTE Phase; // ppp phase
44 BOOL Ser; // serial device status
45 BOOL Up; // ppp device up/down
46 ULONG BytesIn;
47 ULONG BytesOut;
48 ULONG SpeedIn;
49 ULONG SpeedOut;
50 ULONG UpTime;
52 UBYTE LocalIP[4];
53 UBYTE RemoteIP[4];
54 UBYTE PrimaryDNS[4];
55 UBYTE SecondaryDNS[4];
57 ULONG num; // message number (debug purposes)
62 struct at_command {
63 struct Node cNode;
64 //BYTE command,arg;
65 BYTE str[PPP_MAXARGLEN];
71 #endif