Fixed debug interfaces.
--- a/configure.ac Tue Oct 31 14:25:01 2006 +0000
+++ b/configure.ac Tue Oct 31 15:32:57 2006 +0000
@@ -56,7 +56,7 @@
# Debug interface
#------------------------------------------------------------------------------
-AC_ARG_ENABLE([debug-if],
+AC_ARG_ENABLE([dbg-if],
AS_HELP_STRING([--enable-dbg-if],
[Create a debug interface for each master @<:@NO@:>@]),
[
--- a/master/debug.c Tue Oct 31 14:25:01 2006 +0000
+++ b/master/debug.c Tue Oct 31 15:32:57 2006 +0000
@@ -49,6 +49,7 @@
// net_device functions
int ec_dbgdev_open(struct net_device *);
int ec_dbgdev_stop(struct net_device *);
+int ec_dbgdev_tx(struct sk_buff *, struct net_device *);
struct net_device_stats *ec_dbgdev_stats(struct net_device *);
/*****************************************************************************/
@@ -74,6 +75,7 @@
// initialize net_device
dbg->dev->open = ec_dbgdev_open;
dbg->dev->stop = ec_dbgdev_stop;
+ dbg->dev->hard_start_xmit = ec_dbgdev_tx;
dbg->dev->get_stats = ec_dbgdev_stats;
// initialize private data
@@ -177,6 +179,23 @@
/*****************************************************************************/
/**
+ Transmits data via the virtual network device.
+*/
+
+int ec_dbgdev_tx(struct sk_buff *skb, /**< transmit socket buffer */
+ struct net_device *dev /**< EoE net_device */
+ )
+{
+ ec_debug_t *dbg = *((ec_debug_t **) netdev_priv(dev));
+
+ dev_kfree_skb(skb);
+ dbg->stats.tx_dropped++;
+ return 0;
+}
+
+/*****************************************************************************/
+
+/**
Gets statistics about the virtual network device.
*/