comparison src/g23m-aci/aci/psa_ppp_w.h @ 1:fa8dc04885d8

src/g23m-*: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:25:50 +0000
parents
children
comparison
equal deleted inserted replaced
0:4e78acac3d88 1:fa8dc04885d8
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 /* Value of MAX_PPP_LOGIN_LEN is changed from 25 to 33
32 * Issue: OMAPS00067767
33 */
34
35 #define MAX_PPP_LOGIN_LEN (33)
36 #define MAX_PPP_PASSW_LEN (25)
37
38 /*
39 * States for PPP
40 */
41
42 typedef enum
43 {
44 PPP_UNDEFINED = -1,
45 PPP_ESTABLISH = 0, /* PPP is in establish state to server */
46 PPP_ESTABLISHED, /* PPP client is established with server */
47 PPP_TERMINATE, /* PPP start termination */
48 PPP_TERMINATED /* PPP is terminated */
49 } T_PPP_STATE;
50
51 /*
52 * Indicate is lower layer activ
53 */
54
55 typedef enum
56 {
57 UNDEFINED = -1, /* Not definied */
58 UP, /* Lower layer, is activ. (Example: L2R, RLP, CC).*/
59 DWN /* Loer layer is down, (Example: CC has disconnected */
60 }
61 T_ACI_PPP_LOWER_LAYER;
62
63
64 /*==== TYPES ======================================================*/
65
66 typedef struct PPPShrdParm
67 {
68 UBYTE owner; /* owner */
69 SHORT cId; /* related call id */
70 T_PPP_STATE state; /* state */
71 CHAR ppp_login[MAX_PPP_LOGIN_LEN]; /* login */
72 CHAR ppp_password[MAX_PPP_PASSW_LEN];/* password */
73 BOOL is_PPP_CALL; /* should "ATD" connect AAA-PPP-L2R */
74 T_ACI_PPP_PROT auth_prot;
75 #if defined(FF_PPP) || defined(FF_WAP) || defined(FF_GPF_TCPIP) || defined (FF_SAT_E)
76 /* PPP connection parameters supplied by the network. */
77 ULONG ipaddr ; /* Our own IP address. */
78 ULONG dns1 ; /* First DNS server address. */
79 ULONG dns2 ; /* Second DNS server address. */
80 #endif /* FF_PPP || FF_WAP || FF_GPF_TCPIP || FF_SAT_E*/
81 } T_PPP_SHRD_PRM;
82
83 /*==== PROTOTYPES =================================================*/
84
85 void psaPPP_Init(); /* Initsialisation of PPP psa variables */
86
87 #ifdef DTI
88 void psaPPP_Establish ( T_DTI_CONN_LINK_ID link_id, UBYTE peer ); /* Handle the establishment from ACI-PPP */
89 #endif /* DTI */
90 void psaPPP_Terminate ( T_ACI_PPP_LOWER_LAYER ppp_lower_layer); /* Handle the hang up */
91
92
93 /*==== EXPORT =====================================================*/
94
95 #ifdef PSA_PPPF_C
96
97 GLOBAL T_PPP_SHRD_PRM pppShrdPrm;
98
99 #else
100
101 EXTERN T_PPP_SHRD_PRM pppShrdPrm;
102
103 #endif /* PSA_PPPF_C */
104
105 #endif /* PSA_PPP_H */
106
107 /*==== EOF =======================================================*/