Searched refs:nconf (Results 1 - 25 of 42) sorted by relevance

12

/freebsd-11-stable/lib/libc/rpc/
H A Dpmap_clnt.c67 struct netconfig *nconf; local
73 nconf = __rpc_getconfip(protocol == IPPROTO_UDP ? "udp" : "tcp");
74 if (nconf == NULL) {
79 na = uaddr2taddr(nconf, buf);
81 freenetconfigent(nconf);
84 rslt = rpcb_set((rpcprog_t)program, (rpcvers_t)version, nconf, na);
86 freenetconfigent(nconf);
97 struct netconfig *nconf; local
101 nconf = __rpc_getconfip("udp");
102 if (nconf !
[all...]
H A Dsvc_generic.c91 struct netconfig *nconf; local
100 while ((nconf = __rpc_getconf(handle)) != NULL) {
103 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) {
105 (void) rpcb_unset(prognum, versnum, nconf);
107 dispatch, nconf) == FALSE)
111 nconf->nc_netid);
119 xprt = svc_tp_create(dispatch, prognum, versnum, nconf);
147 * It tries to create a server for "nconf" and registers the service
156 rpcprog_t prognum, rpcvers_t versnum, const struct netconfig *nconf)
160 if (nconf
155 svc_tp_create(void (*dispatch)(struct svc_req *, SVCXPRT *), rpcprog_t prognum, rpcvers_t versnum, const struct netconfig *nconf) argument
199 svc_tli_create(int fd, const struct netconfig *nconf, const struct t_bind *bindaddr, u_int sendsz, u_int recvsz) argument
[all...]
H A Dcrypt_client.c51 struct netconfig *nconf; local
55 nconf = NULL;
57 while ((nconf = getnetconfig(localhandle)) != NULL) {
58 if (nconf->nc_protofmly != NULL &&
59 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0)
62 if (nconf == NULL) {
67 clnt = clnt_tp_create(NULL, CRYPT_PROG, CRYPT_VERS, nconf);
H A Drpc_generic.c257 struct netconfig *nconf; local
264 while ((nconf = getnetconfig(confighandle)) != NULL) {
265 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) {
266 if (strcmp(nconf->nc_proto, NC_TCP) == 0 &&
268 netid_tcp = strdup(nconf->nc_netid);
275 if (strcmp(nconf->nc_proto, NC_UDP) == 0 &&
277 netid_udp = strdup(nconf->nc_netid);
353 struct netconfig *nconf; local
361 nconf = getnetpath(handle->nhandle);
363 nconf
516 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip) argument
538 __rpc_nconf2fd(const struct netconfig *nconf) argument
552 struct netconfig *nconf; local
578 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf) argument
588 uaddr2taddr(const struct netconfig *nconf, const char *uaddr) argument
[all...]
H A Drpcb_clnt.c277 getclnthandle(const char *host, const struct netconfig *nconf, char **targaddr) argument
295 ad_cache = check_cache(host, nconf->nc_netid);
298 client = clnt_tli_create(RPC_ANYFD, nconf, addr,
325 if (!__rpc_nconf2sockinfo(nconf, &si)) {
337 nconf->nc_netid, si.si_af, si.si_proto, si.si_socktype);
340 if (nconf->nc_protofmly != NULL && strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) {
375 ua = taddr2uaddr(nconf, &taddr);
393 client = clnt_tli_create(RPC_ANYFD, nconf, &taddr,
402 tmpaddr = targaddr ? taddr2uaddr(nconf,
466 struct netconfig *nconf, *tmpnconf = NULL; local
525 rpcb_set(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, const struct netbuf *address) argument
583 rpcb_unset(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf) argument
620 got_entry(rpcb_entry_list_ptr relp, const struct netconfig *nconf) argument
653 struct netconfig *nconf; local
706 __rpcb_findaddr_timed(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, const char *host, CLIENT **clpp, struct timeval *tp) argument
1015 rpcb_getaddr(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, struct netbuf *address, const char *host) argument
1047 rpcb_getmaps(const struct netconfig *nconf, const char *host) argument
1105 rpcb_rmtcall(const struct netconfig *nconf, const char *host, rpcprog_t prog, rpcvers_t vers, rpcproc_t proc, xdrproc_t xdrargs, caddr_t argsp, xdrproc_t xdrres, caddr_t resp, struct timeval tout, const struct netbuf *addr_ptr) argument
1183 struct netconfig *nconf; local
1238 rpcb_taddr2uaddr(struct netconfig *nconf, struct netbuf *taddr) argument
1270 rpcb_uaddr2taddr(struct netconfig *nconf, char *uaddr) argument
[all...]
H A Dclnt_generic.c183 struct netconfig *nconf; local
208 if ((nconf = __rpc_getconf(handle)) == NULL) {
214 printf("trying netid %s\n", nconf->nc_netid);
216 clnt = clnt_tp_create_timed(hostname, prog, vers, nconf, tp);
267 const struct netconfig *nconf)
270 return (clnt_tp_create_timed(hostname, prog, vers, nconf, NULL));
281 const struct netconfig *nconf, const struct timeval *tp)
286 if (nconf == NULL) {
295 (struct netconfig *)nconf, (char *)hostname,
301 cl = clnt_tli_create(RPC_ANYFD, nconf, svcadd
266 clnt_tp_create(const char *hostname, rpcprog_t prog, rpcvers_t vers, const struct netconfig *nconf) argument
280 clnt_tp_create_timed(const char *hostname, rpcprog_t prog, rpcvers_t vers, const struct netconfig *nconf, const struct timeval *tp) argument
332 clnt_tli_create(int fd, const struct netconfig *nconf, struct netbuf *svcaddr, rpcprog_t prog, rpcvers_t vers, uint sendsz, uint recvsz) argument
[all...]
H A Drpc_soc.c97 struct netconfig *nconf; local
101 if ((nconf = __rpc_getconfip(tp)) == NULL) {
107 fd = __rpc_nconf2fd(nconf);
133 cl = clnt_tli_create(fd, nconf, &bindaddr, prog, vers,
143 (void) freenetconfigent(nconf);
155 (void) freenetconfigent(nconf);
206 struct netconfig *nconf; local
212 if ((nconf = __rpc_getconfip(netid)) == NULL) {
217 fd = __rpc_nconf2fd(nconf);
219 (void) freenetconfigent(nconf);
336 rpc_wrap_bcast(char *resultp, struct netbuf *addr, struct netconfig *nconf) argument
470 struct netconfig *nconf; local
[all...]
H A Dsvc_simple.c108 struct netconfig *nconf; local
127 while ((nconf = __rpc_getconf(handle)) != NULL) {
140 if (strcmp(pl->p_netid, nconf->nc_netid) == 0) {
152 svcxprt = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0);
167 ((netid = strdup(nconf->nc_netid)) == NULL)) {
186 (void) rpcb_unset(prognum, versnum, nconf);
189 nconf = NULL;
192 if (!svc_reg(svcxprt, prognum, versnum, universal, nconf)) {
H A Dclnt_bcast.c269 struct netconfig *nconf; /* Netconfig structure */ member in struct:__anon6713
280 struct netconfig *nconf; local
311 while ((nconf = __rpc_getconf(handle)) != NULL) {
315 if (nconf->nc_semantics != NC_TPI_CLTS)
319 if (!__rpc_nconf2sockinfo(nconf, &si))
335 fdlist[fdlistno].nconf = nconf;
478 fdlist[i].nconf->nc_netid);
500 fdlist[i].nconf->nc_netid);
546 fdlist[i].nconf
[all...]
H A Dkey_call.c296 struct netconfig *nconf; local
369 while ((nconf = getnetconfig(localhandle)) != NULL) {
370 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) {
375 if (nconf->nc_semantics == NC_TPI_COTS_ORD) {
377 KEY_PROG, vers, nconf);
381 tpconf = nconf;
/freebsd-11-stable/sys/rpc/
H A Dgetnetconfig.c101 struct netconfig *nconf; local
103 nconf = *nconfp;
104 if (nconf->nc_netid == NULL)
109 return (nconf);
115 struct netconfig *nconf; local
117 for (nconf = netconfigs; nconf->nc_netid; nconf++) {
118 if (!strcmp(netid, nconf->nc_netid))
119 return (nconf);
126 freenetconfigent(struct netconfig *nconf) argument
[all...]
H A Dsvc_generic.c92 struct netconfig *nconf; local
99 while ((nconf = __rpc_getconf(handle)) != NULL) {
104 if (strcmp(xprt->xp_netid, nconf->nc_netid))
108 (void) rpcb_unset(prognum, versnum, nconf);
110 dispatch, nconf) == FALSE) {
114 nconf->nc_netid);
127 NULL, nconf);
144 * It tries to create a server for "nconf" and registers the service
154 const struct netconfig *nconf) /* Netconfig structure for the network */
161 if (nconf
148 svc_tp_create( SVCPOOL *pool, void (*dispatch)(struct svc_req *, SVCXPRT *), rpcprog_t prognum, rpcvers_t versnum, const char *uaddr, const struct netconfig *nconf) argument
205 svc_tli_create( SVCPOOL *pool, struct socket *so, const struct netconfig *nconf, const struct t_bind *bindaddr, size_t sendsz, size_t recvsz) argument
[all...]
H A Drpc_generic.c235 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip) argument
240 if (strcmp(na_cvt[i].netid, nconf->nc_netid) == 0 || (
241 strcmp(nconf->nc_netid, "unix") == 0 &&
246 __rpc_seman2socktype((int)nconf->nc_semantics);
257 __rpc_nconf2socket(const struct netconfig *nconf) argument
263 if (!__rpc_nconf2sockinfo(nconf, &si))
277 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf) argument
281 if (!__rpc_nconf2sockinfo(nconf, &si))
287 uaddr2taddr(const struct netconfig *nconf, const char *uaddr) argument
291 if (!__rpc_nconf2sockinfo(nconf,
522 struct netconfig *nconf; local
611 struct netconfig *nconf; local
[all...]
H A Drpcb_clnt.c286 getclnthandle(host, nconf, targaddr)
288 const struct netconfig *nconf;
307 ad_cache = check_cache(host, nconf->nc_netid);
310 client = clnt_tli_create(RPC_ANYFD, nconf, addr,
337 if (!__rpc_nconf2sockinfo(nconf, &si)) {
349 nconf->nc_netid, si.si_af, si.si_proto, si.si_socktype);
352 if (nconf->nc_protofmly != NULL && strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) {
387 ua = taddr2uaddr(nconf, &taddr);
405 client = clnt_tli_create(RPC_ANYFD, nconf,
539 rpcb_set(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, const struct netbuf *address) argument
607 rpcb_unset(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf) argument
[all...]
/freebsd-11-stable/usr.sbin/rpcbind/
H A Drpcbind.c130 struct netconfig *nconf; local
170 nconf = getnetconfigent("local");
171 if (nconf == NULL)
172 nconf = getnetconfigent("unix");
173 if (nconf == NULL) {
180 init_transport(nconf);
182 while ((nconf = getnetconfig(nc_handle))) {
183 if (nconf->nc_flag & NC_VISIBLE) {
184 if (ipv6_only == 1 && strcmp(nconf->nc_protofmly,
188 init_transport(nconf);
249 init_transport(struct netconfig *nconf) argument
738 rbllist_add(rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf, struct netbuf *addr) argument
[all...]
H A Dcheck_bound.c65 struct netconfig *nconf; member in struct:fdlist
91 na = uaddr2taddr(fdl->nconf, uaddr);
95 fd = __rpc_nconf2fd(fdl->nconf);
112 add_bndlist(struct netconfig *nconf, struct netbuf *baddr __unused) argument
117 newnconf = getnetconfigent(nconf->nc_netid);
126 fdl->nconf = newnconf;
147 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
167 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
186 c_uaddr = taddr2uaddr(fdl->nconf, &dg_data->su_srcaddr);
192 c_uaddr = taddr2uaddr(fdl->nconf, svc_getrpccalle
[all...]
H A Drpcb_stat.c108 struct netconfig *nconf; local
125 nconf = rpcbind_get_conf(netid);
126 if (nconf == NULL) {
135 al->netid = nconf->nc_netid;
152 struct netconfig *nconf; local
174 nconf = rpcbind_get_conf(netid);
175 if (nconf == NULL) {
185 rl->netid = nconf->nc_netid;
H A Drpcb_svc_4.c331 struct netconfig *nconf; local
356 nconf = rpcbind_get_conf(rbl->rpcb_map.r_netid);
357 if (nconf == NULL)
359 if (strcmp(nconf->nc_protofmly, reg_nconf->nc_protofmly)
396 a->r_nc_netid = nconf->nc_netid;
397 a->r_nc_semantics = nconf->nc_semantics;
398 a->r_nc_protofmly = nconf->nc_protofmly;
399 a->r_nc_proto = nconf->nc_proto;
H A Dutil.c122 struct netconfig *nconf; local
136 if ((nconf = rpcbind_get_conf(netid)) == NULL)
138 if ((caller_uaddr = taddr2uaddr(nconf, caller)) == NULL)
150 if ((hint_nbp = uaddr2taddr(nconf, clnt_uaddr)) == NULL)
276 serv_nbp = uaddr2taddr(nconf, serv_uaddr);
295 ret = taddr2uaddr(nconf, &tbuf);
/freebsd-11-stable/usr.sbin/rpc.statd/
H A Dstatd.c71 static int create_service(struct netconfig *nconf);
72 static void complete_service(struct netconfig *nconf, char *port_str);
83 struct netconfig *nconf; local
200 while ((nconf = getnetconfig(nc_handle))) {
202 if (nconf->nc_flag & NC_VISIBLE) {
204 if (have_v6 == 0 && strcmp(nconf->nc_protofmly, "inet6") == 0) {
207 ret = create_service(nconf);
241 * different port #s for each nconf
264 while ((nconf = getnetconfig(nc_handle))) {
266 if (nconf
325 create_service(struct netconfig *nconf) argument
521 complete_service(struct netconfig *nconf, char *port_str) argument
[all...]
/freebsd-11-stable/usr.sbin/rpc.lockd/
H A Dlockd.c99 static int create_service(struct netconfig *nconf);
100 static void complete_service(struct netconfig *nconf, char *port_str);
122 struct netconfig *nconf; local
305 while ((nconf = getnetconfig(nc_handle))) {
307 if (nconf->nc_flag & NC_VISIBLE) {
309 if (have_v6 == 0 && strcmp(nconf->nc_protofmly, "inet6") == 0) {
312 create_service(nconf);
324 while ((nconf = getnetconfig(nc_handle))) {
326 if (nconf->nc_flag & NC_VISIBLE) {
328 if (have_v6 == 0 && strcmp(nconf
497 create_service(struct netconfig *nconf) argument
721 complete_service(struct netconfig *nconf, char *port_str) argument
[all...]
/freebsd-11-stable/usr.sbin/ypserv/
H A Dyp_main.c253 create_service(const int sock, const struct netconfig *nconf, argument
291 s = __rpc_nconf2fd(nconf);
296 nconf->nc_netid);
300 nconf->nc_netid,
311 nconf->nc_netid,
318 if (nconf->nc_semantics != NC_TPI_CLTS)
397 if (nconf->nc_semantics == NC_TPI_CLTS)
404 nconf->nc_netid);
411 " %s", nconf->nc_netid, strerror(errno));
418 nconf
455 struct netconfig *nconf; local
[all...]
/freebsd-11-stable/usr.bin/rpcinfo/
H A Drpcinfo.c317 struct netconfig *nconf; local
321 while ((nconf = getnetconfig(localhandle)) != NULL) {
322 if (nconf->nc_protofmly != NULL &&
323 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0)
326 if (nconf == NULL) {
331 clnt = clnt_tp_create(NULL, prog, vers, nconf);
560 struct netconfig *nconf; local
568 if ((nconf = __rpc_getconfip("udp")) == NULL &&
569 (nconf = __rpc_getconfip("tcp")) == NULL)
581 (void) freenetconfigent(nconf);
597 reply_proc(void *res, struct netbuf *who, struct netconfig *nconf) argument
701 struct netconfig *nconf; local
897 struct netconfig *nconf; local
926 struct netconfig *nconf; local
1212 struct netconfig *nconf = NULL; local
1232 clnt_addr_create(char *address, struct netconfig *nconf, u_long prog, u_long vers) argument
1273 struct netconfig *nconf; local
1375 struct netconfig *nconf; local
1551 struct netconfig *nconf; local
1576 getclnthandle(char *host, struct netconfig *nconf, u_long rpcbversnum, struct netbuf **targaddr) argument
[all...]
/freebsd-11-stable/usr.sbin/rpc.yppasswdd/
H A Dyppasswdd_main.c167 struct netconfig *nconf; local
289 nconf = NULL;
291 while ((nconf = getnetconfig(localhandle)) != NULL) {
292 if (nconf->nc_protofmly != NULL &&
293 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0)
296 if (nconf == NULL) {
307 master_yppasswdprog_1, nconf)) {
/freebsd-11-stable/usr.sbin/keyserv/
H A Dkeyserv.c120 struct netconfig *nconf = NULL; local
183 while ((nconf = getnetconfig(localhandle)) != NULL) {
184 if (nconf->nc_protofmly != NULL &&
185 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0)
189 if (nconf == NULL)
193 rpcb_unset(CRYPT_PROG, CRYPT_VERS, nconf);
197 if (!svc_reg(transp, KEY_PROG, KEY_VERS, keyprogram, nconf))
199 if (!svc_reg(transp, KEY_PROG, KEY_VERS2, keyprogram, nconf))
201 if (!svc_reg(transp, CRYPT_PROG, CRYPT_VERS, crypt_prog_1, nconf))

Completed in 226 milliseconds

12