Lines Matching defs:len
70 register long len, win;
137 len = min(so->so_snd.sb_cc, win) - off;
139 if (len < 0) {
143 * len will be -1. Otherwise, window shrank
150 len = 0;
157 if (len > tp->t_maxseg) {
158 len = tp->t_maxseg;
161 if (SEQ_LT(tp->snd_nxt + len, tp->snd_una + so->so_snd.sb_cc))
176 if (len) {
177 if (len == tp->t_maxseg)
180 len + off >= so->so_snd.sb_cc)
184 if (len >= tp->max_sndwnd / 2 && tp->max_sndwnd > 0)
325 if (len > tp->t_maxseg - optlen) {
326 len = tp->t_maxseg - optlen;
335 if (len) {
336 if (tp->t_force && len == 1)
340 STAT(tcpstat.tcps_sndrexmitbyte += len);
343 STAT(tcpstat.tcps_sndbyte += len);
359 /* if (len <= MHLEN - hdrlen - max_linkhdr) { */
361 sbcopy(&so->so_snd, off, (int) len, mtod(m, caddr_t) + hdrlen);
362 m->m_len += len;
365 * m->m_next = m_copy(so->so_snd.sb_mb, off, (int) len);
367 * len = 0;
376 if (off + len == so->so_snd.sb_cc)
423 if (len || (flags & (TH_SYN|TH_FIN)) || tp->t_timer[TCPT_PERSIST])
465 if (len + optlen)
467 optlen + len));
468 ti->ti_sum = cksum(m, (int)(hdrlen + len));
488 tp->snd_nxt += len;
519 if (SEQ_GT(tp->snd_nxt + len, tp->snd_max))
520 tp->snd_max = tp->snd_nxt + len;
528 m->m_len = hdrlen + len; /* XXX Needed? m_len should be correct */