SCCS-vsn: sys/netinet/tcp_output.c 4.43
-/* tcp_output.c 4.42 82/06/20 */
+/* tcp_output.c 4.43 82/08/02 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
* number wraparound.
*/
tp->snd_up = tp->snd_una; /* drag it along */
* number wraparound.
*/
tp->snd_up = tp->snd_una; /* drag it along */
+ /*
+ * If anything to send and we can send it all, set PUSH.
+ * (This will keep happy those implementations which only
+ * give data to the user when a buffer fills or a PUSH comes in.
+ */
+/* if (len && (ti->ti_flags & (TH_FIN|TH_RST|TH_SYN)) == 0) */
+ if (len && off+len == so->so_snd.sb_cc)
+ ti->ti_flags |= TH_PUSH;
/*
* Put TCP length in extended header, and then
/*
* Put TCP length in extended header, and then