+ /*
+ * Sender silly window avoidance. If can send all data,
+ * a maximum segment, at least 1/4 of window do it,
+ * or are forced, do it; otherwise don't bother.
+ */
+ if (len) {
+ if (len == tp->t_maxseg || off+len >= so->so_snd.sb_cc)
+ goto send;
+ if (len * 4 >= tp->snd_wnd) /* a lot */
+ goto send;
+ if (tp->t_force)
+ goto send;
+ }
+