[PATCH] ipv6: endian fix

STALE7460d

2 messages, 2 authors, 2006-05-16 · open the first message on its own page

[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;

Re: [PATCH] ipv6: endian fix

From: "David S. Miller" <davem@davemloft.net>
Date: 2006-05-16 22:26:09

From: Alexey Dobriyan <redacted>
Date: Tue, 16 May 2006 22:36:46 +0400
Signed-off-by: Alexey Dobriyan <redacted>
Applied, thanks Alexey.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help