Lines Matching refs:optlen
75 unsigned optlen, hdrlen;
272 * max_linkhdr + sizeof (struct tcpiphdr) + optlen <= MHLEN
274 optlen = 0;
285 optlen = 4;
290 * *((u_int32_t *) (opt + optlen)) = htonl(
295 * optlen += 4;
310 * u_int32_t *lp = (u_int32_t *)(opt + optlen);
316 * optlen += TCPOLEN_TSTAMP_APPA;
319 hdrlen += optlen;
325 if (len > tp->t_maxseg - optlen) {
326 len = tp->t_maxseg - optlen;
428 if (optlen) {
429 memcpy((caddr_t)(ti + 1), (caddr_t)opt, optlen);
430 ti->ti_off = (sizeof (struct tcphdr) + optlen) >> 2;
465 if (len + optlen)
467 optlen + len));