Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8fd0a73 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller
Browse files

[IPV6]: Endian fix in net/ipv6/netfilter/ip6t_eui64.c:match().

parent 6599519e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);