* [B.A.T.M.A.N.] [RFC] batman-adv: don't allow ECTP traffic on batman-adv
@ 2012-08-19 18:10 Simon Wunderlich
2012-08-24 23:33 ` Marek Lindner
0 siblings, 1 reply; 2+ messages in thread
From: Simon Wunderlich @ 2012-08-19 18:10 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Simon Wunderlich
We have seen this to break networks when used with bridge loop
avoidance. As we can't see any benefit from sending these ancient frames
via our mesh, we just drop them.
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
---
soft-interface.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/soft-interface.c b/soft-interface.c
index 1aee7db..f04a605 100644
--- a/soft-interface.c
+++ b/soft-interface.c
@@ -143,8 +143,10 @@ static int batadv_interface_tx(struct sk_buff *skb,
struct batadv_bcast_packet *bcast_packet;
struct vlan_ethhdr *vhdr;
__be16 ethertype = __constant_htons(BATADV_ETH_P_BATMAN);
- static const uint8_t stp_addr[ETH_ALEN] = {0x01, 0x80, 0xC2, 0x00, 0x00,
- 0x00};
+ static const uint8_t stp_addr[ETH_ALEN] = {0x01, 0x80, 0xC2, 0x00,
+ 0x00, 0x00};
+ static const uint8_t ectp_addr[ETH_ALEN] = {0xCF, 0x00, 0x00, 0x00,
+ 0x00, 0x00};
unsigned int header_len = 0;
int data_len = skb->len, ret;
short vid __maybe_unused = -1;
@@ -177,10 +179,16 @@ static int batadv_interface_tx(struct sk_buff *skb,
/* don't accept stp packets. STP does not help in meshes.
* better use the bridge loop avoidance ...
+ *
+ * The same goes for ECTP sent at least by some Cisco Switches,
+ * it might confuse the mesh when used with bridge loop avoidance.
*/
if (batadv_compare_eth(ethhdr->h_dest, stp_addr))
goto dropped;
+ if (batadv_compare_eth(ethhdr->h_dest, ectp_addr))
+ goto dropped;
+
if (is_multicast_ether_addr(ethhdr->h_dest)) {
do_bcast = true;
--
1.7.10
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [B.A.T.M.A.N.] [RFC] batman-adv: don't allow ECTP traffic on batman-adv
2012-08-19 18:10 [B.A.T.M.A.N.] [RFC] batman-adv: don't allow ECTP traffic on batman-adv Simon Wunderlich
@ 2012-08-24 23:33 ` Marek Lindner
0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2012-08-24 23:33 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Simon Wunderlich
On Sunday, August 19, 2012 20:10:09 Simon Wunderlich wrote:
> We have seen this to break networks when used with bridge loop
> avoidance. As we can't see any benefit from sending these ancient frames
> via our mesh, we just drop them.
>
> Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
> ---
> soft-interface.c | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
Applied in revision 05d0f6d.
Thanks,
Marek
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-24 23:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-19 18:10 [B.A.T.M.A.N.] [RFC] batman-adv: don't allow ECTP traffic on batman-adv Simon Wunderlich
2012-08-24 23:33 ` Marek Lindner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox