diff options
author | Jochen Friedrich <jochen@scram.de> | 2005-10-23 10:33:52 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-10-25 21:34:39 -0200 |
commit | 5ed688a7162ff8d28d7cf98b34a1f825e4c2c2ac (patch) | |
tree | 71b9717387e4b3ec8124ab23d53850b00e9be86f /include/net | |
parent | 5ac660ee1334b401450280cd282113b2c18398f5 (diff) | |
download | op-kernel-dev-5ed688a7162ff8d28d7cf98b34a1f825e4c2c2ac.zip op-kernel-dev-5ed688a7162ff8d28d7cf98b34a1f825e4c2c2ac.tar.gz |
[LLC]: Strip RIF flag from source MAC address
Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/llc_pdu.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/llc_pdu.h b/include/net/llc_pdu.h index f45c37d..c7a9594 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; + } } /** |