Lines Matching refs:opt
73 struct t_opthdr *opt, *next_opt; in _tx_optmgmt() local
111 optlen = req->opt.len; in _tx_optmgmt()
119 if (req->opt.buf == NULL || in _tx_optmgmt()
127 opt_start = (struct t_opthdr *)req->opt.buf; in _tx_optmgmt()
167 for (opt = opt_start; opt < opt_end; opt = next_opt) { in _tx_optmgmt()
195 next_opt = (struct t_opthdr *)((uchar_t *)opt + in _tx_optmgmt()
196 ROUNDUP_XTI_opthdr(opt->len)); in _tx_optmgmt()
198 if ((uchar_t *)next_opt < (uchar_t *)opt || /* (1) */ in _tx_optmgmt()
202 (opt->level != first_opt_level)) { /* (3) */ in _tx_optmgmt()
211 if (opt->name == T_ALLOPT) { in _tx_optmgmt()
239 req->opt.buf, &optreq->OPT_offset) < 0) { in _tx_optmgmt()
262 if (_T_IS_TLI(api_semantics) || ret->opt.maxlen > 0) { in _tx_optmgmt()
263 if (TLEN_GT_NLEN(optack->OPT_length, ret->opt.maxlen)) { in _tx_optmgmt()
267 (void) memcpy(ret->opt.buf, in _tx_optmgmt()
270 ret->opt.len = optack->OPT_length; in _tx_optmgmt()