0
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
#include <rpc/rpc.h>
|
|
23 |
#include "facontroller.h"
|
|
24 |
|
|
25 |
|
|
26 |
bool_t
|
|
27 |
xdr_facontroller_TComponentList(xdrs, objp)
|
|
28 |
XDR *xdrs;
|
|
29 |
TComponentList *objp;
|
|
30 |
{
|
|
31 |
if (!xdr_array(xdrs, (char **)&objp->TComponentList_val, (u_int *)&objp->TComponentList_len, ~0, sizeof(int), (void*)xdr_int)) {
|
|
32 |
return (FALSE);
|
|
33 |
}
|
|
34 |
return (TRUE);
|
|
35 |
}
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
bool_t
|
|
41 |
xdr_facontroller_TSoliticationMode(xdrs, objp)
|
|
42 |
XDR *xdrs;
|
|
43 |
TSoliticationMode *objp;
|
|
44 |
{
|
|
45 |
if (!xdr_enum(xdrs, (enum_t *)objp)) {
|
|
46 |
return (FALSE);
|
|
47 |
}
|
|
48 |
return (TRUE);
|
|
49 |
}
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
bool_t
|
|
55 |
xdr_facontroller_TStartupInfo(xdrs, objp)
|
|
56 |
XDR *xdrs;
|
|
57 |
TStartupInfo *objp;
|
|
58 |
{
|
|
59 |
if (!xdr_int(xdrs, &objp->iBaseInterfaceIndex)) {
|
|
60 |
return (FALSE);
|
|
61 |
}
|
|
62 |
if (!xdr_int(xdrs, &objp->iNetworkMask)) {
|
|
63 |
return (FALSE);
|
|
64 |
}
|
|
65 |
if (!xdr_int(xdrs, &objp->iStartHostAddressRange)) {
|
|
66 |
return (FALSE);
|
|
67 |
}
|
|
68 |
if (!xdr_int(xdrs, &objp->iStopHostAddressRange)) {
|
|
69 |
return (FALSE);
|
|
70 |
}
|
|
71 |
return (TRUE);
|
|
72 |
}
|
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
bool_t
|
|
78 |
xdr_facontroller_TResult(xdrs, objp)
|
|
79 |
XDR *xdrs;
|
|
80 |
TResult *objp;
|
|
81 |
{
|
|
82 |
if (!xdr_int(xdrs, &objp->iServiceResult)) {
|
|
83 |
return (FALSE);
|
|
84 |
}
|
|
85 |
if (!xdr_int(xdrs, &objp->iSubComponentResult)) {
|
|
86 |
return (FALSE);
|
|
87 |
}
|
|
88 |
if (!xdr_int(xdrs, &objp->iData0)) {
|
|
89 |
return (FALSE);
|
|
90 |
}
|
|
91 |
if (!xdr_int(xdrs, &objp->iData1)) {
|
|
92 |
return (FALSE);
|
|
93 |
}
|
|
94 |
return (TRUE);
|
|
95 |
}
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
bool_t
|
|
101 |
xdr_facontroller_TOptionDesc(xdrs, objp)
|
|
102 |
XDR *xdrs;
|
|
103 |
TOptionDesc *objp;
|
|
104 |
{
|
|
105 |
if (!xdr_int(xdrs, &objp->iAgentID)) {
|
|
106 |
return (FALSE);
|
|
107 |
}
|
|
108 |
if (!xdr_vector(xdrs, (char *)objp->iOptionFilename, X_MAXOPTIONTOKENSIZE, sizeof(char), (void*)xdr_char)) {
|
|
109 |
return (FALSE);
|
|
110 |
}
|
|
111 |
if (!xdr_vector(xdrs, (char *)objp->iOptionToken, X_MAXOPTIONTOKENSIZE, sizeof(char), (void*)xdr_char)) {
|
|
112 |
return (FALSE);
|
|
113 |
}
|
|
114 |
if (!xdr_vector(xdrs, (char *)objp->iOptionValue, X_MAXOPTIONTOKENSIZE, sizeof(char), (void*)xdr_char)) {
|
|
115 |
return (FALSE);
|
|
116 |
}
|
|
117 |
if (!xdr_vector(xdrs, (char *)objp->iOptionBlockStart, X_MAXOPTIONTOKENSIZE, sizeof(char), (void*)xdr_char)) {
|
|
118 |
return (FALSE);
|
|
119 |
}
|
|
120 |
if (!xdr_vector(xdrs, (char *)objp->iOptionBlockEnd, X_MAXOPTIONTOKENSIZE, sizeof(char), (void*)xdr_char)) {
|
|
121 |
return (FALSE);
|
|
122 |
}
|
|
123 |
return (TRUE);
|
|
124 |
}
|
|
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
|
129 |
bool_t
|
|
130 |
xdr_facontroller_TTimeoutRequest(xdrs, objp)
|
|
131 |
XDR *xdrs;
|
|
132 |
TTimeoutRequest *objp;
|
|
133 |
{
|
|
134 |
if (!xdr_int(xdrs, &objp->iAgentID)) {
|
|
135 |
return (FALSE);
|
|
136 |
}
|
|
137 |
if (!xdr_int(xdrs, &objp->iTimeout)) {
|
|
138 |
return (FALSE);
|
|
139 |
}
|
|
140 |
return (TRUE);
|
|
141 |
}
|
|
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
146 |
bool_t
|
|
147 |
xdr_facontroller_TGetTunnelRequest(xdrs, objp)
|
|
148 |
XDR *xdrs;
|
|
149 |
TGetTunnelRequest *objp;
|
|
150 |
{
|
|
151 |
if (!xdr_int(xdrs, &objp->iAgentID)) {
|
|
152 |
return (FALSE);
|
|
153 |
}
|
|
154 |
if (!xdr_int(xdrs, &objp->iMobileNodeAddress)) {
|
|
155 |
return (FALSE);
|
|
156 |
}
|
|
157 |
return (TRUE);
|
|
158 |
}
|
|
159 |
|
|
160 |
|
|
161 |
|
|
162 |
|
|
163 |
bool_t
|
|
164 |
xdr_facontroller_TStartAgentRequest(xdrs, objp)
|
|
165 |
XDR *xdrs;
|
|
166 |
TStartAgentRequest *objp;
|
|
167 |
{
|
|
168 |
if (!xdr_int(xdrs, &objp->iAgentID)) {
|
|
169 |
return (FALSE);
|
|
170 |
}
|
|
171 |
if (!xdr_vector(xdrs, (char *)objp->iLowerInterface, X_MAXINTERFACENAMESIZE, sizeof(char), (void*)xdr_char)) {
|
|
172 |
return (FALSE);
|
|
173 |
}
|
|
174 |
if (!xdr_facontroller_TSoliticationMode(xdrs, &objp->iSolicitationMode)) {
|
|
175 |
return (FALSE);
|
|
176 |
}
|
|
177 |
if (!xdr_int(xdrs, &objp->iSolicitationInterval)) {
|
|
178 |
return (FALSE);
|
|
179 |
}
|
|
180 |
return (TRUE);
|
|
181 |
}
|
|
182 |
|
|
183 |
|
|
184 |
|
|
185 |
|
|
186 |
bool_t
|
|
187 |
xdr_facontroller_TFaStatusInfo(xdrs, objp)
|
|
188 |
XDR *xdrs;
|
|
189 |
TFaStatusInfo *objp;
|
|
190 |
{
|
|
191 |
if (!xdr_facontroller_TResult(xdrs, &objp->iCallResult)) {
|
|
192 |
return (FALSE);
|
|
193 |
}
|
|
194 |
if (!xdr_int(xdrs, &objp->iTunnelCount)) {
|
|
195 |
return (FALSE);
|
|
196 |
}
|
|
197 |
if (!xdr_int(xdrs, &objp->iPendingRegistrationRequests)) {
|
|
198 |
return (FALSE);
|
|
199 |
}
|
|
200 |
if (!xdr_int(xdrs, &objp->iRequestsRejected)) {
|
|
201 |
return (FALSE);
|
|
202 |
}
|
|
203 |
if (!xdr_int(xdrs, &objp->iRequestsAccepted)) {
|
|
204 |
return (FALSE);
|
|
205 |
}
|
|
206 |
if (!xdr_int(xdrs, &objp->iReplysAccepted)) {
|
|
207 |
return (FALSE);
|
|
208 |
}
|
|
209 |
if (!xdr_int(xdrs, &objp->iReplysRejected)) {
|
|
210 |
return (FALSE);
|
|
211 |
}
|
|
212 |
if (!xdr_int(xdrs, &objp->iDiscardedUnknownExtension)) {
|
|
213 |
return (FALSE);
|
|
214 |
}
|
|
215 |
if (!xdr_int(xdrs, &objp->iDiscardedMalformed)) {
|
|
216 |
return (FALSE);
|
|
217 |
}
|
|
218 |
if (!xdr_int(xdrs, &objp->iDiscardedVendor)) {
|
|
219 |
return (FALSE);
|
|
220 |
}
|
|
221 |
if (!xdr_int(xdrs, &objp->iAdvertisementsSent)) {
|
|
222 |
return (FALSE);
|
|
223 |
}
|
|
224 |
return (TRUE);
|
|
225 |
}
|
|
226 |
|
|
227 |
|
|
228 |
|
|
229 |
|
|
230 |
bool_t
|
|
231 |
xdr_facontroller_TFaTunnelID(xdrs, objp)
|
|
232 |
XDR *xdrs;
|
|
233 |
TFaTunnelID *objp;
|
|
234 |
{
|
|
235 |
if (!xdr_int(xdrs, &objp->iAgentID)) {
|
|
236 |
return (FALSE);
|
|
237 |
}
|
|
238 |
if (!xdr_int(xdrs, &objp->iMobileNodeAddress)) {
|
|
239 |
return (FALSE);
|
|
240 |
}
|
|
241 |
if (!xdr_int(xdrs, &objp->iHomeAgentAddress)) {
|
|
242 |
return (FALSE);
|
|
243 |
}
|
|
244 |
if (!xdr_int(xdrs, &objp->iID)) {
|
|
245 |
return (FALSE);
|
|
246 |
}
|
|
247 |
return (TRUE);
|
|
248 |
}
|
|
249 |
|
|
250 |
|
|
251 |
|
|
252 |
|
|
253 |
bool_t
|
|
254 |
xdr_facontroller_TFaTunnelInfo(xdrs, objp)
|
|
255 |
XDR *xdrs;
|
|
256 |
TFaTunnelInfo *objp;
|
|
257 |
{
|
|
258 |
if (!xdr_facontroller_TResult(xdrs, &objp->iCallResult)) {
|
|
259 |
return (FALSE);
|
|
260 |
}
|
|
261 |
if (!xdr_u_int(xdrs, &objp->iMobileNodeAddress)) {
|
|
262 |
return (FALSE);
|
|
263 |
}
|
|
264 |
if (!xdr_u_int(xdrs, &objp->iCareofAddress)) {
|
|
265 |
return (FALSE);
|
|
266 |
}
|
|
267 |
if (!xdr_u_int(xdrs, &objp->iHomeAgentAddress)) {
|
|
268 |
return (FALSE);
|
|
269 |
}
|
|
270 |
if (!xdr_int(xdrs, &objp->iPrivateHomeAgentID)) {
|
|
271 |
return (FALSE);
|
|
272 |
}
|
|
273 |
if (!xdr_int(xdrs, &objp->iCreationTime)) {
|
|
274 |
return (FALSE);
|
|
275 |
}
|
|
276 |
if (!xdr_int(xdrs, &objp->iExpirationTime)) {
|
|
277 |
return (FALSE);
|
|
278 |
}
|
|
279 |
if (!xdr_int(xdrs, &objp->iRefreshTime)) {
|
|
280 |
return (FALSE);
|
|
281 |
}
|
|
282 |
if (!xdr_int(xdrs, &objp->iLastTimestamp)) {
|
|
283 |
return (FALSE);
|
|
284 |
}
|
|
285 |
if (!xdr_int(xdrs, &objp->iSPI)) {
|
|
286 |
return (FALSE);
|
|
287 |
}
|
|
288 |
if (!xdr_int(xdrs, &objp->iTimeout)) {
|
|
289 |
return (FALSE);
|
|
290 |
}
|
|
291 |
return (TRUE);
|
|
292 |
}
|
|
293 |
|
|
294 |
|
|
295 |
|
|
296 |
|
|
297 |
bool_t
|
|
298 |
xdr_facontroller_TFaTunnelList(xdrs, objp)
|
|
299 |
XDR *xdrs;
|
|
300 |
TFaTunnelList *objp;
|
|
301 |
{
|
|
302 |
if (!xdr_array(xdrs, (char **)&objp->TFaTunnelList_val, (u_int *)&objp->TFaTunnelList_len, ~0, sizeof(TFaTunnelID), (void*)xdr_facontroller_TFaTunnelID)) {
|
|
303 |
return (FALSE);
|
|
304 |
}
|
|
305 |
return (TRUE);
|
|
306 |
}
|
|
307 |
|
|
308 |
|