[NET] NETFILTER: Use htonl() where appropriate.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
YOSHIFUJI Hideaki 2007-03-07 14:21:00 +09:00 committed by David S. Miller
parent 4412ec4948
commit 8f05ce91c8

View file

@ -470,11 +470,10 @@ static void tcp_sack(const struct sk_buff *skb, unsigned int dataoff,
/* Fast path for timestamp-only option */ /* Fast path for timestamp-only option */
if (length == TCPOLEN_TSTAMP_ALIGNED*4 if (length == TCPOLEN_TSTAMP_ALIGNED*4
&& *(__be32 *)ptr == && *(__be32 *)ptr == htonl((TCPOPT_NOP << 24)
__constant_htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16)
| (TCPOPT_NOP << 16) | (TCPOPT_TIMESTAMP << 8)
| (TCPOPT_TIMESTAMP << 8) | TCPOLEN_TIMESTAMP))
| TCPOLEN_TIMESTAMP))
return; return;
while (length > 0) { while (length > 0) {