From: Jochen Friedrich Date: Sun, 23 Oct 2005 08:33:52 +0000 (+0200) Subject: [LLC]: Strip RIF flag from source MAC address X-Git-Tag: v2.6.14~19 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ed688a7162ff8d28d7cf98b34a1f825e4c2c2ac;p=linux-2.6 [LLC]: Strip RIF flag from source MAC address Signed-off-by: Jochen Friedrich Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/include/net/llc_pdu.h b/include/net/llc_pdu.h index f45c37d89c..c7a959428b 100644 --- a/include/net/llc_pdu.h +++ b/include/net/llc_pdu.h @@ -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; + } } /**