| /freebsd-14-stable/usr.sbin/rpcbind/ |
| HD | rpcb_stat.c | 104 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()
|
| HD | check_bound.c | 142 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() 215 m_uaddr = addrmerge(svc_getrpccaller(xprt), s_uaddr, c_uaddr, netid); in mergeaddr() 230 rpcbind_get_conf(const char *netid) in rpcbind_get_conf() argument 235 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in rpcbind_get_conf()
|
| HD | pmap_svc.c | 298 char *netid; in pmapproc_getport() local 302 netid = udptrans; in pmapproc_getport() 305 netid = tcptrans; in pmapproc_getport() 316 if (is_bound(netid, serveuaddr)) { in pmapproc_getport()
|
| HD | rpcb_svc_com.c | 75 char *netid; member 511 rmt->netid = strdup(nconf->nc_netid); in create_rmtcall_fd() 512 xprt->xp_netid = rmt->netid; in create_rmtcall_fd() 530 find_rmtcallfd_by_netid(char *netid) in find_rmtcallfd_by_netid() argument 535 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() 1358 find_service(rpcprog_t prog, rpcvers_t vers, char *netid) in find_service() argument 1366 (strcasecmp(rbl->rpcb_map.r_netid, netid) != 0))) in find_service()
|
| HD | util.c | 113 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-14-stable/lib/libc/rpc/ |
| HD | svc_simple.c | 132 char *netid; in rpc_reg() local 137 xdrbuf = netid = NULL; in rpc_reg() 143 netid = pl->p_netid; in rpc_reg() 166 ((netid = strdup(nconf->nc_netid)) == NULL)) { in rpc_reg() 169 free(netid); in rpc_reg() 182 (strcmp(pl->p_netid, netid) == 0)) in rpc_reg() 194 (unsigned)versnum, netid); in rpc_reg() 198 free(netid); in rpc_reg() 209 free(netid); in rpc_reg() 222 pl->p_netid = netid; in rpc_reg()
|
| HD | rpc_generic.c | 87 const char *netid; member 214 char *netid; in __rpc_getconfip() local 265 netid = netid_udp; in __rpc_getconfip() 267 netid = netid_tcp; in __rpc_getconfip() 271 if ((netid == NULL) || (netid[0] == 0)) { in __rpc_getconfip() 274 dummy = getnetconfigent(netid); in __rpc_getconfip() 441 const char *netid; in __rpcgettp() local 447 if (!__rpc_sockinfo2netid(&si, &netid)) in __rpcgettp() 451 return getnetconfigent((char *)netid); in __rpcgettp() 497 if (strcmp(na_cvt[i].netid, nconf->nc_netid) == 0 || ( in __rpc_nconf2sockinfo() [all …]
|
| HD | svc.c | 180 char *netid = NULL; in svc_reg() local 186 netid = strdup(xprt->xp_netid); in svc_reg() 189 netid = strdup(nconf->nc_netid); in svc_reg() 192 netid = strdup(tnconf->nc_netid); in svc_reg() 196 if ((netid == NULL) && (flag == 1)) { in svc_reg() 201 if ((s = svc_find(prog, vers, &prev, netid)) != NULL) { in svc_reg() 202 free(netid); in svc_reg() 210 free(netid); in svc_reg() 218 s->sc_netid = netid; in svc_reg() 222 if ((xprt->xp_netid == NULL) && (flag == 1) && netid) in svc_reg() [all …]
|
| HD | rpcb_st_xdr.c | 66 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()
|
| HD | getnetconfig.c | 443 getnetconfigent(const char *netid) in getnetconfigent() argument 452 if (netid == NULL || strlen(netid) == 0) { in getnetconfigent() 468 if (strcmp(list->ncp->nc_netid, netid) == 0) { in getnetconfigent() 507 if (strlen(netid) == (size_t) (len = tmpp - stringp) && /* a match */ in getnetconfigent() 508 strncmp(stringp, netid, (size_t)len) == 0) { in getnetconfigent()
|
| HD | rpc_soc.c | 203 svc_com_create(int fd, u_int sendsize, u_int recvsize, char *netid) in svc_com_create() argument 211 if ((nconf = __rpc_getconfip(netid)) == NULL) { in svc_com_create() 212 (void) syslog(LOG_ERR, "Could not get %s transport", netid); in svc_com_create() 220 "svc%s_create: could not open connection", netid); in svc_com_create()
|
| HD | rpcb_clnt.c | 150 check_cache(const char *host, const char *netid) in check_cache() argument 158 !strcmp(cptr->ac_netid, netid)) { in check_cache() 161 host, netid); in check_cache() 195 add_cache(const char *host, const char *netid, struct netbuf *taddr, in add_cache() argument 206 ad_cache->ac_netid = strdup(netid); in add_cache() 226 fprintf(stderr, "Added to cache: %s : %s\n", host, netid); in add_cache()
|
| /freebsd-14-stable/usr.bin/rpcinfo/ |
| HD | rpcinfo.c | 109 char *netid; member 165 char *netid = NULL; local 251 netid = optarg; 259 if (errflg || ((function == ADDRPING) && !netid)) 289 deletereg(netid, argc - optind, argv + optind); 292 addrping(address, netid, argc - optind, argv + optind); 295 progping(netid, argc - optind, argv + optind); 299 rpcbdump(function, netid, argc - optind, argv + optind); 305 rpcbaddrlist(netid, argc - optind, argv + optind); 658 add_netid(struct rpcbdump_short *rs, char *netid) argument [all …]
|
| /freebsd-14-stable/usr.sbin/rpcbind/tests/ |
| HD | addrmerge_test.c | 296 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-14-stable/sbin/mount_nfs/ |
| HD | mount_nfs.c | 87 const char *netid; member 144 static struct netconfig *getnetconf_cached(const char *netid); 775 const char *netid, *netid_mnt, *secname; in nfs_tryproto() local 790 if ((netid = netidbytype(ai->ai_family, sotype)) == NULL) { in nfs_tryproto() 795 if ((nconf = getnetconf_cached(netid)) == NULL) { in nfs_tryproto() 796 snprintf(errbuf, sizeof errbuf, "%s: %s", netid, nc_sperror()); in nfs_tryproto() 801 netid_mnt = netid; in nfs_tryproto() 847 netid, hostp, spec, in nfs_tryproto() 858 snprintf(errbuf, sizeof errbuf, "[%s] %s:%s: %s", netid, in nfs_tryproto() 873 "[%s] %s:%s: CLSET_CONNECT failed", netid, hostp, in nfs_tryproto() [all …]
|
| /freebsd-14-stable/include/rpc/ |
| HD | rpcb_prot.x | 280 string netid<>; 292 string netid<>; 505 % char *netid; 519 % char *netid;
|
| /freebsd-14-stable/sys/rpc/ |
| HD | rpc_generic.c | 99 const char *netid; member 241 if (strcmp(na_cvt[i].netid, nconf->nc_netid) == 0 || ( in __rpc_nconf2sockinfo() 243 strcmp(na_cvt[i].netid, "local") == 0)) { in __rpc_nconf2sockinfo() 517 char *netid; in __rpc_getconfip() local 545 netid = netid_udp; in __rpc_getconfip() 547 netid = netid_tcp; in __rpc_getconfip() 551 if ((netid == NULL) || (netid[0] == 0)) { in __rpc_getconfip() 554 dummy = getnetconfigent(netid); in __rpc_getconfip()
|
| HD | getnetconfig.c | 113 getnetconfigent(const char *netid) in getnetconfigent() argument 118 if (!strcmp(netid, nconf->nc_netid)) in getnetconfigent()
|
| HD | svc.c | 512 char *netid = NULL; in svc_reg() local 518 netid = strdup(xprt->xp_netid, M_RPC); in svc_reg() 521 netid = strdup(nconf->nc_netid, M_RPC); in svc_reg() 524 if ((netid == NULL) && (flag == 1)) { in svc_reg() 529 if ((s = svc_find(pool, prog, vers, netid)) != NULL) { in svc_reg() 530 if (netid) in svc_reg() 531 free(netid, M_RPC); in svc_reg() 539 if (netid) in svc_reg() 540 free(netid, M_RPC); in svc_reg() 548 s->sc_netid = netid; in svc_reg() [all …]
|
| HD | rpcb_prot.h | 293 char *netid; member 307 char *netid; member 443 char *netid; 457 char *netid;
|
| HD | rpcb_clnt.c | 150 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-14-stable/usr.sbin/ypserv/ |
| HD | Makefile.yp | 125 NETID = $(YPSRCDIR)/netid 175 TARGETS+= passwd master.passwd netid 215 netid: netid.byname 607 netid.byname: $(GROUP) $(PASSWD) $(HOSTS)
|
| /freebsd-14-stable/usr.sbin/rpc.lockd/ |
| HD | lock_proc.c | 194 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-14-stable/libexec/mknetid/ |
| HD | Makefile | 5 MAN= netid.5 mknetid.8
|
| /freebsd-14-stable/tools/regression/rpcsec_gss/ |
| HD | rpctest.c | 84 const char *netid = "tcp"; in test_client() local 100 client = clnt_create(hostname, prog, vers, netid); in test_client()
|