/titanic_41/usr/src/lib/libnsl/nsl/ |
H A D | t_rcvudata.c | 60 struct strbuf ctlbuf; in _tx_rcvudata() local 104 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_rcvudata() 120 if ((retval = getmsg(fd, &ctlbuf, (struct strbuf *)&unitdata->udata, in _tx_rcvudata() 139 if (ctlbuf.len > 0) { in _tx_rcvudata() 140 if (ctlbuf.len < (int)sizeof (t_scalar_t)) { in _tx_rcvudata() 148 pptr = (union T_primitives *)ctlbuf.buf; in _tx_rcvudata() 153 if ((ctlbuf.len < in _tx_rcvudata() 156 (ctlbuf.len < (int)(pptr->unitdata_ind.OPT_length in _tx_rcvudata() 173 ctlbuf.buf + pptr->unitdata_ind.SRC_offset, in _tx_rcvudata() 186 (void) memcpy(unitdata->opt.buf, ctlbuf.buf + in _tx_rcvudata() [all …]
|
H A D | t_rcvvudata.c | 60 struct strbuf ctlbuf; in _tx_rcvvudata() local 107 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_rcvvudata() 134 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { in _tx_rcvvudata() 149 if (ctlbuf.len > 0) { in _tx_rcvvudata() 150 if (ctlbuf.len < (int)sizeof (t_scalar_t)) { in _tx_rcvvudata() 157 pptr = (union T_primitives *)ctlbuf.buf; in _tx_rcvvudata() 162 if ((ctlbuf.len < in _tx_rcvvudata() 165 (ctlbuf.len < (int)(pptr->unitdata_ind.OPT_length in _tx_rcvvudata() 179 ctlbuf.buf + pptr->unitdata_ind.SRC_offset, in _tx_rcvvudata() 190 (void) memcpy(unitdata->opt.buf, ctlbuf.buf + in _tx_rcvvudata() [all …]
|
H A D | t_rcv.c | 55 struct strbuf ctlbuf, databuf; in _tx_rcv() local 163 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_rcv() 183 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { in _tx_rcv() 199 if (ctlbuf.len > 0) { in _tx_rcv() 200 if (ctlbuf.len < (int)sizeof (t_scalar_t)) { in _tx_rcv() 207 pptr = (union T_primitives *)ctlbuf.buf; in _tx_rcv() 221 if ((ctlbuf.len < (int)sizeof (struct T_data_ind)) || in _tx_rcv() 246 free(ctlbuf.buf); in _tx_rcv() 248 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_rcv() 272 ctlbuf.buf, ctlbuf.len) < 0) { in _tx_rcv() [all …]
|
H A D | t_rcvv.c | 53 struct strbuf ctlbuf, databuf; in _tx_rcvv() local 164 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_rcvv() 177 free(ctlbuf.buf); in _tx_rcvv() 179 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_rcvv() 198 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { in _tx_rcvv() 214 if (ctlbuf.len > 0) { in _tx_rcvv() 215 if (ctlbuf.len < (int)sizeof (t_scalar_t)) { in _tx_rcvv() 222 pptr = (union T_primitives *)ctlbuf.buf; in _tx_rcvv() 236 if ((ctlbuf.len < (int)sizeof (struct T_data_ind)) || in _tx_rcvv() 261 free(ctlbuf.buf); in _tx_rcvv() [all …]
|
H A D | t_rcvuderr.c | 50 struct strbuf ctlbuf, databuf; in _tx_rcvuderr() local 73 ctlbuf.len = tiptr->ti_lookbufs.tl_lookclen; in _tx_rcvuderr() 74 ctlbuf.buf = tiptr->ti_lookbufs.tl_lookcbuf; in _tx_rcvuderr() 78 assert(((union T_primitives *)ctlbuf.buf)->type in _tx_rcvuderr() 105 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_rcvuderr() 123 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { in _tx_rcvuderr() 140 pptr = (union T_primitives *)ctlbuf.buf; in _tx_rcvuderr() 142 if ((ctlbuf.len < (int)sizeof (struct T_uderror_ind)) || in _tx_rcvuderr() 156 (void) memcpy(uderr->addr.buf, ctlbuf.buf + in _tx_rcvuderr() 168 (void) memcpy(uderr->opt.buf, ctlbuf.buf + in _tx_rcvuderr() [all …]
|
H A D | t_listen.c | 49 struct strbuf ctlbuf; in _tx_listen() local 112 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_listen() 125 free(ctlbuf.buf); in _tx_listen() 127 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_listen() 140 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { in _tx_listen() 166 if (ctlbuf.len < (int)sizeof (t_scalar_t)) { in _tx_listen() 173 pptr = (union T_primitives *)ctlbuf.buf; in _tx_listen() 178 if ((ctlbuf.len < (int)sizeof (struct T_conn_ind)) || in _tx_listen() 179 (ctlbuf.len < (int)(pptr->conn_ind.OPT_length in _tx_listen() 206 (void) memcpy(call->addr.buf, ctlbuf.buf + in _tx_listen() [all …]
|
H A D | t_rcvrel.c | 54 struct strbuf ctlbuf; in _tx_rcvrel() local 131 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_rcvrel() 144 free(ctlbuf.buf); in _tx_rcvrel() 146 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_rcvrel() 158 retval = getmsg(fd, &ctlbuf, &databuf, &flg); in _tx_rcvrel() 175 pptr = (union T_primitives *)ctlbuf.buf; in _tx_rcvrel() 177 if (ctlbuf.len < (int)sizeof (struct T_ordrel_ind)) { in _tx_rcvrel() 192 databuf.len, ctlbuf.buf, in _tx_rcvrel() 193 ctlbuf.len) < 0) { in _tx_rcvrel() 211 free(ctlbuf.buf); in _tx_rcvrel() [all …]
|
H A D | t_rcvreldata.c | 53 struct strbuf ctlbuf; in _tx_rcvreldata() local 133 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_rcvreldata() 146 free(ctlbuf.buf); in _tx_rcvreldata() 148 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_rcvreldata() 160 retval = getmsg(fd, &ctlbuf, &databuf, &flg); in _tx_rcvreldata() 177 pptr = (union T_primitives *)ctlbuf.buf; in _tx_rcvreldata() 179 if (ctlbuf.len < (int)sizeof (struct T_ordrel_ind)) { in _tx_rcvreldata() 194 databuf.len, ctlbuf.buf, in _tx_rcvreldata() 195 ctlbuf.len) < 0) { in _tx_rcvreldata() 213 free(ctlbuf.buf); in _tx_rcvreldata() [all …]
|
H A D | t_bind.c | 63 struct strbuf ctlbuf; in _tx_bind() local 93 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_bind() 102 bind_reqp = (struct T_bind_req *)ctlbuf.buf; in _tx_bind() 120 if (_t_aligned_copy(&ctlbuf, (int)bind_reqp->ADDR_length, size, in _tx_bind() 133 if (_t_do_ioctl(fd, ctlbuf.buf, size, TI_BIND, &retlen) < 0) { in _tx_bind() 144 bind_ackp = (struct T_bind_ack *)ctlbuf.buf; in _tx_bind() 161 (memcmp(req->addr.buf, ctlbuf.buf + in _tx_bind() 163 (void) _tx_unbind_locked(fd, tiptr, &ctlbuf); in _tx_bind() 182 ctlbuf.buf + bind_ackp->ADDR_offset, in _tx_bind() 192 free(ctlbuf.buf); in _tx_bind() [all …]
|
H A D | t_sndudata.c | 54 struct strbuf ctlbuf; in _tx_sndudata() local 106 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_sndudata() 114 udreq = (struct T_unitdata_req *)ctlbuf.buf; in _tx_sndudata() 124 if (_t_aligned_copy(&ctlbuf, unitdata->addr.len, size, in _tx_sndudata() 138 if (_t_aligned_copy(&ctlbuf, unitdata->opt.len, size, in _tx_sndudata() 152 if (size > (int)ctlbuf.maxlen) { in _tx_sndudata() 158 ctlbuf.len = size; in _tx_sndudata() 169 if (putmsg(fd, &ctlbuf, (struct strbuf *)&unitdata->udata, 0) < 0) { in _tx_sndudata() 184 free(ctlbuf.buf); in _tx_sndudata() 186 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_sndudata() [all …]
|
H A D | t_accept.c | 62 struct strbuf ctlbuf; in _tx_accept() local 171 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_accept() 189 cres = (struct T_conn_res *)ctlbuf.buf; in _tx_accept() 205 if (_t_aligned_copy(&ctlbuf, call->opt.len, size, in _tx_accept() 233 ctlbuf.len = size; in _tx_accept() 244 if (putmsg(fd, &ctlbuf, in _tx_accept() 254 strfdinsert.ctlbuf.maxlen = ctlbuf.maxlen; in _tx_accept() 255 strfdinsert.ctlbuf.len = ctlbuf.len; in _tx_accept() 256 strfdinsert.ctlbuf.buf = ctlbuf.buf; in _tx_accept() 340 free(ctlbuf.buf); in _tx_accept() [all …]
|
H A D | t_rcvdis.c | 50 struct strbuf ctlbuf; in _tx_rcvdis() local 103 ctlbuf.len = tiptr->ti_lookbufs.tl_lookclen; in _tx_rcvdis() 104 ctlbuf.buf = tiptr->ti_lookbufs.tl_lookcbuf; in _tx_rcvdis() 136 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_rcvdis() 149 free(ctlbuf.buf); in _tx_rcvdis() 151 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_rcvdis() 163 retval = getmsg(fd, &ctlbuf, &databuf, &flg); in _tx_rcvdis() 184 pptr = (union T_primitives *)ctlbuf.buf; in _tx_rcvdis() 186 if ((ctlbuf.len < (int)sizeof (struct T_discon_ind)) || in _tx_rcvdis() 230 free(ctlbuf.buf); in _tx_rcvdis() [all …]
|
H A D | t_getinfo.c | 61 struct strbuf ctlbuf; in _tx_getinfo() local 72 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_getinfo() 80 inforeqp = (struct T_info_req *)ctlbuf.buf; in _tx_getinfo() 84 retval = _t_do_ioctl(fd, ctlbuf.buf, in _tx_getinfo() 98 infoackp = (struct T_info_ack *)ctlbuf.buf; in _tx_getinfo() 115 free(ctlbuf.buf); in _tx_getinfo() 117 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_getinfo() 124 free(ctlbuf.buf); in _tx_getinfo() 126 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_getinfo()
|
H A D | t_sndvudata.c | 54 struct strbuf ctlbuf; in _tx_sndvudata() local 107 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_sndvudata() 115 udreq = (struct T_unitdata_req *)ctlbuf.buf; in _tx_sndvudata() 125 if (_t_aligned_copy(&ctlbuf, unitdata->addr.len, size, in _tx_sndvudata() 139 if (_t_aligned_copy(&ctlbuf, unitdata->opt.len, size, in _tx_sndvudata() 153 if (size > (int)ctlbuf.maxlen) { in _tx_sndvudata() 159 ctlbuf.len = size; in _tx_sndvudata() 177 if (putmsg(fd, &ctlbuf, &databuf, 0) < 0) { in _tx_sndvudata() 192 free(ctlbuf.buf); in _tx_sndvudata() 194 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_sndvudata() [all …]
|
H A D | t_connect.c | 64 struct strbuf ctlbuf; in _tx_connect() local 88 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_connect() 99 if (_t_snd_conn_req(tiptr, sndcall, &ctlbuf) < 0) { in _tx_connect() 135 if (_t_rcv_conn_con(tiptr, rcvcall, &ctlbuf, api_semantics) < 0) { in _tx_connect() 163 free(ctlbuf.buf); in _tx_connect() 165 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_connect() 172 free(ctlbuf.buf); in _tx_connect() 174 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_connect()
|
H A D | t_optmgmt.c | 67 struct strbuf ctlbuf; in _tx_optmgmt() local 96 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_optmgmt() 226 optreq = (struct T_optmgmt_req *)ctlbuf.buf; in _tx_optmgmt() 238 if (_t_aligned_copy(&ctlbuf, optlen, size, in _tx_optmgmt() 250 if (_t_do_ioctl(fd, ctlbuf.buf, size, TI_OPTMGMT, &retlen) < 0) in _tx_optmgmt() 260 optack = (struct T_optmgmt_ack *)ctlbuf.buf; in _tx_optmgmt() 268 (char *)(ctlbuf.buf + optack->OPT_offset), in _tx_optmgmt() 312 free(ctlbuf.buf); in _tx_optmgmt() 314 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_optmgmt() 323 free(ctlbuf.buf); in _tx_optmgmt() [all …]
|
H A D | t_getname.c | 116 struct strbuf ctlbuf; in _tx_getprotaddr() local 142 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_getprotaddr() 150 addreqp = (struct T_addr_req *)ctlbuf.buf; in _tx_getprotaddr() 154 retval = _t_do_ioctl(fd, ctlbuf.buf, in _tx_getprotaddr() 175 addrackp = (struct T_addr_ack *)ctlbuf.buf; in _tx_getprotaddr() 189 ctlbuf.buf + addrackp->LOCADDR_offset, in _tx_getprotaddr() 214 ctlbuf.buf + addrackp->REMADDR_offset, in _tx_getprotaddr() 220 free(ctlbuf.buf); in _tx_getprotaddr() 222 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_getprotaddr()
|
H A D | t_look.c | 122 strpeek.ctlbuf.maxlen = (int)sizeof (ctltype); in _t_look_locked() 123 strpeek.ctlbuf.len = 0; in _t_look_locked() 124 strpeek.ctlbuf.buf = (char *)&ctltype; in _t_look_locked() 147 ((retval > 0) && (strpeek.ctlbuf.len >= in _t_look_locked() 150 pptr = (union T_primitives *)strpeek.ctlbuf.buf; in _t_look_locked() 224 if ((retval > 0) && (strpeek.ctlbuf.len <= 0)) { in _t_look_locked() 245 if ((retval > 0) && (strpeek.ctlbuf.len > 0)) { in _t_look_locked()
|
H A D | t_rcvconnect.c | 56 struct strbuf ctlbuf; in _tx_rcvconnect() local 80 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_rcvconnect() 87 retval = _t_rcv_conn_con(tiptr, call, &ctlbuf, api_semantics); in _tx_rcvconnect() 105 free(ctlbuf.buf); in _tx_rcvconnect() 107 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_rcvconnect()
|
H A D | t_sndrel.c | 52 struct strbuf ctlbuf; in _tx_sndrel() local 87 ctlbuf.maxlen = (int)sizeof (struct T_ordrel_req); in _tx_sndrel() 88 ctlbuf.len = (int)sizeof (struct T_ordrel_req); in _tx_sndrel() 89 ctlbuf.buf = (caddr_t)&orreq; in _tx_sndrel() 97 if (putmsg(fd, &ctlbuf, NULL, 0) < 0) { in _tx_sndrel()
|
H A D | t_sndreldata.c | 50 struct strbuf ctlbuf; in _tx_sndreldata() local 94 ctlbuf.maxlen = (int)sizeof (struct T_ordrel_req); in _tx_sndreldata() 95 ctlbuf.len = (int)sizeof (struct T_ordrel_req); in _tx_sndreldata() 96 ctlbuf.buf = (caddr_t)&orreq; in _tx_sndreldata() 104 if (putmsg(fd, &ctlbuf, NULL, 0) < 0) { in _tx_sndreldata()
|
H A D | t_unbind.c | 54 struct strbuf ctlbuf; in _tx_unbind() local 83 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_unbind() 91 retval = _tx_unbind_locked(fd, tiptr, &ctlbuf); in _tx_unbind() 95 free(ctlbuf.buf); in _tx_unbind() 97 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_unbind()
|
H A D | _utility.c | 337 struct strbuf ctlbuf; in _t_is_ok() local 350 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) in _t_is_ok() 357 free(ctlbuf.buf); in _t_is_ok() 359 tiptr->ti_ctlbuf = ctlbuf.buf; in _t_is_ok() 373 while ((retval = getmsg(fd, &ctlbuf, &databuf, &flags)) < 0) { in _t_is_ok() 394 if (ctlbuf.len < (int)sizeof (t_scalar_t)) { in _t_is_ok() 406 pptr = (union T_primitives *)ctlbuf.buf; in _t_is_ok() 410 if ((ctlbuf.len < (int)sizeof (struct T_ok_ack)) || in _t_is_ok() 417 free(ctlbuf.buf); in _t_is_ok() 419 tiptr->ti_ctlbuf = ctlbuf.buf; in _t_is_ok() [all …]
|
H A D | t_snd.c | 56 struct strbuf ctlbuf, databuf; in _tx_snd() local 151 ctlbuf.maxlen = (int)sizeof (struct T_data_req); in _tx_snd() 152 ctlbuf.len = (int)sizeof (struct T_data_req); in _tx_snd() 153 ctlbuf.buf = (char *)&datareq; in _tx_snd() 193 retval = putpmsg(fd, &ctlbuf, &databuf, band, MSG_BAND); in _tx_snd()
|
H A D | t_snddis.c | 50 struct strbuf ctlbuf; in _tx_snddis() local 140 ctlbuf.len = (int)sizeof (struct T_discon_req); in _tx_snddis() 141 ctlbuf.maxlen = (int)sizeof (struct T_discon_req); in _tx_snddis() 142 ctlbuf.buf = (char *)&dreq; in _tx_snddis() 157 if (putmsg(fd, &ctlbuf, (databuf.len? &databuf: NULL), 0) < 0) { in _tx_snddis()
|