Lines Matching defs:nconf

138 nfslib_transport_open(struct netconfig *nconf)
143 if ((nconf == (struct netconfig *)NULL) ||
144 (nconf->nc_device == (char *)NULL)) {
152 fd = t_open(nconf->nc_device, O_RDWR, (struct t_info *)NULL);
157 fd = t_open(nconf->nc_device, O_RDWR,
162 nconf->nc_device, t_errno);
211 if (strcmp(nconf->nc_netid, "udp6") == 0)
213 else if (strcmp(nconf->nc_netid, "udp") == 0)
282 nfslib_bindit(struct netconfig *nconf, struct netbuf **addr,
295 if ((fd = nfslib_transport_open(nconf)) == -1) {
297 nconf->nc_device);
311 } else if (netdir_getbyname(nconf, hs, &addrlist) != 0) {
315 nconf->nc_netid, hs->h_host, hs->h_serv);
320 if (strcmp(nconf->nc_proto, "tcp") == 0) {
333 } else if (strcmp(nconf->nc_proto, "udp") == 0) {
360 if (nconf->nc_semantics == NC_TPI_CLTS)
407 if ((nconf->nc_semantics == NC_TPI_COTS ||
408 nconf->nc_semantics == NC_TPI_COTS_ORD) && Mysvc4 != NULL)
409 (*Mysvc4)(fd, NULL, nconf, NFS4_SETPORT, &ntb->addr);
414 if (strcmp(nconf->nc_proto, "tcp") == 0) {
441 nconf->nc_proto, t_errno);
528 nfslib_log_tli_error(char *tli_name, int fd, struct netconfig *nconf)
539 tli_name, fd, nconf->nc_proto);
543 tli_name, fd, nconf->nc_proto, t_errno);
647 struct netconfig *nconf;
656 while (nconf = getnetconfig(nc)) {
657 if ((nconf->nc_flag & NC_VISIBLE) &&
658 strcmp(nconf->nc_protofmly, NC_LOOPBACK) != 0 &&
659 OK_TPI_TYPE(nconf) &&
661 strncasecmp(nconf->nc_proto, NC_UDP, l) != 0))
662 do_one(nconf->nc_device, nconf->nc_proto,
764 add_to_poll_list(int fd, struct netconfig *nconf)
819 conn_polled[num_fds].nc = *nconf;
830 num_fds, nconf->nc_proto);
877 struct netconfig *nconf = &conn_polled[conn_index].nc;
936 fd, nconf->nc_proto);
941 fd, nconf->nc_proto, t_errno);
967 fd, nconf->nc_proto, unitdata->udata.len);
993 fd, nconf->nc_proto);
1000 fd, nconf->nc_proto, t_errno);
1022 fd, nconf->nc_proto);
1027 fd, nconf->nc_proto, t_errno);
1034 fd, nconf->nc_proto, ret, T_UDERR);
1051 fd, nconf->nc_proto);
1056 fd, nconf->nc_proto, t_errno);
1078 fd, nconf->nc_proto);
1084 ret = netdir_getbyaddr(nconf, &host, &uderr->addr);
1131 fd, nconf->nc_proto);
1136 fd, nconf->nc_proto, t_errno);
1149 fd, nconf->nc_proto);
1214 conn_get(int fd, struct netconfig *nconf, struct conn_ind **connp)
1229 nfslib_log_tli_error("t_alloc", fd, nconf);
1234 nfslib_log_tli_error("t_listen", fd, nconf);
1243 nconf->nc_proto, conn->conn_call->udata.len);
1266 discon_get(int fd, struct netconfig *nconf, struct conn_ind **connp)
1274 nfslib_log_tli_error("t_rcvdis", fd, nconf);
1309 struct netconfig *nconf = &conn_polled[conn_index].nc;
1318 (void) conn_get(fd, nconf, &conn_head);
1345 new_fd = nfslib_transport_open(nconf);
1351 nconf->nc_device);
1357 nfslib_log_tli_error("t_bind", new_fd, nconf);
1368 nfslib_log_tli_error("t_accept", fd, nconf);
1381 "cots_listen_event(%s): T_LISTEN during accept processing\n", nconf->nc_proto);
1383 (void) conn_get(fd, nconf, &conn_head);
1389 nconf->nc_proto);
1391 (void) discon_get(fd, nconf,
1397 event, nconf->nc_proto);
1407 if (set_addrmask(new_fd, nconf, &addrmask) < 0) {
1410 nconf->nc_netid);
1419 ret = (*Mysvc4)(new_fd, &addrmask, nconf,
1422 ret = (*Mysvc)(new_fd, addrmask, nconf);
1433 if (netdir_getbyaddr(nconf, &clnt_serv,
1438 clnt = clnt_uaddr = taddr2uaddr(nconf,
1471 add_to_poll_list(new_fd, nconf);
1473 /* Reset nconf in case it has been moved. */
1474 nconf = &conn_polled[conn_index].nc;
1487 struct netconfig *nconf = &(connent->nc);
1494 printf("do_poll_cots_action(%s,%d): T_LISTEN event\n", nconf->nc_proto, fd);
1501 printf("do_poll_cots_action(%d,%s): T_DATA event\n", fd, nconf->nc_proto);
1525 printf("do_poll_cots_action(%s,%d): ", nconf->nc_proto, fd);
1528 if (nconf->nc_semantics == NC_TPI_COTS ||
1552 printf("do_poll_cots_action(%s,%d): T_ORDREL event\n", nconf->nc_proto, fd);
1566 nfslib_log_tli_error("t_rcvrel", fd, nconf);
1580 printf("do_poll_cots_action(%s,%d): T_DISCONNECT event\n", nconf->nc_proto, fd);
1583 nfslib_log_tli_error("t_rcvdis", fd, nconf);
1607 event, nconf->nc_proto, fd, errorstr);
1641 struct netconfig *nconf;
1652 while (nconf = getnetconfig(nc)) {
1653 if (OK_TPI_TYPE(nconf) &&
1654 strcmp(nconf->nc_device, provider) == 0) {
1655 *retnconf = nconf;
1656 return (nfslib_bindit(nconf, addr, &hs,
1671 struct netconfig *nconf;
1682 while (nconf = getnetconfig(nc)) {
1683 if (OK_TPI_TYPE(nconf) && NETSELEQ(nconf->nc_proto, proto)) {
1684 *retnconf = nconf;
1685 return (nfslib_bindit(nconf, addr, &hs,
1708 struct netconfig *nconf,
1729 (0 == strcmp(nconf->nc_protofmly, NC_LOOPBACK))) {
1745 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) {
1755 } else if (strcmp(nconf->nc_protofmly, NC_INET6) == 0) {