comparison src/aci2/aci/psa_ppp_w.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : WAP
4 | Modul : PSA_PPP
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : Definitions for PPP
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef PSA_PPP_H
22 #define PSA_PPP_H
23
24 /*==== CONSTANTS ==================================================*/
25
26 /*
27 * 25 is the maximal size a login
28 * and a password should have
29 */
30
31 #define MAX_PPP_LOGIN_LEN (25)
32 #define MAX_PPP_PASSW_LEN (25)
33
34 /*
35 * States for PPP
36 */
37
38 typedef enum
39 {
40 PPP_UNDEFINED = -1,
41 PPP_ESTABLISH = 0, /* PPP is in establish state to server */
42 PPP_ESTABLISHED, /* PPP client is established with server */
43 PPP_TERMINATE, /* PPP start termination */
44 PPP_TERMINATED /* PPP is terminated */
45 } T_PPP_STATE;
46
47 /*
48 * Indicate is lower layer activ
49 */
50
51 typedef enum
52 {
53 UNDEFINED = -1, /* Not definied */
54 UP, /* Lower layer, is activ. (Example: L2R, RLP, CC).*/
55 DWN /* Loer layer is down, (Example: CC has disconnected */
56 }
57 T_ACI_PPP_LOWER_LAYER;
58
59
60 /*==== TYPES ======================================================*/
61
62 typedef struct PPPShrdParm
63 {
64 UBYTE owner; /* owner */
65 SHORT cId; /* related call id */
66 UBYTE state; /* state */
67 CHAR ppp_login[MAX_PPP_LOGIN_LEN]; /* login */
68 CHAR ppp_password[MAX_PPP_PASSW_LEN];/* password */
69 BOOL is_PPP_CALL; /* should "ATD" connect AAA-PPP-L2R */
70 T_ACI_PPP_PROT auth_prot;
71 #if defined(FF_TCP_IP) || defined(FF_WAP) || defined(FF_GPF_TCPIP) || defined (FF_SAT_E)
72 /* PPP connection parameters supplied by the network. */
73 ULONG ipaddr ; /* Our own IP address. */
74 ULONG dns1 ; /* First DNS server address. */
75 ULONG dns2 ; /* Second DNS server address. */
76 #endif /* FF_TCP_IP || FF_WAP || FF_GPF_TCPIP || FF_SAT_E*/
77 } T_PPP_SHRD_PRM;
78
79 /*==== PROTOTYPES =================================================*/
80
81 void psaPPP_Init(); /* Initsialisation of PPP psa variables */
82
83 #ifdef DTI
84 void psaPPP_Establish ( T_DTI_CONN_LINK_ID link_id, UBYTE peer ); /* Handle the establishment from ACI-PPP */
85 #endif /* DTI */
86 void psaPPP_Terminate ( T_ACI_PPP_LOWER_LAYER ppp_lower_layer); /* Handle the hang up */
87
88
89 /*==== EXPORT =====================================================*/
90
91 #ifdef PSA_PPPF_C
92
93 GLOBAL T_PPP_SHRD_PRM pppShrdPrm;
94
95 #else
96
97 EXTERN T_PPP_SHRD_PRM pppShrdPrm;
98
99 #endif /* PSA_PPPF_C */
100
101 #endif /* PSA_PPP_H */
102
103 /*==== EOF =======================================================*/