patch-2.4.9 linux/net/bridge/br_forward.c
Next file: linux/net/bridge/br_input.c
Previous file: linux/net/bridge/br_device.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Wed Aug 15 01:54:35 2001
- Orig file:
v2.4.8/linux/net/bridge/br_forward.c
- Orig date:
Tue Jul 3 17:08:22 2001
diff -u --recursive --new-file v2.4.8/linux/net/bridge/br_forward.c linux/net/bridge/br_forward.c
@@ -5,7 +5,7 @@
* Authors:
* Lennert Buytenhek <buytenh@gnu.org>
*
- * $Id: br_forward.c,v 1.3 2001/06/01 09:28:28 davem Exp $
+ * $Id: br_forward.c,v 1.4 2001/08/14 22:05:57 davem Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -30,10 +30,18 @@
return 1;
}
+static int __dev_queue_push_xmit(struct sk_buff *skb)
+{
+ skb_push(skb, ETH_HLEN);
+ dev_queue_xmit(skb);
+
+ return 0;
+}
+
static int __br_forward_finish(struct sk_buff *skb)
{
NF_HOOK(PF_BRIDGE, NF_BR_POST_ROUTING, skb, NULL, skb->dev,
- dev_queue_xmit);
+ __dev_queue_push_xmit);
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)