|
@@ -447,7 +447,7 @@ static void tcp_sack(const struct sk_buff *skb, unsigned int dataoff,
|
|
BUG_ON(ptr == NULL);
|
|
BUG_ON(ptr == NULL);
|
|
|
|
|
|
/* Fast path for timestamp-only option */
|
|
/* Fast path for timestamp-only option */
|
|
- if (length == TCPOLEN_TSTAMP_ALIGNED*4
|
|
|
|
|
|
+ if (length == TCPOLEN_TSTAMP_ALIGNED
|
|
&& *(__be32 *)ptr == htonl((TCPOPT_NOP << 24)
|
|
&& *(__be32 *)ptr == htonl((TCPOPT_NOP << 24)
|
|
| (TCPOPT_NOP << 16)
|
|
| (TCPOPT_NOP << 16)
|
|
| (TCPOPT_TIMESTAMP << 8)
|
|
| (TCPOPT_TIMESTAMP << 8)
|