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

12

/freebsd-10.1-release/libexec/mknetid/
H A DMakefile6 MAN= netid.5 mknetid.8
/freebsd-10.1-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);
H A Drpcb_svc_com.c74 char *netid; member in struct:rmtcallfd_list
121 * Set a mapping of program, version, netid
209 * Unset a mapping of program, version, netid
515 rmt->netid = strdup(nconf->nc_netid);
516 xprt->xp_netid = rmt->netid;
534 find_rmtcallfd_by_netid(char *netid) argument
539 if (strcmp(netid, rmt->netid) == 0) {
1186 "my_svc_run: polled on forwarding fd %d, netid %s - calling handle_reply\n",
1319 find_versions(rpcprog_t prog, char *netid, rpcvers_ argument
1356 find_service(rpcprog_t prog, rpcvers_t vers, char *netid) argument
[all...]
/freebsd-10.1-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)) {
169 if (netid != NULL)
170 free(netid);
177 * Check if this (program, version, netid) had already been
183 (strcmp(pl->p_netid, 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 if (netid)
205 free(netid);
213 if (netid)
214 free(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 */
439 * getnetconfigent(netid) returns a pointer to the struct netconfig structure
440 * corresponding to netid. It returns NULL if netid is invalid (that is, does
447 getnetconfigent(netid)
448 const char *netid;
457 if (netid == NULL || strlen(netid) == 0) {
466 * db and try find the match netid.
468 * 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);
201 add_cache(host, netid, taddr, uaddr)
202 const char *host, *netid;
214 ad_cache->ac_netid = strdup(netid);
238 fprintf(stderr, "Added to cache: %s : %s\n", host, netid);
351 printf("trying netid
[all...]
H A Dauth_time.c25 * and destroyed. Two strings "netid" and "uaddr" are malloc'd
233 * the machine and *netid is set to the local netid for the transport
235 * is skipped and the uaddr/netid pair are used to fetch the netconfig
241 __rpc_get_time_offset(td, srv, thost, uaddr, netid)
246 struct sockaddr_in *netid; /* known network identifier */
282 srv = get_server(netid, thost, &tsrv, teps, 32);
/freebsd-10.1-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.c465 char *netid = NULL; local
471 netid = strdup(xprt->xp_netid, M_RPC);
474 netid = strdup(nconf->nc_netid, M_RPC);
477 if ((netid == NULL) && (flag == 1)) {
482 if ((s = svc_find(pool, prog, vers, netid)) != NULL) {
483 if (netid)
484 free(netid, M_RPC);
492 if (netid)
493 free(netid, M_RPC);
501 s->sc_netid = netid;
599 svc_find(SVCPOOL *pool, rpcprog_t prog, rpcvers_t vers, char *netid) argument
[all...]
H A Drpcb_clnt.c146 * cache of rpcbind addresses for (host, netid).
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);
348 printf("trying netid
[all...]
/freebsd-10.1-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.1-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.1-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);
892 const char *netid, *netid_mnt; local
908 if ((netid = netidbytype(ai->ai_family, sotype)) == NULL) {
913 if ((nconf = getnetconf_cached(netid)) == NULL) {
914 snprintf(errbuf, sizeof errbuf, "%s: %s", netid, nc_sperror());
917 /* The RPCPROG_MNT netid may be different. */
919 netid_mnt = netid;
964 netid, host
1159 getnetconf_cached(const char *netid) argument
[all...]
/freebsd-10.1-release/usr.sbin/ypserv/
H A DMakefile.yp125 NETID = $(YPSRCDIR)/netid
168 TARGETS+= passwd master.passwd netid
209 netid: netid.byname
570 netid.byname: $(GROUP) $(PASSWD) $(HOSTS)
/freebsd-10.1-release/usr.sbin/rpc.lockd/
H A Dlock_proc.c200 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);

Completed in 239 milliseconds

12