batman-adv: don't add loop detect macs to TT
The bridge loop avoidance (BLA) feature of batman-adv sends packets to probe for Mesh/LAN packet loops. Those packets are not sent by real clients and should therefore not be added to the translation table (TT). Signed-off-by: Simon Wunderlich <simon.wunderlich@open-mesh.com>
This commit is contained in:

committed by
Simon Wunderlich

parent
32bcad4b7f
commit
d3e9768ab9
@@ -258,7 +258,8 @@ static int batadv_interface_tx(struct sk_buff *skb,
|
||||
ethhdr = eth_hdr(skb);
|
||||
|
||||
/* Register the client MAC in the transtable */
|
||||
if (!is_multicast_ether_addr(ethhdr->h_source)) {
|
||||
if (!is_multicast_ether_addr(ethhdr->h_source) &&
|
||||
!batadv_bla_is_loopdetect_mac(ethhdr->h_source)) {
|
||||
client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source,
|
||||
vid, skb->skb_iif,
|
||||
skb->mark);
|
||||
|
Reference in New Issue
Block a user