GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lib/librpcsvc/bootparam_prot.c Lines: 0 47 0.0 %
Date: 2017-11-13 Branches: 0 38 0.0 %

Line Branch Exec Source
1
/*
2
 * Please do not edit this file.
3
 * It was generated using rpcgen.
4
 */
5
6
#include "bootparam_prot.h"
7
8
bool_t
9
xdr_bp_machine_name_t(XDR *xdrs, bp_machine_name_t *objp)
10
{
11
12
	if (!xdr_string(xdrs, objp, MAX_MACHINE_NAME))
13
		return (FALSE);
14
	return (TRUE);
15
}
16
17
bool_t
18
xdr_bp_path_t(XDR *xdrs, bp_path_t *objp)
19
{
20
21
	if (!xdr_string(xdrs, objp, MAX_PATH_LEN))
22
		return (FALSE);
23
	return (TRUE);
24
}
25
26
bool_t
27
xdr_bp_fileid_t(XDR *xdrs, bp_fileid_t *objp)
28
{
29
30
	if (!xdr_string(xdrs, objp, MAX_FILEID))
31
		return (FALSE);
32
	return (TRUE);
33
}
34
35
bool_t
36
xdr_ip_addr_t(XDR *xdrs, ip_addr_t *objp)
37
{
38
39
40
	if (!xdr_char(xdrs, &objp->net))
41
		return (FALSE);
42
	if (!xdr_char(xdrs, &objp->host))
43
		return (FALSE);
44
	if (!xdr_char(xdrs, &objp->lh))
45
		return (FALSE);
46
	if (!xdr_char(xdrs, &objp->impno))
47
		return (FALSE);
48
	return (TRUE);
49
}
50
51
bool_t
52
xdr_bp_address(XDR *xdrs, bp_address *objp)
53
{
54
55
	if (!xdr_int(xdrs, &objp->address_type))
56
		return (FALSE);
57
	switch (objp->address_type) {
58
	case IP_ADDR_TYPE:
59
		if (!xdr_ip_addr_t(xdrs, &objp->bp_address_u.ip_addr))
60
			return (FALSE);
61
		break;
62
	default:
63
		return (FALSE);
64
	}
65
	return (TRUE);
66
}
67
68
bool_t
69
xdr_bp_whoami_arg(XDR *xdrs, bp_whoami_arg *objp)
70
{
71
72
73
	if (!xdr_bp_address(xdrs, &objp->client_address))
74
		return (FALSE);
75
	return (TRUE);
76
}
77
78
bool_t
79
xdr_bp_whoami_res(XDR *xdrs, bp_whoami_res *objp)
80
{
81
82
83
	if (!xdr_bp_machine_name_t(xdrs, &objp->client_name))
84
		return (FALSE);
85
	if (!xdr_bp_machine_name_t(xdrs, &objp->domain_name))
86
		return (FALSE);
87
	if (!xdr_bp_address(xdrs, &objp->router_address))
88
		return (FALSE);
89
	return (TRUE);
90
}
91
92
bool_t
93
xdr_bp_getfile_arg(XDR *xdrs, bp_getfile_arg *objp)
94
{
95
96
97
	if (!xdr_bp_machine_name_t(xdrs, &objp->client_name))
98
		return (FALSE);
99
	if (!xdr_bp_fileid_t(xdrs, &objp->file_id))
100
		return (FALSE);
101
	return (TRUE);
102
}
103
104
bool_t
105
xdr_bp_getfile_res(XDR *xdrs, bp_getfile_res *objp)
106
{
107
108
109
	if (!xdr_bp_machine_name_t(xdrs, &objp->server_name))
110
		return (FALSE);
111
	if (!xdr_bp_address(xdrs, &objp->server_address))
112
		return (FALSE);
113
	if (!xdr_bp_path_t(xdrs, &objp->server_path))
114
		return (FALSE);
115
	return (TRUE);
116
}