2 * Please do not edit this file.
3 * It was generated using rpcgen.
6 #include <memory.h> /* for memset */
8 #define OPTSTRING(_var) _var.optstring_u.value
9 #define OPTSTRING_PTR(_var) ((_var.valid == 1) ? _var.optstring_u.value : NULL)
11 /* Default timeout can be changed using clnt_control() */
12 static struct timeval TIMEOUT
= { 25, 0 };
15 l2tp_app_info_get_1(struct l2tp_api_app_msg_data
*clnt_res
, CLIENT
*clnt
)
17 return (clnt_call (clnt
, L2TP_APP_INFO_GET
, (xdrproc_t
) xdr_void
, (caddr_t
) NULL
,
18 (xdrproc_t
) xdr_l2tp_api_app_msg_data
, (caddr_t
) clnt_res
,
24 l2tp_system_modify_1(struct l2tp_api_system_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
26 return (clnt_call(clnt
, L2TP_SYSTEM_MODIFY
,
27 (xdrproc_t
) xdr_l2tp_api_system_msg_data
, (caddr_t
) ¶ms
,
28 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
33 l2tp_system_get_1(struct l2tp_api_system_msg_data
*clnt_res
, CLIENT
*clnt
)
35 return (clnt_call (clnt
, L2TP_SYSTEM_GET
, (xdrproc_t
) xdr_void
, (caddr_t
) NULL
,
36 (xdrproc_t
) xdr_l2tp_api_system_msg_data
, (caddr_t
) clnt_res
,
42 l2tp_peer_profile_create_1(struct l2tp_api_peer_profile_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
44 return (clnt_call(clnt
, L2TP_PEER_PROFILE_CREATE
,
45 (xdrproc_t
) xdr_l2tp_api_peer_profile_msg_data
, (caddr_t
) ¶ms
,
46 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
51 l2tp_peer_profile_delete_1(char *name
, int *clnt_res
, CLIENT
*clnt
)
53 return (clnt_call(clnt
, L2TP_PEER_PROFILE_DELETE
,
54 (xdrproc_t
) xdr_wrapstring
, (caddr_t
) &name
,
55 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
60 l2tp_peer_profile_modify_1(struct l2tp_api_peer_profile_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
62 return (clnt_call(clnt
, L2TP_PEER_PROFILE_MODIFY
,
63 (xdrproc_t
) xdr_l2tp_api_peer_profile_msg_data
, (caddr_t
) ¶ms
,
64 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
69 l2tp_peer_profile_get_1(char *name
, struct l2tp_api_peer_profile_msg_data
*clnt_res
, CLIENT
*clnt
)
71 return (clnt_call(clnt
, L2TP_PEER_PROFILE_GET
,
72 (xdrproc_t
) xdr_wrapstring
, (caddr_t
) &name
,
73 (xdrproc_t
) xdr_l2tp_api_peer_profile_msg_data
, (caddr_t
) clnt_res
,
78 l2tp_peer_profile_list_1(struct l2tp_api_peer_profile_list_msg_data
*clnt_res
, CLIENT
*clnt
)
80 return (clnt_call (clnt
, L2TP_PEER_PROFILE_LIST
, (xdrproc_t
) xdr_void
, (caddr_t
) NULL
,
81 (xdrproc_t
) xdr_l2tp_api_peer_profile_list_msg_data
, (caddr_t
) clnt_res
,
87 l2tp_tunnel_create_1(struct l2tp_api_tunnel_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
89 return (clnt_call(clnt
, L2TP_TUNNEL_CREATE
,
90 (xdrproc_t
) xdr_l2tp_api_tunnel_msg_data
, (caddr_t
) ¶ms
,
91 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
96 l2tp_tunnel_delete_1(uint16_t tunnel_id
, optstring tunnel_name
, optstring reason
, int *clnt_res
, CLIENT
*clnt
)
98 l2tp_tunnel_delete_1_argument arg
;
99 arg
.tunnel_id
= tunnel_id
;
100 arg
.tunnel_name
= tunnel_name
;
102 return (clnt_call (clnt
, L2TP_TUNNEL_DELETE
, (xdrproc_t
) xdr_l2tp_tunnel_delete_1_argument
, (caddr_t
) &arg
,
103 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
108 l2tp_tunnel_modify_1(struct l2tp_api_tunnel_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
110 return (clnt_call(clnt
, L2TP_TUNNEL_MODIFY
,
111 (xdrproc_t
) xdr_l2tp_api_tunnel_msg_data
, (caddr_t
) ¶ms
,
112 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
117 l2tp_tunnel_get_1(uint16_t tunnel_id
, optstring tunnel_name
, struct l2tp_api_tunnel_msg_data
*clnt_res
, CLIENT
*clnt
)
119 l2tp_tunnel_get_1_argument arg
;
120 arg
.tunnel_id
= tunnel_id
;
121 arg
.tunnel_name
= tunnel_name
;
122 return (clnt_call (clnt
, L2TP_TUNNEL_GET
, (xdrproc_t
) xdr_l2tp_tunnel_get_1_argument
, (caddr_t
) &arg
,
123 (xdrproc_t
) xdr_l2tp_api_tunnel_msg_data
, (caddr_t
) clnt_res
,
128 l2tp_tunnel_list_1(struct l2tp_api_tunnel_list_msg_data
*clnt_res
, CLIENT
*clnt
)
130 return (clnt_call (clnt
, L2TP_TUNNEL_LIST
, (xdrproc_t
) xdr_void
, (caddr_t
) NULL
,
131 (xdrproc_t
) xdr_l2tp_api_tunnel_list_msg_data
, (caddr_t
) clnt_res
,
137 l2tp_tunnel_profile_create_1(struct l2tp_api_tunnel_profile_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
139 return (clnt_call(clnt
, L2TP_TUNNEL_PROFILE_CREATE
,
140 (xdrproc_t
) xdr_l2tp_api_tunnel_profile_msg_data
, (caddr_t
) ¶ms
,
141 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
146 l2tp_tunnel_profile_delete_1(char *name
, int *clnt_res
, CLIENT
*clnt
)
148 return (clnt_call(clnt
, L2TP_TUNNEL_PROFILE_DELETE
,
149 (xdrproc_t
) xdr_wrapstring
, (caddr_t
) &name
,
150 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
155 l2tp_tunnel_profile_modify_1(struct l2tp_api_tunnel_profile_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
157 return (clnt_call(clnt
, L2TP_TUNNEL_PROFILE_MODIFY
,
158 (xdrproc_t
) xdr_l2tp_api_tunnel_profile_msg_data
, (caddr_t
) ¶ms
,
159 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
164 l2tp_tunnel_profile_get_1(char *name
, struct l2tp_api_tunnel_profile_msg_data
*clnt_res
, CLIENT
*clnt
)
166 return (clnt_call(clnt
, L2TP_TUNNEL_PROFILE_GET
,
167 (xdrproc_t
) xdr_wrapstring
, (caddr_t
) &name
,
168 (xdrproc_t
) xdr_l2tp_api_tunnel_profile_msg_data
, (caddr_t
) clnt_res
,
173 l2tp_tunnel_profile_list_1(struct l2tp_api_tunnel_profile_list_msg_data
*clnt_res
, CLIENT
*clnt
)
175 return (clnt_call (clnt
, L2TP_TUNNEL_PROFILE_LIST
, (xdrproc_t
) xdr_void
, (caddr_t
) NULL
,
176 (xdrproc_t
) xdr_l2tp_api_tunnel_profile_list_msg_data
, (caddr_t
) clnt_res
,
182 l2tp_session_create_1(struct l2tp_api_session_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
184 return (clnt_call(clnt
, L2TP_SESSION_CREATE
,
185 (xdrproc_t
) xdr_l2tp_api_session_msg_data
, (caddr_t
) ¶ms
,
186 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
191 l2tp_session_delete_1(uint16_t tunnel_id
, optstring tunnel_name
, uint16_t session_id
, optstring session_name
, optstring reason
, int *clnt_res
, CLIENT
*clnt
)
193 l2tp_session_delete_1_argument arg
;
194 arg
.tunnel_id
= tunnel_id
;
195 arg
.tunnel_name
= tunnel_name
;
196 arg
.session_id
= session_id
;
197 arg
.session_name
= session_name
;
199 return (clnt_call (clnt
, L2TP_SESSION_DELETE
, (xdrproc_t
) xdr_l2tp_session_delete_1_argument
, (caddr_t
) &arg
,
200 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
205 l2tp_session_modify_1(struct l2tp_api_session_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
207 return (clnt_call(clnt
, L2TP_SESSION_MODIFY
,
208 (xdrproc_t
) xdr_l2tp_api_session_msg_data
, (caddr_t
) ¶ms
,
209 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
214 l2tp_session_get_1(uint16_t tunnel_id
, optstring tunnel_name
, uint16_t session_id
, optstring session_name
, struct l2tp_api_session_msg_data
*clnt_res
, CLIENT
*clnt
)
216 l2tp_session_get_1_argument arg
;
217 arg
.tunnel_id
= tunnel_id
;
218 arg
.tunnel_name
= tunnel_name
;
219 arg
.session_id
= session_id
;
220 arg
.session_name
= session_name
;
221 return (clnt_call (clnt
, L2TP_SESSION_GET
, (xdrproc_t
) xdr_l2tp_session_get_1_argument
, (caddr_t
) &arg
,
222 (xdrproc_t
) xdr_l2tp_api_session_msg_data
, (caddr_t
) clnt_res
,
227 l2tp_session_list_1(uint16_t tunnel_id
, optstring tunnel_name
, struct l2tp_api_session_list_msg_data
*clnt_res
, CLIENT
*clnt
)
229 l2tp_session_list_1_argument arg
;
230 arg
.tunnel_id
= tunnel_id
;
231 arg
.tunnel_name
= tunnel_name
;
232 return (clnt_call (clnt
, L2TP_SESSION_LIST
, (xdrproc_t
) xdr_l2tp_session_list_1_argument
, (caddr_t
) &arg
,
233 (xdrproc_t
) xdr_l2tp_api_session_list_msg_data
, (caddr_t
) clnt_res
,
238 l2tp_session_incall_ind_1(struct l2tp_api_session_incall_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
240 return (clnt_call(clnt
, L2TP_SESSION_INCALL_IND
,
241 (xdrproc_t
) xdr_l2tp_api_session_incall_msg_data
, (caddr_t
) ¶ms
,
242 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
247 l2tp_session_profile_create_1(struct l2tp_api_session_profile_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
249 return (clnt_call(clnt
, L2TP_SESSION_PROFILE_CREATE
,
250 (xdrproc_t
) xdr_l2tp_api_session_profile_msg_data
, (caddr_t
) ¶ms
,
251 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
256 l2tp_session_profile_delete_1(char *name
, int *clnt_res
, CLIENT
*clnt
)
258 return (clnt_call(clnt
, L2TP_SESSION_PROFILE_DELETE
,
259 (xdrproc_t
) xdr_wrapstring
, (caddr_t
) &name
,
260 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
265 l2tp_session_profile_modify_1(struct l2tp_api_session_profile_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
267 return (clnt_call(clnt
, L2TP_SESSION_PROFILE_MODIFY
,
268 (xdrproc_t
) xdr_l2tp_api_session_profile_msg_data
, (caddr_t
) ¶ms
,
269 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
274 l2tp_session_profile_get_1(char *name
, struct l2tp_api_session_profile_msg_data
*clnt_res
, CLIENT
*clnt
)
276 return (clnt_call(clnt
, L2TP_SESSION_PROFILE_GET
,
277 (xdrproc_t
) xdr_wrapstring
, (caddr_t
) &name
,
278 (xdrproc_t
) xdr_l2tp_api_session_profile_msg_data
, (caddr_t
) clnt_res
,
283 l2tp_session_profile_list_1(struct l2tp_api_session_profile_list_msg_data
*clnt_res
, CLIENT
*clnt
)
285 return (clnt_call (clnt
, L2TP_SESSION_PROFILE_LIST
, (xdrproc_t
) xdr_void
, (caddr_t
) NULL
,
286 (xdrproc_t
) xdr_l2tp_api_session_profile_list_msg_data
, (caddr_t
) clnt_res
,
292 l2tp_ppp_profile_create_1(struct l2tp_api_ppp_profile_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
294 return (clnt_call(clnt
, L2TP_PPP_PROFILE_CREATE
,
295 (xdrproc_t
) xdr_l2tp_api_ppp_profile_msg_data
, (caddr_t
) ¶ms
,
296 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
301 l2tp_ppp_profile_delete_1(char *name
, int *clnt_res
, CLIENT
*clnt
)
303 return (clnt_call(clnt
, L2TP_PPP_PROFILE_DELETE
,
304 (xdrproc_t
) xdr_wrapstring
, (caddr_t
) &name
,
305 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
310 l2tp_ppp_profile_modify_1(struct l2tp_api_ppp_profile_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
312 return (clnt_call(clnt
, L2TP_PPP_PROFILE_MODIFY
,
313 (xdrproc_t
) xdr_l2tp_api_ppp_profile_msg_data
, (caddr_t
) ¶ms
,
314 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
319 l2tp_ppp_profile_get_1(char *name
, struct l2tp_api_ppp_profile_msg_data
*clnt_res
, CLIENT
*clnt
)
321 return (clnt_call(clnt
, L2TP_PPP_PROFILE_GET
,
322 (xdrproc_t
) xdr_wrapstring
, (caddr_t
) &name
,
323 (xdrproc_t
) xdr_l2tp_api_ppp_profile_msg_data
, (caddr_t
) clnt_res
,
328 l2tp_ppp_profile_list_1(struct l2tp_api_ppp_profile_list_msg_data
*clnt_res
, CLIENT
*clnt
)
330 return (clnt_call (clnt
, L2TP_PPP_PROFILE_LIST
, (xdrproc_t
) xdr_void
, (caddr_t
) NULL
,
331 (xdrproc_t
) xdr_l2tp_api_ppp_profile_list_msg_data
, (caddr_t
) clnt_res
,
337 l2tp_peer_get_1(struct l2tp_api_ip_addr local_addr
, struct l2tp_api_ip_addr peer_addr
, struct l2tp_api_peer_msg_data
*clnt_res
, CLIENT
*clnt
)
339 l2tp_peer_get_1_argument arg
;
340 arg
.local_addr
= local_addr
;
341 arg
.peer_addr
= peer_addr
;
342 return (clnt_call (clnt
, L2TP_PEER_GET
, (xdrproc_t
) xdr_l2tp_peer_get_1_argument
, (caddr_t
) &arg
,
343 (xdrproc_t
) xdr_l2tp_api_peer_msg_data
, (caddr_t
) clnt_res
,
348 l2tp_peer_list_1(struct l2tp_api_peer_list_msg_data
*clnt_res
, CLIENT
*clnt
)
350 return (clnt_call (clnt
, L2TP_PEER_LIST
, (xdrproc_t
) xdr_void
, (caddr_t
) NULL
,
351 (xdrproc_t
) xdr_l2tp_api_peer_list_msg_data
, (caddr_t
) clnt_res
,
357 l2tp_user_list_1(struct l2tp_api_user_list_msg_data
*clnt_res
, CLIENT
*clnt
)
359 return (clnt_call (clnt
, L2TP_USER_LIST
, (xdrproc_t
) xdr_void
, (caddr_t
) NULL
,
360 (xdrproc_t
) xdr_l2tp_api_user_list_msg_data
, (caddr_t
) clnt_res
,
366 l2tp_peer_profile_unset_1(struct l2tp_api_peer_profile_unset_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
368 return (clnt_call(clnt
, L2TP_PEER_PROFILE_UNSET
,
369 (xdrproc_t
) xdr_l2tp_api_peer_profile_unset_msg_data
, (caddr_t
) ¶ms
,
370 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
375 l2tp_tunnel_profile_unset_1(struct l2tp_api_tunnel_profile_unset_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
377 return (clnt_call(clnt
, L2TP_TUNNEL_PROFILE_UNSET
,
378 (xdrproc_t
) xdr_l2tp_api_tunnel_profile_unset_msg_data
, (caddr_t
) ¶ms
,
379 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
384 l2tp_session_profile_unset_1(struct l2tp_api_session_profile_unset_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
386 return (clnt_call(clnt
, L2TP_SESSION_PROFILE_UNSET
,
387 (xdrproc_t
) xdr_l2tp_api_session_profile_unset_msg_data
, (caddr_t
) ¶ms
,
388 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
393 l2tp_ppp_profile_unset_1(struct l2tp_api_ppp_profile_unset_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
395 return (clnt_call(clnt
, L2TP_PPP_PROFILE_UNSET
,
396 (xdrproc_t
) xdr_l2tp_api_ppp_profile_unset_msg_data
, (caddr_t
) ¶ms
,
397 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
402 l2tp_test_log_1(char *text
, int *clnt_res
, CLIENT
*clnt
)
404 return (clnt_call(clnt
, L2TP_TEST_LOG
,
405 (xdrproc_t
) xdr_wrapstring
, (caddr_t
) &text
,
406 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
411 l2tp_test_modify_1(struct l2tp_api_test_msg_data params
, int *clnt_res
, CLIENT
*clnt
)
413 return (clnt_call(clnt
, L2TP_TEST_MODIFY
,
414 (xdrproc_t
) xdr_l2tp_api_test_msg_data
, (caddr_t
) ¶ms
,
415 (xdrproc_t
) xdr_int
, (caddr_t
) clnt_res
,
420 l2tp_test_get_1(struct l2tp_api_test_msg_data
*clnt_res
, CLIENT
*clnt
)
422 return (clnt_call (clnt
, L2TP_TEST_GET
, (xdrproc_t
) xdr_void
, (caddr_t
) NULL
,
423 (xdrproc_t
) xdr_l2tp_api_test_msg_data
, (caddr_t
) clnt_res
,