Searched refs:netid (Results 1 - 25 of 37) sorted by relevance

12

/freebsd-10.3-release/libexec/mknetid/
H A DMakefile6 MAN= netid.5 mknetid.8
/freebsd-10.3-release/contrib/netbsd-tests/fs/nfs/nfsservice/rpcbind/
H A Drpcb_stat.c104 const char *netid, const char *uaddr)
113 if(al->netid == NULL)
116 (strcmp(al->netid, netid) == 0)) {
124 nconf = rpcbind_get_conf(netid);
134 al->netid = nconf->nc_netid;
148 rpcvers_t vers, rpcproc_t proc, char *netid, rpcblist_ptr rbl)
157 if(rl->netid == NULL)
162 (strcmp(rl->netid, netid)
103 rpcbs_getaddr(rpcvers_t rtype, rpcprog_t prog, rpcvers_t vers, const char *netid, const char *uaddr) argument
147 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 Dcheck_bound.c142 is_bound(const char *netid, const char *uaddr) argument
147 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
160 mergeaddr(SVCXPRT *xprt, char *netid, char *uaddr, char *saddr) argument
166 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
205 m_uaddr = addrmerge(svc_getrpccaller(xprt), s_uaddr, c_uaddr, netid);
221 rpcbind_get_conf(const char *netid) argument
226 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
H A Dpmap_svc.c296 const char *netid, *ua; local
300 netid = udptrans;
303 netid = tcptrans;
314 if (is_bound(netid, serveuaddr)) {
H A Drpcbind.h138 char *netid);
H A Dutil.c106 char *netid)
130 clnt_uaddr, netid);
132 nconf = getnetconfigent(netid);
105 addrmerge(struct netbuf *caller, char *serv_uaddr, char *clnt_uaddr, char *netid) argument
/freebsd-10.3-release/usr.sbin/rpcbind/
H A Drpcb_stat.c105 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 Dcheck_bound.c142 is_bound(char *netid, char *uaddr) argument
147 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
160 mergeaddr(SVCXPRT *xprt, char *netid, char *uaddr, char *saddr) argument
166 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
205 m_uaddr = addrmerge(svc_getrpccaller(xprt), s_uaddr, c_uaddr, netid);
221 rpcbind_get_conf(char *netid) argument
226 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
H A Dpmap_svc.c298 char *netid; local
302 netid = udptrans;
305 netid = tcptrans;
316 if (is_bound(netid, serveuaddr)) {
H A Dutil.c90 char *netid)
103 clnt_uaddr == NULL ? "NULL" : clnt_uaddr, netid);
106 if ((nconf = rpcbind_get_conf(netid)) == NULL)
89 addrmerge(struct netbuf *caller, char *serv_uaddr, char *clnt_uaddr, char *netid) argument
H A Drpcbind.h136 char *netid);
/freebsd-10.3-release/lib/libc/rpc/
H A Dsvc_simple.c90 * 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
131 char *netid; local
136 xdrbuf = netid = NULL;
142 netid = pl->p_netid;
165 ((netid = strdup(nconf->nc_netid)) == NULL)) {
168 free(netid);
175 * Check if this (program, version, netid) had already been
181 (strcmp(pl->p_netid, netid) == 0))
193 (unsigned)versnum, netid);
[all...]
H A Drpc_generic.c89 const char *netid; member in struct:netid_af
243 char *netid; local
294 netid = netid_udp;
296 netid = netid_tcp;
300 if ((netid == NULL) || (netid[0] == 0)) {
303 dummy = getnetconfigent(netid);
475 const char *netid; local
481 if (!__rpc_sockinfo2netid(&si, &netid))
485 return getnetconfigent((char *)netid);
559 __rpc_sockinfo2netid(struct __rpc_sockinfo *sip, const char **netid) argument
[all...]
H A Dsvc.c182 char *netid = NULL; local
188 netid = strdup(xprt->xp_netid);
191 netid = strdup(nconf->nc_netid);
194 netid = strdup(tnconf->nc_netid);
198 if ((netid == NULL) && (flag == 1)) {
203 if ((s = svc_find(prog, vers, &prev, netid)) != NULL) {
204 free(netid);
212 free(netid);
220 s->sc_netid = netid;
224 if ((xprt->xp_netid == NULL) && (flag == 1) && netid)
[all...]
H A Drpcb_st_xdr.c68 if (!xdr_string(xdrs, &objp->netid, (u_int)~0)) {
122 if (!xdr_string(xdrs, &objp->netid, (u_int)~0)) {
161 if (!xdr_string(xdrs, &objp->netid, (u_int)~0)) {
189 if (!xdr_string(xdrs, &objp->netid, (u_int)~0)) {
H A Dgetnetconfig.c71 #define NC_NOTFOUND ENOPROTOOPT /* specified netid was not found */
438 * getnetconfigent(netid) returns a pointer to the struct netconfig structure
439 * corresponding to netid. It returns NULL if netid is invalid (that is, does
446 getnetconfigent(netid)
447 const char *netid;
456 if (netid == NULL || strlen(netid) == 0) {
465 * db and try find the match netid.
467 * there is no match for the netid, retur
[all...]
H A Drpc_soc.c227 svc_com_create(fd, sendsize, recvsize, netid)
231 char *netid;
239 if ((nconf = __rpc_getconfip(netid)) == NULL) {
240 (void) syslog(LOG_ERR, "Could not get %s transport", netid);
248 "svc%s_create: could not open connection", netid);
373 * Dont care about netid here.
H A Drpcb_clnt.c149 * cache of rpcbind addresses for (host, netid).
153 check_cache(host, netid)
154 const char *host, *netid;
162 !strcmp(cptr->ac_netid, netid)) {
165 host, netid);
200 add_cache(host, netid, taddr, uaddr)
201 const char *host, *netid;
213 ad_cache->ac_netid = strdup(netid);
233 fprintf(stderr, "Added to cache: %s : %s\n", host, netid);
345 printf("trying netid
[all...]
/freebsd-10.3-release/sys/rpc/
H A Dgetnetconfig.c113 getnetconfigent(const char *netid) argument
118 if (!strcmp(netid, nconf->nc_netid))
H A Drpc_generic.c97 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 Drpcb_prot.h62 * [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 Dsvc.c466 char *netid = NULL; local
472 netid = strdup(xprt->xp_netid, M_RPC);
475 netid = strdup(nconf->nc_netid, M_RPC);
478 if ((netid == NULL) && (flag == 1)) {
483 if ((s = svc_find(pool, prog, vers, netid)) != NULL) {
484 if (netid)
485 free(netid, M_RPC);
493 if (netid)
494 free(netid, M_RPC);
502 s->sc_netid = netid;
600 svc_find(SVCPOOL *pool, rpcprog_t prog, rpcvers_t vers, char *netid) argument
[all...]
/freebsd-10.3-release/usr.bin/rpcinfo/
H A Drpcinfo.c111 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.3-release/include/rpc/
H A Drpcb_prot.x57 % * [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.3-release/sbin/mount_nfs/
H A Dmount_nfs.c81 /* 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...]

Completed in 210 milliseconds

12