OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6599519
)
[IPV6]: Endian fix in net/ipv6/netfilter/ip6t_eui64.c:match().
author
Alexey Dobriyan
<adobriyan@gmail.com>
Tue, 16 May 2006 22:24:41 +0000
(15:24 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 16 May 2006 22:24:41 +0000
(15:24 -0700)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/netfilter/ip6t_eui64.c
patch
|
blob
|
history
diff --git
a/net/ipv6/netfilter/ip6t_eui64.c
b/net/ipv6/netfilter/ip6t_eui64.c
index
94dbdb8
..
4f6b84c
100644
(file)
--- 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 ==
ntoh
s(ETH_P_IPV6)) {
+ if (eth_hdr(skb)->h_proto ==
hton
s(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);