Skip to content

Commit

Permalink
[IPV6]: Endian fix in net/ipv6/netfilter/ip6t_eui64.c:match().
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed May 16, 2006
1 parent 6599519 commit d8fd0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/netfilter/ip6t_eui64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d8fd0a7

Please sign in to comment.