patch-2.0.37 linux/drivers/net/dummy.c

Next file: linux/drivers/net/eepro100.c
Previous file: linux/drivers/net/dgrs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.36/linux/drivers/net/dummy.c linux/drivers/net/dummy.c
@@ -70,6 +70,10 @@
 	return 0;
 }
 
+static int dummy_rebuild(void *eth, struct device *dev, unsigned long raddr, struct sk_buff *skb)
+{
+	return 0;
+}
 
 int dummy_init(struct device *dev)
 {
@@ -94,6 +98,7 @@
 	/* Fill in the fields of the device structure with ethernet-generic values. */
 	ether_setup(dev);
 	dev->flags |= IFF_NOARP;
+	dev->rebuild_header = dummy_rebuild;
 
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov