Searched refs:ctlbuf (Results 1 - 25 of 47) sorted by relevance

12

/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_rcvudata.c60 struct strbuf ctlbuf; local
101 * Acquire ctlbuf for use in sending/receiving control part
104 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
120 if ((retval = getmsg(fd, &ctlbuf, (struct strbuf *)&unitdata->udata,
139 if (ctlbuf.len > 0) {
140 if (ctlbuf.len < (int)sizeof (t_scalar_t)) {
148 pptr = (union T_primitives *)ctlbuf.buf;
153 if ((ctlbuf.len <
156 (ctlbuf.len < (int)(pptr->unitdata_ind.OPT_length
173 ctlbuf
[all...]
H A Dt_connect.c64 struct strbuf ctlbuf; local
85 * Acquire ctlbuf for use in sending/receiving control part
88 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
99 if (_t_snd_conn_req(tiptr, sndcall, &ctlbuf) < 0) {
135 if (_t_rcv_conn_con(tiptr, rcvcall, &ctlbuf, api_semantics) < 0) {
163 free(ctlbuf.buf);
165 tiptr->ti_ctlbuf = ctlbuf.buf;
172 free(ctlbuf.buf);
174 tiptr->ti_ctlbuf = ctlbuf.buf;
H A Dt_rcvuderr.c50 struct strbuf ctlbuf, databuf; local
73 ctlbuf.len = tiptr->ti_lookbufs.tl_lookclen;
74 ctlbuf.buf = tiptr->ti_lookbufs.tl_lookcbuf;
78 assert(((union T_primitives *)ctlbuf.buf)->type
102 * Acquire ctlbuf for use in sending/receiving control part
105 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
123 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
140 pptr = (union T_primitives *)ctlbuf.buf;
142 if ((ctlbuf.len < (int)sizeof (struct T_uderror_ind)) ||
156 (void) memcpy(uderr->addr.buf, ctlbuf
[all...]
H A Dt_bind.c63 struct strbuf ctlbuf; local
93 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
102 bind_reqp = (struct T_bind_req *)ctlbuf.buf;
120 if (_t_aligned_copy(&ctlbuf, (int)bind_reqp->ADDR_length, size,
133 if (_t_do_ioctl(fd, ctlbuf.buf, size, TI_BIND, &retlen) < 0) {
144 bind_ackp = (struct T_bind_ack *)ctlbuf.buf;
161 (memcmp(req->addr.buf, ctlbuf.buf +
163 (void) _tx_unbind_locked(fd, tiptr, &ctlbuf);
182 ctlbuf.buf + bind_ackp->ADDR_offset,
192 free(ctlbuf
[all...]
H A Dt_rcvdis.c50 struct strbuf ctlbuf; local
103 ctlbuf.len = tiptr->ti_lookbufs.tl_lookclen;
104 ctlbuf.buf = tiptr->ti_lookbufs.tl_lookcbuf;
105 /* Note: ctlbuf.maxlen not used in this case */
133 * Acquire ctlbuf for use in sending/receiving control part
136 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
149 free(ctlbuf.buf);
151 tiptr->ti_ctlbuf = ctlbuf.buf;
163 retval = getmsg(fd, &ctlbuf, &databuf, &flg);
184 pptr = (union T_primitives *)ctlbuf
[all...]
H A Dt_rcvrel.c54 struct strbuf ctlbuf; local
128 * Acquire ctlbuf for use in sending/receiving control part
131 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
144 free(ctlbuf.buf);
146 tiptr->ti_ctlbuf = ctlbuf.buf;
158 retval = getmsg(fd, &ctlbuf, &databuf, &flg);
175 pptr = (union T_primitives *)ctlbuf.buf;
177 if (ctlbuf.len < (int)sizeof (struct T_ordrel_ind)) {
192 databuf.len, ctlbuf.buf,
193 ctlbuf
[all...]
H A Dt_rcvreldata.c53 struct strbuf ctlbuf; local
130 * Acquire ctlbuf for use in sending/receiving control part
133 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
146 free(ctlbuf.buf);
148 tiptr->ti_ctlbuf = ctlbuf.buf;
160 retval = getmsg(fd, &ctlbuf, &databuf, &flg);
177 pptr = (union T_primitives *)ctlbuf.buf;
179 if (ctlbuf.len < (int)sizeof (struct T_ordrel_ind)) {
194 databuf.len, ctlbuf.buf,
195 ctlbuf
[all...]
H A Dt_getinfo.c61 struct strbuf ctlbuf; local
72 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
80 inforeqp = (struct T_info_req *)ctlbuf.buf;
84 retval = _t_do_ioctl(fd, ctlbuf.buf,
98 infoackp = (struct T_info_ack *)ctlbuf.buf;
115 free(ctlbuf.buf);
117 tiptr->ti_ctlbuf = ctlbuf.buf;
124 free(ctlbuf.buf);
126 tiptr->ti_ctlbuf = ctlbuf.buf;
H A Dt_rcvconnect.c56 struct strbuf ctlbuf; local
77 * Acquire ctlbuf for use in sending/receiving control part
80 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
87 retval = _t_rcv_conn_con(tiptr, call, &ctlbuf, api_semantics);
105 free(ctlbuf.buf);
107 tiptr->ti_ctlbuf = ctlbuf.buf;
H A Dt_rcvv.c53 struct strbuf ctlbuf, databuf; local
161 * Acquire ctlbuf for use in sending/receiving control part
164 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
177 free(ctlbuf.buf);
179 tiptr->ti_ctlbuf = ctlbuf.buf;
198 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
214 if (ctlbuf.len > 0) {
215 if (ctlbuf.len < (int)sizeof (t_scalar_t)) {
222 pptr = (union T_primitives *)ctlbuf.buf;
236 if ((ctlbuf
[all...]
H A Dt_sndrel.c52 struct strbuf ctlbuf; local
87 ctlbuf.maxlen = (int)sizeof (struct T_ordrel_req);
88 ctlbuf.len = (int)sizeof (struct T_ordrel_req);
89 ctlbuf.buf = (caddr_t)&orreq;
97 if (putmsg(fd, &ctlbuf, NULL, 0) < 0) {
H A Dt_sndreldata.c50 struct strbuf ctlbuf; local
94 ctlbuf.maxlen = (int)sizeof (struct T_ordrel_req);
95 ctlbuf.len = (int)sizeof (struct T_ordrel_req);
96 ctlbuf.buf = (caddr_t)&orreq;
104 if (putmsg(fd, &ctlbuf, NULL, 0) < 0) {
H A Dt_sndudata.c54 struct strbuf ctlbuf; local
103 * Acquire ctlbuf for use in sending/receiving control part
106 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
114 udreq = (struct T_unitdata_req *)ctlbuf.buf;
124 if (_t_aligned_copy(&ctlbuf, unitdata->addr.len, size,
138 if (_t_aligned_copy(&ctlbuf, unitdata->opt.len, size,
152 if (size > (int)ctlbuf.maxlen) {
158 ctlbuf.len = size;
169 if (putmsg(fd, &ctlbuf, (struct strbuf *)&unitdata->udata, 0) < 0) {
184 free(ctlbuf
[all...]
H A Dt_sndvudata.c54 struct strbuf ctlbuf; local
104 * Acquire ctlbuf for use in sending/receiving control part
107 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
115 udreq = (struct T_unitdata_req *)ctlbuf.buf;
125 if (_t_aligned_copy(&ctlbuf, unitdata->addr.len, size,
139 if (_t_aligned_copy(&ctlbuf, unitdata->opt.len, size,
153 if (size > (int)ctlbuf.maxlen) {
159 ctlbuf.len = size;
177 if (putmsg(fd, &ctlbuf, &databuf, 0) < 0) {
192 free(ctlbuf
[all...]
H A Dt_rcv.c55 struct strbuf ctlbuf, databuf; local
160 * Acquire ctlbuf for use in sending/receiving control part
163 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
183 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
199 if (ctlbuf.len > 0) {
200 if (ctlbuf.len < (int)sizeof (t_scalar_t)) {
207 pptr = (union T_primitives *)ctlbuf.buf;
221 if ((ctlbuf.len < (int)sizeof (struct T_data_ind)) ||
246 free(ctlbuf.buf);
248 tiptr->ti_ctlbuf = ctlbuf
[all...]
H A Dt_rcvvudata.c60 struct strbuf ctlbuf; local
104 * Acquire ctlbuf for use in sending/receiving control part
107 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
134 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
149 if (ctlbuf.len > 0) {
150 if (ctlbuf.len < (int)sizeof (t_scalar_t)) {
157 pptr = (union T_primitives *)ctlbuf.buf;
162 if ((ctlbuf.len <
165 (ctlbuf.len < (int)(pptr->unitdata_ind.OPT_length
179 ctlbuf
[all...]
H A Dt_optmgmt.c67 struct strbuf ctlbuf; local
96 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
226 optreq = (struct T_optmgmt_req *)ctlbuf.buf;
238 if (_t_aligned_copy(&ctlbuf, optlen, size,
250 if (_t_do_ioctl(fd, ctlbuf.buf, size, TI_OPTMGMT, &retlen) < 0)
260 optack = (struct T_optmgmt_ack *)ctlbuf.buf;
268 (char *)(ctlbuf.buf + optack->OPT_offset),
312 free(ctlbuf.buf);
314 tiptr->ti_ctlbuf = ctlbuf.buf;
323 free(ctlbuf
[all...]
H A Dt_listen.c49 struct strbuf ctlbuf; local
109 * Acquire ctlbuf for use in sending/receiving control part
112 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
125 free(ctlbuf.buf);
127 tiptr->ti_ctlbuf = ctlbuf.buf;
140 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
166 if (ctlbuf.len < (int)sizeof (t_scalar_t)) {
173 pptr = (union T_primitives *)ctlbuf.buf;
178 if ((ctlbuf.len < (int)sizeof (struct T_conn_ind)) ||
179 (ctlbuf
[all...]
H A Dt_accept.c62 struct strbuf ctlbuf; local
168 * Acquire ctlbuf for use in sending/receiving control part
171 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
189 cres = (struct T_conn_res *)ctlbuf.buf;
205 if (_t_aligned_copy(&ctlbuf, call->opt.len, size,
233 ctlbuf.len = size;
244 if (putmsg(fd, &ctlbuf,
254 strfdinsert.ctlbuf.maxlen = ctlbuf.maxlen;
255 strfdinsert.ctlbuf
[all...]
H A Dt_look.c122 strpeek.ctlbuf.maxlen = (int)sizeof (ctltype);
123 strpeek.ctlbuf.len = 0;
124 strpeek.ctlbuf.buf = (char *)&ctltype;
147 ((retval > 0) && (strpeek.ctlbuf.len >=
150 pptr = (union T_primitives *)strpeek.ctlbuf.buf;
224 if ((retval > 0) && (strpeek.ctlbuf.len <= 0)) {
245 if ((retval > 0) && (strpeek.ctlbuf.len > 0)) {
H A Dt_unbind.c54 struct strbuf ctlbuf; local
83 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
91 retval = _tx_unbind_locked(fd, tiptr, &ctlbuf);
95 free(ctlbuf.buf);
97 tiptr->ti_ctlbuf = ctlbuf.buf;
H A Dt_getname.c116 struct strbuf ctlbuf; local
142 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
150 addreqp = (struct T_addr_req *)ctlbuf.buf;
154 retval = _t_do_ioctl(fd, ctlbuf.buf,
175 addrackp = (struct T_addr_ack *)ctlbuf.buf;
189 ctlbuf.buf + addrackp->LOCADDR_offset,
214 ctlbuf.buf + addrackp->REMADDR_offset,
220 free(ctlbuf.buf);
222 tiptr->ti_ctlbuf = ctlbuf.buf;
H A Dt_snd.c56 struct strbuf ctlbuf, databuf; local
148 * Initialize ctlbuf for use in sending/receiving control part
151 ctlbuf.maxlen = (int)sizeof (struct T_data_req);
152 ctlbuf.len = (int)sizeof (struct T_data_req);
153 ctlbuf.buf = (char *)&datareq;
193 retval = putpmsg(fd, &ctlbuf, &databuf, band, MSG_BAND);
H A Dt_snddis.c50 struct strbuf ctlbuf; local
140 ctlbuf.len = (int)sizeof (struct T_discon_req);
141 ctlbuf.maxlen = (int)sizeof (struct T_discon_req);
142 ctlbuf.buf = (char *)&dreq;
157 if (putmsg(fd, &ctlbuf, (databuf.len? &databuf: NULL), 0) < 0) {
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dstropts.h131 struct strbuf ctlbuf; member in struct:strpeek
140 struct strbuf ctlbuf; member in struct:strfdinsert

Completed in 112 milliseconds

12