Home
last modified time | relevance | path

Searched refs:netid (Results 1 – 25 of 32) sorted by relevance

12

/freebsd/usr.sbin/rpcbind/
H A Drpcb_stat.c99 rpcbs_getaddr(rpcvers_t rtype, rpcprog_t prog, rpcvers_t vers, char *netid, in rpcbs_getaddr() argument
109 if(al->netid == NULL) in rpcbs_getaddr()
112 (strcmp(al->netid, netid) == 0)) { in rpcbs_getaddr()
120 nconf = rpcbind_get_conf(netid); in rpcbs_getaddr()
130 al->netid = nconf->nc_netid; in rpcbs_getaddr()
144 rpcvers_t vers, rpcproc_t proc, char *netid, rpcblist_ptr rbl) in rpcbs_rmtcall() argument
153 if(rl->netid == NULL) in rpcbs_rmtcall()
158 (strcmp(rl->netid, netid) == 0)) { in rpcbs_rmtcall()
169 nconf = rpcbind_get_conf(netid); in rpcbs_rmtcall()
180 rl->netid = nconf->nc_netid; in rpcbs_rmtcall()
H A Dcheck_bound.c134 is_bound(char *netid, char *uaddr) in is_bound() argument
139 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in is_bound()
152 mergeaddr(SVCXPRT *xprt, char *netid, char *uaddr, char *saddr) in mergeaddr() argument
159 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in mergeaddr()
207 m_uaddr = addrmerge(svc_getrpccaller(xprt), s_uaddr, c_uaddr, netid); in mergeaddr()
222 rpcbind_get_conf(const char *netid) in rpcbind_get_conf() argument
227 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in rpcbind_get_conf()
H A Dpmap_svc.c290 char *netid; in pmapproc_getport() local
294 netid = udptrans; in pmapproc_getport()
297 netid = tcptrans; in pmapproc_getport()
308 if (is_bound(netid, serveuaddr)) { in pmapproc_getport()
H A Drpcb_svc_com.c73 char *netid; member
509 rmt->netid = strdup(nconf->nc_netid); in create_rmtcall_fd()
510 xprt->xp_netid = rmt->netid; in create_rmtcall_fd()
528 find_rmtcallfd_by_netid(char *netid) in find_rmtcallfd_by_netid() argument
533 if (strcmp(netid, rmt->netid) == 0) { in find_rmtcallfd_by_netid()
1320 find_versions(rpcprog_t prog, char *netid, rpcvers_t *lowvp, rpcvers_t *highvp) in find_versions() argument
1329 (strcasecmp(rbl->rpcb_map.r_netid, netid) != 0))) in find_versions()
1356 find_service(rpcprog_t prog, rpcvers_t vers, char *netid) in find_service() argument
1364 (strcasecmp(rbl->rpcb_map.r_netid, netid) != 0))) in find_service()
H A Dutil.c113 const char *contct_uaddr, const char *netid) in addrmerge() argument
130 contct_uaddr == NULL ? "NULL" : contct_uaddr, netid); in addrmerge()
133 if ((nconf = rpcbind_get_conf(netid)) == NULL) in addrmerge()
/freebsd/lib/libc/rpc/
H A Dsvc_simple.c131 char *netid; in rpc_reg() local
136 xdrbuf = netid = NULL; in rpc_reg()
142 netid = pl->p_netid; in rpc_reg()
165 ((netid = strdup(nconf->nc_netid)) == NULL)) { in rpc_reg()
168 free(netid); in rpc_reg()
181 (strcmp(pl->p_netid, netid) == 0)) in rpc_reg()
193 (unsigned)versnum, netid); in rpc_reg()
197 free(netid); in rpc_reg()
208 free(netid); in rpc_reg()
221 pl->p_netid = netid; in rpc_reg()
H A Drpc_generic.c86 const char *netid; member
213 char *netid; in __rpc_getconfip() local
264 netid = netid_udp; in __rpc_getconfip()
266 netid = netid_tcp; in __rpc_getconfip()
270 if ((netid == NULL) || (netid[0] == 0)) { in __rpc_getconfip()
273 dummy = getnetconfigent(netid); in __rpc_getconfip()
440 const char *netid; in __rpcgettp() local
535 if (netid) in __rpc_sockinfo2netid()
536 *netid = "unix"; in __rpc_sockinfo2netid()
538 if (netid) in __rpc_sockinfo2netid()
[all …]
H A Dsvc.c176 char *netid = NULL; in svc_reg() local
182 netid = strdup(xprt->xp_netid); in svc_reg()
185 netid = strdup(nconf->nc_netid); in svc_reg()
188 netid = strdup(tnconf->nc_netid); in svc_reg()
192 if ((netid == NULL) && (flag == 1)) { in svc_reg()
198 free(netid); in svc_reg()
206 free(netid); in svc_reg()
214 s->sc_netid = netid; in svc_reg()
219 ((SVCXPRT *) xprt)->xp_netid = strdup(netid); in svc_reg()
331 char *netid) in svc_find() argument
[all …]
H A Drpcb_st_xdr.c66 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { in xdr_rpcbs_addrlist()
118 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { in xdr_rpcbs_rmtcalllist()
156 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { in xdr_rpcbs_rmtcalllist()
184 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { in xdr_rpcbs_rmtcalllist()
H A Dgetnetconfig.c440 getnetconfigent(const char *netid) in getnetconfigent() argument
449 if (netid == NULL || strlen(netid) == 0) { in getnetconfigent()
465 if (strcmp(list->ncp->nc_netid, netid) == 0) { in getnetconfigent()
504 if (strlen(netid) == (size_t) (len = tmpp - stringp) && /* a match */ in getnetconfigent()
505 strncmp(stringp, netid, (size_t)len) == 0) { in getnetconfigent()
H A Drpc_soc.c198 svc_com_create(int fd, u_int sendsize, u_int recvsize, char *netid) in svc_com_create() argument
206 if ((nconf = __rpc_getconfip(netid)) == NULL) { in svc_com_create()
207 (void) syslog(LOG_ERR, "Could not get %s transport", netid); in svc_com_create()
215 "svc%s_create: could not open connection", netid); in svc_com_create()
H A Drpcb_clnt.c144 check_cache(const char *host, const char *netid) in check_cache() argument
152 !strcmp(cptr->ac_netid, netid)) { in check_cache()
155 host, netid); in check_cache()
189 add_cache(const char *host, const char *netid, struct netbuf *taddr, in add_cache() argument
200 ad_cache->ac_netid = strdup(netid); in add_cache()
220 fprintf(stderr, "Added to cache: %s : %s\n", host, netid); in add_cache()
/freebsd/usr.bin/rpcinfo/
H A Drpcinfo.c101 char *netid; member
157 char *netid = NULL; local
243 netid = optarg;
655 if (strcmp(nl->netid, netid) == 0)
662 nl->netid = netid;
688 if (netid == NULL) {
884 if (netid == NULL) {
1206 if (netid) {
1268 nconf = getnetconfigent(netid);
1379 if (netid) {
[all …]
/freebsd/sbin/mount_nfs/
H A Dmount_nfs.c75 const char *netid; member
755 const char *netid, *netid_mnt, *secname; in nfs_tryproto() local
775 if ((nconf = getnetconf_cached(netid)) == NULL) { in nfs_tryproto()
781 netid_mnt = netid; in nfs_tryproto()
827 netid, hostp, spec, in nfs_tryproto()
853 "[%s] %s:%s: CLSET_CONNECT failed", netid, hostp, in nfs_tryproto()
1011 for (p = nc_protos; p->netid != NULL; p++) { in netidbytype()
1014 return (p->netid); in netidbytype()
1027 getnetconf_cached(const char *netid) in getnetconf_cached() argument
1037 if (strcmp(netid, p->nconf->nc_netid) == 0) in getnetconf_cached()
[all …]
/freebsd/usr.sbin/rpcbind/tests/
H A Daddrmerge_test.c296 rpcbind_get_conf(const char* netid __unused) in rpcbind_get_conf()
325 if (0 == strncmp("udp", netid, sizeof("udp"))) in rpcbind_get_conf()
328 else if (0 == strncmp("udp6", netid, sizeof("udp6"))) in rpcbind_get_conf()
344 const char *serv_uaddr, *clnt_uaddr, *netid; in do_addrmerge4() local
362 netid = "udp"; in do_addrmerge4()
363 return (addrmerge(&caller, serv_uaddr, clnt_uaddr, netid)); in do_addrmerge4()
376 const char *serv_uaddr, *clnt_uaddr, *netid; in do_addrmerge6() local
395 netid = "udp6"; in do_addrmerge6()
396 return (addrmerge(&caller, serv_uaddr, clnt_uaddr, netid)); in do_addrmerge6()
405 const char *serv_uaddr, *clnt_uaddr, *netid; in do_addrmerge6_ll() local
[all …]
/freebsd/include/rpc/
H A Drpcb_prot.x278 string netid<>;
290 string netid<>;
503 % char *netid;
517 % char *netid;
/freebsd/sys/rpc/
H A Drpc_generic.c98 const char *netid; member
237 if (strcmp(na_cvt[i].netid, nconf->nc_netid) == 0 || ( in __rpc_nconf2sockinfo()
239 strcmp(na_cvt[i].netid, "local") == 0)) { in __rpc_nconf2sockinfo()
513 char *netid; in __rpc_getconfip() local
541 netid = netid_udp; in __rpc_getconfip()
543 netid = netid_tcp; in __rpc_getconfip()
547 if ((netid == NULL) || (netid[0] == 0)) { in __rpc_getconfip()
550 dummy = getnetconfigent(netid); in __rpc_getconfip()
H A Dgetnetconfig.c112 getnetconfigent(const char *netid) in getnetconfigent() argument
117 if (!strcmp(netid, nconf->nc_netid)) in getnetconfigent()
H A Dsvc.c508 char *netid = NULL; in svc_reg() local
514 netid = strdup(xprt->xp_netid, M_RPC); in svc_reg()
517 netid = strdup(nconf->nc_netid, M_RPC); in svc_reg()
520 if ((netid == NULL) && (flag == 1)) { in svc_reg()
526 if (netid) in svc_reg()
527 free(netid, M_RPC); in svc_reg()
535 if (netid) in svc_reg()
536 free(netid, M_RPC); in svc_reg()
544 s->sc_netid = netid; in svc_reg()
649 && (netid == NULL || s->sc_netid == NULL || in svc_find()
[all …]
H A Drpcb_prot.h291 char *netid; member
305 char *netid; member
441 char *netid;
455 char *netid;
H A Drpcb_clnt.c144 check_cache(host, netid)
145 const char *host, *netid;
153 !strcmp(cptr->ac_netid, netid)) {
156 host, netid);
192 add_cache(host, netid, taddr, uaddr)
193 const char *host, *netid;
205 ad_cache->ac_netid = strdup(netid);
229 fprintf(stderr, "Added to cache: %s : %s\n", host, netid);
/freebsd/usr.sbin/ypserv/
H A DMakefile.yp125 NETID = $(YPSRCDIR)/netid
175 TARGETS+= passwd master.passwd netid
215 netid: netid.byname
607 netid.byname: $(GROUP) $(PASSWD) $(HOSTS)
/freebsd/libexec/mknetid/
H A DMakefile5 MAN= netid.5 mknetid.8
/freebsd/usr.sbin/rpc.lockd/
H A Dlock_proc.c194 const char *netid; in get_client() local
250 netid = "udp6"; in get_client()
252 netid = "udp"; in get_client()
255 netid = "tcp6"; in get_client()
257 netid = "tcp"; in get_client()
259 nconf = getnetconfigent(netid); in get_client()
262 "no /etc/netconfig file?", netid); in get_client()
/freebsd/tools/regression/rpcsec_gss/
H A Drpctest.c84 const char *netid = "tcp"; in test_client() local
100 client = clnt_create(hostname, prog, vers, netid); in test_client()

12