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

Commit 5ed688a7 authored by Jochen Friedrich's avatar Jochen Friedrich Committed by Arnaldo Carvalho de Melo
Browse files

[LLC]: Strip RIF flag from source MAC address

parent 5ac660ee
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -254,8 +254,10 @@ static inline void llc_pdu_decode_sa(struct sk_buff *skb, u8 *sa)
{
	if (skb->protocol == ntohs(ETH_P_802_2))
		memcpy(sa, eth_hdr(skb)->h_source, ETH_ALEN);
	else if (skb->protocol == ntohs(ETH_P_TR_802_2))
	else if (skb->protocol == ntohs(ETH_P_TR_802_2)) {
		memcpy(sa, tr_hdr(skb)->saddr, ETH_ALEN);
		*sa &= 0x7F;
	}
}

/**