Lines Matching refs:nconf

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