source: tmcsimulator/branches/ATMSCommunicator/fep_xdr.c @ 75

Revision 75, 32.6 KB checked in by jtorres, 9 years ago (diff)

Renamed fep_client_cpp to ATMSCommunicator, and upgraded it to cpp from straight c. Converted/Renamed? fep_client_java to ATMSDriver NetBeans? project, and checked in initial code for ATMSDriver. It contains the skeleton network model and a NetworkReader? which loads static network data from network lookup files.

Line 
1/*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6#include "fep.h"
7/* RPC XDR test */
8/* RPC XDR Modifications */
9#undef MAXSHORTMESSAGELEN
10#undef MAXLONGMESSAGELEN
11#undef MAXSHORTPOLLS
12#undef MAXLONGPOLLS
13#undef MAXPOLLRETRY
14#undef MAXSHORTREPLYLEN
15#undef MAXLONGREPLYLEN
16#define MAXSHORTMESSAGELEN (objp->message_len?((objp->message_len>_MAXSHORTMESSAGELEN) ?_MAXSHORTMESSAGELEN:objp->message_len) :1)
17#define MAXLONGMESSAGELEN (objp->message_len?((objp->message_len>_MAXLONGMESSAGELEN) ?_MAXLONGMESSAGELEN:objp->message_len) :1)
18#define MAXSHORTPOLLS (objp->count? ((objp->count>_MAXSHORTPOLLS) ?_MAXSHORTPOLLS:objp->count) :1)
19#define MAXLONGPOLLS (objp->count? ((objp->count>_MAXLONGPOLLS) ?_MAXLONGPOLLS:objp->count) :1)
20#define MAXPOLLRETRY (objp->poll_error_count? ((objp->poll_error_count>_MAXPOLLRETRY) ?_MAXPOLLRETRY:objp->poll_error_count) :1)
21#define MAXSHORTREPLYLEN (objp->message_len? ((objp->message_len>_MAXSHORTREPLYLEN)?_MAXSHORTREPLYLEN:objp->message_len) :1)
22#define MAXLONGREPLYLEN (objp->message_len? ((objp->message_len>_MAXLONGREPLYLEN) ?_MAXLONGREPLYLEN:objp->message_len) :1)
23
24bool_t
25xdr_errorstatus (XDR *xdrs, errorstatus *objp)
26{
27        register int32_t *buf;
28
29         if (!xdr_enum (xdrs, (enum_t *) objp))
30                 return FALSE;
31        return TRUE;
32}
33
34bool_t
35xdr_Polling_FSM_States (XDR *xdrs, Polling_FSM_States *objp)
36{
37        register int32_t *buf;
38
39         if (!xdr_enum (xdrs, (enum_t *) objp))
40                 return FALSE;
41        return TRUE;
42}
43
44bool_t
45xdr_fep_lineinfo (XDR *xdrs, fep_lineinfo *objp)
46{
47        register int32_t *buf;
48
49        int i;
50
51        if (xdrs->x_op == XDR_ENCODE) {
52                 if (!xdr_int (xdrs, &objp->lineinfo))
53                         return FALSE;
54                 if (!xdr_opaque (xdrs, objp->device, MAXDEVLEN))
55                         return FALSE;
56                buf = XDR_INLINE (xdrs, 7 * BYTES_PER_XDR_UNIT);
57                if (buf == NULL) {
58                         if (!xdr_int (xdrs, &objp->poll))
59                                 return FALSE;
60                         if (!xdr_int (xdrs, &objp->command))
61                                 return FALSE;
62                         if (!xdr_int (xdrs, &objp->sync))
63                                 return FALSE;
64                         if (!xdr_int (xdrs, &objp->line_error_count))
65                                 return FALSE;
66                         if (!xdr_int (xdrs, &objp->pid))
67                                 return FALSE;
68                         if (!xdr_int (xdrs, &objp->semaphore))
69                                 return FALSE;
70                         if (!xdr_int (xdrs, &objp->debug))
71                                 return FALSE;
72                } else {
73                        IXDR_PUT_LONG(buf, objp->poll);
74                        IXDR_PUT_LONG(buf, objp->command);
75                        IXDR_PUT_LONG(buf, objp->sync);
76                        IXDR_PUT_LONG(buf, objp->line_error_count);
77                        IXDR_PUT_LONG(buf, objp->pid);
78                        IXDR_PUT_LONG(buf, objp->semaphore);
79                        IXDR_PUT_LONG(buf, objp->debug);
80                }
81                return TRUE;
82        } else if (xdrs->x_op == XDR_DECODE) {
83                 if (!xdr_int (xdrs, &objp->lineinfo))
84                         return FALSE;
85                 if (!xdr_opaque (xdrs, objp->device, MAXDEVLEN))
86                         return FALSE;
87                buf = XDR_INLINE (xdrs, 7 * BYTES_PER_XDR_UNIT);
88                if (buf == NULL) {
89                         if (!xdr_int (xdrs, &objp->poll))
90                                 return FALSE;
91                         if (!xdr_int (xdrs, &objp->command))
92                                 return FALSE;
93                         if (!xdr_int (xdrs, &objp->sync))
94                                 return FALSE;
95                         if (!xdr_int (xdrs, &objp->line_error_count))
96                                 return FALSE;
97                         if (!xdr_int (xdrs, &objp->pid))
98                                 return FALSE;
99                         if (!xdr_int (xdrs, &objp->semaphore))
100                                 return FALSE;
101                         if (!xdr_int (xdrs, &objp->debug))
102                                 return FALSE;
103                } else {
104                        objp->poll = IXDR_GET_LONG(buf);
105                        objp->command = IXDR_GET_LONG(buf);
106                        objp->sync = IXDR_GET_LONG(buf);
107                        objp->line_error_count = IXDR_GET_LONG(buf);
108                        objp->pid = IXDR_GET_LONG(buf);
109                        objp->semaphore = IXDR_GET_LONG(buf);
110                        objp->debug = IXDR_GET_LONG(buf);
111                }
112         return TRUE;
113        }
114
115         if (!xdr_int (xdrs, &objp->lineinfo))
116                 return FALSE;
117         if (!xdr_opaque (xdrs, objp->device, MAXDEVLEN))
118                 return FALSE;
119         if (!xdr_int (xdrs, &objp->poll))
120                 return FALSE;
121         if (!xdr_int (xdrs, &objp->command))
122                 return FALSE;
123         if (!xdr_int (xdrs, &objp->sync))
124                 return FALSE;
125         if (!xdr_int (xdrs, &objp->line_error_count))
126                 return FALSE;
127         if (!xdr_int (xdrs, &objp->pid))
128                 return FALSE;
129         if (!xdr_int (xdrs, &objp->semaphore))
130                 return FALSE;
131         if (!xdr_int (xdrs, &objp->debug))
132                 return FALSE;
133        return TRUE;
134}
135
136bool_t
137xdr_lineinfo_ret (XDR *xdrs, lineinfo_ret *objp)
138{
139        register int32_t *buf;
140
141         if (!xdr_errorstatus (xdrs, &objp->status))
142                 return FALSE;
143        switch (objp->status) {
144        case FEP_OK:
145                 if (!xdr_fep_lineinfo (xdrs, &objp->lineinfo_ret_u.info))
146                         return FALSE;
147                break;
148        default:
149                break;
150        }
151        return TRUE;
152}
153
154bool_t
155xdr_fep_std_time (XDR *xdrs, fep_std_time *objp)
156{
157        register int32_t *buf;
158
159
160        if (xdrs->x_op == XDR_ENCODE) {
161                buf = XDR_INLINE (xdrs, 7 * BYTES_PER_XDR_UNIT);
162                if (buf == NULL) {
163                         if (!xdr_int (xdrs, &objp->year))
164                                 return FALSE;
165                         if (!xdr_int (xdrs, &objp->month))
166                                 return FALSE;
167                         if (!xdr_int (xdrs, &objp->day))
168                                 return FALSE;
169                         if (!xdr_int (xdrs, &objp->hour))
170                                 return FALSE;
171                         if (!xdr_int (xdrs, &objp->minute))
172                                 return FALSE;
173                         if (!xdr_int (xdrs, &objp->second))
174                                 return FALSE;
175                         if (!xdr_long (xdrs, &objp->time_t))
176                                 return FALSE;
177                } else {
178                        IXDR_PUT_LONG(buf, objp->year);
179                        IXDR_PUT_LONG(buf, objp->month);
180                        IXDR_PUT_LONG(buf, objp->day);
181                        IXDR_PUT_LONG(buf, objp->hour);
182                        IXDR_PUT_LONG(buf, objp->minute);
183                        IXDR_PUT_LONG(buf, objp->second);
184                        IXDR_PUT_LONG(buf, objp->time_t);
185                }
186                return TRUE;
187        } else if (xdrs->x_op == XDR_DECODE) {
188                buf = XDR_INLINE (xdrs, 7 * BYTES_PER_XDR_UNIT);
189                if (buf == NULL) {
190                         if (!xdr_int (xdrs, &objp->year))
191                                 return FALSE;
192                         if (!xdr_int (xdrs, &objp->month))
193                                 return FALSE;
194                         if (!xdr_int (xdrs, &objp->day))
195                                 return FALSE;
196                         if (!xdr_int (xdrs, &objp->hour))
197                                 return FALSE;
198                         if (!xdr_int (xdrs, &objp->minute))
199                                 return FALSE;
200                         if (!xdr_int (xdrs, &objp->second))
201                                 return FALSE;
202                         if (!xdr_long (xdrs, &objp->time_t))
203                                 return FALSE;
204                } else {
205                        objp->year = IXDR_GET_LONG(buf);
206                        objp->month = IXDR_GET_LONG(buf);
207                        objp->day = IXDR_GET_LONG(buf);
208                        objp->hour = IXDR_GET_LONG(buf);
209                        objp->minute = IXDR_GET_LONG(buf);
210                        objp->second = IXDR_GET_LONG(buf);
211                        objp->time_t = IXDR_GET_LONG(buf);
212                }
213         return TRUE;
214        }
215
216         if (!xdr_int (xdrs, &objp->year))
217                 return FALSE;
218         if (!xdr_int (xdrs, &objp->month))
219                 return FALSE;
220         if (!xdr_int (xdrs, &objp->day))
221                 return FALSE;
222         if (!xdr_int (xdrs, &objp->hour))
223                 return FALSE;
224         if (!xdr_int (xdrs, &objp->minute))
225                 return FALSE;
226         if (!xdr_int (xdrs, &objp->second))
227                 return FALSE;
228         if (!xdr_long (xdrs, &objp->time_t))
229                 return FALSE;
230        return TRUE;
231}
232
233bool_t
234xdr_std_time_ret (XDR *xdrs, std_time_ret *objp)
235{
236        register int32_t *buf;
237
238         if (!xdr_errorstatus (xdrs, &objp->status))
239                 return FALSE;
240        switch (objp->status) {
241        case FEP_OK:
242                 if (!xdr_fep_std_time (xdrs, &objp->std_time_ret_u.info))
243                         return FALSE;
244                break;
245        default:
246                break;
247        }
248        return TRUE;
249}
250
251bool_t
252xdr_protocoltype (XDR *xdrs, protocoltype *objp)
253{
254        register int32_t *buf;
255
256         if (!xdr_enum (xdrs, (enum_t *) objp))
257                 return FALSE;
258        return TRUE;
259}
260
261bool_t
262xdr_duplex (XDR *xdrs, duplex *objp)
263{
264        register int32_t *buf;
265
266         if (!xdr_enum (xdrs, (enum_t *) objp))
267                 return FALSE;
268        return TRUE;
269}
270
271bool_t
272xdr_fep_poll_info (XDR *xdrs, fep_poll_info *objp)
273{
274        register int32_t *buf;
275
276
277        if (xdrs->x_op == XDR_ENCODE) {
278                 if (!xdr_int (xdrs, &objp->D7_update))
279                         return FALSE;
280                 if (!xdr_protocoltype (xdrs, &objp->protocol))
281                         return FALSE;
282                buf = XDR_INLINE (xdrs, 14 * BYTES_PER_XDR_UNIT);
283                if (buf == NULL) {
284                         if (!xdr_int (xdrs, &objp->poll_user_info1))
285                                 return FALSE;
286                         if (!xdr_int (xdrs, &objp->poll_user_info2))
287                                 return FALSE;
288                         if (!xdr_int (xdrs, &objp->format))
289                                 return FALSE;
290                         if (!xdr_int (xdrs, &objp->speed))
291                                 return FALSE;
292                         if (!xdr_int (xdrs, &objp->mode))
293                                 return FALSE;
294                         if (!xdr_int (xdrs, &objp->min_separation))
295                                 return FALSE;
296                         if (!xdr_int (xdrs, &objp->delay_rts_on))
297                                 return FALSE;
298                         if (!xdr_int (xdrs, &objp->max_send))
299                                 return FALSE;
300                         if (!xdr_int (xdrs, &objp->delay_rts_off))
301                                 return FALSE;
302                         if (!xdr_int (xdrs, &objp->max_reply))
303                                 return FALSE;
304                         if (!xdr_int (xdrs, &objp->min_error))
305                                 return FALSE;
306                         if (!xdr_int (xdrs, &objp->max_retry))
307                                 return FALSE;
308                         if (!xdr_int (xdrs, &objp->reply_len))
309                                 return FALSE;
310                         if (!xdr_int (xdrs, &objp->poll_error_count))
311                                 return FALSE;
312                } else {
313                        IXDR_PUT_LONG(buf, objp->poll_user_info1);
314                        IXDR_PUT_LONG(buf, objp->poll_user_info2);
315                        IXDR_PUT_LONG(buf, objp->format);
316                        IXDR_PUT_LONG(buf, objp->speed);
317                        IXDR_PUT_LONG(buf, objp->mode);
318                        IXDR_PUT_LONG(buf, objp->min_separation);
319                        IXDR_PUT_LONG(buf, objp->delay_rts_on);
320                        IXDR_PUT_LONG(buf, objp->max_send);
321                        IXDR_PUT_LONG(buf, objp->delay_rts_off);
322                        IXDR_PUT_LONG(buf, objp->max_reply);
323                        IXDR_PUT_LONG(buf, objp->min_error);
324                        IXDR_PUT_LONG(buf, objp->max_retry);
325                        IXDR_PUT_LONG(buf, objp->reply_len);
326                        IXDR_PUT_LONG(buf, objp->poll_error_count);
327                }
328                return TRUE;
329        } else if (xdrs->x_op == XDR_DECODE) {
330                 if (!xdr_int (xdrs, &objp->D7_update))
331                         return FALSE;
332                 if (!xdr_protocoltype (xdrs, &objp->protocol))
333                         return FALSE;
334                buf = XDR_INLINE (xdrs, 14 * BYTES_PER_XDR_UNIT);
335                if (buf == NULL) {
336                         if (!xdr_int (xdrs, &objp->poll_user_info1))
337                                 return FALSE;
338                         if (!xdr_int (xdrs, &objp->poll_user_info2))
339                                 return FALSE;
340                         if (!xdr_int (xdrs, &objp->format))
341                                 return FALSE;
342                         if (!xdr_int (xdrs, &objp->speed))
343                                 return FALSE;
344                         if (!xdr_int (xdrs, &objp->mode))
345                                 return FALSE;
346                         if (!xdr_int (xdrs, &objp->min_separation))
347                                 return FALSE;
348                         if (!xdr_int (xdrs, &objp->delay_rts_on))
349                                 return FALSE;
350                         if (!xdr_int (xdrs, &objp->max_send))
351                                 return FALSE;
352                         if (!xdr_int (xdrs, &objp->delay_rts_off))
353                                 return FALSE;
354                         if (!xdr_int (xdrs, &objp->max_reply))
355                                 return FALSE;
356                         if (!xdr_int (xdrs, &objp->min_error))
357                                 return FALSE;
358                         if (!xdr_int (xdrs, &objp->max_retry))
359                                 return FALSE;
360                         if (!xdr_int (xdrs, &objp->reply_len))
361                                 return FALSE;
362                         if (!xdr_int (xdrs, &objp->poll_error_count))
363                                 return FALSE;
364                } else {
365                        objp->poll_user_info1 = IXDR_GET_LONG(buf);
366                        objp->poll_user_info2 = IXDR_GET_LONG(buf);
367                        objp->format = IXDR_GET_LONG(buf);
368                        objp->speed = IXDR_GET_LONG(buf);
369                        objp->mode = IXDR_GET_LONG(buf);
370                        objp->min_separation = IXDR_GET_LONG(buf);
371                        objp->delay_rts_on = IXDR_GET_LONG(buf);
372                        objp->max_send = IXDR_GET_LONG(buf);
373                        objp->delay_rts_off = IXDR_GET_LONG(buf);
374                        objp->max_reply = IXDR_GET_LONG(buf);
375                        objp->min_error = IXDR_GET_LONG(buf);
376                        objp->max_retry = IXDR_GET_LONG(buf);
377                        objp->reply_len = IXDR_GET_LONG(buf);
378                        objp->poll_error_count = IXDR_GET_LONG(buf);
379                }
380         return TRUE;
381        }
382
383         if (!xdr_int (xdrs, &objp->D7_update))
384                 return FALSE;
385         if (!xdr_protocoltype (xdrs, &objp->protocol))
386                 return FALSE;
387         if (!xdr_int (xdrs, &objp->poll_user_info1))
388                 return FALSE;
389         if (!xdr_int (xdrs, &objp->poll_user_info2))
390                 return FALSE;
391         if (!xdr_int (xdrs, &objp->format))
392                 return FALSE;
393         if (!xdr_int (xdrs, &objp->speed))
394                 return FALSE;
395         if (!xdr_int (xdrs, &objp->mode))
396                 return FALSE;
397         if (!xdr_int (xdrs, &objp->min_separation))
398                 return FALSE;
399         if (!xdr_int (xdrs, &objp->delay_rts_on))
400                 return FALSE;
401         if (!xdr_int (xdrs, &objp->max_send))
402                 return FALSE;
403         if (!xdr_int (xdrs, &objp->delay_rts_off))
404                 return FALSE;
405         if (!xdr_int (xdrs, &objp->max_reply))
406                 return FALSE;
407         if (!xdr_int (xdrs, &objp->min_error))
408                 return FALSE;
409         if (!xdr_int (xdrs, &objp->max_retry))
410                 return FALSE;
411         if (!xdr_int (xdrs, &objp->reply_len))
412                 return FALSE;
413         if (!xdr_int (xdrs, &objp->poll_error_count))
414                 return FALSE;
415        return TRUE;
416}
417
418bool_t
419xdr_fep_poll_short_msg (XDR *xdrs, fep_poll_short_msg *objp)
420{
421        register int32_t *buf;
422
423        int i;
424         if (!xdr_int (xdrs, &objp->message_len))
425                 return FALSE;
426         if (!xdr_opaque (xdrs, objp->message, MAXSHORTMESSAGELEN))
427                 return FALSE;
428        return TRUE;
429}
430
431bool_t
432xdr_fep_shortpoll (XDR *xdrs, fep_shortpoll *objp)
433{
434        register int32_t *buf;
435
436         if (!xdr_fep_poll_info (xdrs, &objp->info))
437                 return FALSE;
438         if (!xdr_fep_poll_short_msg (xdrs, &objp->msg))
439                 return FALSE;
440        return TRUE;
441}
442
443bool_t
444xdr_fep_shortpoll_list (XDR *xdrs, fep_shortpoll_list *objp)
445{
446        register int32_t *buf;
447
448        int i;
449         if (!xdr_int (xdrs, &objp->count))
450                 return FALSE;
451         if (!xdr_vector (xdrs, (char *)objp->polls, MAXSHORTPOLLS,
452                sizeof (fep_shortpoll), (xdrproc_t) xdr_fep_shortpoll))
453                 return FALSE;
454        return TRUE;
455}
456
457bool_t
458xdr_fep_poll_long_msg (XDR *xdrs, fep_poll_long_msg *objp)
459{
460        register int32_t *buf;
461
462        int i;
463         if (!xdr_int (xdrs, &objp->message_len))
464                 return FALSE;
465         if (!xdr_opaque (xdrs, objp->message, MAXLONGMESSAGELEN))
466                 return FALSE;
467        return TRUE;
468}
469
470bool_t
471xdr_fep_longpoll (XDR *xdrs, fep_longpoll *objp)
472{
473        register int32_t *buf;
474
475         if (!xdr_fep_poll_info (xdrs, &objp->info))
476                 return FALSE;
477         if (!xdr_fep_poll_long_msg (xdrs, &objp->msg))
478                 return FALSE;
479        return TRUE;
480}
481
482bool_t
483xdr_fep_longpoll_list (XDR *xdrs, fep_longpoll_list *objp)
484{
485        register int32_t *buf;
486
487        int i;
488         if (!xdr_int (xdrs, &objp->count))
489                 return FALSE;
490         if (!xdr_vector (xdrs, (char *)objp->polls, MAXLONGPOLLS,
491                sizeof (fep_longpoll), (xdrproc_t) xdr_fep_longpoll))
492                 return FALSE;
493        return TRUE;
494}
495
496bool_t
497xdr_poll_length (XDR *xdrs, poll_length *objp)
498{
499        register int32_t *buf;
500
501         if (!xdr_enum (xdrs, (enum_t *) objp))
502                 return FALSE;
503        return TRUE;
504}
505
506bool_t
507xdr_fep_poll_list (XDR *xdrs, fep_poll_list *objp)
508{
509        register int32_t *buf;
510
511         if (!xdr_int (xdrs, &objp->size))
512                 return FALSE;
513        switch (objp->size) {
514        case SHORTPOLL:
515                 if (!xdr_fep_shortpoll_list (xdrs, &objp->fep_poll_list_u.shortp))
516                         return FALSE;
517                break;
518        case LONGPOLL:
519                 if (!xdr_fep_longpoll_list (xdrs, &objp->fep_poll_list_u.longp))
520                         return FALSE;
521                break;
522        default:
523                return FALSE;
524        }
525        return TRUE;
526}
527
528bool_t
529xdr_polltype (XDR *xdrs, polltype *objp)
530{
531        register int32_t *buf;
532
533         if (!xdr_enum (xdrs, (enum_t *) objp))
534                 return FALSE;
535        return TRUE;
536}
537
538bool_t
539xdr_commandtype (XDR *xdrs, commandtype *objp)
540{
541        register int32_t *buf;
542
543         if (!xdr_enum (xdrs, (enum_t *) objp))
544                 return FALSE;
545        return TRUE;
546}
547
548bool_t
549xdr_schedulestatus (XDR *xdrs, schedulestatus *objp)
550{
551        register int32_t *buf;
552
553         if (!xdr_enum (xdrs, (enum_t *) objp))
554                 return FALSE;
555        return TRUE;
556}
557
558bool_t
559xdr_fep_schedule (XDR *xdrs, fep_schedule *objp)
560{
561        register int32_t *buf;
562
563
564        if (xdrs->x_op == XDR_ENCODE) {
565                 if (!xdr_int (xdrs, &objp->schedule))
566                         return FALSE;
567                 if (!xdr_int (xdrs, &objp->lineinfo))
568                         return FALSE;
569                 if (!xdr_polltype (xdrs, &objp->kind))
570                         return FALSE;
571                 if (!xdr_commandtype (xdrs, &objp->priority))
572                         return FALSE;
573                 if (!xdr_protocoltype (xdrs, &objp->protocol))
574                         return FALSE;
575                 if (!xdr_fep_std_time (xdrs, &objp->time))
576                         return FALSE;
577                buf = XDR_INLINE (xdrs, 11 * BYTES_PER_XDR_UNIT);
578                if (buf == NULL) {
579                         if (!xdr_int (xdrs, &objp->interval))
580                                 return FALSE;
581                         if (!xdr_long (xdrs, &objp->at_time))
582                                 return FALSE;
583                         if (!xdr_int (xdrs, &objp->user_info1))
584                                 return FALSE;
585                         if (!xdr_int (xdrs, &objp->user_info2))
586                                 return FALSE;
587                         if (!xdr_int (xdrs, &objp->system_key))
588                                 return FALSE;
589                         if (!xdr_int (xdrs, &objp->next))
590                                 return FALSE;
591                         if (!xdr_int (xdrs, &objp->previous))
592                                 return FALSE;
593                         if (!xdr_int (xdrs, &objp->report))
594                                 return FALSE;
595                         if (!xdr_int (xdrs, &objp->sequence))
596                                 return FALSE;
597                         if (!xdr_int (xdrs, &objp->status))
598                                 return FALSE;
599                         if (!xdr_int (xdrs, &objp->retry))
600                                 return FALSE;
601
602                } else {
603                IXDR_PUT_LONG(buf, objp->interval);
604                IXDR_PUT_LONG(buf, objp->at_time);
605                IXDR_PUT_LONG(buf, objp->user_info1);
606                IXDR_PUT_LONG(buf, objp->user_info2);
607                IXDR_PUT_LONG(buf, objp->system_key);
608                IXDR_PUT_LONG(buf, objp->next);
609                IXDR_PUT_LONG(buf, objp->previous);
610                IXDR_PUT_LONG(buf, objp->report);
611                IXDR_PUT_LONG(buf, objp->sequence);
612                IXDR_PUT_LONG(buf, objp->status);
613                IXDR_PUT_LONG(buf, objp->retry);
614                }
615                 if (!xdr_fep_poll_list (xdrs, &objp->fep_polls))
616                         return FALSE;
617                return TRUE;
618        } else if (xdrs->x_op == XDR_DECODE) {
619                 if (!xdr_int (xdrs, &objp->schedule))
620                         return FALSE;
621                 if (!xdr_int (xdrs, &objp->lineinfo))
622                         return FALSE;
623                 if (!xdr_polltype (xdrs, &objp->kind))
624                         return FALSE;
625                 if (!xdr_commandtype (xdrs, &objp->priority))
626                         return FALSE;
627                 if (!xdr_protocoltype (xdrs, &objp->protocol))
628                         return FALSE;
629                 if (!xdr_fep_std_time (xdrs, &objp->time))
630                         return FALSE;
631                buf = XDR_INLINE (xdrs, 11 * BYTES_PER_XDR_UNIT);
632                if (buf == NULL) {
633                         if (!xdr_int (xdrs, &objp->interval))
634                                 return FALSE;
635                         if (!xdr_long (xdrs, &objp->at_time))
636                                 return FALSE;
637                         if (!xdr_int (xdrs, &objp->user_info1))
638                                 return FALSE;
639                         if (!xdr_int (xdrs, &objp->user_info2))
640                                 return FALSE;
641                         if (!xdr_int (xdrs, &objp->system_key))
642                                 return FALSE;
643                         if (!xdr_int (xdrs, &objp->next))
644                                 return FALSE;
645                         if (!xdr_int (xdrs, &objp->previous))
646                                 return FALSE;
647                         if (!xdr_int (xdrs, &objp->report))
648                                 return FALSE;
649                         if (!xdr_int (xdrs, &objp->sequence))
650                                 return FALSE;
651                         if (!xdr_int (xdrs, &objp->status))
652                                 return FALSE;
653                         if (!xdr_int (xdrs, &objp->retry))
654                                 return FALSE;
655
656                } else {
657                objp->interval = IXDR_GET_LONG(buf);
658                objp->at_time = IXDR_GET_LONG(buf);
659                objp->user_info1 = IXDR_GET_LONG(buf);
660                objp->user_info2 = IXDR_GET_LONG(buf);
661                objp->system_key = IXDR_GET_LONG(buf);
662                objp->next = IXDR_GET_LONG(buf);
663                objp->previous = IXDR_GET_LONG(buf);
664                objp->report = IXDR_GET_LONG(buf);
665                objp->sequence = IXDR_GET_LONG(buf);
666                objp->status = IXDR_GET_LONG(buf);
667                objp->retry = IXDR_GET_LONG(buf);
668                }
669                 if (!xdr_fep_poll_list (xdrs, &objp->fep_polls))
670                         return FALSE;
671         return TRUE;
672        }
673
674         if (!xdr_int (xdrs, &objp->schedule))
675                 return FALSE;
676         if (!xdr_int (xdrs, &objp->lineinfo))
677                 return FALSE;
678         if (!xdr_polltype (xdrs, &objp->kind))
679                 return FALSE;
680         if (!xdr_commandtype (xdrs, &objp->priority))
681                 return FALSE;
682         if (!xdr_protocoltype (xdrs, &objp->protocol))
683                 return FALSE;
684         if (!xdr_fep_std_time (xdrs, &objp->time))
685                 return FALSE;
686         if (!xdr_int (xdrs, &objp->interval))
687                 return FALSE;
688         if (!xdr_long (xdrs, &objp->at_time))
689                 return FALSE;
690         if (!xdr_int (xdrs, &objp->user_info1))
691                 return FALSE;
692         if (!xdr_int (xdrs, &objp->user_info2))
693                 return FALSE;
694         if (!xdr_int (xdrs, &objp->system_key))
695                 return FALSE;
696         if (!xdr_int (xdrs, &objp->next))
697                 return FALSE;
698         if (!xdr_int (xdrs, &objp->previous))
699                 return FALSE;
700         if (!xdr_int (xdrs, &objp->report))
701                 return FALSE;
702         if (!xdr_int (xdrs, &objp->sequence))
703                 return FALSE;
704         if (!xdr_int (xdrs, &objp->status))
705                 return FALSE;
706         if (!xdr_int (xdrs, &objp->retry))
707                 return FALSE;
708         if (!xdr_fep_poll_list (xdrs, &objp->fep_polls))
709                 return FALSE;
710        return TRUE;
711}
712
713bool_t
714xdr_answererror (XDR *xdrs, answererror *objp)
715{
716        register int32_t *buf;
717
718         if (!xdr_enum (xdrs, (enum_t *) objp))
719                 return FALSE;
720        return TRUE;
721}
722
723bool_t
724xdr_fep_pollerror (XDR *xdrs, fep_pollerror *objp)
725{
726        register int32_t *buf;
727
728         if (!xdr_answererror (xdrs, &objp->msgerror))
729                 return FALSE;
730         if (!xdr_Polling_FSM_States (xdrs, &objp->state))
731                 return FALSE;
732         if (!xdr_int (xdrs, &objp->perrno))
733                 return FALSE;
734         if (!xdr_int (xdrs, &objp->termination))
735                 return FALSE;
736         if (!xdr_int (xdrs, &objp->count))
737                 return FALSE;
738        return TRUE;
739}
740
741bool_t
742xdr_replystatus (XDR *xdrs, replystatus *objp)
743{
744        register int32_t *buf;
745
746         if (!xdr_enum (xdrs, (enum_t *) objp))
747                 return FALSE;
748        return TRUE;
749}
750
751bool_t
752xdr_fep_answer_info (XDR *xdrs, fep_answer_info *objp)
753{
754        register int32_t *buf;
755
756        int i;
757
758        if (xdrs->x_op == XDR_ENCODE) {
759                 if (!xdr_long (xdrs, &objp->poll_time))
760                         return FALSE;
761                 if (!xdr_replystatus (xdrs, &objp->status))
762                         return FALSE;
763                buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT);
764                if (buf == NULL) {
765                         if (!xdr_int (xdrs, &objp->poll_user_info1))
766                                 return FALSE;
767                         if (!xdr_int (xdrs, &objp->poll_user_info2))
768                                 return FALSE;
769                         if (!xdr_int (xdrs, &objp->retries))
770                                 return FALSE;
771                         if (!xdr_int (xdrs, &objp->poll_error_count))
772                                 return FALSE;
773
774                } else {
775                IXDR_PUT_LONG(buf, objp->poll_user_info1);
776                IXDR_PUT_LONG(buf, objp->poll_user_info2);
777                IXDR_PUT_LONG(buf, objp->retries);
778                IXDR_PUT_LONG(buf, objp->poll_error_count);
779                }
780                 if (!xdr_vector (xdrs, (char *)objp->pollerror, MAXPOLLRETRY,
781                        sizeof (fep_pollerror), (xdrproc_t) xdr_fep_pollerror))
782                         return FALSE;
783                return TRUE;
784        } else if (xdrs->x_op == XDR_DECODE) {
785                 if (!xdr_long (xdrs, &objp->poll_time))
786                         return FALSE;
787                 if (!xdr_replystatus (xdrs, &objp->status))
788                         return FALSE;
789                buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT);
790                if (buf == NULL) {
791                         if (!xdr_int (xdrs, &objp->poll_user_info1))
792                                 return FALSE;
793                         if (!xdr_int (xdrs, &objp->poll_user_info2))
794                                 return FALSE;
795                         if (!xdr_int (xdrs, &objp->retries))
796                                 return FALSE;
797                         if (!xdr_int (xdrs, &objp->poll_error_count))
798                                 return FALSE;
799
800                } else {
801                objp->poll_user_info1 = IXDR_GET_LONG(buf);
802                objp->poll_user_info2 = IXDR_GET_LONG(buf);
803                objp->retries = IXDR_GET_LONG(buf);
804                objp->poll_error_count = IXDR_GET_LONG(buf);
805                }
806                 if (!xdr_vector (xdrs, (char *)objp->pollerror, MAXPOLLRETRY,
807                        sizeof (fep_pollerror), (xdrproc_t) xdr_fep_pollerror))
808                         return FALSE;
809         return TRUE;
810        }
811
812         if (!xdr_long (xdrs, &objp->poll_time))
813                 return FALSE;
814         if (!xdr_replystatus (xdrs, &objp->status))
815                 return FALSE;
816         if (!xdr_int (xdrs, &objp->poll_user_info1))
817                 return FALSE;
818         if (!xdr_int (xdrs, &objp->poll_user_info2))
819                 return FALSE;
820         if (!xdr_int (xdrs, &objp->retries))
821                 return FALSE;
822         if (!xdr_int (xdrs, &objp->poll_error_count))
823                 return FALSE;
824         if (!xdr_vector (xdrs, (char *)objp->pollerror, MAXPOLLRETRY,
825                sizeof (fep_pollerror), (xdrproc_t) xdr_fep_pollerror))
826                 return FALSE;
827        return TRUE;
828}
829
830bool_t
831xdr_fep_answer_short_msg (XDR *xdrs, fep_answer_short_msg *objp)
832{
833        register int32_t *buf;
834
835        int i;
836         if (!xdr_int (xdrs, &objp->message_len))
837                 return FALSE;
838         if (!xdr_opaque (xdrs, objp->message, MAXSHORTREPLYLEN))
839                 return FALSE;
840        return TRUE;
841}
842
843bool_t
844xdr_fep_shortanswer (XDR *xdrs, fep_shortanswer *objp)
845{
846        register int32_t *buf;
847
848         if (!xdr_fep_answer_info (xdrs, &objp->info))
849                 return FALSE;
850         if (!xdr_fep_answer_short_msg (xdrs, &objp->msg))
851                 return FALSE;
852        return TRUE;
853}
854
855bool_t
856xdr_fep_shortanswer_list (XDR *xdrs, fep_shortanswer_list *objp)
857{
858        register int32_t *buf;
859
860        int i;
861         if (!xdr_int (xdrs, &objp->count))
862                 return FALSE;
863         if (!xdr_vector (xdrs, (char *)objp->answers, MAXSHORTPOLLS,
864                sizeof (fep_shortanswer), (xdrproc_t) xdr_fep_shortanswer))
865                 return FALSE;
866        return TRUE;
867}
868
869bool_t
870xdr_fep_answer_long_msg (XDR *xdrs, fep_answer_long_msg *objp)
871{
872        register int32_t *buf;
873
874        int i;
875         if (!xdr_int (xdrs, &objp->message_len))
876                 return FALSE;
877         if (!xdr_opaque (xdrs, objp->message, MAXLONGREPLYLEN))
878                 return FALSE;
879        return TRUE;
880}
881
882bool_t
883xdr_fep_longanswer (XDR *xdrs, fep_longanswer *objp)
884{
885        register int32_t *buf;
886
887         if (!xdr_fep_answer_info (xdrs, &objp->info))
888                 return FALSE;
889         if (!xdr_fep_answer_long_msg (xdrs, &objp->msg))
890                 return FALSE;
891        return TRUE;
892}
893
894bool_t
895xdr_fep_longanswer_list (XDR *xdrs, fep_longanswer_list *objp)
896{
897        register int32_t *buf;
898
899        int i;
900         if (!xdr_int (xdrs, &objp->count))
901                 return FALSE;
902         if (!xdr_vector (xdrs, (char *)objp->answers, MAXLONGPOLLS,
903                sizeof (fep_longanswer), (xdrproc_t) xdr_fep_longanswer))
904                 return FALSE;
905        return TRUE;
906}
907
908bool_t
909xdr_fep_answer_list (XDR *xdrs, fep_answer_list *objp)
910{
911        register int32_t *buf;
912
913         if (!xdr_int (xdrs, &objp->size))
914                 return FALSE;
915        switch (objp->size) {
916        case SHORTPOLL:
917                 if (!xdr_fep_shortanswer_list (xdrs, &objp->fep_answer_list_u.shortp))
918                         return FALSE;
919                break;
920        case LONGPOLL:
921                 if (!xdr_fep_longanswer_list (xdrs, &objp->fep_answer_list_u.longp))
922                         return FALSE;
923                break;
924        default:
925                return FALSE;
926        }
927        return TRUE;
928}
929
930bool_t
931xdr_replykind (XDR *xdrs, replykind *objp)
932{
933        register int32_t *buf;
934
935         if (!xdr_enum (xdrs, (enum_t *) objp))
936                 return FALSE;
937        return TRUE;
938}
939
940bool_t
941xdr_fep_reply (XDR *xdrs, fep_reply *objp)
942{
943        register int32_t *buf;
944
945
946        if (xdrs->x_op == XDR_ENCODE) {
947                buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
948                if (buf == NULL) {
949                         if (!xdr_int (xdrs, &objp->reply))
950                                 return FALSE;
951                         if (!xdr_int (xdrs, &objp->schedule))
952                                 return FALSE;
953                         if (!xdr_int (xdrs, &objp->lineinfo))
954                                 return FALSE;
955
956                } else {
957                IXDR_PUT_LONG(buf, objp->reply);
958                IXDR_PUT_LONG(buf, objp->schedule);
959                IXDR_PUT_LONG(buf, objp->lineinfo);
960                }
961                 if (!xdr_polltype (xdrs, &objp->kind))
962                         return FALSE;
963                 if (!xdr_replykind (xdrs, &objp->flag))
964                         return FALSE;
965                buf = XDR_INLINE (xdrs, 6 * BYTES_PER_XDR_UNIT);
966                if (buf == NULL) {
967                         if (!xdr_int (xdrs, &objp->schedule_sequence))
968                                 return FALSE;
969                         if (!xdr_int (xdrs, &objp->global_sequence))
970                                 return FALSE;
971                         if (!xdr_long (xdrs, &objp->schedule_time))
972                                 return FALSE;
973                         if (!xdr_int (xdrs, &objp->user_info1))
974                                 return FALSE;
975                         if (!xdr_int (xdrs, &objp->user_info2))
976                                 return FALSE;
977                         if (!xdr_int (xdrs, &objp->system_key))
978                                 return FALSE;
979
980                } else {
981                IXDR_PUT_LONG(buf, objp->schedule_sequence);
982                IXDR_PUT_LONG(buf, objp->global_sequence);
983                IXDR_PUT_LONG(buf, objp->schedule_time);
984                IXDR_PUT_LONG(buf, objp->user_info1);
985                IXDR_PUT_LONG(buf, objp->user_info2);
986                IXDR_PUT_LONG(buf, objp->system_key);
987                }
988                 if (!xdr_fep_answer_list (xdrs, &objp->answers))
989                         return FALSE;
990                return TRUE;
991        } else if (xdrs->x_op == XDR_DECODE) {
992                buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
993                if (buf == NULL) {
994                         if (!xdr_int (xdrs, &objp->reply))
995                                 return FALSE;
996                         if (!xdr_int (xdrs, &objp->schedule))
997                                 return FALSE;
998                         if (!xdr_int (xdrs, &objp->lineinfo))
999                                 return FALSE;
1000
1001                } else {
1002                objp->reply = IXDR_GET_LONG(buf);
1003                objp->schedule = IXDR_GET_LONG(buf);
1004                objp->lineinfo = IXDR_GET_LONG(buf);
1005                }
1006                 if (!xdr_polltype (xdrs, &objp->kind))
1007                         return FALSE;
1008                 if (!xdr_replykind (xdrs, &objp->flag))
1009                         return FALSE;
1010                buf = XDR_INLINE (xdrs, 6 * BYTES_PER_XDR_UNIT);
1011                if (buf == NULL) {
1012                         if (!xdr_int (xdrs, &objp->schedule_sequence))
1013                                 return FALSE;
1014                         if (!xdr_int (xdrs, &objp->global_sequence))
1015                                 return FALSE;
1016                         if (!xdr_long (xdrs, &objp->schedule_time))
1017                                 return FALSE;
1018                         if (!xdr_int (xdrs, &objp->user_info1))
1019                                 return FALSE;
1020                         if (!xdr_int (xdrs, &objp->user_info2))
1021                                 return FALSE;
1022                         if (!xdr_int (xdrs, &objp->system_key))
1023                                 return FALSE;
1024
1025                } else {
1026                objp->schedule_sequence = IXDR_GET_LONG(buf);
1027                objp->global_sequence = IXDR_GET_LONG(buf);
1028                objp->schedule_time = IXDR_GET_LONG(buf);
1029                objp->user_info1 = IXDR_GET_LONG(buf);
1030                objp->user_info2 = IXDR_GET_LONG(buf);
1031                objp->system_key = IXDR_GET_LONG(buf);
1032                }
1033                 if (!xdr_fep_answer_list (xdrs, &objp->answers))
1034                         return FALSE;
1035         return TRUE;
1036        }
1037
1038         if (!xdr_int (xdrs, &objp->reply))
1039                 return FALSE;
1040         if (!xdr_int (xdrs, &objp->schedule))
1041                 return FALSE;
1042         if (!xdr_int (xdrs, &objp->lineinfo))
1043                 return FALSE;
1044         if (!xdr_polltype (xdrs, &objp->kind))
1045                 return FALSE;
1046         if (!xdr_replykind (xdrs, &objp->flag))
1047                 return FALSE;
1048         if (!xdr_int (xdrs, &objp->schedule_sequence))
1049                 return FALSE;
1050         if (!xdr_int (xdrs, &objp->global_sequence))
1051                 return FALSE;
1052         if (!xdr_long (xdrs, &objp->schedule_time))
1053                 return FALSE;
1054         if (!xdr_int (xdrs, &objp->user_info1))
1055                 return FALSE;
1056         if (!xdr_int (xdrs, &objp->user_info2))
1057                 return FALSE;
1058         if (!xdr_int (xdrs, &objp->system_key))
1059                 return FALSE;
1060         if (!xdr_fep_answer_list (xdrs, &objp->answers))
1061                 return FALSE;
1062        return TRUE;
1063}
1064
1065bool_t
1066xdr_schedule_ret (XDR *xdrs, schedule_ret *objp)
1067{
1068        register int32_t *buf;
1069
1070         if (!xdr_errorstatus (xdrs, &objp->status))
1071                 return FALSE;
1072        switch (objp->status) {
1073        case FEP_OK:
1074                 if (!xdr_fep_schedule (xdrs, &objp->schedule_ret_u.info))
1075                         return FALSE;
1076                break;
1077        default:
1078                break;
1079        }
1080        return TRUE;
1081}
1082
1083bool_t
1084xdr_fep_reply_request (XDR *xdrs, fep_reply_request *objp)
1085{
1086        register int32_t *buf;
1087
1088         if (!xdr_int (xdrs, &objp->schedule))
1089                 return FALSE;
1090         if (!xdr_int (xdrs, &objp->sequence))
1091                 return FALSE;
1092         if (!xdr_int (xdrs, &objp->block))
1093                 return FALSE;
1094        return TRUE;
1095}
1096
1097bool_t
1098xdr_reply_ret (XDR *xdrs, reply_ret *objp)
1099{
1100        register int32_t *buf;
1101
1102         if (!xdr_errorstatus (xdrs, &objp->status))
1103                 return FALSE;
1104        switch (objp->status) {
1105        case FEP_OK:
1106                 if (!xdr_fep_reply (xdrs, &objp->reply_ret_u.info))
1107                         return FALSE;
1108                break;
1109        default:
1110                break;
1111        }
1112        return TRUE;
1113}
1114
1115bool_t
1116xdr_init_form (XDR *xdrs, init_form *objp)
1117{
1118        register int32_t *buf;
1119
1120        int i;
1121         if (!xdr_vector (xdrs, (char *)objp->host, 10,
1122                sizeof (char), (xdrproc_t) xdr_char))
1123                 return FALSE;
1124         if (!xdr_int (xdrs, &objp->config))
1125                 return FALSE;
1126        return TRUE;
1127}
1128
1129bool_t
1130xdr_fep_setschedule (XDR *xdrs, fep_setschedule *objp)
1131{
1132        register int32_t *buf;
1133
1134         if (!xdr_int (xdrs, &objp->lineinfo))
1135                 return FALSE;
1136         if (!xdr_int (xdrs, &objp->schedule))
1137                 return FALSE;
1138         if (!xdr_int (xdrs, &objp->debug))
1139                 return FALSE;
1140        return TRUE;
1141}
1142
1143bool_t
1144xdr_statusflags (XDR *xdrs, statusflags *objp)
1145{
1146        register int32_t *buf;
1147
1148         if (!xdr_enum (xdrs, (enum_t *) objp))
1149                 return FALSE;
1150        return TRUE;
1151}
1152
1153bool_t
1154xdr_fep_lineop (XDR *xdrs, fep_lineop *objp)
1155{
1156        register int32_t *buf;
1157
1158         if (!xdr_int (xdrs, &objp->lineinfo))
1159                 return FALSE;
1160         if (!xdr_int (xdrs, &objp->flags))
1161                 return FALSE;
1162         if (!xdr_int (xdrs, &objp->modem_signals))
1163                 return FALSE;
1164        return TRUE;
1165}
1166
1167bool_t
1168xdr_ipprotocol (XDR *xdrs, ipprotocol *objp)
1169{
1170        register int32_t *buf;
1171
1172         if (!xdr_enum (xdrs, (enum_t *) objp))
1173                 return FALSE;
1174        return TRUE;
1175}
1176
1177bool_t
1178xdr_action (XDR *xdrs, action *objp)
1179{
1180        register int32_t *buf;
1181
1182         if (!xdr_enum (xdrs, (enum_t *) objp))
1183                 return FALSE;
1184        return TRUE;
1185}
1186
1187bool_t
1188xdr_portstatus (XDR *xdrs, portstatus *objp)
1189{
1190        register int32_t *buf;
1191
1192         if (!xdr_enum (xdrs, (enum_t *) objp))
1193                 return FALSE;
1194        return TRUE;
1195}
1196
1197bool_t
1198xdr_fep_report (XDR *xdrs, fep_report *objp)
1199{
1200        register int32_t *buf;
1201
1202        int i;
1203
1204        if (xdrs->x_op == XDR_ENCODE) {
1205                 if (!xdr_int (xdrs, &objp->report))
1206                         return FALSE;
1207                 if (!xdr_opaque (xdrs, objp->dest, MAXADDRLEN))
1208                         return FALSE;
1209                 if (!xdr_opaque (xdrs, objp->logfile, MAXADDRLEN))
1210                         return FALSE;
1211                 if (!xdr_opaque (xdrs, objp->monitor, MAXADDRLEN))
1212                         return FALSE;
1213                 if (!xdr_int (xdrs, &objp->port))
1214                         return FALSE;
1215                 if (!xdr_ipprotocol (xdrs, &objp->protocol))
1216                         return FALSE;
1217                 if (!xdr_int (xdrs, &objp->update))
1218                         return FALSE;
1219                 if (!xdr_action (xdrs, &objp->action))
1220                         return FALSE;
1221                 if (!xdr_int (xdrs, &objp->reconnect))
1222                         return FALSE;
1223                 if (!xdr_portstatus (xdrs, &objp->status))
1224                         return FALSE;
1225                buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT);
1226                if (buf == NULL) {
1227                         if (!xdr_int (xdrs, &objp->perrno))
1228                                 return FALSE;
1229                         if (!xdr_int (xdrs, &objp->debug))
1230                                 return FALSE;
1231                         if (!xdr_int (xdrs, &objp->pid))
1232                                 return FALSE;
1233                         if (!xdr_int (xdrs, &objp->semaphore))
1234                                 return FALSE;
1235                } else {
1236                        IXDR_PUT_LONG(buf, objp->perrno);
1237                        IXDR_PUT_LONG(buf, objp->debug);
1238                        IXDR_PUT_LONG(buf, objp->pid);
1239                        IXDR_PUT_LONG(buf, objp->semaphore);
1240                }
1241                return TRUE;
1242        } else if (xdrs->x_op == XDR_DECODE) {
1243                 if (!xdr_int (xdrs, &objp->report))
1244                         return FALSE;
1245                 if (!xdr_opaque (xdrs, objp->dest, MAXADDRLEN))
1246                         return FALSE;
1247                 if (!xdr_opaque (xdrs, objp->logfile, MAXADDRLEN))
1248                         return FALSE;
1249                 if (!xdr_opaque (xdrs, objp->monitor, MAXADDRLEN))
1250                         return FALSE;
1251                 if (!xdr_int (xdrs, &objp->port))
1252                         return FALSE;
1253                 if (!xdr_ipprotocol (xdrs, &objp->protocol))
1254                         return FALSE;
1255                 if (!xdr_int (xdrs, &objp->update))
1256                         return FALSE;
1257                 if (!xdr_action (xdrs, &objp->action))
1258                         return FALSE;
1259                 if (!xdr_int (xdrs, &objp->reconnect))
1260                         return FALSE;
1261                 if (!xdr_portstatus (xdrs, &objp->status))
1262                         return FALSE;
1263                buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT);
1264                if (buf == NULL) {
1265                         if (!xdr_int (xdrs, &objp->perrno))
1266                                 return FALSE;
1267                         if (!xdr_int (xdrs, &objp->debug))
1268                                 return FALSE;
1269                         if (!xdr_int (xdrs, &objp->pid))
1270                                 return FALSE;
1271                         if (!xdr_int (xdrs, &objp->semaphore))
1272                                 return FALSE;
1273                } else {
1274                        objp->perrno = IXDR_GET_LONG(buf);
1275                        objp->debug = IXDR_GET_LONG(buf);
1276                        objp->pid = IXDR_GET_LONG(buf);
1277                        objp->semaphore = IXDR_GET_LONG(buf);
1278                }
1279         return TRUE;
1280        }
1281
1282         if (!xdr_int (xdrs, &objp->report))
1283                 return FALSE;
1284         if (!xdr_opaque (xdrs, objp->dest, MAXADDRLEN))
1285                 return FALSE;
1286         if (!xdr_opaque (xdrs, objp->logfile, MAXADDRLEN))
1287                 return FALSE;
1288         if (!xdr_opaque (xdrs, objp->monitor, MAXADDRLEN))
1289                 return FALSE;
1290         if (!xdr_int (xdrs, &objp->port))
1291                 return FALSE;
1292         if (!xdr_ipprotocol (xdrs, &objp->protocol))
1293                 return FALSE;
1294         if (!xdr_int (xdrs, &objp->update))
1295                 return FALSE;
1296         if (!xdr_action (xdrs, &objp->action))
1297                 return FALSE;
1298         if (!xdr_int (xdrs, &objp->reconnect))
1299                 return FALSE;
1300         if (!xdr_portstatus (xdrs, &objp->status))
1301                 return FALSE;
1302         if (!xdr_int (xdrs, &objp->perrno))
1303                 return FALSE;
1304         if (!xdr_int (xdrs, &objp->debug))
1305                 return FALSE;
1306         if (!xdr_int (xdrs, &objp->pid))
1307                 return FALSE;
1308         if (!xdr_int (xdrs, &objp->semaphore))
1309                 return FALSE;
1310        return TRUE;
1311}
1312
1313bool_t
1314xdr_report_ret (XDR *xdrs, report_ret *objp)
1315{
1316        register int32_t *buf;
1317
1318         if (!xdr_errorstatus (xdrs, &objp->status))
1319                 return FALSE;
1320        switch (objp->status) {
1321        case FEP_OK:
1322                 if (!xdr_fep_report (xdrs, &objp->report_ret_u.info))
1323                         return FALSE;
1324                break;
1325        default:
1326                break;
1327        }
1328        return TRUE;
1329}
Note: See TracBrowser for help on using the repository browser.