Commit 8f05ce91 authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by David S. Miller
Browse files

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

parent 4412ec49
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -470,8 +470,7 @@ static void tcp_sack(const struct sk_buff *skb, unsigned int dataoff,

	/* Fast path for timestamp-only option */
	if (length == TCPOLEN_TSTAMP_ALIGNED*4
	    && *(__be32 *)ptr ==
		__constant_htonl((TCPOPT_NOP << 24)
	    && *(__be32 *)ptr == htonl((TCPOPT_NOP << 24)
				       | (TCPOPT_NOP << 16)
				       | (TCPOPT_TIMESTAMP << 8)
				       | TCPOLEN_TIMESTAMP))