[PATCH] ipv6: endian fix
From: Alexey Dobriyan <hidden>
Date: 2006-05-16 18:38:08
Signed-off-by: Alexey Dobriyan <redacted> ---
--- a/net/ipv6/netfilter/ip6t_eui64.c
+++ b/net/ipv6/netfilter/ip6t_eui64.c@@ -38,11 +38,11 @@ match(const struct sk_buff *skb, return 0; } 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); eui64[3] = 0xff; eui64[4] = 0xfe;