diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2007-03-07 00:19:10 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:23:58 -0400 |
commit | 4412ec494868160d57da6e436a92b0696f40b19d (patch) | |
tree | 91bb2477d22a95801a5c487349e89acb464793ec /net/ipv4/netfilter | |
parent | 1c9e8ef7f731c2548414644e5bf540c38c85aff0 (diff) |
[NET] IPV4: Use hton{s,l}() where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter')
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_proto_tcp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/ipv4/netfilter/ip_conntrack_proto_tcp.c b/net/ipv4/netfilter/ip_conntrack_proto_tcp.c index 0a72eab1462..7ff11977eb4 100644 --- a/net/ipv4/netfilter/ip_conntrack_proto_tcp.c +++ b/net/ipv4/netfilter/ip_conntrack_proto_tcp.c | |||
@@ -515,11 +515,10 @@ static void tcp_sack(const struct sk_buff *skb, | |||
515 | 515 | ||
516 | /* Fast path for timestamp-only option */ | 516 | /* Fast path for timestamp-only option */ |
517 | if (length == TCPOLEN_TSTAMP_ALIGNED*4 | 517 | if (length == TCPOLEN_TSTAMP_ALIGNED*4 |
518 | && *(__be32 *)ptr == | 518 | && *(__be32 *)ptr == htonl((TCPOPT_NOP << 24) |
519 | __constant_htonl((TCPOPT_NOP << 24) | 519 | | (TCPOPT_NOP << 16) |
520 | | (TCPOPT_NOP << 16) | 520 | | (TCPOPT_TIMESTAMP << 8) |
521 | | (TCPOPT_TIMESTAMP << 8) | 521 | | TCPOLEN_TIMESTAMP)) |
522 | | TCPOLEN_TIMESTAMP)) | ||
523 | return; | 522 | return; |
524 | 523 | ||
525 | while (length > 0) { | 524 | while (length > 0) { |