patch-2.1.79 linux/drivers/net/dummy.c
Next file: linux/drivers/net/ipddp.c
Previous file: linux/drivers/net/dmascc.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Mon Jan 12 15:28:18 1998
- Orig file:
v2.1.78/linux/drivers/net/dummy.c
- Orig date:
Sat Nov 29 11:25:10 1997
diff -u --recursive --new-file v2.1.78/linux/drivers/net/dummy.c linux/drivers/net/dummy.c
@@ -30,9 +30,9 @@
/* To have statistics (just packets sent) define this */
-#include <linux/module.h>
-
+#include <linux/config.h>
#include <linux/kernel.h>
+#include <linux/module.h>
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/fcntl.h>
@@ -73,6 +73,13 @@
{
}
+#ifdef CONFIG_NET_FASTROUTE
+static int dummy_accept_fastpath(struct device *dev, struct dst_entry *dst)
+{
+ return -1;
+}
+#endif
+
__initfunc(int dummy_init(struct device *dev))
{
/* Initialize the device structure. */
@@ -92,7 +99,10 @@
ether_setup(dev);
dev->tx_queue_len = 0;
dev->flags |= IFF_NOARP;
- dev->flags &= ~IFF_BROADCAST;
+ dev->flags &= ~(IFF_BROADCAST|IFF_MULTICAST);
+#ifdef CONFIG_NET_FASTROUTE
+ dev->accept_fastpath = dummy_accept_fastpath;
+#endif
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov