From: Alexey Dobriyan Date: Tue, 16 May 2006 22:24:41 +0000 (-0700) Subject: [IPV6]: Endian fix in net/ipv6/netfilter/ip6t_eui64.c:match(). X-Git-Tag: v2.6.17-rc5~104^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8fd0a73169e90022dc3ccf3083ca24573b44b5c;p=platform%2Fkernel%2Flinux-exynos.git [IPV6]: Endian fix in net/ipv6/netfilter/ip6t_eui64.c:match(). Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller --- diff --git a/net/ipv6/netfilter/ip6t_eui64.c b/net/ipv6/netfilter/ip6t_eui64.c index 94dbdb8..4f6b84c 100644 --- a/net/ipv6/netfilter/ip6t_eui64.c +++ b/net/ipv6/netfilter/ip6t_eui64.c @@ -40,7 +40,7 @@ match(const struct sk_buff *skb, memset(eui64, 0, sizeof(eui64)); - if (eth_hdr(skb)->h_proto == ntohs(ETH_P_IPV6)) { + if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) { if (skb->nh.ipv6h->version == 0x6) { memcpy(eui64, eth_hdr(skb)->h_source, 3); memcpy(eui64 + 5, eth_hdr(skb)->h_source + 3, 3);