/freebsd/usr.sbin/rpcbind/ |
H A D | rpcb_stat.c | 99 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 D | check_bound.c | 134 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 D | pmap_svc.c | 290 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 D | rpcb_svc_com.c | 73 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 D | 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/lib/libc/rpc/ |
H A D | svc_simple.c | 131 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 D | rpc_generic.c | 86 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 …]
|
H A D | svc.c | 176 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() 197 if ((s = svc_find(prog, vers, &prev, netid)) != NULL) { in svc_reg() 198 free(netid); in svc_reg() 206 free(netid); in svc_reg() 214 s->sc_netid = netid; in svc_reg() 218 if ((xprt->xp_netid == NULL) && (flag == 1) && netid) in svc_reg() [all …]
|
H A D | 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()
|
H A D | getnetconfig.c | 440 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 D | rpc_soc.c | 198 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 D | rpcb_clnt.c | 144 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()
|
H A D | auth_time.c | 236 char **uaddr, struct sockaddr_in *netid) in __rpc_get_time_offset() argument 272 srv = get_server(netid, thost, &tsrv, teps, 32); in __rpc_get_time_offset()
|
/freebsd/usr.bin/rpcinfo/ |
H A D | rpcinfo.c | 101 char *netid; member 157 char *netid = NULL; local 243 netid = optarg; 251 if (errflg || ((function == ADDRPING) && !netid)) 281 deletereg(netid, argc - optind, argv + optind); 284 addrping(address, netid, argc - optind, argv + optind); 287 progping(netid, argc - optind, argv + optind); 291 rpcbdump(function, netid, argc - optind, argv + optind); 297 rpcbaddrlist(netid, argc - optind, argv + optind); 650 add_netid(struct rpcbdump_short *rs, char *netid) argument [all …]
|
/freebsd/usr.sbin/rpcbind/tests/ |
H A D | 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/sbin/mount_nfs/ |
H A D | mount_nfs.c | 75 const char *netid; member 132 static struct netconfig *getnetconf_cached(const char *netid); 763 const char *netid, *netid_mnt, *secname; in nfs_tryproto() local 778 if ((netid = netidbytype(ai->ai_family, sotype)) == NULL) { in nfs_tryproto() 783 if ((nconf = getnetconf_cached(netid)) == NULL) { in nfs_tryproto() 784 snprintf(errbuf, sizeof errbuf, "%s: %s", netid, nc_sperror()); in nfs_tryproto() 789 netid_mnt = netid; in nfs_tryproto() 835 netid, hostp, spec, in nfs_tryproto() 846 snprintf(errbuf, sizeof errbuf, "[%s] %s:%s: %s", netid, in nfs_tryproto() 861 "[%s] %s:%s: CLSET_CONNECT failed", netid, hostp, in nfs_tryproto() [all …]
|
/freebsd/include/rpc/ |
H A D | rpcb_prot.x | 278 string netid<>; 290 string netid<>; 503 % char *netid; 517 % char *netid;
|
/freebsd/sys/rpc/ |
H A D | rpc_generic.c | 98 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 D | svc.c | 508 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() 525 if ((s = svc_find(pool, prog, vers, netid)) != NULL) { 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() [all …]
|
H A D | getnetconfig.c | 112 getnetconfigent(const char *netid) in getnetconfigent() argument 117 if (!strcmp(netid, nconf->nc_netid)) in getnetconfigent()
|
H A D | rpcb_prot.h | 291 char *netid; member 305 char *netid; member 441 char *netid; 455 char *netid;
|
/freebsd/usr.sbin/ypserv/ |
H A D | Makefile.yp | 125 NETID = $(YPSRCDIR)/netid 175 TARGETS+= passwd master.passwd netid 215 netid: netid.byname 607 netid.byname: $(GROUP) $(PASSWD) $(HOSTS)
|
/freebsd/usr.sbin/rpc.lockd/ |
H A D | 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/libexec/mknetid/ |
H A D | Makefile | 4 MAN= netid.5 mknetid.8
|
/freebsd/tools/regression/rpcsec_gss/ |
H A D | rpctest.c | 84 const char *netid = "tcp"; in test_client() local 100 client = clnt_create(hostname, prog, vers, netid); in test_client()
|