2001-12-20 10:12:20

by Mika.Liljeberg

[permalink] [raw]
Subject: TCP with IPv6 always refuses timestamps

Hi,

Another bug found. TCP over IPv6 always seems to refuse the timestamps
option when responding to a SYN. When originating a connection, timestamps
work fine.

BR,

MikaL

----------------------------------------------------------------
Mika Liljeberg Phone: +358 5048 36791
Nokia Research Center Fax: +358 7180 36850
P.O.Box 407 Email: [email protected]
FIN-00045 NOKIA GROUP Office: It?merenkatu 11-13,
Finland FIN-00180, Helsinki, Finland
----------------------------------------------------------------


2001-12-20 23:24:52

by Alexey Kuznetsov

[permalink] [raw]
Subject: Re: TCP with IPv6 always refuses timestamps

Hello!

> Another bug found.

This is easy, fortunately.

Alexey


--- ../vger3-011203/linux/net/ipv6/tcp_ipv6.c Sat Nov 10 21:45:08 2001
+++ linux/net/ipv6/tcp_ipv6.c Thu Dec 20 20:58:06 2001
@@ -1172,6 +1180,7 @@

tcp_parse_options(skb, &tp, 0);

+ tp.tstamp_ok = tp.saw_tstamp;
tcp_openreq_init(req, &tp, skb);

req->class = &or_ipv6;