Home
last modified time | relevance | path

Searched refs:netid (Results 1 – 25 of 29) sorted by relevance

12

/netbsd-src/usr.sbin/rpcbind/
H A Drpcb_stat.c104 const char *netid, const char *uaddr) in rpcbs_getaddr() argument
113 if(al->netid == NULL) in rpcbs_getaddr()
116 (strcmp(al->netid, netid) == 0)) { in rpcbs_getaddr()
124 nconf = rpcbind_get_conf(netid); in rpcbs_getaddr()
134 al->netid = nconf->nc_netid; in rpcbs_getaddr()
148 rpcvers_t vers, rpcproc_t proc, char *netid, rpcblist_ptr rbl) in rpcbs_rmtcall() argument
157 if(rl->netid == NULL) in rpcbs_rmtcall()
162 (strcmp(rl->netid, netid) == 0)) { in rpcbs_rmtcall()
173 nconf = rpcbind_get_conf(netid); in rpcbs_rmtcall()
184 rl->netid = nconf->nc_netid; in rpcbs_rmtcall()
H A Dcheck_bound.c151 is_bound(const char *netid, const char *uaddr) in is_bound() argument
156 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in is_bound()
169 mergeaddr(SVCXPRT *xprt, char *netid, char *uaddr, char *saddr) in mergeaddr() argument
175 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in mergeaddr()
222 m_uaddr = addrmerge(svc_getrpccaller(xprt), s_uaddr, c_uaddr, netid); in mergeaddr()
237 rpcbind_get_conf(const char *netid) in rpcbind_get_conf() argument
242 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in rpcbind_get_conf()
H A Dpmap_svc.c296 const char *netid, *ua; in pmapproc_getport() local
300 netid = udptrans; in pmapproc_getport()
303 netid = tcptrans; in pmapproc_getport()
314 if (is_bound(netid, serveuaddr)) { in pmapproc_getport()
H A Drpcb_svc_com.c83 char *netid; member
528 rmt->netid = strdup(nconf->nc_netid); in create_rmtcall_fd()
529 xprt->xp_netid = rmt->netid; in create_rmtcall_fd()
544 find_rmtcallfd_by_netid(char *netid) in find_rmtcallfd_by_netid() argument
549 if (strcmp(netid, rmt->netid) == 0) { in find_rmtcallfd_by_netid()
1360 find_versions(rpcprog_t prog, char *netid, rpcvers_t *lowvp, rpcvers_t *highvp) in find_versions() argument
1369 (strcasecmp(rbl->rpcb_map.r_netid, netid) != 0))) in find_versions()
1397 find_service(rpcprog_t prog, rpcvers_t vers, char *netid) in find_service() argument
1405 (strcasecmp(rbl->rpcb_map.r_netid, netid) != 0))) in find_service()
H A Dutil.c94 const char *netid) in addrmerge() argument
118 clnt_uaddr, netid); in addrmerge()
120 nconf = getnetconfigent(netid); in addrmerge()
H A Drpcbind.h141 const char *netid);
/netbsd-src/lib/libc/rpc/
H A Dsvc_simple.c138 char *netid; in rpc_reg() local
144 netid = NULL; in rpc_reg()
150 netid = pl->p_netid; in rpc_reg()
172 ((netid = strdup(nconf->nc_netid)) == NULL)) { in rpc_reg()
176 if (netid != NULL) in rpc_reg()
177 free(netid); in rpc_reg()
190 (strcmp(pl->p_netid, netid) == 0)) in rpc_reg()
202 (unsigned)versnum, netid); in rpc_reg()
206 free(netid); in rpc_reg()
217 free(netid); in rpc_reg()
[all …]
H A Dsvc.c256 char *netid = NULL; in svc_reg() local
265 netid = strdup(xprt->xp_netid); in svc_reg()
268 netid = strdup(nconf->nc_netid); in svc_reg()
271 netid = strdup(tnconf->nc_netid); in svc_reg()
275 if ((netid == NULL) && (flag == 1)) { in svc_reg()
280 if ((s = svc_find(prog, vers, &prev, netid)) != NULL) { in svc_reg()
281 if (netid) in svc_reg()
282 free(netid); in svc_reg()
290 if (netid) in svc_reg()
291 free(netid); in svc_reg()
[all …]
H A Drpc_generic.c100 const char *netid; member
255 char *netid; in __rpc_getconfip() local
320 netid = netid_udp; in __rpc_getconfip()
322 netid = netid_tcp; in __rpc_getconfip()
326 if ((netid == NULL) || (netid[0] == 0)) { in __rpc_getconfip()
329 dummy = getnetconfigent(netid); in __rpc_getconfip()
498 const char *netid; in __rpcgettp() local
504 if (!__rpc_sockinfo2netid(&si, &netid)) in __rpcgettp()
507 return getnetconfigent(__UNCONST(netid)); in __rpcgettp()
558 if (!strcmp(na_cvt[i].netid, nconf->nc_netid)) { in __rpc_nconf2sockinfo()
[all …]
H A Drpc_soc.c226 svc_com_create(int fd, u_int sendsize, u_int recvsize, const char *netid) in svc_com_create() argument
234 _DIAGASSERT(netid != NULL); in svc_com_create()
236 if ((nconf = __rpc_getconfip(netid)) == NULL) { in svc_com_create()
237 (void) syslog(LOG_ERR, "Could not get %s transport", netid); in svc_com_create()
245 "svc%s_create: could not open connection", netid); in svc_com_create()
261 netid, strerror(errno)); in svc_com_create()
H A Drpcb_st_xdr.c84 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { in __weak_alias()
136 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { in xdr_rpcbs_rmtcalllist()
174 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { in xdr_rpcbs_rmtcalllist()
202 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { in xdr_rpcbs_rmtcalllist()
H A Dgetnetconfig.c423 getnetconfigent(const char *netid) in getnetconfigent() argument
431 if (netid == NULL || strlen(netid) == 0) in getnetconfigent()
445 if (strcmp(list->ncp->nc_netid, netid) == 0) in getnetconfigent()
475 if (strlen(netid) == (len = (size_t)(tmpp - stringp)) && in getnetconfigent()
476 strncmp(stringp, netid, len) == 0) { in getnetconfigent()
H A Drpcb_clnt.c167 check_cache(const char *host, const char *netid) in check_cache() argument
172 _DIAGASSERT(netid != NULL); in check_cache()
178 !strcmp(cptr->ac_netid, netid)) { in check_cache()
181 host, netid); in check_cache()
218 add_cache(const char *host, const char *netid, struct netbuf *taddr, in add_cache() argument
224 _DIAGASSERT(netid != NULL); in add_cache()
233 ad_cache->ac_netid = strdup(netid); in add_cache()
257 fprintf(stderr, "Added to cache: %s : %s\n", host, netid); in add_cache()
H A Dsvc_vc.c264 const char *netid; in makefd_xprt() local
284 if (__rpc_fd2sockinfo(fd, &si) && __rpc_sockinfo2netid(&si, &netid)) in makefd_xprt()
285 if ((xprt->xp_netid = strdup(netid)) == NULL) in makefd_xprt()
/netbsd-src/usr.bin/rpcinfo/
H A Drpcinfo.c112 char *netid; member
169 char *netid = NULL; local
255 netid = optarg;
263 if (errflg || ((function == ADDRPING) && !netid))
293 deletereg(netid, argc - optind, argv + optind);
296 addrping(address, netid, argc - optind, argv + optind);
299 progping(netid, argc - optind, argv + optind);
303 rpcbdump(function, netid, argc - optind, argv + optind);
309 rpcbaddrlist(netid, argc - optind, argv + optind);
662 add_netid(struct rpcbdump_short *rs, char *netid) argument
[all …]
/netbsd-src/sbin/mount_nfs/
H A Dgetnfsargs.c110 const char *netid; in getnfsargs() local
162 netid = "tcp6"; in getnfsargs()
164 netid = "tcp"; in getnfsargs()
167 netid = "udp6"; in getnfsargs()
169 netid = "udp"; in getnfsargs()
172 nconf = getnetconfigent(netid); in getnfsargs()
205 mnttcp_ok ? nconf : getnetconfigent(netid)); in getnfsargs()
/netbsd-src/usr.sbin/ypserv/ypinit/
H A DMakefile.yp59 …passwd aliases ${AMDMAPS} ethers group hosts ipnodes netgroup networks rpc services protocols netid
407 netid.time: ${DIR}/passwd ${DIR}/group ${DIR}/hosts ${DIR}/netid
409 ${DIR}/hosts -m ${DIR}/netid | \
410 ${SORT} | ${MAKEDBM} - netid.byname; \
414 ${YPPUSH} -d ${DOMAIN} netid.byname; \
448 netid: netid.time
465 ${DIR}/netid:
H A DMakefile.main6 networks protocols rpc services netid
/netbsd-src/include/rpc/
H A Drpcb_prot.x285 string netid<>;
297 string netid<>;
513 % char *netid;
527 % char *netid;
/netbsd-src/sys/arch/ia64/stand/efi/libefi/
H A Definet.c234 static EFI_GUID netid = EFI_SIMPLE_NETWORK_PROTOCOL_GUID; in efinet_init_driver() local
242 status = BS->LocateHandle(ByProtocol, &netid, 0, &sz, 0); in efinet_init_driver()
246 status = BS->LocateHandle(ByProtocol, &netid, 0, &sz, handles); in efinet_init_driver()
266 BS->HandleProtocol(handles[i], &netid, in efinet_init_driver()
/netbsd-src/usr.sbin/rpc.lockd/
H A Dlock_proc.c156 const char *netid; in get_client() local
208 netid = "udp6"; in get_client()
210 netid = "udp"; in get_client()
213 netid = "tcp6"; in get_client()
215 netid = "tcp"; in get_client()
217 nconf = getnetconfigent(netid); in get_client()
220 "no /etc/netconfig file?", netid); in get_client()
/netbsd-src/usr.sbin/ypserv/mknetid/
H A DMakefile4 MAN= mknetid.8 netid.5
/netbsd-src/sys/dev/cardbus/
H A Dif_tlp_cardbus.c366 memcpy(enaddr, ca->ca_cis.funce.network.netid, in tlp_cardbus_attach()
415 memcpy(enaddr, ca->ca_cis.funce.network.netid, sizeof(enaddr)); in tlp_cardbus_attach()
H A Dcardbusvar.h196 char netid[6]; member
/netbsd-src/sys/fs/nfs/nlm/
H A Dnlm_prot_impl.c1442 char netid[16]; in nlm_register_services() local
1473 error = copyinstr(up, netid, sizeof(netid), in nlm_register_services()
1485 nconf = getnetconfigent(netid); in nlm_register_services()
1488 netid); in nlm_register_services()

12