[PATCH RFC] Only parse time stamp TCP option in time wait sock

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Gilad Ben-Yossef
Date: Tuesday, October 20, 2009 - 8:22 am

A time wait socket is established - we already know if time stamp
option is called for or not.

Signed-off-by: Gilad Ben-Yossef <gilad@codefidence.com>
Signed-off-by: Ori Finkelman <ori@comsleep.com>
Signed-off-by: Yony Amit <yony@comsleep.com>

---
 net/ipv4/tcp_minisocks.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c
index 624c3c9..c49a550 100644
--- a/net/ipv4/tcp_minisocks.c
+++ b/net/ipv4/tcp_minisocks.c
@@ -100,9 +100,8 @@ tcp_timewait_state_process(struct inet_timewait_sock *tw, struct sk_buff *skb,
 	struct tcp_options_received tmp_opt;
 	int paws_reject = 0;
 
-	tmp_opt.saw_tstamp = 0;
 	if (th->doff > (sizeof(*th) >> 2) && tcptw->tw_ts_recent_stamp) {
-		tcp_parse_options(skb, &tmp_opt, 0);
+		tcp_parse_options(skb, &tmp_opt, 1);
 
 		if (tmp_opt.saw_tstamp) {
 			tmp_opt.ts_recent	= tcptw->tw_ts_recent;
-- 
1.5.6.3

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] Per route TCP options, Gilad Ben-Yossef, (Tue Oct 20, 8:22 am)
[PATCH RFC] Only parse time stamp TCP option in time wait sock, Gilad Ben-Yossef, (Tue Oct 20, 8:22 am)
[PATCH RFC] Allow tcp_parse_options to consult dst entry, Gilad Ben-Yossef, (Tue Oct 20, 8:22 am)
[PATCH RFC] Add dst_feature to query route entry features, Gilad Ben-Yossef, (Tue Oct 20, 8:22 am)
[PATCH RFC] Add the no SACK route option feature, Gilad Ben-Yossef, (Tue Oct 20, 8:22 am)
[PATCH RFC] Allow disabling TCP timestamp options per route, Gilad Ben-Yossef, (Tue Oct 20, 8:22 am)
[PATCH RFC] Allow to turn off TCP window scale opt per route, Gilad Ben-Yossef, (Tue Oct 20, 8:22 am)
[PATCH RFC] Allow disabling of DSACK TCP option per route, Gilad Ben-Yossef, (Tue Oct 20, 8:22 am)
[PATCH RFC] Document future removal of sysctl_tcp_* options, Gilad Ben-Yossef, (Tue Oct 20, 8:22 am)
Re: [PATCH RFC] Per route TCP options, Eric Dumazet, (Tue Oct 20, 8:44 am)
Re: [PATCH RFC] Per route TCP options, Gilad Ben-Yossef, (Tue Oct 20, 9:11 am)
Re: [PATCH RFC] Per route TCP options, Rick Jones, (Tue Oct 20, 9:26 am)
Re: [PATCH RFC] Per route TCP options, =?ISO-8859-15?Q?Ilpo ..., (Tue Oct 20, 11:53 am)
Re: [PATCH RFC] Per route TCP options, David Miller, (Tue Oct 20, 5:36 pm)
Re: [PATCH RFC] Allow to turn off TCP window scale opt per ..., Stephen Hemminger, (Tue Oct 20, 6:40 pm)
Re: [PATCH RFC] Per route TCP options, Bill Fink, (Tue Oct 20, 7:13 pm)
Re: [PATCH RFC] Per route TCP options, Gilad Ben-Yossef, (Wed Oct 21, 1:04 am)
Re: [PATCH RFC] Per route TCP options, Gilad Ben-Yossef, (Wed Oct 21, 1:10 am)
Re: [PATCH RFC] Per route TCP options, Gilad Ben-Yossef, (Wed Oct 21, 1:15 am)
Re: [PATCH RFC] Per route TCP options, Florian Westphal, (Wed Oct 21, 1:21 am)
Re: [PATCH RFC] Per route TCP options, Gilad Ben-Yossef, (Wed Oct 21, 1:27 am)
Re: [PATCH RFC] Per route TCP options, Gilad Ben-Yossef, (Wed Oct 21, 1:40 am)