Home
last modified time | relevance | path

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

12

/freebsd-11-stable/usr.sbin/rpcbind/
HDrpcb_stat.c104 rpcbs_getaddr(rpcvers_t rtype, rpcprog_t prog, rpcvers_t vers, char *netid, in rpcbs_getaddr() argument
114 if(al->netid == NULL) in rpcbs_getaddr()
117 (strcmp(al->netid, netid) == 0)) { in rpcbs_getaddr()
125 nconf = rpcbind_get_conf(netid); in rpcbs_getaddr()
135 al->netid = nconf->nc_netid; in rpcbs_getaddr()
149 rpcvers_t vers, rpcproc_t proc, char *netid, rpcblist_ptr rbl) in rpcbs_rmtcall() argument
158 if(rl->netid == NULL) in rpcbs_rmtcall()
163 (strcmp(rl->netid, netid) == 0)) { in rpcbs_rmtcall()
174 nconf = rpcbind_get_conf(netid); in rpcbs_rmtcall()
185 rl->netid = nconf->nc_netid; in rpcbs_rmtcall()
HDcheck_bound.c142 is_bound(char *netid, char *uaddr) in is_bound() argument
147 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in is_bound()
160 mergeaddr(SVCXPRT *xprt, char *netid, char *uaddr, char *saddr) in mergeaddr() argument
167 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in mergeaddr()
216 m_uaddr = addrmerge(svc_getrpccaller(xprt), s_uaddr, c_uaddr, netid); in mergeaddr()
231 rpcbind_get_conf(const char *netid) in rpcbind_get_conf() argument
236 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in rpcbind_get_conf()
HDpmap_svc.c297 char *netid; in pmapproc_getport() local
301 netid = udptrans; in pmapproc_getport()
304 netid = tcptrans; in pmapproc_getport()
315 if (is_bound(netid, serveuaddr)) { in pmapproc_getport()
HDrpcb_svc_com.c74 char *netid; member
516 rmt->netid = strdup(nconf->nc_netid); in create_rmtcall_fd()
517 xprt->xp_netid = rmt->netid; in create_rmtcall_fd()
535 find_rmtcallfd_by_netid(char *netid) in find_rmtcallfd_by_netid() argument
540 if (strcmp(netid, rmt->netid) == 0) { in find_rmtcallfd_by_netid()
1322 find_versions(rpcprog_t prog, char *netid, rpcvers_t *lowvp, rpcvers_t *highvp) in find_versions() argument
1331 (strcasecmp(rbl->rpcb_map.r_netid, netid) != 0))) in find_versions()
1359 find_service(rpcprog_t prog, rpcvers_t vers, char *netid) in find_service() argument
1367 (strcasecmp(rbl->rpcb_map.r_netid, netid) != 0))) in find_service()
HDutil.c116 const char *netid) in addrmerge() argument
133 clnt_uaddr == NULL ? "NULL" : clnt_uaddr, netid); in addrmerge()
136 if ((nconf = rpcbind_get_conf(netid)) == NULL) in addrmerge()
/freebsd-11-stable/lib/libc/rpc/
HDsvc_simple.c133 char *netid; in rpc_reg() local
138 xdrbuf = netid = NULL; in rpc_reg()
144 netid = pl->p_netid; in rpc_reg()
167 ((netid = strdup(nconf->nc_netid)) == NULL)) { in rpc_reg()
170 free(netid); in rpc_reg()
183 (strcmp(pl->p_netid, netid) == 0)) in rpc_reg()
195 (unsigned)versnum, netid); in rpc_reg()
199 free(netid); in rpc_reg()
210 free(netid); in rpc_reg()
223 pl->p_netid = netid; in rpc_reg()
HDrpc_generic.c88 const char *netid; member
238 char *netid; in __rpc_getconfip() local
289 netid = netid_udp; in __rpc_getconfip()
291 netid = netid_tcp; in __rpc_getconfip()
295 if ((netid == NULL) || (netid[0] == 0)) { in __rpc_getconfip()
298 dummy = getnetconfigent(netid); in __rpc_getconfip()
465 const char *netid; in __rpcgettp() local
471 if (!__rpc_sockinfo2netid(&si, &netid)) in __rpcgettp()
475 return getnetconfigent((char *)netid); in __rpcgettp()
521 if (strcmp(na_cvt[i].netid, nconf->nc_netid) == 0 || ( in __rpc_nconf2sockinfo()
[all …]
HDsvc.c181 char *netid = NULL; in svc_reg() local
187 netid = strdup(xprt->xp_netid); in svc_reg()
190 netid = strdup(nconf->nc_netid); in svc_reg()
193 netid = strdup(tnconf->nc_netid); in svc_reg()
197 if ((netid == NULL) && (flag == 1)) { in svc_reg()
202 if ((s = svc_find(prog, vers, &prev, netid)) != NULL) { in svc_reg()
203 free(netid); in svc_reg()
211 free(netid); in svc_reg()
219 s->sc_netid = netid; in svc_reg()
223 if ((xprt->xp_netid == NULL) && (flag == 1) && netid) in svc_reg()
[all …]
HDrpcb_st_xdr.c67 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { in xdr_rpcbs_addrlist()
119 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { in xdr_rpcbs_rmtcalllist()
157 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { in xdr_rpcbs_rmtcalllist()
185 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { in xdr_rpcbs_rmtcalllist()
HDgetnetconfig.c444 getnetconfigent(const char *netid) in getnetconfigent() argument
453 if (netid == NULL || strlen(netid) == 0) { in getnetconfigent()
469 if (strcmp(list->ncp->nc_netid, netid) == 0) { in getnetconfigent()
508 if (strlen(netid) == (size_t) (len = tmpp - stringp) && /* a match */ in getnetconfigent()
509 strncmp(stringp, netid, (size_t)len) == 0) { in getnetconfigent()
HDrpc_soc.c204 svc_com_create(int fd, u_int sendsize, u_int recvsize, char *netid) in svc_com_create() argument
212 if ((nconf = __rpc_getconfip(netid)) == NULL) { in svc_com_create()
213 (void) syslog(LOG_ERR, "Could not get %s transport", netid); in svc_com_create()
221 "svc%s_create: could not open connection", netid); in svc_com_create()
HDrpcb_clnt.c151 check_cache(const char *host, const char *netid) in check_cache() argument
159 !strcmp(cptr->ac_netid, netid)) { in check_cache()
162 host, netid); in check_cache()
196 add_cache(const char *host, const char *netid, struct netbuf *taddr, in add_cache() argument
207 ad_cache->ac_netid = strdup(netid); in add_cache()
227 fprintf(stderr, "Added to cache: %s : %s\n", host, netid); in add_cache()
/freebsd-11-stable/usr.bin/rpcinfo/
HDrpcinfo.c111 char *netid; member
167 char *netid = NULL; local
253 netid = optarg;
261 if (errflg || ((function == ADDRPING) && !netid))
291 deletereg(netid, argc - optind, argv + optind);
294 addrping(address, netid, argc - optind, argv + optind);
297 progping(netid, argc - optind, argv + optind);
301 rpcbdump(function, netid, argc - optind, argv + optind);
307 rpcbaddrlist(netid, argc - optind, argv + optind);
660 add_netid(struct rpcbdump_short *rs, char *netid) argument
[all …]
/freebsd-11-stable/sbin/mount_nfs/
HDmount_nfs.c83 const char *netid; member
138 static struct netconfig *getnetconf_cached(const char *netid);
683 const char *netid, *netid_mnt, *secname; in nfs_tryproto() local
698 if ((netid = netidbytype(ai->ai_family, sotype)) == NULL) { in nfs_tryproto()
703 if ((nconf = getnetconf_cached(netid)) == NULL) { in nfs_tryproto()
704 snprintf(errbuf, sizeof errbuf, "%s: %s", netid, nc_sperror()); in nfs_tryproto()
709 netid_mnt = netid; in nfs_tryproto()
755 netid, hostp, spec, in nfs_tryproto()
766 snprintf(errbuf, sizeof errbuf, "[%s] %s:%s: %s", netid, in nfs_tryproto()
781 "[%s] %s:%s: CLSET_CONNECT failed", netid, hostp, in nfs_tryproto()
[all …]
/freebsd-11-stable/usr.sbin/rpcbind/tests/
HDaddrmerge_test.c283 rpcbind_get_conf(const char* netid __unused) in rpcbind_get_conf()
312 if (0 == strncmp("udp", netid, sizeof("udp"))) in rpcbind_get_conf()
315 else if (0 == strncmp("udp6", netid, sizeof("udp6"))) in rpcbind_get_conf()
331 const char *serv_uaddr, *clnt_uaddr, *netid; in do_addrmerge4() local
349 netid = "udp"; in do_addrmerge4()
350 return (addrmerge(&caller, serv_uaddr, clnt_uaddr, netid)); in do_addrmerge4()
363 const char *serv_uaddr, *clnt_uaddr, *netid; in do_addrmerge6() local
382 netid = "udp6"; in do_addrmerge6()
383 return (addrmerge(&caller, serv_uaddr, clnt_uaddr, netid)); in do_addrmerge6()
392 const char *serv_uaddr, *clnt_uaddr, *netid; in do_addrmerge6_ll() local
[all …]
/freebsd-11-stable/sys/rpc/
HDrpc_generic.c97 const char *netid; member
240 if (strcmp(na_cvt[i].netid, nconf->nc_netid) == 0 || ( in __rpc_nconf2sockinfo()
242 strcmp(na_cvt[i].netid, "local") == 0)) { in __rpc_nconf2sockinfo()
516 char *netid; in __rpc_getconfip() local
544 netid = netid_udp; in __rpc_getconfip()
546 netid = netid_tcp; in __rpc_getconfip()
550 if ((netid == NULL) || (netid[0] == 0)) { in __rpc_getconfip()
553 dummy = getnetconfigent(netid); in __rpc_getconfip()
HDsvc.c504 char *netid = NULL; in svc_reg() local
510 netid = strdup(xprt->xp_netid, M_RPC); in svc_reg()
513 netid = strdup(nconf->nc_netid, M_RPC); in svc_reg()
516 if ((netid == NULL) && (flag == 1)) { in svc_reg()
521 if ((s = svc_find(pool, prog, vers, netid)) != NULL) { in svc_reg()
522 if (netid) in svc_reg()
523 free(netid, M_RPC); in svc_reg()
531 if (netid) in svc_reg()
532 free(netid, M_RPC); in svc_reg()
540 s->sc_netid = netid; in svc_reg()
[all …]
HDgetnetconfig.c113 getnetconfigent(const char *netid) in getnetconfigent() argument
118 if (!strcmp(netid, nconf->nc_netid)) in getnetconfigent()
HDrpcb_prot.h293 char *netid; member
307 char *netid; member
443 char *netid;
457 char *netid;
HDrpcb_clnt.c150 check_cache(host, netid)
151 const char *host, *netid;
159 !strcmp(cptr->ac_netid, netid)) {
162 host, netid);
198 add_cache(host, netid, taddr, uaddr)
199 const char *host, *netid;
211 ad_cache->ac_netid = strdup(netid);
235 fprintf(stderr, "Added to cache: %s : %s\n", host, netid);
/freebsd-11-stable/include/rpc/
HDrpcb_prot.x282 string netid<>;
294 string netid<>;
507 % char *netid;
521 % char *netid;
/freebsd-11-stable/usr.sbin/ypserv/
HDMakefile.yp126 NETID = $(YPSRCDIR)/netid
176 TARGETS+= passwd master.passwd netid
216 netid: netid.byname
608 netid.byname: $(GROUP) $(PASSWD) $(HOSTS)
/freebsd-11-stable/usr.sbin/rpc.lockd/
HDlock_proc.c193 const char *netid; in get_client() local
249 netid = "udp6"; in get_client()
251 netid = "udp"; in get_client()
254 netid = "tcp6"; in get_client()
256 netid = "tcp"; in get_client()
258 nconf = getnetconfigent(netid); in get_client()
261 "no /etc/netconfig file?", netid); in get_client()
/freebsd-11-stable/libexec/mknetid/
HDMakefile6 MAN= netid.5 mknetid.8
/freebsd-11-stable/tools/regression/rpcsec_gss/
HDrpctest.c86 const char *netid = "tcp"; in test_client() local
102 client = clnt_create(hostname, prog, vers, netid); in test_client()

12