patch-2.4.15 linux/net/bridge/br_stp_bpdu.c
Next file: linux/net/core/dev.c
Previous file: linux/net/bluetooth/hci_core.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Tue Nov 13 09:16:05 2001
- Orig file:
v2.4.14/linux/net/bridge/br_stp_bpdu.c
- Orig date:
Mon Feb 21 17:35:06 2000
diff -u --recursive --new-file v2.4.14/linux/net/bridge/br_stp_bpdu.c linux/net/bridge/br_stp_bpdu.c
@@ -5,7 +5,7 @@
* Authors:
* Lennert Buytenhek <buytenh@gnu.org>
*
- * $Id: br_stp_bpdu.c,v 1.2 2000/02/21 15:51:34 davem Exp $
+ * $Id: br_stp_bpdu.c,v 1.3 2001/11/10 02:35:25 davem Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -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,6 +43,7 @@
}
skb->dev = dev;
+ 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);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)