HomeSort by: relevance | last modified time | path
    Searched defs:nconf (Results 1 - 22 of 22) sorted by relevancy

  /src/lib/libc/rpc/
pmap_clnt.c 75 struct netconfig *nconf; local in function:__weak_alias
81 nconf = __rpc_getconfip(protocol == IPPROTO_UDP ? "udp" : "tcp");
82 if (nconf == NULL) {
87 na = uaddr2taddr(nconf, buf);
89 freenetconfigent(nconf);
92 rslt = rpcb_set((rpcprog_t)program, (rpcvers_t)version, nconf, na);
94 freenetconfigent(nconf);
105 struct netconfig *nconf; local in function:pmap_unset
109 nconf = __rpc_getconfip("udp");
110 if (nconf != NULL)
    [all...]
svc_generic.c 102 struct netconfig *nconf; local in function:svc_create
111 while ((nconf = __rpc_getconf(handle)) != NULL) {
114 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) {
116 (void) rpcb_unset(prognum, versnum, nconf);
118 dispatch, nconf) == FALSE)
122 (unsigned)versnum, nconf->nc_netid);
130 xprt = svc_tp_create(dispatch, prognum, versnum, nconf);
156 * It tries to create a server for "nconf" and registers the service
164 const struct netconfig *nconf) /* Netconfig structure for the network */
168 if (nconf == NULL)
    [all...]
clnt_generic.c 158 struct netconfig *nconf; local in function:clnt_create
173 if ((nconf = __rpc_getconf(handle)) == NULL) {
179 printf("trying netid %s\n", nconf->nc_netid);
181 clnt = clnt_tp_create(hostname, prog, vers, nconf);
229 const struct netconfig *nconf) /* net config struct */
235 /* nconf is handled below */
237 if (nconf == NULL) {
245 if ((svcaddr = __rpcb_findaddr(prog, vers, nconf, hostname,
251 cl = clnt_tli_create(RPC_ANYFD, nconf, svcaddr,
257 cl->cl_netid = strdup(nconf->nc_netid)
    [all...]
rpc_soc.c 114 struct netconfig *nconf; local in function:clnt_com_create
124 if ((nconf = __rpc_getconfip(tp)) == NULL) {
130 fd = __rpc_nconf2fd(nconf);
156 cl = clnt_tli_create(fd, nconf, &bindaddr, prog, vers,
166 (void) freenetconfigent(nconf);
178 (void) freenetconfigent(nconf);
228 struct netconfig *nconf; local in function:svc_com_create
236 if ((nconf = __rpc_getconfip(netid)) == NULL) {
241 fd = __rpc_nconf2fd(nconf);
243 (void) freenetconfigent(nconf);
    [all...]
svc_simple.c 114 struct netconfig *nconf; local in function:rpc_reg
132 while ((nconf = __rpc_getconf(handle)) != NULL) {
146 if (strcmp(pl->p_netid, nconf->nc_netid) == 0) {
157 svcxprt = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0);
172 ((netid = strdup(nconf->nc_netid)) == NULL)) {
193 (void) rpcb_unset(prognum, versnum, nconf);
196 nconf = NULL;
199 if (!svc_reg(svcxprt, prognum, versnum, universal, nconf)) {
rpc_generic.c 278 struct netconfig *nconf; local in function:__rpc_getconfip
285 while ((nconf = getnetconfig(confighandle)) != NULL) {
286 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) {
287 if (strcmp(nconf->nc_proto, NC_TCP) == 0) {
288 netid_tcp = strdup(nconf->nc_netid);
301 if (strcmp(nconf->nc_proto, NC_UDP) == 0) {
302 netid_udp = strdup(nconf->nc_netid);
386 struct netconfig *nconf; local in function:__rpc_getconf
394 nconf = getnetpath(handle->nhandle);
396 nconf = getnetconfig(handle->nhandle)
    [all...]
clnt_bcast.c 282 struct netconfig *nconf; /* Netconfig structure */ member in struct:rpc_broadcast_exp::__anonc551187e0108
293 struct netconfig *nconf; local in function:rpc_broadcast_exp
325 while ((nconf = __rpc_getconf(handle)) != NULL) {
329 if (nconf->nc_semantics != NC_TPI_CLTS)
333 if (!__rpc_nconf2sockinfo(nconf, &si))
349 fdlist[fdlistno].nconf = nconf;
487 fdlist[i].nconf->nc_netid);
510 fdlist[i].nconf->nc_netid);
558 fdlist[i].nconf->nc_netid)
    [all...]
rpcb_clnt.c 305 getclnthandle(const char *host, const struct netconfig *nconf, char **targaddr)
316 _DIAGASSERT(nconf != NULL);
326 ad_cache = check_cache(host, nconf->nc_netid);
329 client = clnt_tli_create(RPC_ANYFD, nconf, addr,
356 if (!__rpc_nconf2sockinfo(nconf, &si)) {
368 nconf->nc_netid, si.si_af, si.si_proto, si.si_socktype);
384 ua = taddr2uaddr(nconf, &taddr);
402 client = clnt_tli_create(RPC_ANYFD, nconf, &taddr,
411 tmpaddr = targaddr ? taddr2uaddr(nconf, &taddr) : NULL;
412 add_cache(host, nconf->nc_netid, &taddr, tmpaddr)
477 struct netconfig *nconf, *tmpnconf = NULL; local in function:local_rpcb
1145 struct netconfig *nconf; local in function:rpcb_gettime
    [all...]
svc_dg.c 485 struct netconfig *nconf; local in function:cache_set
533 if (nconf = getnetconfigent(xprt->xp_netid)) {
534 uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr);
535 freenetconfigent(nconf);
577 struct netconfig *nconf; local in function:cache_get
600 if (nconf = getnetconfigent(xprt->xp_netid)) {
601 uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr);
602 freenetconfigent(nconf);
  /src/usr.sbin/rpcbind/
rpcb_stat.c 107 struct netconfig *nconf; local in function:rpcbs_getaddr
124 nconf = rpcbind_get_conf(netid);
125 if (nconf == NULL) {
134 al->netid = nconf->nc_netid;
151 struct netconfig *nconf; local in function:rpcbs_rmtcall
173 nconf = rpcbind_get_conf(netid);
174 if (nconf == NULL) {
184 rl->netid = nconf->nc_netid;
check_bound.c 70 struct netconfig *nconf; member in struct:fdlist
96 na = uaddr2taddr(fdl->nconf, uaddr);
100 fd = __rpc_nconf2fd(fdl->nconf);
121 add_bndlist(struct netconfig *nconf, struct netbuf *baddr __unused)
126 newnconf = getnetconfigent(nconf->nc_netid);
135 fdl->nconf = newnconf;
156 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
175 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
193 c_uaddr = taddr2uaddr(fdl->nconf, &xprt->xp_rtaddr);
198 c_uaddr = taddr2uaddr(fdl->nconf, svc_getrpccaller(xprt))
    [all...]
rpcb_svc_4.c 330 struct netconfig *nconf; local in function:rpcbproc_getaddrlist_4_local
355 nconf = rpcbind_get_conf(rbl->rpcb_map.r_netid);
356 if (nconf == NULL)
358 if (strcmp(nconf->nc_protofmly, reg_nconf->nc_protofmly)
395 a->r_nc_netid = nconf->nc_netid;
396 a->r_nc_semantics = nconf->nc_semantics;
397 a->r_nc_protofmly = nconf->nc_protofmly;
398 a->r_nc_proto = nconf->nc_proto;
util.c 106 struct netconfig *nconf; local in function:addrmerge
120 nconf = getnetconfigent(netid);
121 if (nconf == NULL)
130 serv_nbp = uaddr2taddr(nconf, serv_uaddr);
136 clnt_nbp = uaddr2taddr(nconf, clnt_uaddr);
282 ret = taddr2uaddr(nconf, &tbuf);
284 freenetconfigent(nconf);
rpcbind.c 152 struct netconfig *nconf; local in function:main
197 nconf = getnetconfigent("local");
198 if (nconf == NULL)
203 init_transport(nconf);
205 while ((nconf = getnetconfig(nc_handle))) {
206 if (nconf->nc_flag & NC_VISIBLE) {
207 if (ipv6_only == 1 && strcmp(nconf->nc_protofmly,
211 init_transport(nconf);
280 init_transport(struct netconfig *nconf)
299 if ((nconf->nc_semantics != NC_TPI_CLTS) &
    [all...]
rpcb_svc_com.c 382 struct netconfig *nconf; local in function:rpcbproc_uaddr2taddr_com
391 if (((nconf = rpcbind_get_conf(transp->xp_netid)) == NULL) ||
392 ((taddr = uaddr2taddr(nconf, *uaddrp)) == NULL)) {
410 struct netconfig *nconf; local in function:rpcbproc_taddr2uaddr_com
424 if (((nconf = rpcbind_get_conf(transp->xp_netid)) == NULL) ||
425 ((uaddr = taddr2uaddr(nconf, taddr)) == NULL)) {
503 create_rmtcall_fd(struct netconfig *nconf)
509 if ((fd = __rpc_nconf2fd(nconf)) == -1) {
512 __func__, nconf->nc_device, strerror(errno));
528 rmt->netid = strdup(nconf->nc_netid)
613 struct netconfig *nconf; local in function:rpcbproc_callit_com
    [all...]
  /src/usr.sbin/rpc.lockd/
lockd.c 92 struct netconfig *nconf; local in function:main
153 nconf = getnetconfigent(transports[i]);
154 if (nconf == NULL)
157 transp = svc_tli_create(RPC_ANYFD, nconf, NULL, RPC_MAXDATASIZE,
163 if (!svc_reg(transp, NLM_PROG, NLM_SM, nlm_prog_0, nconf)) {
168 if (!svc_reg(transp, NLM_PROG, NLM_VERS, nlm_prog_1, nconf)) {
173 if (!svc_reg(transp, NLM_PROG, NLM_VERSX, nlm_prog_3, nconf)) {
178 if (!svc_reg(transp, NLM_PROG, NLM_VERS4, nlm_prog_4, nconf)) {
183 freenetconfigent(nconf);
lock_proc.c 157 struct netconfig *nconf; local in function:get_client
217 nconf = getnetconfigent(netid);
218 if (nconf == NULL) {
224 client = clnt_tp_create(host, NLM_PROG, vers, nconf);
225 freenetconfigent(nconf);
  /src/sbin/mount_nfs/
getnfsargs.c 109 struct netconfig *nconf; local in function:getnfsargs
157 * XXX. Need a generic (family, type, proto) -> nconf interface.
158 * __rpc_*2nconf exist, maybe they should be exported.
172 nconf = getnetconfigent(netid);
180 if (!rpcb_getaddr(RPCPROG_NFS, nfsvers, nconf, &nfs_nb, hostp)){
205 mnttcp_ok ? nconf : getnetconfigent(netid));
  /src/sys/fs/nfs/common/
nfs_commonkrpc.c 174 struct netconfig *nconf; local in function:newnfs_connect
205 nconf = getnetconfigent("udp");
207 nconf = getnetconfigent("tcp");
210 nconf = getnetconfigent("udp6");
212 nconf = getnetconfigent("tcp6");
268 client = clnt_reconnect_create(nconf, saddr, nrp->nr_prog,
  /src/usr.sbin/inetd/
inetd.c 865 struct netconfig *nconf; local in function:register_rpc
869 if ((nconf = getnetconfigent(sep->se_proto+4)) == NULL) {
886 sep->se_rpcprog, n, nconf->nc_netid,
887 taddr2uaddr(nconf, &nbuf));
888 (void)rpcb_unset((unsigned int)sep->se_rpcprog, (unsigned int)n, nconf);
889 if (rpcb_set((unsigned int)sep->se_rpcprog, (unsigned int)n, nconf, &nbuf) == 0)
891 sep->se_rpcprog, n, nconf->nc_netid,
892 taddr2uaddr(nconf, &nbuf), clnt_spcreateerror(""));
902 struct netconfig *nconf; local in function:unregister_rpc
904 if ((nconf = getnetconfigent(sep->se_proto+4)) == NULL)
    [all...]
  /src/usr.bin/rpcinfo/
rpcinfo.c 558 struct netconfig *nconf; local in function:get_inet_address
566 if ((nconf = __rpc_getconfip("udp")) == NULL &&
567 (nconf = __rpc_getconfip("tcp")) == NULL) {
580 (void)freenetconfigent(nconf);
599 struct netconfig *nconf /* On which transport the reply came */
614 if (!(uaddr = uf = taddr2uaddr(nconf, who))) {
703 struct netconfig *nconf; local in function:rpcbdump
705 nconf = getnetconfigent(netid);
706 if (nconf == NULL)
709 client = getclnthandle(host, nconf, RPCBVERS, NULL)
911 struct netconfig *nconf; local in function:rpcbaddrlist
937 struct netconfig *nconf; local in function:rpcbaddrlist
1234 struct netconfig *nconf = NULL; local in function:deletereg
1294 struct netconfig *nconf; local in function:addrping
1394 struct netconfig *nconf; local in function:progping
1597 struct netconfig *nconf; local in function:clnt_rpcbind_create
    [all...]
  /src/sys/fs/nfs/nlm/
nlm_prot_impl.c 530 struct netconfig *nconf = NULL; local in function:nlm_get_rpc
536 nconf = getnetconfigent("tcp");
540 nconf = getnetconfigent("tcp6");
545 rpcb = clnt_reconnect_create(nconf, (struct sockaddr *)&ss,
1444 struct netconfig *nconf; local in function:nlm_register_services
1485 nconf = getnetconfigent(netid);
1486 if (!nconf) {
1493 NLM_PROG, versions[i], uaddr, nconf);
1500 freenetconfigent(nconf);
1502 nconf = getnetconfigent(xprts[j]->xp_netid)
    [all...]

Completed in 20 milliseconds