Lines Matching defs:fdl

77 check_bound(fdl, uaddr)
78 struct fdlist *fdl; /* My FD list */
86 if (fdl->check_binding == FALSE)
89 na = uaddr2taddr(fdl->nconf, uaddr);
93 fd = fdl->fd;
112 fdl->fd = t_open(fdl->nconf->nc_device, O_RDWR, NULL);
113 if (fdl->fd == -1)
114 fdl->check_binding = FALSE;
141 struct fdlist *fdl;
149 fdl = (struct fdlist *)malloc((uint_t)sizeof (struct fdlist));
150 if (fdl == NULL) {
155 fdl->nconf = newnconf;
156 fdl->next = NULL;
158 fdhead = fdl;
159 fdtail = fdl;
161 fdtail->next = fdl;
162 fdtail = fdl;
164 fdl->check_binding = FALSE;
165 if ((fdl->fd = t_open(nconf->nc_device, O_RDWR, &tinfo)) < 0) {
191 if (t_bind(fdl->fd, taddr, baddr) != 0) {
193 fdl->check_binding = TRUE;
214 t_unbind(fdl->fd);
229 if (t_bind(fdl->fd, &tmpaddr, taddr) != 0) {
236 /* Now fdl->fd is bound to a transport chosen address */
288 t_unbind(fdl->fd);
289 fdl->check_binding = TRUE;
293 t_close(fdl->fd);
294 fdl->fd = -1;
298 t_close(fdl->fd);
299 fdl->fd = -1;
308 struct fdlist *fdl;
310 for (fdl = fdhead; fdl; fdl = fdl->next)
311 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
313 if (fdl == NULL)
315 return (check_bound(fdl, uaddr));
334 struct fdlist *fdl;
338 for (fdl = fdhead; fdl; fdl = fdl->next)
339 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
341 if (fdl == NULL)
343 if (check_bound(fdl, uaddr) == FALSE)
356 ma.c_uaddr = taddr2uaddr(fdl->nconf, svc_getrpccaller(xprt));
359 fdl->nconf->nc_netid, netdir_sperror());
373 if ((strcmp(fdl->nconf->nc_protofmly, NC_INET) != 0) &&
374 (strcmp(fdl->nconf->nc_protofmly, NC_INET6) != 0)) {
380 stat = netdir_options(fdl->nconf, ND_MERGEADDR, 0, (char *)&ma);
383 else if ((ma.s_uaddr = taddr2uaddr(fdl->nconf,
390 stat = netdir_options(fdl->nconf, ND_MERGEADDR, 0, (char *)&ma);
432 fdl->nconf->nc_netid, netdir_sperror());
450 struct fdlist *fdl;
452 for (fdl = fdhead; fdl; fdl = fdl->next)
453 if (strcmp(fdl->nconf->nc_netid, netid) == 0)
455 if (fdl == NULL)
457 return (fdl->nconf);