Lines Matching refs:nconf

218 rdc_transport_open(struct netconfig *nconf)  in rdc_transport_open()  argument
223 if ((nconf == (struct netconfig *)NULL) || in rdc_transport_open()
224 (nconf->nc_device == (char *)NULL)) { in rdc_transport_open()
232 fd = t_open(nconf->nc_device, O_RDWR, (struct t_info *)NULL); in rdc_transport_open()
237 fd = t_open(nconf->nc_device, O_RDWR, NULL); in rdc_transport_open()
267 if (nconf->nc_semantics == NC_TPI_CLTS) { in rdc_transport_open()
335 rdcd_log_tli_error(char *tli_name, int fd, struct netconfig *nconf) in rdcd_log_tli_error() argument
346 tli_name, fd, nconf->nc_proto); in rdcd_log_tli_error()
350 tli_name, fd, nconf->nc_proto, t_errno); in rdcd_log_tli_error()
433 struct netconfig *nconf; in do_all() local
440 while (nconf = getnetconfig(nc)) { in do_all()
441 if ((nconf->nc_flag & NC_VISIBLE) && in do_all()
442 strcmp(nconf->nc_protofmly, "loopback") != 0 && in do_all()
443 OK_TPI_TYPE(nconf)) in do_all()
444 do_one(nconf->nc_device, nconf->nc_proto, protobp, svc); in do_all()
813 add_to_poll_list(int fd, struct netconfig *nconf) in add_to_poll_list() argument
871 conn_polled[num_fds].nc = *nconf; /* structure copy */ in add_to_poll_list()
883 num_fds, nconf->nc_proto); in add_to_poll_list()
965 conn_get(int fd, struct netconfig *nconf, struct conn_ind **connp) in conn_get() argument
980 rdcd_log_tli_error("t_alloc", fd, nconf); in conn_get()
985 rdcd_log_tli_error("t_listen", fd, nconf); in conn_get()
995 nconf->nc_proto, conn->conn_call->udata.len); in conn_get()
1018 discon_get(int fd, struct netconfig *nconf, struct conn_ind **connp) in discon_get() argument
1026 rdcd_log_tli_error("t_rcvdis", fd, nconf); in discon_get()
1061 struct netconfig *nconf = &conn_polled[conn_index].nc; in cots_listen_event() local
1067 (void) conn_get(fd, nconf, &conn_head); in cots_listen_event()
1094 new_fd = rdc_transport_open(nconf); in cots_listen_event()
1100 nconf->nc_device); in cots_listen_event()
1106 rdcd_log_tli_error("t_bind", new_fd, nconf); in cots_listen_event()
1116 rdcd_log_tli_error("t_accept", fd, nconf); in cots_listen_event()
1126 (void) conn_get(fd, nconf, &conn_head); in cots_listen_event()
1130 (void) discon_get(fd, nconf, in cots_listen_event()
1138 event, nconf->nc_proto); in cots_listen_event()
1148 if (set_addrmask(new_fd, nconf, &addrmask) < 0) { in cots_listen_event()
1150 nconf->nc_netid); in cots_listen_event()
1158 ret = (*Mysvc)(new_fd, addrmask, nconf); in cots_listen_event()
1177 add_to_poll_list(new_fd, nconf); in cots_listen_event()
1180 nconf = &conn_polled[conn_index].nc; in cots_listen_event()
1193 struct netconfig *nconf = &(connent->nc); in do_poll_cots_action() local
1224 if (nconf->nc_semantics == NC_TPI_COTS || in do_poll_cots_action()
1259 rdcd_log_tli_error("t_rcvrel", fd, nconf); in do_poll_cots_action()
1272 rdcd_log_tli_error("t_rcvdis", fd, nconf); in do_poll_cots_action()
1297 event, nconf->nc_proto, fd, errorstr); in do_poll_cots_action()
1322 struct netconfig *nconf = &conn_polled[conn_index].nc; in do_poll_clts_action() local
1382 fd, nconf->nc_proto); in do_poll_clts_action()
1387 fd, nconf->nc_proto, t_errno); in do_poll_clts_action()
1413 fd, nconf->nc_proto, unitdata->udata.len); in do_poll_clts_action()
1439 fd, nconf->nc_proto); in do_poll_clts_action()
1446 fd, nconf->nc_proto, t_errno); in do_poll_clts_action()
1468 fd, nconf->nc_proto); in do_poll_clts_action()
1473 fd, nconf->nc_proto, t_errno); in do_poll_clts_action()
1480 fd, nconf->nc_proto, ret, T_UDERR); in do_poll_clts_action()
1498 fd, nconf->nc_proto); in do_poll_clts_action()
1503 fd, nconf->nc_proto, t_errno); in do_poll_clts_action()
1526 progname, fd, nconf->nc_proto); in do_poll_clts_action()
1532 ret = netdir_getbyaddr(nconf, &host, &uderr->addr); in do_poll_clts_action()
1582 fd, nconf->nc_proto); in do_poll_clts_action()
1587 fd, nconf->nc_proto, t_errno); in do_poll_clts_action()
1600 fd, nconf->nc_proto); in do_poll_clts_action()
1624 rdcsvc(int fd, struct netbuf addrmask, struct netconfig *nconf) in rdcsvc() argument
1635 (void) strncpy(nsa.netid, nconf->nc_netid, sizeof (nsa.netid)); in rdcsvc()
1680 rdcd_bindit(struct netconfig *nconf, struct netbuf **addr, in rdcd_bindit() argument
1691 if ((fd = rdc_transport_open(nconf)) == -1) { in rdcd_bindit()
1693 nconf->nc_device); in rdcd_bindit()
1698 if (netdir_getbyname(nconf, hs, &addrlist) != 0) { in rdcd_bindit()
1699 if (strncmp(nconf->nc_netid, "udp", 3) != 0) { in rdcd_bindit()
1702 nconf->nc_netid, hs->h_host, hs->h_serv); in rdcd_bindit()
1708 if (strcmp(nconf->nc_proto, "tcp") == 0) { in rdcd_bindit()
1723 if (nconf->nc_semantics == NC_TPI_CLTS) in rdcd_bindit()
1760 if (strcmp(nconf->nc_proto, "tcp") == 0 || in rdcd_bindit()
1761 strcmp(nconf->nc_proto, "tcp6") == 0) { in rdcd_bindit()
1787 "proto %s: t_errno = %d, %m", nconf->nc_proto, in rdcd_bindit()
1801 struct netconfig *nconf; in bind_to_provider() local
1812 while (nconf = getnetconfig(nc)) { in bind_to_provider()
1813 if (OK_TPI_TYPE(nconf) && in bind_to_provider()
1814 strcmp(nconf->nc_device, provider) == 0) { in bind_to_provider()
1815 *retnconf = nconf; in bind_to_provider()
1816 return (rdcd_bindit(nconf, addr, &hs, listen_backlog)); in bind_to_provider()
1849 set_addrmask(int fd, struct netconfig *nconf, struct netbuf *mask) in set_addrmask() argument
1873 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) { in set_addrmask()
1884 else if (strcmp(nconf->nc_protofmly, NC_INET6) == 0) { in set_addrmask()