On Fri, Nov 09, 2001 at 07:11:34PM -0500, Lennert Buytenhek wrote:
> OK. Spanning tree packets have 0x4242 in their ethertype field,
> so I assume this will do.
ARGH, that's a lie. They are plain 802.2 LLC packets.
cheers,
Lennert
--- br_stp_bpdu.c.orig Sat Nov 10 01:15:10 2001
+++ br_stp_bpdu.c Sat Nov 10 01:15:33 2001
@@ -14,6 +14,7 @@
*/
#include <linux/kernel.h>
+#include <linux/if_ether.h>
#include <linux/if_bridge.h>
#include "br_private.h"
#include "br_private_stp.h"
@@ -42,7 +43,7 @@
}
skb->dev = dev;
- skb->protocol = 0;
+ skb->protocol = htons(ETH_P_802_2);
skb->mac.raw = skb_put(skb, size);
memcpy(skb->mac.raw, bridge_ula, ETH_ALEN);
memcpy(skb->mac.raw+ETH_ALEN, dev->dev_addr, ETH_ALEN);
_______________________________________________
Bridge mailing list
[EMAIL PROTECTED]
http://www.math.leidenuniv.nl/mailman/listinfo/bridge