/freebsd-10-stable/libexec/mknetid/ |
H A D | Makefile | 6 MAN= netid.5 mknetid.8
|
/freebsd-10-stable/usr.sbin/rpcbind/ |
H A D | rpcb_stat.c | 105 rpcbs_getaddr(rpcvers_t rtype, rpcprog_t prog, rpcvers_t vers, char *netid, argument 115 if(al->netid == NULL) 118 (strcmp(al->netid, netid) == 0)) { 126 nconf = rpcbind_get_conf(netid); 136 al->netid = nconf->nc_netid; 150 rpcvers_t vers, rpcproc_t proc, char *netid, rpcblist_ptr rbl) 159 if(rl->netid == NULL) 164 (strcmp(rl->netid, netid) 149 rpcbs_rmtcall(rpcvers_t rtype, rpcproc_t rpcbproc, rpcprog_t prog, rpcvers_t vers, rpcproc_t proc, char *netid, rpcblist_ptr rbl) argument [all...] |
H A D | check_bound.c | 143 is_bound(char *netid, char *uaddr) argument 148 if (strcmp(fdl->nconf->nc_netid, netid) == 0) 161 mergeaddr(SVCXPRT *xprt, char *netid, char *uaddr, char *saddr) argument 168 if (strcmp(fdl->nconf->nc_netid, netid) == 0) 217 m_uaddr = addrmerge(svc_getrpccaller(xprt), s_uaddr, c_uaddr, netid); 232 rpcbind_get_conf(const char *netid) argument 237 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
|
H A D | pmap_svc.c | 298 char *netid; local 302 netid = udptrans; 305 netid = tcptrans; 316 if (is_bound(netid, serveuaddr)) {
|
H A D | util.c | 114 const char *netid) 131 clnt_uaddr == NULL ? "NULL" : clnt_uaddr, netid); 134 if ((nconf = rpcbind_get_conf(netid)) == NULL) 113 addrmerge(struct netbuf *caller, const char *serv_uaddr, const char *clnt_uaddr, const char *netid) argument
|
H A D | rpcbind.h | 136 const char *clnt_uaddr, char const *netid);
|
H A D | rpcb_svc_com.c | 75 char *netid; member in struct:rmtcallfd_list 122 * Set a mapping of program, version, netid 210 * Unset a mapping of program, version, netid 517 rmt->netid = strdup(nconf->nc_netid); 518 xprt->xp_netid = rmt->netid; 536 find_rmtcallfd_by_netid(char *netid) argument 541 if (strcmp(netid, rmt->netid) == 0) { 1188 "my_svc_run: polled on forwarding fd %d, netid %s - calling handle_reply\n", 1321 find_versions(rpcprog_t prog, char *netid, rpcvers_ argument 1358 find_service(rpcprog_t prog, rpcvers_t vers, char *netid) argument [all...] |
/freebsd-10-stable/lib/libc/rpc/ |
H A D | svc_simple.c | 90 * handle is created for all the services (actually one of each netid) 91 * and same xdrbuf is used for same netid. The size of the arguments 133 char *netid; local 138 xdrbuf = netid = NULL; 144 netid = pl->p_netid; 167 ((netid = strdup(nconf->nc_netid)) == NULL)) { 170 free(netid); 177 * Check if this (program, version, netid) had already been 183 (strcmp(pl->p_netid, netid) == 0)) 195 (unsigned)versnum, netid); [all...] |
H A D | rpc_generic.c | 89 const char *netid; member in struct:netid_af 239 char *netid; local 290 netid = netid_udp; 292 netid = netid_tcp; 296 if ((netid == NULL) || (netid[0] == 0)) { 299 dummy = getnetconfigent(netid); 466 const char *netid; local 472 if (!__rpc_sockinfo2netid(&si, &netid)) 476 return getnetconfigent((char *)netid); 550 __rpc_sockinfo2netid(struct __rpc_sockinfo *sip, const char **netid) argument [all...] |
H A D | svc.c | 181 char *netid = NULL; local 187 netid = strdup(xprt->xp_netid); 190 netid = strdup(nconf->nc_netid); 193 netid = strdup(tnconf->nc_netid); 197 if ((netid == NULL) && (flag == 1)) { 202 if ((s = svc_find(prog, vers, &prev, netid)) != NULL) { 203 free(netid); 211 free(netid); 219 s->sc_netid = netid; 223 if ((xprt->xp_netid == NULL) && (flag == 1) && netid) 335 svc_find(rpcprog_t prog, rpcvers_t vers, struct svc_callout **prev, char *netid) argument [all...] |
H A D | rpcb_st_xdr.c | 67 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { 119 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { 158 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { 186 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) {
|
H A D | getnetconfig.c | 71 #define NC_NOTFOUND ENOPROTOOPT /* specified netid was not found */ 436 * getnetconfigent(netid) returns a pointer to the struct netconfig structure 437 * corresponding to netid. It returns NULL if netid is invalid (that is, does 444 getnetconfigent(const char *netid) argument 453 if (netid == NULL || strlen(netid) == 0) { 462 * db and try find the match netid. 464 * there is no match for the netid, return NULL. 469 if (strcmp(list->ncp->nc_netid, netid) [all...] |
H A D | rpc_soc.c | 204 svc_com_create(int fd, u_int sendsize, u_int recvsize, char *netid) argument 212 if ((nconf = __rpc_getconfip(netid)) == NULL) { 213 (void) syslog(LOG_ERR, "Could not get %s transport", netid); 221 "svc%s_create: could not open connection", netid); 332 * Dont care about netid here.
|
H A D | auth_time.c | 25 * and destroyed. Two strings "netid" and "uaddr" are malloc'd 226 * the machine and *netid is set to the local netid for the transport 228 * is skipped and the uaddr/netid pair are used to fetch the netconfig 237 * netid - known network identifier 241 char **uaddr, struct sockaddr_in *netid) 277 srv = get_server(netid, thost, &tsrv, teps, 32); 240 __rpc_get_time_offset(struct timeval *td, nis_server *srv, char *thost, char **uaddr, struct sockaddr_in *netid) argument
|
/freebsd-10-stable/sys/rpc/ |
H A D | getnetconfig.c | 113 getnetconfigent(const char *netid) argument 118 if (!strcmp(netid, nconf->nc_netid))
|
H A D | rpc_generic.c | 97 const char *netid; member in struct:netid_af 240 if (strcmp(na_cvt[i].netid, nconf->nc_netid) == 0 || ( 242 strcmp(na_cvt[i].netid, "local") == 0)) { 516 char *netid; local 544 netid = netid_udp; 546 netid = netid_tcp; 550 if ((netid == NULL) || (netid[0] == 0)) { 553 dummy = getnetconfigent(netid);
|
H A D | rpcb_prot.h | 62 * [prog, vers, address, owner, netid]. 63 * Finds out owner and netid information on its own. 67 * [prog, vers, netid]. addresses is ignored. 68 * If netid is NULL, unregister all. 72 * triple [prog, vers, netid] is registered. Ignore address and owner. 109 * triple [prog, vers, netid] is registered. Ignore address and owner. 293 char *netid; member in struct:rpcbs_addrlist 307 char *netid; member in struct:rpcbs_rmtcalllist 443 char *netid; member in struct:rpcbs_addrlist 457 char *netid; member in struct:rpcbs_rmtcalllist [all...] |
H A D | svc.c | 504 char *netid = NULL; local 510 netid = strdup(xprt->xp_netid, M_RPC); 513 netid = strdup(nconf->nc_netid, M_RPC); 516 if ((netid == NULL) && (flag == 1)) { 521 if ((s = svc_find(pool, prog, vers, netid)) != NULL) { 522 if (netid) 523 free(netid, M_RPC); 531 if (netid) 532 free(netid, M_RPC); 540 s->sc_netid = netid; 638 svc_find(SVCPOOL *pool, rpcprog_t prog, rpcvers_t vers, char *netid) argument [all...] |
/freebsd-10-stable/usr.bin/rpcinfo/ |
H A D | rpcinfo.c | 111 char *netid; member in struct:netidlist 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); 658 add_netid(struct rpcbdump_short *rs, char *netid) argument 677 rpcbdump(int dumptype, char *netid, int argc, char **argv) argument 879 rpcbaddrlist(char *netid, int argc, char **argv) argument 1208 deletereg(char *netid, int argc, char **argv) argument 1263 addrping(char *address, char *netid, int argc, char **argv) argument 1365 progping(char *netid, int argc, char **argv) argument [all...] |
/freebsd-10-stable/usr.sbin/rpcbind/tests/ |
H A D | addrmerge_test.c | 283 rpcbind_get_conf(const char* netid __unused) 312 if (0 == strncmp("udp", netid, sizeof("udp"))) 315 else if (0 == strncmp("udp6", netid, sizeof("udp6"))) 331 const char *serv_uaddr, *clnt_uaddr, *netid; local 349 netid = "udp"; 350 return (addrmerge(&caller, serv_uaddr, clnt_uaddr, netid)); 363 const char *serv_uaddr, *clnt_uaddr, *netid; local 382 netid = "udp6"; 383 return (addrmerge(&caller, serv_uaddr, clnt_uaddr, netid)); 392 const char *serv_uaddr, *clnt_uaddr, *netid; local [all...] |
/freebsd-10-stable/include/rpc/ |
H A D | rpcb_prot.x | 57 % * [prog, vers, address, owner, netid]. 58 % * Finds out owner and netid information on its own. 62 % * [prog, vers, netid]. addresses is ignored. 63 % * If netid is NULL, unregister all. 67 % * triple [prog, vers, netid] is registered. Ignore address and owner. 104 % * triple [prog, vers, netid] is registered. Ignore address and owner. 245 string r_nc_netid<>; /* netid field */ 282 string netid<>; 294 string netid<>; 507 % char *netid; [all...] |
/freebsd-10-stable/sbin/mount_nfs/ |
H A D | mount_nfs.c | 81 /* Table for af,sotype -> netid conversions. */ 83 const char *netid; member in struct:nc_protos 138 static struct netconfig *getnetconf_cached(const char *netid); 682 const char *netid, *netid_mnt, *secname; local 697 if ((netid = netidbytype(ai->ai_family, sotype)) == NULL) { 702 if ((nconf = getnetconf_cached(netid)) == NULL) { 703 snprintf(errbuf, sizeof errbuf, "%s: %s", netid, nc_sperror()); 706 /* The RPCPROG_MNT netid may be different. */ 708 netid_mnt = netid; 754 netid, host 954 getnetconf_cached(const char *netid) argument [all...] |
/freebsd-10-stable/usr.sbin/ypserv/ |
H A D | Makefile.yp | 126 NETID = $(YPSRCDIR)/netid 176 TARGETS+= passwd master.passwd netid 216 netid: netid.byname 608 netid.byname: $(GROUP) $(PASSWD) $(HOSTS)
|
/freebsd-10-stable/usr.sbin/rpc.lockd/ |
H A D | lock_proc.c | 200 const char *netid; local 256 netid = "udp6"; 258 netid = "udp"; 261 netid = "tcp6"; 263 netid = "tcp"; 265 nconf = getnetconfigent(netid); 268 "no /etc/netconfig file?", netid);
|
/freebsd-10-stable/tools/regression/rpcsec_gss/ |
H A D | rpctest.c | 86 const char *netid = "tcp"; local 102 client = clnt_create(hostname, prog, vers, netid);
|