Lines Matching refs:optlen
474 tcp_signature_verify_input(struct mbuf *m, int off0, int tlen, int optlen,
480 ret = tcp_signature_verify(m, off0, tlen, optlen, to, th, tcpbflag);
563 int optlen = 0;
752 optlen = off - sizeof (struct tcphdr);
975 tcp_dooptions(&to, optp, optlen, TO_SYN);
1093 tcp_dooptions(&to, optp, optlen, 0);
1145 tcp_dooptions(&to, optp, optlen,
1148 optlen, &to, th, tp->t_flags)) {
1364 tcp_dooptions(&to, optp, optlen, TO_SYN);
1385 tcp_dooptions(&to, optp, optlen,
1387 if (!tcp_signature_verify_input(m, off0, tlen, optlen, &to,
3178 int opt, optlen;
3181 for (; cnt > 0; cnt -= optlen, cp += optlen) {
3186 optlen = 1;
3190 optlen = cp[1];
3191 if (optlen < 2 || optlen > cnt)
3196 if (optlen != TCPOLEN_MAXSEG)
3206 if (optlen != TCPOLEN_WINDOW)
3214 if (optlen != TCPOLEN_TIMESTAMP)
3232 if (optlen != TCPOLEN_SIGNATURE)
3239 if (optlen != TCPOLEN_SACK_PERMITTED)
3248 if (optlen <= 2 || (optlen - 2) % TCPOLEN_SACK != 0)
3253 to->to_nsacks = (optlen - 2) / TCPOLEN_SACK;