Lines Matching defs:nconf

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