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

12

/freebsd-10-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.c258 struct netconfig *nconf; local
265 while ((nconf = getnetconfig(confighandle)) != NULL) {
266 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) {
267 if (strcmp(nconf->nc_proto, NC_TCP) == 0 &&
269 netid_tcp = strdup(nconf->nc_netid);
276 if (strcmp(nconf->nc_proto, NC_UDP) == 0 &&
278 netid_udp = strdup(nconf->nc_netid);
354 struct netconfig *nconf; local
362 nconf = getnetpath(handle->nhandle);
364 nconf
517 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip) argument
539 __rpc_nconf2fd(const struct netconfig *nconf) argument
553 struct netconfig *nconf; local
579 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf) argument
589 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:__anon565
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-10-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-10-stable/usr.sbin/rpcbind/
H A Drpcbind.c128 struct netconfig *nconf; local
168 nconf = getnetconfigent("local");
169 if (nconf == NULL)
170 nconf = getnetconfigent("unix");
171 if (nconf == NULL) {
178 init_transport(nconf);
180 while ((nconf = getnetconfig(nc_handle))) {
181 if (nconf->nc_flag & NC_VISIBLE) {
182 if (ipv6_only == 1 && strcmp(nconf->nc_protofmly,
186 init_transport(nconf);
247 init_transport(struct netconfig *nconf) argument
736 rbllist_add(rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf, struct netbuf *addr) argument
[all...]
H A Dcheck_bound.c66 struct netconfig *nconf; member in struct:fdlist
92 na = uaddr2taddr(fdl->nconf, uaddr);
96 fd = __rpc_nconf2fd(fdl->nconf);
113 add_bndlist(struct netconfig *nconf, struct netbuf *baddr __unused) argument
118 newnconf = getnetconfigent(nconf->nc_netid);
127 fdl->nconf = newnconf;
148 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
168 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
187 c_uaddr = taddr2uaddr(fdl->nconf, &dg_data->su_srcaddr);
193 c_uaddr = taddr2uaddr(fdl->nconf, svc_getrpccalle
[all...]
H A Drpcb_stat.c109 struct netconfig *nconf; local
126 nconf = rpcbind_get_conf(netid);
127 if (nconf == NULL) {
136 al->netid = nconf->nc_netid;
153 struct netconfig *nconf; local
175 nconf = rpcbind_get_conf(netid);
176 if (nconf == NULL) {
186 rl->netid = nconf->nc_netid;
H A Drpcb_svc_4.c332 struct netconfig *nconf; local
357 nconf = rpcbind_get_conf(rbl->rpcb_map.r_netid);
358 if (nconf == NULL)
360 if (strcmp(nconf->nc_protofmly, reg_nconf->nc_protofmly)
397 a->r_nc_netid = nconf->nc_netid;
398 a->r_nc_semantics = nconf->nc_semantics;
399 a->r_nc_protofmly = nconf->nc_protofmly;
400 a->r_nc_proto = nconf->nc_proto;
H A Dutil.c120 struct netconfig *nconf; local
134 if ((nconf = rpcbind_get_conf(netid)) == NULL)
136 if ((caller_uaddr = taddr2uaddr(nconf, caller)) == NULL)
148 if ((hint_nbp = uaddr2taddr(nconf, clnt_uaddr)) == NULL)
274 serv_nbp = uaddr2taddr(nconf, serv_uaddr);
293 ret = taddr2uaddr(nconf, &tbuf);
/freebsd-10-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
196 while ((nconf = getnetconfig(nc_handle))) {
198 if (nconf->nc_flag & NC_VISIBLE) {
200 if (have_v6 == 0 && strcmp(nconf->nc_protofmly, "inet6") == 0) {
203 ret = create_service(nconf);
237 * different port #s for each nconf
260 while ((nconf = getnetconfig(nc_handle))) {
262 if (nconf
317 create_service(struct netconfig *nconf) argument
513 complete_service(struct netconfig *nconf, char *port_str) argument
[all...]
/freebsd-10-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);
125 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-10-stable/usr.sbin/ypserv/
H A Dyp_main.c255 create_service(const int sock, const struct netconfig *nconf, argument
293 s = __rpc_nconf2fd(nconf);
298 nconf->nc_netid);
302 nconf->nc_netid,
313 nconf->nc_netid,
320 if (nconf->nc_semantics != NC_TPI_CLTS)
399 if (nconf->nc_semantics == NC_TPI_CLTS)
406 nconf->nc_netid);
413 " %s", nconf->nc_netid, strerror(errno));
420 nconf
457 struct netconfig *nconf; local
[all...]
/freebsd-10-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
567 if ((nconf = __rpc_getconfip("udp")) == NULL &&
568 (nconf = __rpc_getconfip("tcp")) == NULL)
580 (void) freenetconfigent(nconf);
596 reply_proc(void *res, struct netbuf *who, struct netconfig *nconf) argument
699 struct netconfig *nconf; local
895 struct netconfig *nconf; local
924 struct netconfig *nconf; local
1210 struct netconfig *nconf = NULL; local
1230 clnt_addr_create(char *address, struct netconfig *nconf, u_long prog, u_long vers) argument
1271 struct netconfig *nconf; local
1373 struct netconfig *nconf; local
1549 struct netconfig *nconf; local
1574 getclnthandle(char *host, struct netconfig *nconf, u_long rpcbversnum, struct netbuf **targaddr) argument
[all...]
/freebsd-10-stable/usr.sbin/rpc.yppasswdd/
H A Dyppasswdd_main.c166 struct netconfig *nconf; local
290 nconf = NULL;
292 while ((nconf = getnetconfig(localhandle)) != NULL) {
293 if (nconf->nc_protofmly != NULL &&
294 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0)
297 if (nconf == NULL) {
308 master_yppasswdprog_1, nconf)) {
/freebsd-10-stable/contrib/wpa/src/ap/
H A Dwps_hostapd.c283 FILE *oconf, *nconf; local
362 nconf = fopen(tmp_fname, "w");
363 if (nconf == NULL) {
371 fprintf(nconf, "# WPS configuration - START\n");
373 fprintf(nconf, "wps_state=2\n");
376 fprintf(nconf, "ssid2=");
378 fprintf(nconf, "%02x", cred->ssid[i]);
379 fprintf(nconf, "\n");
381 fprintf(nconf, "ssid=");
383 fputc(cred->ssid[i], nconf);
[all...]

Completed in 203 milliseconds

12