Re: 1.3.63 & no SYN ?

Linus Torvalds (torvalds@cs.helsinki.fi)
Thu, 15 Feb 1996 14:17:37 +0200 (EET)


Ok, it wasn't enough to just add the "t1->doff" initialization, it also needs
to have the ACK etc stuff to make it work correctly. Pseudo-patch that should
actually work follows (but do this patch by hand: I did a cut-and-paste, so
this doesn't have the correct tabulation etc stuff)

Linus

----------
--- v1.3.63/linux/net/ipv4/tcp_output.c Wed Feb 14 14:37:20 1996
+++ linux/net/ipv4/tcp_output.c Thu Feb 15 14:06:41 1996
@@ -540,6 +540,7 @@

t1->dest = th->source;
t1->source = th->dest;
+ t1->doff = sizeof(*t1)/4;
t1->syn = 0;
t1->fin = 0;
t1->urg = 0;
@@ -553,6 +554,8 @@
}
else
{
+ t1->seq = 0;
+ t1->ack = 1;
if(!th->syn)
t1->ack_seq = th->seq;
else
----------