[packages] openl2tp: ship generated RPC sources as many distros lack support the required rpcgen features

git-svn-id: svn://svn.openwrt.org/openwrt/packages@28429 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-10-12 14:03:06 +00:00
parent ad222ec3ca
commit b510154071
5 changed files with 5528 additions and 0 deletions

View File

@ -22,6 +22,11 @@ PPPD_VERSION:=2.4.5
include $(INCLUDE_DIR)/package.mk
define Build/Prepare
$(call Build/Prepare/Default)
$(CP) ./src/*.[ch] $(PKG_BUILD_DIR)/
endef
define Package/openl2tp
SECTION:=net
CATEGORY:=Network

1475
net/openl2tp/src/l2tp_rpc.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,426 @@
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include <memory.h> /* for memset */
#include "l2tp_rpc.h"
#define OPTSTRING(_var) _var.optstring_u.value
#define OPTSTRING_PTR(_var) ((_var.valid == 1) ? _var.optstring_u.value : NULL)
/* Default timeout can be changed using clnt_control() */
static struct timeval TIMEOUT = { 25, 0 };
enum clnt_stat
l2tp_app_info_get_1(struct l2tp_api_app_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call (clnt, L2TP_APP_INFO_GET, (xdrproc_t) xdr_void, (caddr_t) NULL,
(xdrproc_t) xdr_l2tp_api_app_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_system_modify_1(struct l2tp_api_system_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_SYSTEM_MODIFY,
(xdrproc_t) xdr_l2tp_api_system_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_system_get_1(struct l2tp_api_system_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call (clnt, L2TP_SYSTEM_GET, (xdrproc_t) xdr_void, (caddr_t) NULL,
(xdrproc_t) xdr_l2tp_api_system_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_peer_profile_create_1(struct l2tp_api_peer_profile_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_PEER_PROFILE_CREATE,
(xdrproc_t) xdr_l2tp_api_peer_profile_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_peer_profile_delete_1(char *name, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_PEER_PROFILE_DELETE,
(xdrproc_t) xdr_wrapstring, (caddr_t) &name,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_peer_profile_modify_1(struct l2tp_api_peer_profile_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_PEER_PROFILE_MODIFY,
(xdrproc_t) xdr_l2tp_api_peer_profile_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_peer_profile_get_1(char *name, struct l2tp_api_peer_profile_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_PEER_PROFILE_GET,
(xdrproc_t) xdr_wrapstring, (caddr_t) &name,
(xdrproc_t) xdr_l2tp_api_peer_profile_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_peer_profile_list_1(struct l2tp_api_peer_profile_list_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call (clnt, L2TP_PEER_PROFILE_LIST, (xdrproc_t) xdr_void, (caddr_t) NULL,
(xdrproc_t) xdr_l2tp_api_peer_profile_list_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_tunnel_create_1(struct l2tp_api_tunnel_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_TUNNEL_CREATE,
(xdrproc_t) xdr_l2tp_api_tunnel_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_tunnel_delete_1(uint16_t tunnel_id, optstring tunnel_name, optstring reason, int *clnt_res, CLIENT *clnt)
{
l2tp_tunnel_delete_1_argument arg;
arg.tunnel_id = tunnel_id;
arg.tunnel_name = tunnel_name;
arg.reason = reason;
return (clnt_call (clnt, L2TP_TUNNEL_DELETE, (xdrproc_t) xdr_l2tp_tunnel_delete_1_argument, (caddr_t) &arg,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_tunnel_modify_1(struct l2tp_api_tunnel_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_TUNNEL_MODIFY,
(xdrproc_t) xdr_l2tp_api_tunnel_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_tunnel_get_1(uint16_t tunnel_id, optstring tunnel_name, struct l2tp_api_tunnel_msg_data *clnt_res, CLIENT *clnt)
{
l2tp_tunnel_get_1_argument arg;
arg.tunnel_id = tunnel_id;
arg.tunnel_name = tunnel_name;
return (clnt_call (clnt, L2TP_TUNNEL_GET, (xdrproc_t) xdr_l2tp_tunnel_get_1_argument, (caddr_t) &arg,
(xdrproc_t) xdr_l2tp_api_tunnel_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_tunnel_list_1(struct l2tp_api_tunnel_list_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call (clnt, L2TP_TUNNEL_LIST, (xdrproc_t) xdr_void, (caddr_t) NULL,
(xdrproc_t) xdr_l2tp_api_tunnel_list_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_tunnel_profile_create_1(struct l2tp_api_tunnel_profile_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_TUNNEL_PROFILE_CREATE,
(xdrproc_t) xdr_l2tp_api_tunnel_profile_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_tunnel_profile_delete_1(char *name, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_TUNNEL_PROFILE_DELETE,
(xdrproc_t) xdr_wrapstring, (caddr_t) &name,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_tunnel_profile_modify_1(struct l2tp_api_tunnel_profile_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_TUNNEL_PROFILE_MODIFY,
(xdrproc_t) xdr_l2tp_api_tunnel_profile_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_tunnel_profile_get_1(char *name, struct l2tp_api_tunnel_profile_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_TUNNEL_PROFILE_GET,
(xdrproc_t) xdr_wrapstring, (caddr_t) &name,
(xdrproc_t) xdr_l2tp_api_tunnel_profile_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_tunnel_profile_list_1(struct l2tp_api_tunnel_profile_list_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call (clnt, L2TP_TUNNEL_PROFILE_LIST, (xdrproc_t) xdr_void, (caddr_t) NULL,
(xdrproc_t) xdr_l2tp_api_tunnel_profile_list_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_session_create_1(struct l2tp_api_session_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_SESSION_CREATE,
(xdrproc_t) xdr_l2tp_api_session_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
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)
{
l2tp_session_delete_1_argument arg;
arg.tunnel_id = tunnel_id;
arg.tunnel_name = tunnel_name;
arg.session_id = session_id;
arg.session_name = session_name;
arg.reason = reason;
return (clnt_call (clnt, L2TP_SESSION_DELETE, (xdrproc_t) xdr_l2tp_session_delete_1_argument, (caddr_t) &arg,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_session_modify_1(struct l2tp_api_session_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_SESSION_MODIFY,
(xdrproc_t) xdr_l2tp_api_session_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
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)
{
l2tp_session_get_1_argument arg;
arg.tunnel_id = tunnel_id;
arg.tunnel_name = tunnel_name;
arg.session_id = session_id;
arg.session_name = session_name;
return (clnt_call (clnt, L2TP_SESSION_GET, (xdrproc_t) xdr_l2tp_session_get_1_argument, (caddr_t) &arg,
(xdrproc_t) xdr_l2tp_api_session_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_session_list_1(uint16_t tunnel_id, optstring tunnel_name, struct l2tp_api_session_list_msg_data *clnt_res, CLIENT *clnt)
{
l2tp_session_list_1_argument arg;
arg.tunnel_id = tunnel_id;
arg.tunnel_name = tunnel_name;
return (clnt_call (clnt, L2TP_SESSION_LIST, (xdrproc_t) xdr_l2tp_session_list_1_argument, (caddr_t) &arg,
(xdrproc_t) xdr_l2tp_api_session_list_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_session_incall_ind_1(struct l2tp_api_session_incall_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_SESSION_INCALL_IND,
(xdrproc_t) xdr_l2tp_api_session_incall_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_session_profile_create_1(struct l2tp_api_session_profile_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_SESSION_PROFILE_CREATE,
(xdrproc_t) xdr_l2tp_api_session_profile_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_session_profile_delete_1(char *name, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_SESSION_PROFILE_DELETE,
(xdrproc_t) xdr_wrapstring, (caddr_t) &name,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_session_profile_modify_1(struct l2tp_api_session_profile_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_SESSION_PROFILE_MODIFY,
(xdrproc_t) xdr_l2tp_api_session_profile_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_session_profile_get_1(char *name, struct l2tp_api_session_profile_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_SESSION_PROFILE_GET,
(xdrproc_t) xdr_wrapstring, (caddr_t) &name,
(xdrproc_t) xdr_l2tp_api_session_profile_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_session_profile_list_1(struct l2tp_api_session_profile_list_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call (clnt, L2TP_SESSION_PROFILE_LIST, (xdrproc_t) xdr_void, (caddr_t) NULL,
(xdrproc_t) xdr_l2tp_api_session_profile_list_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_ppp_profile_create_1(struct l2tp_api_ppp_profile_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_PPP_PROFILE_CREATE,
(xdrproc_t) xdr_l2tp_api_ppp_profile_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_ppp_profile_delete_1(char *name, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_PPP_PROFILE_DELETE,
(xdrproc_t) xdr_wrapstring, (caddr_t) &name,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_ppp_profile_modify_1(struct l2tp_api_ppp_profile_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_PPP_PROFILE_MODIFY,
(xdrproc_t) xdr_l2tp_api_ppp_profile_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_ppp_profile_get_1(char *name, struct l2tp_api_ppp_profile_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_PPP_PROFILE_GET,
(xdrproc_t) xdr_wrapstring, (caddr_t) &name,
(xdrproc_t) xdr_l2tp_api_ppp_profile_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_ppp_profile_list_1(struct l2tp_api_ppp_profile_list_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call (clnt, L2TP_PPP_PROFILE_LIST, (xdrproc_t) xdr_void, (caddr_t) NULL,
(xdrproc_t) xdr_l2tp_api_ppp_profile_list_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
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)
{
l2tp_peer_get_1_argument arg;
arg.local_addr = local_addr;
arg.peer_addr = peer_addr;
return (clnt_call (clnt, L2TP_PEER_GET, (xdrproc_t) xdr_l2tp_peer_get_1_argument, (caddr_t) &arg,
(xdrproc_t) xdr_l2tp_api_peer_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_peer_list_1(struct l2tp_api_peer_list_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call (clnt, L2TP_PEER_LIST, (xdrproc_t) xdr_void, (caddr_t) NULL,
(xdrproc_t) xdr_l2tp_api_peer_list_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_user_list_1(struct l2tp_api_user_list_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call (clnt, L2TP_USER_LIST, (xdrproc_t) xdr_void, (caddr_t) NULL,
(xdrproc_t) xdr_l2tp_api_user_list_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_peer_profile_unset_1(struct l2tp_api_peer_profile_unset_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_PEER_PROFILE_UNSET,
(xdrproc_t) xdr_l2tp_api_peer_profile_unset_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_tunnel_profile_unset_1(struct l2tp_api_tunnel_profile_unset_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_TUNNEL_PROFILE_UNSET,
(xdrproc_t) xdr_l2tp_api_tunnel_profile_unset_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_session_profile_unset_1(struct l2tp_api_session_profile_unset_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_SESSION_PROFILE_UNSET,
(xdrproc_t) xdr_l2tp_api_session_profile_unset_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_ppp_profile_unset_1(struct l2tp_api_ppp_profile_unset_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_PPP_PROFILE_UNSET,
(xdrproc_t) xdr_l2tp_api_ppp_profile_unset_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_test_log_1(char *text, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_TEST_LOG,
(xdrproc_t) xdr_wrapstring, (caddr_t) &text,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_test_modify_1(struct l2tp_api_test_msg_data params, int *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, L2TP_TEST_MODIFY,
(xdrproc_t) xdr_l2tp_api_test_msg_data, (caddr_t) &params,
(xdrproc_t) xdr_int, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
l2tp_test_get_1(struct l2tp_api_test_msg_data *clnt_res, CLIENT *clnt)
{
return (clnt_call (clnt, L2TP_TEST_GET, (xdrproc_t) xdr_void, (caddr_t) NULL,
(xdrproc_t) xdr_l2tp_api_test_msg_data, (caddr_t) clnt_res,
TIMEOUT));
}

View File

@ -0,0 +1,665 @@
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include "l2tp_rpc.h"
#include <stdio.h>
#include <stdlib.h>
#include <rpc/pmap_clnt.h>
#include <string.h>
#include <memory.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <syslog.h>
#ifndef SIG_PF
#define SIG_PF void(*)(int)
#endif
#define OPTSTRING(_var) _var.optstring_u.value
#define OPTSTRING_PTR(_var) ((_var.valid == 1) ? _var.optstring_u.value : NULL)
int
_l2tp_app_info_get_1 (void *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_app_info_get_1_svc(result, rqstp));
}
int
_l2tp_system_modify_1 (struct l2tp_api_system_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_system_modify_1_svc(*argp, result, rqstp));
}
int
_l2tp_system_get_1 (void *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_system_get_1_svc(result, rqstp));
}
int
_l2tp_peer_profile_create_1 (struct l2tp_api_peer_profile_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_peer_profile_create_1_svc(*argp, result, rqstp));
}
int
_l2tp_peer_profile_delete_1 (char * *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_peer_profile_delete_1_svc(*argp, result, rqstp));
}
int
_l2tp_peer_profile_modify_1 (struct l2tp_api_peer_profile_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_peer_profile_modify_1_svc(*argp, result, rqstp));
}
int
_l2tp_peer_profile_get_1 (char * *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_peer_profile_get_1_svc(*argp, result, rqstp));
}
int
_l2tp_peer_profile_list_1 (void *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_peer_profile_list_1_svc(result, rqstp));
}
int
_l2tp_tunnel_create_1 (struct l2tp_api_tunnel_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_tunnel_create_1_svc(*argp, result, rqstp));
}
int
_l2tp_tunnel_delete_1 (l2tp_tunnel_delete_1_argument *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_tunnel_delete_1_svc(argp->tunnel_id, argp->tunnel_name, argp->reason, result, rqstp));
}
int
_l2tp_tunnel_modify_1 (struct l2tp_api_tunnel_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_tunnel_modify_1_svc(*argp, result, rqstp));
}
int
_l2tp_tunnel_get_1 (l2tp_tunnel_get_1_argument *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_tunnel_get_1_svc(argp->tunnel_id, argp->tunnel_name, result, rqstp));
}
int
_l2tp_tunnel_list_1 (void *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_tunnel_list_1_svc(result, rqstp));
}
int
_l2tp_tunnel_profile_create_1 (struct l2tp_api_tunnel_profile_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_tunnel_profile_create_1_svc(*argp, result, rqstp));
}
int
_l2tp_tunnel_profile_delete_1 (char * *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_tunnel_profile_delete_1_svc(*argp, result, rqstp));
}
int
_l2tp_tunnel_profile_modify_1 (struct l2tp_api_tunnel_profile_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_tunnel_profile_modify_1_svc(*argp, result, rqstp));
}
int
_l2tp_tunnel_profile_get_1 (char * *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_tunnel_profile_get_1_svc(*argp, result, rqstp));
}
int
_l2tp_tunnel_profile_list_1 (void *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_tunnel_profile_list_1_svc(result, rqstp));
}
int
_l2tp_session_create_1 (struct l2tp_api_session_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_session_create_1_svc(*argp, result, rqstp));
}
int
_l2tp_session_delete_1 (l2tp_session_delete_1_argument *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_session_delete_1_svc(argp->tunnel_id, argp->tunnel_name, argp->session_id, argp->session_name, argp->reason, result, rqstp));
}
int
_l2tp_session_modify_1 (struct l2tp_api_session_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_session_modify_1_svc(*argp, result, rqstp));
}
int
_l2tp_session_get_1 (l2tp_session_get_1_argument *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_session_get_1_svc(argp->tunnel_id, argp->tunnel_name, argp->session_id, argp->session_name, result, rqstp));
}
int
_l2tp_session_list_1 (l2tp_session_list_1_argument *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_session_list_1_svc(argp->tunnel_id, argp->tunnel_name, result, rqstp));
}
int
_l2tp_session_incall_ind_1 (struct l2tp_api_session_incall_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_session_incall_ind_1_svc(*argp, result, rqstp));
}
int
_l2tp_session_profile_create_1 (struct l2tp_api_session_profile_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_session_profile_create_1_svc(*argp, result, rqstp));
}
int
_l2tp_session_profile_delete_1 (char * *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_session_profile_delete_1_svc(*argp, result, rqstp));
}
int
_l2tp_session_profile_modify_1 (struct l2tp_api_session_profile_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_session_profile_modify_1_svc(*argp, result, rqstp));
}
int
_l2tp_session_profile_get_1 (char * *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_session_profile_get_1_svc(*argp, result, rqstp));
}
int
_l2tp_session_profile_list_1 (void *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_session_profile_list_1_svc(result, rqstp));
}
int
_l2tp_ppp_profile_create_1 (struct l2tp_api_ppp_profile_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_ppp_profile_create_1_svc(*argp, result, rqstp));
}
int
_l2tp_ppp_profile_delete_1 (char * *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_ppp_profile_delete_1_svc(*argp, result, rqstp));
}
int
_l2tp_ppp_profile_modify_1 (struct l2tp_api_ppp_profile_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_ppp_profile_modify_1_svc(*argp, result, rqstp));
}
int
_l2tp_ppp_profile_get_1 (char * *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_ppp_profile_get_1_svc(*argp, result, rqstp));
}
int
_l2tp_ppp_profile_list_1 (void *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_ppp_profile_list_1_svc(result, rqstp));
}
int
_l2tp_peer_get_1 (l2tp_peer_get_1_argument *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_peer_get_1_svc(argp->local_addr, argp->peer_addr, result, rqstp));
}
int
_l2tp_peer_list_1 (void *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_peer_list_1_svc(result, rqstp));
}
int
_l2tp_user_list_1 (void *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_user_list_1_svc(result, rqstp));
}
int
_l2tp_peer_profile_unset_1 (struct l2tp_api_peer_profile_unset_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_peer_profile_unset_1_svc(*argp, result, rqstp));
}
int
_l2tp_tunnel_profile_unset_1 (struct l2tp_api_tunnel_profile_unset_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_tunnel_profile_unset_1_svc(*argp, result, rqstp));
}
int
_l2tp_session_profile_unset_1 (struct l2tp_api_session_profile_unset_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_session_profile_unset_1_svc(*argp, result, rqstp));
}
int
_l2tp_ppp_profile_unset_1 (struct l2tp_api_ppp_profile_unset_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_ppp_profile_unset_1_svc(*argp, result, rqstp));
}
int
_l2tp_test_log_1 (char * *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_test_log_1_svc(*argp, result, rqstp));
}
int
_l2tp_test_modify_1 (struct l2tp_api_test_msg_data *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_test_modify_1_svc(*argp, result, rqstp));
}
int
_l2tp_test_get_1 (void *argp, void *result, struct svc_req *rqstp)
{
return (l2tp_test_get_1_svc(result, rqstp));
}
void
l2tp_prog_1(struct svc_req *rqstp, register SVCXPRT *transp)
{
union {
struct l2tp_api_system_msg_data l2tp_system_modify_1_arg;
struct l2tp_api_peer_profile_msg_data l2tp_peer_profile_create_1_arg;
char *l2tp_peer_profile_delete_1_arg;
struct l2tp_api_peer_profile_msg_data l2tp_peer_profile_modify_1_arg;
char *l2tp_peer_profile_get_1_arg;
struct l2tp_api_tunnel_msg_data l2tp_tunnel_create_1_arg;
l2tp_tunnel_delete_1_argument l2tp_tunnel_delete_1_arg;
struct l2tp_api_tunnel_msg_data l2tp_tunnel_modify_1_arg;
l2tp_tunnel_get_1_argument l2tp_tunnel_get_1_arg;
struct l2tp_api_tunnel_profile_msg_data l2tp_tunnel_profile_create_1_arg;
char *l2tp_tunnel_profile_delete_1_arg;
struct l2tp_api_tunnel_profile_msg_data l2tp_tunnel_profile_modify_1_arg;
char *l2tp_tunnel_profile_get_1_arg;
struct l2tp_api_session_msg_data l2tp_session_create_1_arg;
l2tp_session_delete_1_argument l2tp_session_delete_1_arg;
struct l2tp_api_session_msg_data l2tp_session_modify_1_arg;
l2tp_session_get_1_argument l2tp_session_get_1_arg;
l2tp_session_list_1_argument l2tp_session_list_1_arg;
struct l2tp_api_session_incall_msg_data l2tp_session_incall_ind_1_arg;
struct l2tp_api_session_profile_msg_data l2tp_session_profile_create_1_arg;
char *l2tp_session_profile_delete_1_arg;
struct l2tp_api_session_profile_msg_data l2tp_session_profile_modify_1_arg;
char *l2tp_session_profile_get_1_arg;
struct l2tp_api_ppp_profile_msg_data l2tp_ppp_profile_create_1_arg;
char *l2tp_ppp_profile_delete_1_arg;
struct l2tp_api_ppp_profile_msg_data l2tp_ppp_profile_modify_1_arg;
char *l2tp_ppp_profile_get_1_arg;
l2tp_peer_get_1_argument l2tp_peer_get_1_arg;
struct l2tp_api_peer_profile_unset_msg_data l2tp_peer_profile_unset_1_arg;
struct l2tp_api_tunnel_profile_unset_msg_data l2tp_tunnel_profile_unset_1_arg;
struct l2tp_api_session_profile_unset_msg_data l2tp_session_profile_unset_1_arg;
struct l2tp_api_ppp_profile_unset_msg_data l2tp_ppp_profile_unset_1_arg;
char *l2tp_test_log_1_arg;
struct l2tp_api_test_msg_data l2tp_test_modify_1_arg;
} argument;
union {
struct l2tp_api_app_msg_data l2tp_app_info_get_1_res;
int l2tp_system_modify_1_res;
struct l2tp_api_system_msg_data l2tp_system_get_1_res;
int l2tp_peer_profile_create_1_res;
int l2tp_peer_profile_delete_1_res;
int l2tp_peer_profile_modify_1_res;
struct l2tp_api_peer_profile_msg_data l2tp_peer_profile_get_1_res;
struct l2tp_api_peer_profile_list_msg_data l2tp_peer_profile_list_1_res;
int l2tp_tunnel_create_1_res;
int l2tp_tunnel_delete_1_res;
int l2tp_tunnel_modify_1_res;
struct l2tp_api_tunnel_msg_data l2tp_tunnel_get_1_res;
struct l2tp_api_tunnel_list_msg_data l2tp_tunnel_list_1_res;
int l2tp_tunnel_profile_create_1_res;
int l2tp_tunnel_profile_delete_1_res;
int l2tp_tunnel_profile_modify_1_res;
struct l2tp_api_tunnel_profile_msg_data l2tp_tunnel_profile_get_1_res;
struct l2tp_api_tunnel_profile_list_msg_data l2tp_tunnel_profile_list_1_res;
int l2tp_session_create_1_res;
int l2tp_session_delete_1_res;
int l2tp_session_modify_1_res;
struct l2tp_api_session_msg_data l2tp_session_get_1_res;
struct l2tp_api_session_list_msg_data l2tp_session_list_1_res;
int l2tp_session_incall_ind_1_res;
int l2tp_session_profile_create_1_res;
int l2tp_session_profile_delete_1_res;
int l2tp_session_profile_modify_1_res;
struct l2tp_api_session_profile_msg_data l2tp_session_profile_get_1_res;
struct l2tp_api_session_profile_list_msg_data l2tp_session_profile_list_1_res;
int l2tp_ppp_profile_create_1_res;
int l2tp_ppp_profile_delete_1_res;
int l2tp_ppp_profile_modify_1_res;
struct l2tp_api_ppp_profile_msg_data l2tp_ppp_profile_get_1_res;
struct l2tp_api_ppp_profile_list_msg_data l2tp_ppp_profile_list_1_res;
struct l2tp_api_peer_msg_data l2tp_peer_get_1_res;
struct l2tp_api_peer_list_msg_data l2tp_peer_list_1_res;
struct l2tp_api_user_list_msg_data l2tp_user_list_1_res;
int l2tp_peer_profile_unset_1_res;
int l2tp_tunnel_profile_unset_1_res;
int l2tp_session_profile_unset_1_res;
int l2tp_ppp_profile_unset_1_res;
int l2tp_test_log_1_res;
int l2tp_test_modify_1_res;
struct l2tp_api_test_msg_data l2tp_test_get_1_res;
} result;
bool_t retval;
xdrproc_t _xdr_argument, _xdr_result;
bool_t (*local)(char *, void *, struct svc_req *);
if (l2tp_api_rpc_check_request(transp) < 0) return; switch (rqstp->rq_proc) {
case NULLPROC:
(void) svc_sendreply (transp, (xdrproc_t) xdr_void, (char *)NULL);
return;
case L2TP_APP_INFO_GET:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_l2tp_api_app_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_app_info_get_1;
break;
case L2TP_SYSTEM_MODIFY:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_system_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_system_modify_1;
break;
case L2TP_SYSTEM_GET:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_l2tp_api_system_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_system_get_1;
break;
case L2TP_PEER_PROFILE_CREATE:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_peer_profile_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_peer_profile_create_1;
break;
case L2TP_PEER_PROFILE_DELETE:
_xdr_argument = (xdrproc_t) xdr_wrapstring;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_peer_profile_delete_1;
break;
case L2TP_PEER_PROFILE_MODIFY:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_peer_profile_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_peer_profile_modify_1;
break;
case L2TP_PEER_PROFILE_GET:
_xdr_argument = (xdrproc_t) xdr_wrapstring;
_xdr_result = (xdrproc_t) xdr_l2tp_api_peer_profile_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_peer_profile_get_1;
break;
case L2TP_PEER_PROFILE_LIST:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_l2tp_api_peer_profile_list_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_peer_profile_list_1;
break;
case L2TP_TUNNEL_CREATE:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_tunnel_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_tunnel_create_1;
break;
case L2TP_TUNNEL_DELETE:
_xdr_argument = (xdrproc_t) xdr_l2tp_tunnel_delete_1_argument;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_tunnel_delete_1;
break;
case L2TP_TUNNEL_MODIFY:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_tunnel_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_tunnel_modify_1;
break;
case L2TP_TUNNEL_GET:
_xdr_argument = (xdrproc_t) xdr_l2tp_tunnel_get_1_argument;
_xdr_result = (xdrproc_t) xdr_l2tp_api_tunnel_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_tunnel_get_1;
break;
case L2TP_TUNNEL_LIST:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_l2tp_api_tunnel_list_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_tunnel_list_1;
break;
case L2TP_TUNNEL_PROFILE_CREATE:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_tunnel_profile_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_tunnel_profile_create_1;
break;
case L2TP_TUNNEL_PROFILE_DELETE:
_xdr_argument = (xdrproc_t) xdr_wrapstring;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_tunnel_profile_delete_1;
break;
case L2TP_TUNNEL_PROFILE_MODIFY:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_tunnel_profile_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_tunnel_profile_modify_1;
break;
case L2TP_TUNNEL_PROFILE_GET:
_xdr_argument = (xdrproc_t) xdr_wrapstring;
_xdr_result = (xdrproc_t) xdr_l2tp_api_tunnel_profile_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_tunnel_profile_get_1;
break;
case L2TP_TUNNEL_PROFILE_LIST:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_l2tp_api_tunnel_profile_list_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_tunnel_profile_list_1;
break;
case L2TP_SESSION_CREATE:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_session_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_session_create_1;
break;
case L2TP_SESSION_DELETE:
_xdr_argument = (xdrproc_t) xdr_l2tp_session_delete_1_argument;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_session_delete_1;
break;
case L2TP_SESSION_MODIFY:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_session_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_session_modify_1;
break;
case L2TP_SESSION_GET:
_xdr_argument = (xdrproc_t) xdr_l2tp_session_get_1_argument;
_xdr_result = (xdrproc_t) xdr_l2tp_api_session_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_session_get_1;
break;
case L2TP_SESSION_LIST:
_xdr_argument = (xdrproc_t) xdr_l2tp_session_list_1_argument;
_xdr_result = (xdrproc_t) xdr_l2tp_api_session_list_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_session_list_1;
break;
case L2TP_SESSION_INCALL_IND:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_session_incall_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_session_incall_ind_1;
break;
case L2TP_SESSION_PROFILE_CREATE:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_session_profile_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_session_profile_create_1;
break;
case L2TP_SESSION_PROFILE_DELETE:
_xdr_argument = (xdrproc_t) xdr_wrapstring;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_session_profile_delete_1;
break;
case L2TP_SESSION_PROFILE_MODIFY:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_session_profile_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_session_profile_modify_1;
break;
case L2TP_SESSION_PROFILE_GET:
_xdr_argument = (xdrproc_t) xdr_wrapstring;
_xdr_result = (xdrproc_t) xdr_l2tp_api_session_profile_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_session_profile_get_1;
break;
case L2TP_SESSION_PROFILE_LIST:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_l2tp_api_session_profile_list_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_session_profile_list_1;
break;
case L2TP_PPP_PROFILE_CREATE:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_ppp_profile_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_ppp_profile_create_1;
break;
case L2TP_PPP_PROFILE_DELETE:
_xdr_argument = (xdrproc_t) xdr_wrapstring;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_ppp_profile_delete_1;
break;
case L2TP_PPP_PROFILE_MODIFY:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_ppp_profile_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_ppp_profile_modify_1;
break;
case L2TP_PPP_PROFILE_GET:
_xdr_argument = (xdrproc_t) xdr_wrapstring;
_xdr_result = (xdrproc_t) xdr_l2tp_api_ppp_profile_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_ppp_profile_get_1;
break;
case L2TP_PPP_PROFILE_LIST:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_l2tp_api_ppp_profile_list_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_ppp_profile_list_1;
break;
case L2TP_PEER_GET:
_xdr_argument = (xdrproc_t) xdr_l2tp_peer_get_1_argument;
_xdr_result = (xdrproc_t) xdr_l2tp_api_peer_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_peer_get_1;
break;
case L2TP_PEER_LIST:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_l2tp_api_peer_list_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_peer_list_1;
break;
case L2TP_USER_LIST:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_l2tp_api_user_list_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_user_list_1;
break;
case L2TP_PEER_PROFILE_UNSET:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_peer_profile_unset_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_peer_profile_unset_1;
break;
case L2TP_TUNNEL_PROFILE_UNSET:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_tunnel_profile_unset_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_tunnel_profile_unset_1;
break;
case L2TP_SESSION_PROFILE_UNSET:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_session_profile_unset_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_session_profile_unset_1;
break;
case L2TP_PPP_PROFILE_UNSET:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_ppp_profile_unset_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_ppp_profile_unset_1;
break;
case L2TP_TEST_LOG:
_xdr_argument = (xdrproc_t) xdr_wrapstring;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_test_log_1;
break;
case L2TP_TEST_MODIFY:
_xdr_argument = (xdrproc_t) xdr_l2tp_api_test_msg_data;
_xdr_result = (xdrproc_t) xdr_int;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_test_modify_1;
break;
case L2TP_TEST_GET:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_l2tp_api_test_msg_data;
local = (bool_t (*) (char *, void *, struct svc_req *))_l2tp_test_get_1;
break;
default:
svcerr_noproc (transp);
return;
}
memset ((char *)&argument, 0, sizeof (argument));
if (!svc_getargs (transp, (xdrproc_t) _xdr_argument, (caddr_t) &argument)) {
svcerr_decode (transp);
return;
}
retval = (bool_t) (*local)((char *)&argument, (void *)&result, rqstp);
if (retval > 0 && !svc_sendreply(transp, (xdrproc_t) _xdr_result, (char *)&result)) {
svcerr_systemerr (transp);
}
if (!svc_freeargs (transp, (xdrproc_t) _xdr_argument, (caddr_t) &argument)) {
syslog (LOG_ERR, "%s", "unable to free arguments");
exit (1);
}
if (!l2tp_prog_1_freeresult (transp, _xdr_result, (caddr_t) &result))
syslog (LOG_ERR, "%s", "unable to free results");
return;
}

File diff suppressed because it is too large Load Diff