Lines Matching +full:s +full:- +full:merged

3 /*-
4 * SPDX-License-Identifier: BSD-3-Clause
11 * - Redistributions of source code must retain the above copyright notice,
13 * - Redistributions in binary form must reproduce the above copyright notice,
16 * - Neither the name of Sun Microsystems, Inc. nor the names of its
33 * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
39 * claimed address and returns the universal merged address
62 static struct fdlist *fdhead; /* Link list of the check fd's */
80 if (fdl->check_binding == FALSE) in check_bound()
83 na = uaddr2taddr(fdl->nconf, uaddr); in check_bound()
87 fd = __rpc_nconf2fd(fdl->nconf); in check_bound()
89 free(na->buf); in check_bound()
94 ans = bind(fd, (struct sockaddr *)na->buf, na->len); in check_bound()
97 free(na->buf); in check_bound()
109 newnconf = getnetconfigent(nconf->nc_netid); in add_bndlist()
111 return (-1); in add_bndlist()
116 return (-1); in add_bndlist()
118 fdl->nconf = newnconf; in add_bndlist()
119 fdl->next = NULL; in add_bndlist()
124 fdtail->next = fdl; in add_bndlist()
128 fdl->check_binding = FALSE; in add_bndlist()
138 for (fdl = fdhead; fdl; fdl = fdl->next) in is_bound()
139 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in is_bound()
149 * Returns the merged address otherwise.
158 for (fdl = fdhead; fdl; fdl = fdl->next) in mergeaddr()
159 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in mergeaddr()
168 * so we can send a reply from the same address. If it's unknown, then in mergeaddr()
177 if (callee != NULL && callee->buf != NULL) { in mergeaddr()
178 c_uaddr = taddr2uaddr(fdl->nconf, callee); in mergeaddr()
183 c_uaddr = taddr2uaddr(fdl->nconf, svc_getrpccaller(xprt)); in mergeaddr()
187 syslog(LOG_ERR, "taddr2uaddr failed for %s", in mergeaddr()
188 fdl->nconf->nc_netid); in mergeaddr()
195 fprintf(stderr, "mergeaddr: client uaddr = %s\n", in mergeaddr()
198 fprintf(stderr, "mergeaddr: contact uaddr = %s\n", in mergeaddr()
210 fprintf(stderr, "mergeaddr: uaddr = %s, merged uaddr = %s\n", in mergeaddr()
226 for (fdl = fdhead; fdl; fdl = fdl->next) in rpcbind_get_conf()
227 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in rpcbind_get_conf()
231 return (fdl->nconf); in rpcbind_get_conf()