* [PATCH] ipv6: endian fix
@ 2006-05-16 18:36 Alexey Dobriyan
2006-05-16 22:24 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2006-05-16 18:36 UTC (permalink / raw)
To: Andrew Morton; +Cc: netdev
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
--- 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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-16 22:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-16 18:36 [PATCH] ipv6: endian fix Alexey Dobriyan
2006-05-16 22:24 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox